Skip to content

Commit 3026b25

Browse files
committed
Use a less cryptic message for packet timestamp overflow
In ts_date_hmsfrac_print() and ts_unix_print() replace "[timestamp < 1970-01-01 00:00:00 UTC]" by "[timestamp overflow]". (Wikipedia "Year 2038 problem" uses "overflow".)
1 parent f589a0f commit 3026b25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util-print.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ ts_date_hmsfrac_print(netdissect_options *ndo, const struct timeval *tv,
254254
#endif
255255

256256
if (tv->tv_sec < 0) {
257-
ND_PRINT("[timestamp < 1970-01-01 00:00:00 UTC]");
257+
ND_PRINT("[timestamp overflow]");
258258
return;
259259
}
260260

@@ -295,7 +295,7 @@ static void
295295
ts_unix_print(netdissect_options *ndo, const struct timeval *tv)
296296
{
297297
if (tv->tv_sec < 0) {
298-
ND_PRINT("[timestamp < 1970-01-01 00:00:00 UTC]");
298+
ND_PRINT("[timestamp overflow]");
299299
return;
300300
}
301301

0 commit comments

Comments
 (0)