Commit Graph

5 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
d77ac851c7 Fix local time printing
Using seconds offset from GMT to local time to compute local time give
errors when printing times outside the same daylight saving time period.

Use the localtime() function for default and -tttt cases.
Use the gmtime() function for -ttt and -ttttt cases.

Rename ts_hmsfrac_print() to ts_date_hmsfrac_print().
Remove some variables now useless.
Update some comments.
2018-08-07 17:37:36 +02:00
Guy Harris
77453f5355 Eliminate some remaining uses of u_int32_t. 2015-09-18 15:11:43 -07:00
Francois-Xavier Le Bail
f0ff49cc4d Move if_printer to structure netdissect_options
The structure 'netdissect_options' can hold if_printer.
Thus the structure 'print_info' is useless now.

Moreover:
Delete useless blank lines
Fix indent
2015-09-14 15:54:54 +02:00
Brooks Davis
dcfd7c43ad Pass an ndo to the print API rather than using gndo.
Since gndo is only referenced in main() move it there.
2015-04-27 00:10:23 +00:00
Brooks Davis
115a063589 Disentangle packet dissection functionally in tcpdump from the internal
libnetdissect.  This greatly narrows the public interface and allows
libnetdissect to be more easily sandboxed.
2015-04-15 18:52:33 +00:00