X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/11d3a01319e295dcabfb2647302d278938449226..5287bffd3f4fa1fda9d7734b45f8cf02391d3855:/print-timed.c diff --git a/print-timed.c b/print-timed.c index 6aa7a821..528cfd45 100644 --- a/print-timed.c +++ b/print-timed.c @@ -123,8 +123,8 @@ timed_print(netdissect_options *ndo, case TSP_SETDATE: case TSP_SETDATEREQ: ND_TCHECK(tsp->tsp_time); - sec = EXTRACT_32BITS(&tsp->tsp_time.tv_sec); - usec = EXTRACT_32BITS(&tsp->tsp_time.tv_usec); + sec = EXTRACT_BE_32BITS(&tsp->tsp_time.tv_sec); + usec = EXTRACT_BE_32BITS(&tsp->tsp_time.tv_usec); /* XXX The comparison below is always false? */ if (usec < 0) /* invalid, skip the rest of the packet */