Strange RAW Socket on Mac OS X
This will not work on *BSD (including OSX/Darwin). See the investigation here for more details: b. FreeBSD ********** FreeBSD takes another approach. It *never* passes TCP or UDP packets to raw sockets. Such packets need to be read directly at the datalink layer by using libraries like libpcap or the bpf API. It also *never* … Read more