diff options
author | Petr Vorel <pvorel@suse.cz> | 2018-07-12 22:01:43 +0200 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2018-07-19 07:15:11 +0100 |
commit | 152acc2ece46a796779503d103ff6a0deb90cbc1 (patch) | |
tree | 0a1b796d95feb05085c8a1e6187e8a023cfa3fd2 /tcpdump.c | |
parent | eb962af8e8e1cfe25f9294f1d80807aa311b73c8 (diff) | |
download | tcpdump-152acc2ece46a796779503d103ff6a0deb90cbc1.tar.gz |
Display interface and index and name on DLT_LINUX_SLL2
Index is displayed always, name only if available.
Warn about possible wrong interfaces when in reading mode
(pcap file can be displayed on a different host then where
was captured) [1].
See: GH the-tcpdump-group/libpcap#127
[1] https://lists.sandelman.ca/pipermail/tcpdump-workers/2018-July/001019.html
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Suggested-by: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Denis Ovsienko <denis@ovsienko.info>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tcpdump.c')
-rw-r--r-- | tcpdump.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1978,6 +1978,10 @@ main(int argc, char **argv) RFileName, dlt_name, pcap_datalink_val_to_description(dlt)); } +#ifdef DLT_LINUX_SLL2 + if (dlt == DLT_LINUX_SLL2) + fprintf(stderr, "Warning: interface names might be incorrect\n"); +#endif } else { /* * We're doing a live capture. |