Added a BRO_DNS_FAKE message to the help output.

This commit is contained in:
Seth Hall 2011-01-19 10:35:27 -05:00
parent aa0691ba21
commit 3d9461eca1
3 changed files with 11 additions and 0 deletions

View file

@ -184,6 +184,7 @@ void usage()
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 | enable faked DNS query responses (%s)\n", bro_dns_fake());
exit(1);
}

View file

@ -804,6 +804,15 @@ const char* bro_prefixes()
return p;
}
const char* bro_dns_fake()
{
char* dns_fake = getenv("BRO_DNS_FAKE");
if ( !dns_fake )
return "";
else
return dns_fake;
}
FILE* open_file(const char* filename, const char** full_filename)
{

View file

@ -177,6 +177,7 @@ extern int int_list_cmp(const void* v1, const void* v2);
extern const char* bro_path();
extern const char* bro_prefixes();
extern const char* bro_dns_fake();
extern FILE* search_for_file(const char* filename, const char* ext,
const char** full_filename);