mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Store error message from BPF compilation
This commit is contained in:
parent
767c83ede8
commit
82adecb2ad
8 changed files with 100 additions and 49 deletions
|
@ -282,7 +282,7 @@ function install(): bool
|
|||
$msg=fmt("Compiling packet filter failed"),
|
||||
$sub=tmp_filter]);
|
||||
|
||||
local error_string = fmt("Bad pcap filter '%s'", tmp_filter);
|
||||
local error_string = fmt("Bad pcap filter '%s': %s", tmp_filter, Pcap::get_filter_state_string(DefaultPcapFilter));
|
||||
|
||||
local pkt_src_error : string = Pcap::error();
|
||||
if ( pkt_src_error != "no error" )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue