forked from elastic/beats
-
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.
packetbeat/{beater,protos,sniffer}: allow assignment of protocols to …
…interfaces (elastic#36852) Previously the protocols association was held in a *protocols.ProtocolStruct in common for all interfaces. This prevented individual interfaces that were only associated with a subset of the protocols that were being captured from working specifically on that subset. The new code moves the construction of the protocols sets into setupSniffer where they are associated with the interface that will be capturing them. They are then assigned to child sniffers in sniffer.New based on the interface. This change has no effect on the behaviour of packetbeat as it stands as configs from packetbeat and from agent are only able to express the existence of a single interface. Changes to configuration format/shape will enable multiple interfaces to be enabled in packetbeat and within a single agent policy, making use of the change here.
- Loading branch information
Showing
4 changed files
with
79 additions
and
62 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