MCPcopy Create free account
hub / github.com/F-Stack/f-stack / iptime

Function iptime

freebsd/netinet/ip_icmp.c:1023–1032  ·  view source on GitHub ↗

* Return milliseconds since 00:00 UTC in network format. */

Source from the content-addressed store, hash-verified

1021 * Return milliseconds since 00:00 UTC in network format.
1022 */
1023uint32_t
1024iptime(void)
1025{
1026 struct timeval atv;
1027 u_long t;
1028
1029 getmicrotime(&atv);
1030 t = (atv.tv_sec % (24*60*60)) * 1000 + atv.tv_usec / 1000;
1031 return (htonl(t));
1032}
1033
1034/*
1035 * Return the next larger or smaller MTU plateau (table from RFC 1191)

Callers 3

tcp_traceFunction · 0.85
icmp_inputFunction · 0.85
ip_dooptionsFunction · 0.85

Calls 1

getmicrotimeFunction · 0.85

Tested by

no test coverage detected