Hi,
I downloaded FilteringNetworkTraffic and added a FilterPacketProvider to intercept network packet with following info.plist:
<key>NEProviderClasses</key>
<dict>
<key>com.apple.networkextension.filter-packet</key>
<string>$(PRODUCT_MODULE_NAME).FilterPacketProvider</string>
</dict>
but the callback function and packetHandler closure do not work at all? thanks!
You can’t just change the extension point here. There’s a bunch of other things you need to do as well, including:
propertyfilterPackets
Not setting the other filter properties
propertyfilterPacketProviderBundleIdentifier
Changing the base class from
toNEFilterDataProvider
NEFilterPacketProvider
Probably other stuff that I’ve forgotten )-:
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"