Versions in this module Expand all Collapse all v0 v0.11.0 May 14, 2024 v0.10.0 Dec 21, 2023 Changes in this version + func BrTransit(payload string, mac hash.Hash) (string, string, []byte) + func DeviceName(AS int, intf int) string + func FakeMAC(AS byte) hash.Hash + func HostAddr(ip netip.Addr) addr.Host + func ISDAS(AS byte) addr.IA + func In(payload string, mac hash.Hash) (string, string, []byte) + func InTransit(payload string, mac hash.Hash) (string, string, []byte) + func InitInterfaces(pairs []string) + func InternalIP(AS byte, routerIndex byte) netip.Addr + func InternalIPPort(AS byte, routerIndex byte) (netip.Addr, layers.UDPPort) + func ListInterfaces() string + func MACAddr(ip netip.Addr) net.HardwareAddr + func Out(payload string, mac hash.Hash) (string, string, []byte) + func OutTransit(payload string, mac hash.Hash) (string, string, []byte) + func PublicIP(localAS byte, remoteAS byte) netip.Addr + func PublicIPPort(localAS byte, remoteAS byte) (netip.Addr, layers.UDPPort) + func Underlay(srcIP netip.Addr, srcPort layers.UDPPort, dstIP netip.Addr, ...) (*layers.Ethernet, *layers.IPv4, *layers.UDP)