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_system.go
Search
History
133 lines
|
ISO-8859-1
|
3 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
Device
SystemDevice
dialer
:
N.Dialer
device
:
tun.Tun
name
:
string
mtu
:
int
events
:
chan wgTun.Event
addr4
:
netip.Addr
addr6
:
netip.Addr
NewSystemDevice
(router adapter.Router, interfaceName string, localPrefixes []netip.Prefix, mtu uint32)
:
(*SystemDevice, error)
*SystemDevice
DialContext
(ctx context.Context, network string, destination M.Socksaddr)
:
(net.Conn, error)
ListenPacket
(ctx context.Context, destination M.Socksaddr)
:
(net.PacketConn, error)
Inet4Address
()
:
netip.Addr
Inet6Address
()
:
netip.Addr
Start
()
:
error
File
()
:
*os.File
Read
(p []byte, offset int)
:
(int, error)
Write
(p []byte, offset int)
:
(int, error)
Flush
()
:
error
MTU
()
:
(int, error)
Name
()
:
(string, error)
Events
()
:
chan wgTun.Event
Close
()
:
error
All occurrences
Please wait...
Page is in error, reload to recover