crash.software
Projects
Pull Requests
Issues
Builds
sing-box
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
sing-box
Files
🤬
Sign In
41e1e48a
ROOT
/
transport
/
wireguard
/
device_nat.go
Search
History
76 lines
|
ISO-8859-1
|
1 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
Device
natDeviceWrapper
Device
outbound
:
chan *buf.Buffer
mapping
:
*tun.NatMapping
writer
:
*tun.NatWriter
NewNATDevice
(upstream Device, ipRewrite bool)
:
NatDevice
_
:
tun.DirectDestination
natDestinationWrapper
device
:
*natDeviceWrapper
session
:
tun.RouteSession
*natDeviceWrapper
Read
(p []byte, offset int)
:
(int, error)
Write
(p []byte, offset int)
:
(int, error)
CreateDestination
(session tun.RouteSession, conn tun.RouteContext)
:
tun.DirectDestination
*natDestinationWrapper
WritePacket
(buffer *buf.Buffer)
:
error
Close
()
:
error
Timeout
()
:
bool
All occurrences
Please wait...
Page is in error, reload to recover