Commit Graph

9 Commits

Author SHA1 Message Date
Petr Vorel
152acc2ece 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>
2018-07-19 07:15:11 +01:00
Francois-Xavier Le Bail
e78cc7f2b1 We no longer need pcap/nflog.h nor pcap/bluetooth.h, step 2 2018-05-25 10:46:05 +02:00
Guy Harris
0fb509808c Not all Windows pcaps have pcap_wsockinit().
WinPcap 4.1.3 has only wsockinit(); check for both, on Windows.
2018-01-29 02:16:13 -08:00
Guy Harris
bdafcfbfb0 Support WITH_CHROOT and WITH_USER.
They're strings; expand them from however they're defined in the CMake
call.
2018-01-22 18:31:45 -08:00
Guy Harris
5e000fa7e6 Change to match config.h.in. 2018-01-22 02:44:40 -08:00
Guy Harris
0c21656150 Configure for ether_ntohost() as libpcap does it for ether_hostton().
Check for the same header files that declare it, and handle the results
of those checks in a similar fashion.
2018-01-22 02:34:31 -08:00
Guy Harris
a7f76515c4 Again, we don't replace vfprintf(). 2018-01-21 18:42:09 -08:00
Guy Harris
45fc519a2a Don't test for __attribute__ in the configure script.
Instead, use compiler test macros to check whether *particular*
attributes are supported, and set various #defines appropriately, in
header files.

Rename the UNALIGNED structure attribute to ND_UNALIGNED, and ask
whether we still need it.
2018-01-21 17:57:20 -08:00
Guy Harris
1807273b16 Initial CMake support.
Work in progress; there's more to be done.
2018-01-21 13:22:15 -08:00