Support for (mixed) MPLS and VLAN traffic, and a new default BPF

filter. (Seth Hall and Robin Sommer)

- Merging in the patch from #264, which provides support for mixed
  VLAN and MPLS traffic.

- Changing Bro's default filter from being built dynamically to being
  a static "ip or not ip". To get the old behaviour back (i.e., the
  dynamically built filter), redef "all_packets" to false.

- print-filter.bro now always prints the filter that Bro is actually
  using, even if overriden from the command line.
This commit is contained in:
Robin Sommer 2011-04-28 21:14:52 -07:00
parent b01aa66fe6
commit 9ddc26328d
18 changed files with 170 additions and 35 deletions

View file

@ -260,6 +260,8 @@ int record_all_packets;
RecordType* script_id;
TableType* id_table;
StringVal* cmd_line_bpf_filter;
#include "const.bif.netvar_def"
#include "types.bif.netvar_def"
#include "event.bif.netvar_def"
@ -313,6 +315,9 @@ void init_general_global_var()
trace_output_file = internal_val("trace_output_file")->AsStringVal();
record_all_packets = opt_internal_int("record_all_packets");
cmd_line_bpf_filter =
internal_val("cmd_line_bpf_filter")->AsStringVal();
}
void init_net_var()