2 * buftvtots - pull a Unix-format (struct timeval) time stamp out of
3 * an octet stream and convert it to a l_fp time stamp.
4 * This is useful when using the clock line discipline.
11 #include "ntp_string.h"
12 #include "timevalops.h"
24 * copy to adhere to alignment restrictions
26 memcpy(&tv, bufp, sizeof(tv));
31 if (tv.tv_usec > MICROSECONDS - 1)
34 *ts = tval_stamp_to_lfp(tv);
38 #endif /* !SYS_WINNT */