Reduce snaplen default from 65535 to old default of 8192. (fixes #720)

Also replaced the --snaplen/-l command line option with a
scripting-layer option called "snaplen" (which can also be
redefined on the command line, e.g. `bro -i eth0 snaplen=65535`).
This commit is contained in:
Jon Siwek 2012-01-04 16:30:15 -06:00
parent e5b3d318a6
commit 645c80f974
2 changed files with 6 additions and 7 deletions

View file

@ -1505,6 +1505,9 @@ const skip_http_data = F &redef;
## UDP tunnels. See also: udp_tunnel_port, policy/udp-tunnel.bro.
const parse_udp_tunnels = F &redef;
## Number of bytes per packet to capture from live interfaces.
const snaplen = 8192 &redef;
# Load the logging framework here because it uses fairly deep integration with
# BiFs and script-land defined types.
@load base/frameworks/logging