MCPcopy Index your code
hub / github.com/celzero/firestack / newTun

Function newTun

intra/netstack/fds.go:88–108  ·  view source on GitHub ↗

Takes ownership of fd, which must be a valid TUN file descriptor. Never returns nil, but may return an invalid fds (with tunFd = -1).

(fd int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

swapMethod · 0.85

Calls 3

newStopFdFunction · 0.85
closFunction · 0.70
StoreMethod · 0.45

Tested by

no test coverage detected