Replies: 2 comments 9 replies
-
The maximum number of instructions (BPF_MAXINSNS) that the unprivileged BPF program can have is limited to 4096. Both tools check the length: If that failed, both tools show an error: Instrucitons is not equal to characters. FIltereing a single MAC and setting the snaplen are 16 instructions:
The more MAC to be filtered, the instructions increase:
|
Beta Was this translation helpful? Give feedback.
-
This is the sample bpf which fails it for me when being ran (last three octets swapped with FF just for the sample):
|
Beta Was this translation helpful? Give feedback.
-
Is there any size limitation for the maximum size of the bpf used for filtering? At 1291 characters it appears to work fine. At 1365 characters it fails with:
scan frequencies: frequency [channel] of Regulatory Domain: 00
2412 [ 1] 2437 [ 6] 2462 [ 11]
failed to open raw packet socket
[?25h1 ERROR(s) during runtime
Possible reasons:
driver is broken
driver is busy (misconfigured system, other services access the INTERFACE)
1 Packet(s) captured by kernel
0 Packet(s) dropped by kernel
Warning: too less packets received (monitor mode may not work as expected)
Possible reasons:
driver is broken (most likely)
no transmitter in range
frames are filtered out by BPF
1 SHB written to pcapng dumpfile
1 IDB written to pcapng dumpfile
1 ECB written to pcapng dumpfile
0 EPB written to pcapng dumpfile
It's not driver specific, fails on all with the same error. Took me a while to realize the reason, I thought I broke something with the drivers. That's on OpenWRT latest compiled from source.
Beta Was this translation helpful? Give feedback.
All reactions