Can we return NEPacketTunnelProvider's NEPacket to macOS kernel? Snippet-
packetFlow.readPacketObjects {[weak self] packets in
As per network rules, packets read from packetFlow.
After parsing packets, in some conditional use cases(such as ip), if we decide not to handle the packets, could we return it to kernel?
We can easily achieve it in NETransparentProxyProvider by returning false from below method. We are looking for similar mechanisms to do return the traffic to Kernel.
override func handleNewFlow(_ flow: NEAppProxyFlow) -> Bool
May we achieve the same with any other Network.framework or low level API?
If any advance Code-level support could solve this issue, we could raise a TSI as well.