generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Clean up pcap handles and allow alternative sources (#103)
## Which problem is this PR solving? The assembler can only currently use the gopacket.pcaphandle as it's packet source. This PR updates the assembler's New function to break the direct dependency on pcap and allow config to select the packet source. This does not add additional sources. ## Short description of the changes - Add source (defualt "pcap") and bpf filter (default "tcp") options to config - Move pcap handle creation to separate function and set bpf filter - Update the packet source lazy option to use config instead of direct value - Move started log to Start func ## How to verify that this has the expected result The agent should continue to work as it is. Co-authored-by: Jamie Danielson <jamieedanielson@gmail.com>
- Loading branch information
1 parent
bbf966e
commit bd2a4df
Showing
2 changed files
with
47 additions
and
40 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