Versions in this module Expand all Collapse all v0 v0.0.10 Jun 5, 2026 v0.0.9 May 14, 2026 Changes in this version + type NeighCacheEntry struct + Domain string + MAC net.HardwareAddr + Vendor string + func (nce NeighCacheEntry) String() string v0.0.8 Apr 21, 2026 Changes in this version type NDPSpoofConfig + NoColor bool v0.0.7 Mar 31, 2026 v0.0.6 Mar 29, 2026 Changes in this version type NDPSpoofConfig + MTU uint32 + PacketQuery string v0.0.5 Mar 18, 2026 v0.0.4 Mar 17, 2026 Changes in this version type NDPSpoofConfig + PacketInterval time.Duration v0.0.3 Mar 16, 2026 Changes in this version + var AutoConfigSupportedOS = []string + func NewDNSServer() (net.PacketConn, error) v0.0.2 Mar 16, 2026 Changes in this version type NDPSpoofConfig + Auto bool v0.0.1 Mar 13, 2026 Changes in this version + const Version + type NDPSpoofConfig struct + DNSServers string + Debug bool + FullDuplex bool + Gateway *netip.Addr + Interface string + Logger *zerolog.Logger + NA bool + Prefix *netip.Prefix + RA bool + RDNSS bool + RouterLifetime time.Duration + Targets string + func NewNDPSpoofConfig(s string, logger *zerolog.Logger) (*NDPSpoofConfig, error) + type NDPSpoofer struct + func NewNDPSpoofer(conf *NDPSpoofConfig) (*NDPSpoofer, error) + func (nr *NDPSpoofer) GatewayIP() *netip.Addr + func (nr *NDPSpoofer) GatewayMAC() *net.HardwareAddr + func (nr *NDPSpoofer) HostIP() *netip.Addr + func (nr *NDPSpoofer) HostIPGlobal() *netip.Addr + func (nr *NDPSpoofer) HostMAC() *net.HardwareAddr + func (nr *NDPSpoofer) Interface() *net.Interface + func (nr *NDPSpoofer) NeighCache() *NeighCache + func (nr *NDPSpoofer) Start() + func (nr *NDPSpoofer) Stop() error + type NeighCache struct + Entries map[string]net.HardwareAddr + Ifname string + func (nc *NeighCache) Delete(ip netip.Addr) + func (nc *NeighCache) Get(ip netip.Addr) (net.HardwareAddr, bool) + func (nc *NeighCache) Refresh() error + func (nc *NeighCache) Set(ip netip.Addr, hw net.HardwareAddr) + func (nc *NeighCache) String() string + type Packet struct