package l2disco
import "github.com/dotcloud/docker/libnetwork/internal/l2disco"
Index ¶
- type UnsolARP
- func NewUnsolARP(_ context.Context, ip net.IP, mac net.HardwareAddr, ifIndex int) (*UnsolARP, error)
- func (ua *UnsolARP) Close() error
- func (ua *UnsolARP) Send() error
- type UnsolNA
Types ¶
type UnsolARP ¶
type UnsolARP struct {
// contains filtered or unexported fields
}
func NewUnsolARP ¶
func NewUnsolARP(_ context.Context, ip net.IP, mac net.HardwareAddr, ifIndex int) (*UnsolARP, error)
NewUnsolARP returns a pointer to an object that can send unsolicited ARPs on the interface with ifIndex, for ip and mac.
func (*UnsolARP) Close ¶
Close releases resources.
func (*UnsolARP) Send ¶
Send sends an unsolicited ARP message.
type UnsolNA ¶
type UnsolNA struct {
// contains filtered or unexported fields
}
func NewUnsolNA ¶
func NewUnsolNA(ctx context.Context, ip net.IP, mac net.HardwareAddr, ifIndex int) (*UnsolNA, error)
NewUnsolNA returns a pointer to an object that can send unsolicited Neighbour Advertisements for ip and mac. https://datatracker.ietf.org/doc/html/rfc4861#section-4.4
func (*UnsolNA) Close ¶
Close releases resources.
func (*UnsolNA) Send ¶
Send sends an unsolicited ARP message.
Source Files ¶
unsol_arp_linux.go unsol_na_linux.go
- Version
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 17 hours ago –
Tools for package owners.