diff options
-rw-r--r-- | bpf.h | 2 | ||||
-rw-r--r-- | bpf_comp.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -27,7 +27,7 @@ static inline void bpf_try_compile(const char *rulefile, struct sock_fprog *bpf __maybe_unused, uint32_t link_type __maybe_unused) { - panic("Cannot open file %s!\n", rulefile); + panic("No libpcap support, cannot compile filter: %s\n", rulefile); } #endif static inline void bpf_release(struct sock_fprog *bpf) @@ -21,7 +21,7 @@ void bpf_try_compile(const char *rulefile, struct sock_fprog *bpf, uint32_t link ret = pcap_compile_nopcap(65535, link_type, &_bpf, rulefile, 1, 0xffffffff); if (ret < 0) - panic("Cannot compile filter %s\n", rulefile); + panic("Cannot compile filter: %s\n", rulefile); bpf->len = _bpf.bf_len; bpf->filter = xrealloc(bpf->filter, bpf->len * sizeof(*out)); |