Please sign in to comment.
Assorted header changes.
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 with 32 additions and 30 deletions.