mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 18:14:29 +08:00
Print a -L-like header for -J.
This commit is contained in:
parent
a20a6126fc
commit
14fff3bc4e
@ -378,6 +378,13 @@ show_tstamp_types_and_exit(const char *device, pcap_t *pd)
|
||||
if (n_tstamp_types < 0)
|
||||
error("%s", pcap_geterr(pd));
|
||||
|
||||
if (n_tstamp_types == 0) {
|
||||
fprintf(stderr, "Time stamp type cannot be set for %s\n",
|
||||
device);
|
||||
exit(0);
|
||||
}
|
||||
fprintf(stderr, "Time stamp types for %s (use option -j to set):\n",
|
||||
device);
|
||||
for (i = 0; i < n_tstamp_types; i++) {
|
||||
tstamp_type_name = pcap_tstamp_type_val_to_name(tstamp_types[i]);
|
||||
if (tstamp_type_name != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user