mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Added a BRO_DNS_FAKE message to the help output.
This commit is contained in:
parent
aa0691ba21
commit
3d9461eca1
3 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue