Files
Caleb JasikandNate Brown e20569ce51 Let the darwin tun adopt an fd the host already configured (#1890)
newTunFromFd was a stub on darwin, so an embedder handed a utun by the OS had
no way to use it. A darwin network extension is given exactly that:
NEPacketTunnelProvider creates the device and applies addressing, mtu and
routes from its network settings, and a sandboxed extension cannot change them
afterwards. Adopting that fd means everything about moving packets is shared
with newTun and only the setup differs, so the tun tracks whether the host owns
it and leaves the system routing table and interface config alone when it does.

Co-authored-by: Nate Brown <nbrown.us@gmail.com>
2026-09-22 11:54:30 -05:00
..
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-04-27 09:41:47 -05:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00
2026-09-14 09:25:35 -04:00