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
aea02c07
ROOT
/
transport
/
dhcp
/
server.go
Search
History
263 lines
|
ISO-8859-1
|
6 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
init
()
Transport
ctx
:
context.Context
router
:
adapter.Router
logger
:
logger.Logger
interfaceName
:
string
autoInterface
:
bool
interfaceCallback
:
*list
Element
:
[tun.DefaultInterfaceUpdateCallback] transports
dns.Transport
updateAccess
:
sync.Mutex
updatedAt
:
time.Time
NewTransport
(ctx context.Context, logger logger.ContextLogger, dialer N.Dialer, link string)
:
(dns.Transport, error)
*Transport
Start
()
:
error
Close
()
:
error
Raw
()
:
bool
Exchange
(ctx context.Context, message *mDNS.Msg)
:
(*mDNS.Msg, error)
fetchInterface
()
:
(*net.Interface, error)
fetchServers
()
:
error
updateServers
()
:
error
interfaceUpdated
(int)
:
error
fetchServers0
(ctx context.Context, iface *net.Interface)
:
error
fetchServersResponse
(iface *net.Interface, packetConn net.PacketConn, transactionID dhcpv4.TransactionID)
:
error
recreateServers
(iface *net.Interface, serverAddrs []netip.Addr)
:
error
Lookup
(ctx context.Context, domain string, strategy dns.DomainStrategy)
:
([]netip.Addr, error)
All occurrences
Please wait...
Page is in error, reload to recover