* Return milliseconds since 00:00 UTC in network format. */
| 1021 | * Return milliseconds since 00:00 UTC in network format. |
| 1022 | */ |
| 1023 | uint32_t |
| 1024 | iptime(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) |
no test coverage detected