Removing the --use-binpac switch.

This commit is contained in:
Robin Sommer 2013-04-03 13:40:49 -07:00
parent bfda42b9e9
commit 40ca718e90
5 changed files with 3 additions and 12 deletions

View file

@ -19,7 +19,7 @@ public:
{ return new DHCP_Analyzer_binpac(conn); }
static bool Available()
{ return dhcp_request && FLAGS_use_binpac; }
{ return dhcp_request; }
protected:
binpac::DHCP::DHCP_Conn* interp;

View file

@ -271,8 +271,7 @@ public:
static bool Available()
{
return (dns_request || dns_full_request) &&
! FLAGS_use_binpac;
return (dns_request || dns_full_request);
}
protected:

View file

@ -46,7 +46,7 @@ protected:
// { return new Syslog_TCP_Analyzer_binpac(conn); }
//
// static bool Available()
// { return (Syslog_request || Syslog_full_request) && FLAGS_use_binpac; }
// { return (Syslog_request || Syslog_full_request); }
//
//protected:
// binpac::Syslog_on_TCP::Syslog_TCP_Conn* interp;

View file

@ -35,6 +35,4 @@ inline StringVal* bytestring_to_val(const_bytestring const &str)
} // namespace binpac
extern int FLAGS_use_binpac;
#endif

View file

@ -114,8 +114,6 @@ vector<string> params;
char* proc_status_file = 0;
int snaplen = 0; // this gets set from the scripting-layer's value
int FLAGS_use_binpac = false;
extern std::list<BroDoc*> docs_generated;
// Keep copy of command line
@ -204,8 +202,6 @@ void usage()
fprintf(stderr, " -n|--idmef-dtd <idmef-msg.dtd> | specify path to IDMEF DTD file\n");
#endif
fprintf(stderr, " --use-binpac | use new-style BinPAC parsers when available\n");
fprintf(stderr, " $BROPATH | file search path (%s)\n", bro_path());
fprintf(stderr, " $BRO_PREFIXES | prefix list (%s)\n", bro_prefixes());
fprintf(stderr, " $BRO_DNS_FAKE | disable DNS lookups (%s)\n", bro_dns_fake());
@ -497,8 +493,6 @@ int main(int argc, char** argv)
{"pseudo-realtime", optional_argument, 0, 'E'},
{"use-binpac", no_argument, &FLAGS_use_binpac, 1},
{0, 0, 0, 0},
};