Add option to specify custom BPF filter

Can be useful in case of non standard network interfaces when like
tunnels or SPAN ports, when IP of interface does not match with IP of
packet.

Can be used to read traffic from multiple ports and interfaces at once
as well.
This commit is contained in:
Leonid Bugaev
2017-07-27 17:56:33 +03:00
parent 09f47b25bf
commit cf402a1d0e
7 changed files with 33 additions and 22 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ func InitPlugins() {
}
for _, options := range Settings.inputRAW {
registerPlugin(NewRAWInput, options, engine, Settings.inputRAWTrackResponse, Settings.inputRAWExpire, Settings.inputRAWRealIPHeader)
registerPlugin(NewRAWInput, options, engine, Settings.inputRAWTrackResponse, Settings.inputRAWExpire, Settings.inputRAWRealIPHeader, Settings.inputRAWBpfFilter)
}
for _, options := range Settings.inputTCP {