-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use global state for the BPF compiler.
This allows multiple pcap_compile() calls to be in progress on different pcap_t's in different threads. (No, you can't count on that behavior in older versions of libpcap, so only do that if you know you're using a newer version of libpcap.)
- Loading branch information
Showing
9 changed files
with
2,633 additions
and
2,690 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
Oops, something went wrong.
fb20696
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
SKF_AD_VLAN_TAG
andSKF_AD_VLAN_TAG_PRESENT
are defined in/usr/include/linux/filter.h
(f.e. Debian Jessie, Linux 3.16.0), the build is broken:Errors:
fb20696
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by Denis in 3f0a659. Thanks.