split tun setup and tun IO

This commit is contained in:
JackDoan committed 2026-09-25 12:26:07 -05:00
1 parent 10e1924489
commit 2ff4852551
5 files changed
+395 -413

No files matched your search

+1 -1
View File
@@ -332,7 +332,7 @@ const recvBatch = 64
// msghdrX mirrors xnu's struct msghdr_x (bsd/sys/socket_private.h). recvmsg_x reports each
// datagram's length in Datalen rather than in its return value.
// Keep in sync with msghdrX in overlay/tun_darwin.go.
// Keep in sync with msghdrX in overlay/tio/tio_utun_darwin.go.
type msghdrX struct {
Name *byte
Namelen uint32