Skip to content

Commit

Permalink
Merge pull request #671 from andrewkroh/bugfix/pf_ring
Browse files Browse the repository at this point in the history
Accept pf_ring or pfring in Packetbeat configuration
  • Loading branch information
tsg committed Jan 10, 2016
2 parents 9b62f94 + e2f1e8a commit ba5972c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ https://github.com/elastic/beats/compare/1.0.0...master[Check the HEAD diff]

*Packetbeat*
- Fix setting direction to out and use its value to decide when dropping events if ignore_outgoing is enabled {pull}557[557]
- Allow PF_RING sniffer type to be configured using pf_ring or pfring {pull}671[671]

*Topbeat*

Expand Down
4 changes: 2 additions & 2 deletions packetbeat/sniffer/sniffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (sniffer *SnifferSetup) setFromConfig(config *config.InterfacesConfig) erro
}

sniffer.DataSource = gopacket.PacketDataSource(sniffer.afpacketHandle)
case "pfring":
case "pfring", "pf_ring":
sniffer.pfringHandle, err = NewPfringHandle(
sniffer.config.Device,
sniffer.config.Snaplen,
Expand Down Expand Up @@ -371,7 +371,7 @@ func (sniffer *SnifferSetup) Close() error {
sniffer.pcapHandle.Close()
case "af_packet":
sniffer.afpacketHandle.Close()
case "pfring":
case "pfring", "pf_ring":
sniffer.pfringHandle.Close()
}
return nil
Expand Down

0 comments on commit ba5972c

Please sign in to comment.