-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packetbeat: add option to allow sniffer to change device when default…
… route changes (#32681) * packetbeat: add option to allow sniffer to change device when default route changes Rather than attempting to append new sniffer device data to an established dump, file, dump files are rolled when a new device is used. The alternative would require keeping a track of link type and *pcapgo.Writer between calls to sniff to ensure that the dump file is not truncated and that the header is appropriately written. If the user needs to have a single pcap file for the session, they can be merged using either wireshark or mergecap. * packetbeat/sniffer: add logic to allow requests for interface refresh Use this when there have been too many timeouts, or when there is an error condition during packet capture. * register a default_route metric when following default route
- Loading branch information
Showing
8 changed files
with
241 additions
and
35 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
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
Oops, something went wrong.