package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev

# Functions

CollectBcastARPs collects broadcast ARPs from interface ifname.
CollectICMP6 collects ICMP6 packets sent to the all nodes address.
Create creates a network with the specified options.
CreateNoError creates a network with the specified options and verifies there were no errors.
GenResolvConf generates a resolv.conf that only contains a single nameserver line, with address addr, and returns the file content.
IsRemoved verifies the network is removed.
No description provided by the author
StartDaftDNS starts and returns a really, really daft DNS server that only responds to type-A requests, and always with address dnsRespAddr.
UnpackUnsolARP checks the packet is a valid Ethernet unsolicited/broadcast ARP request packet.
UnpackUnsolNA returns the hardware (MAC) and protocol (IP) addresses from the packet, if it is an unsolicited Neighbour Advertisement message with a link address option.
WithAttachable sets Attachable flag on the create network request.
WithDriver sets the driver of the network.
WithInternal enables Internal flag on the create network request.
WithIPAM adds an IPAM with the specified Subnet and Gateway to the network.
WithIPAM adds an IPAM with the specified Subnet, IPRange and Gateway to the network.
WithIPv4 enables/disables IPv4 on the network.
WithIPv4Disabled makes sure IPv4 is disabled on the network.
WithIPv6 Enables IPv6 on the network.
WithIPv6Disabled makes sure IPv6 is disabled on the network.
WithIPvlan sets the network as ipvlan with the specified parent and mode.
WithMacvlan sets the network as macvlan with the specified parent.
WithMacvlanPassthru sets the network as macvlan with the specified parent in passthru mode.
WithOption adds the specified key/value pair to network's options.

# Constants

No description provided by the author

# Structs

TimestampedPkt has a Data slice representing a packet, ReceivedAt is a timestamp set after the packet was received in user-space.