The whole thing about Raw interfaces is because LinkLayer for RAW is 101, but calling pcap.Handle.LinkType() returns the DLT not the LinkType! The result is for Raw interfaces you get either 12 or 14 (depending on OS) instead of 101 which causes nothing but pain. :-/
The whole thing about Raw interfaces is because LinkLayer for RAW is 101, but calling pcap.Handle.LinkType() returns the DLT not the LinkType! The result is for Raw interfaces you get either 12 or 14 (depending on OS) instead of 101 which causes nothing but pain. :-/