mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-11 17:47:20 +10:00
24 lines
413 B
Go
24 lines
413 B
Go
package adapter
|
|
|
|
import (
|
|
"net"
|
|
"net/netip"
|
|
)
|
|
|
|
type NeighborEntry struct {
|
|
Address netip.Addr
|
|
MACAddress net.HardwareAddr
|
|
Hostname string
|
|
}
|
|
|
|
type NeighborResolver interface {
|
|
LookupMAC(address netip.Addr) (net.HardwareAddr, bool)
|
|
LookupHostname(address netip.Addr) (string, bool)
|
|
Start() error
|
|
Close() error
|
|
}
|
|
|
|
type NeighborUpdateListener interface {
|
|
UpdateNeighborTable(entries []NeighborEntry)
|
|
}
|