Skip to content

Commit

Permalink
Fix parsing of interface options with _ (elastic#4334) (elastic#4378)
Browse files Browse the repository at this point in the history
In commit 5547060 linting issues
were addresses and variables containing _ were renamed. This broke
the config parsing.

In packetbeat this seems to effect the with_vlans, bpf_filter and
the buffer_size_mb options. Correct it by adding tags for all
documented variables.
  • Loading branch information
zecke authored and tsg committed May 29, 2017
1 parent 2f8d7bc commit 813466d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packetbeat/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ type Config struct {
}

type InterfacesConfig struct {
Device string
Type string
File string
WithVlans bool
BpfFilter string
Snaplen int
BufferSizeMb int
Device string `config:"device"`
Type string `config:"type"`
File string `config:"file"`
WithVlans bool `config:"with_vlans"`
BpfFilter string `config:"bpf_filter"`
Snaplen int `config:"snaplen"`
BufferSizeMb int `config:"buffer_size_mb"`
TopSpeed bool
Dumpfile string
OneAtATime bool
Expand Down

0 comments on commit 813466d

Please sign in to comment.