A bad time to ask, I'm sure, since everyone is busy with WWDC.
- What is the difference between
filterSocketsandfilterPackets? In terms of code and classes, I mean. (For my very simple test, if I setfilterSocketsto true, it just doesn't seem to work.) - Related to that: with
filterPacketsset to true, what data isNEFilterPacketProvider.packetHandlergetting? It looks like a subset of an ethernet packet on my system (which, in fact, does have wired ethernet!). But it's missing some of the wire bits (the preamble and SFP), and the length is wrong. (Eg., the handler is given bytes of length 1514, but the ethernet length field is 1500 -- but there are 16 bytes before the length field, plus the two bytes of the length/type.) I suppose it's possible it's not an ethernet packet, but it certainly looks like one, just... slightly wrong.