david415/HoneyBadger

test BPF sniffer on MacOSX

david415 opened this issue · 2 comments

This ticket is to test that the BPF ethernet sniffer works in MacOSX.

I've got this here dev branch that I would like for someone to test:

https://github.com/david415/HoneyBadger/tree/71.add-bsd-sniffer.1

it doesn't work on OSX ;-p
... but i think this can easily be fixed. We get the default BPF buffer length... and on OSX it is set to 4096 bytes... so perhaps if we increase it to 32767 it will work fine. Anyway that is the default bufLen on OpenBSD and NetBSD.

We are using my new BSD BPF sniffer now... and it's been merged upstream into gopacket. It will most likely work on OSX... but we won't know until we try.