 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package arp implements the ARP network protocol. It is used to resolve IPv4 addresses into link-local MAC addresses, and advertises IPv4 addresses of its stack with the local network.
Index ¶
Constants ¶
      View Source
      
  
const ( // ProtocolNumber is the ARP protocol number. ProtocolNumber = header.ARPProtocolNumber )
Variables ¶
This section is empty.
Functions ¶
func NewProtocol ¶
func NewProtocol(s *stack.Stack) stack.NetworkProtocol
NewProtocol returns an ARP network protocol.
func NewProtocolWithOptions ¶
func NewProtocolWithOptions(opts Options) stack.NetworkProtocolFactory
NewProtocolWithOptions returns an ARP network protocol factory that will return an ARP network protocol with the provided options.
Types ¶
type Options ¶
type Options struct {
	// DADConfigs is the default DAD configurations used by ARP endpoints.
	DADConfigs stack.DADConfigurations
}
    Options holds options to configure a protocol.
+stateify savable
type RouteSetter ¶
type RouteSetter interface {
	SetRouter(number tcpip.NetworkProtocolNumber, addr tcpip.Address, linkAddr tcpip.LinkAddress) tcpip.Error
}
     Click to show internal directories. 
   Click to hide internal directories.