MCPcopy Create free account
hub / github.com/TrackerControl/tracker-control-android / StartTunnel

Function StartTunnel

wgbridge/bridge.go:136–181  ·  view source on GitHub ↗

StartTunnel boots wireguard-go. uapiConfig UAPI text produced by WgConfig.toUapi() on the Java side. outboundRxFd read end of a socketpair held by C; C writes raw IP packets, we read them and feed wireguard-go. tunWriteFd VpnService TUN fd; we write decrypted inbound IP pac

(uapiConfig string, outboundRxFd int32, tunWriteFd int32, mtu int32,
	protect Protector, logger Logger, dnsRecorder DnsRecorder)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

CloseMethod · 0.95
newProtectedBindFunction · 0.85
newDeviceLoggerFunction · 0.85
ErrorfMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected