forked from the-tcpdump-group/libpcap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some stuff from <pcap/bpf.h> that code should, if it really needs it, get from the system BPF header file or elsewhere. Fix sf-pcap.c to do that - the fallback buffer size if the snapshot length is bogus shouldn't be based on the BPF buffer size. Use Packet_WORDALIGN() in pcap-win32.c, as that's what the code that puts the packet in the buffers uses. Indicate why we don't move the pcap/bpf.h stuff into pcap/pcap.h. Don't use BPF_MAJOR_VERSION to protect against collision with <net/bpf.h>, as that causes problems on Linux with programs that include <linux/filter.h>, either directly or indirectly, before including pcap.h.
- Loading branch information
Showing
4 changed files
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters