mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-27 03:53:53 +08:00
Report 32-bit timestamps with uppermost bit set as "Error converting time"
In the ts_unix_print() function. This change is a followup to commit 8e9fb1eb02.
This commit is contained in:
parent
0b3880c91e
commit
e9439e9b71
@ -295,6 +295,11 @@ ts_date_hmsfrac_print(netdissect_options *ndo, int sec, int usec,
|
||||
static void
|
||||
ts_unix_print(netdissect_options *ndo, int sec, int usec)
|
||||
{
|
||||
if ((unsigned)sec & 0x80000000) {
|
||||
ND_PRINT("[Error converting time]");
|
||||
return;
|
||||
}
|
||||
|
||||
ND_PRINT("%u", (unsigned)sec);
|
||||
ts_frac_print(ndo, usec);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user