bpf: Fix confusing panic() message
commit074f8fc82ff26bb02c3c09f6ed71bca77e08e020
authorTobias Klauser <tklauser@distanz.ch>
Fri, 16 Dec 2016 10:47:58 +0000 (16 11:47 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 16 Dec 2016 10:47:58 +0000 (16 11:47 +0100)
treee94d6c37189436a21e8bd780c35ab1d85463737d
parent3608cf700a27240e343d1173f5782a0398102c16
bpf: Fix confusing panic() message

When using a filter with netsniff-ng without libpcap support, e.g.

  $ netsniff-ng --in eth0 tcp or udp

we get the error:

  Cannot compile filter tcp or udp

which isn't correct and might be confusing for the user as the intention
wasn't to specify a filter file but a filter string. Correct the error
message accordingly.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
bpf.h
bpf_comp.c