Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin receiving packets upon opening the device
Simplify the interface by immediately receiving packets when the device is opened. By default, all packets are sniffed. A filter can be applied when the device is opened or changed later using filter/3. Remove the loop/1 function. This also prevents multiple threads being spawned to handle the same pcap descriptor.
- Loading branch information
Showing
3 changed files
with
49 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