Post

Replies

Boosts

Views

Activity

Data -> NSData causes huge slowdown in NEPacketTunnelProvider
Not sure if this is a feature or a bug, but thought I would bring it up. I was experiencing very slow speeds in my NEPacketTunnelProvider subclass. I finally found the issue. It seems like a bug, but maybe it is supposed to work this way. This function, called for each packet up/down, needs a [UInt8] array from a Data object. This is what works as expected, I get close to my expected speed test of 28Mpbs: public mutating func parseL4Proto(packet: Data, l4HeaderOffset: Int) { let byteArray = [UInt8](packet) . . . If I do this instead, it compiles and runs, but my speed test now returns around 7Mbps. public mutating func parseL4Proto(packet: Data, l4HeaderOffset: Int) { let data = (packet as NSData) let byteArray = [UInt8](data) . . . Very repeatable. Change those lines and the speed test results are way off. Everything is working now, but I am posting this for others who may encounter it. Bug? Feature?
1
0
504
Dec ’21
Cannot establish NWUdpSession in PacketTunnel using T-Mobile
We have a PacketTunnel solution that uses two UDP datagram channels, one for LTE and one for Wi-Fi. When setting up these channels, we have no issues when the provider is Verizon, but when using T-Mobile, the LTE NWUdpSession goes from .preparing to .waiting to .preparing to .failed. For Wi-Fi or LTE with Verizon, we get .preparing to .prepared to .ready Is there a known issue here or is there something for me to check?
6
0
1.2k
Oct ’21
How to embed a NetworkExtension into a static framework?
We have a working POC app that uses a NetworkExtension that we have created to manage a VPN connection, and it works as expected. We would like to provide a static framework (binary) that has this network extension embedded into it such that our customers can build their own application that will use our VPN management extension. I cannot see how/where in build settings to embed the extension into the framework. Is this possible to do?
7
0
1.8k
Nov ’20