Documentation ¶
Overview ¶
Package plugin implements CoreRAD plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSSL ¶
DNSSL configures a NDP DNS Search List option.
type LLA ¶ added in v0.1.9
type LLA net.HardwareAddr
LLA configures a NDP Source Link Layer Address option.
func (*LLA) Apply ¶ added in v0.1.9
func (l *LLA) Apply(ra *ndp.RouterAdvertisement) error
Apply implements Plugin.
type Plugin ¶
type Plugin interface { // Name is the string name of the plugin. Name() string // String is the string representation of the plugin's configuration. String() string // Prepare prepares a Plugin for use with the specified network interface. Prepare(ifi *net.Interface) error // Apply applies Plugin data to the input RA. Apply(ra *ndp.RouterAdvertisement) error }
A Plugin specifies a CoreRAD plugin's configuration.
type Prefix ¶
type Prefix struct { Prefix netaddr.IPPrefix OnLink bool Autonomous bool ValidLifetime time.Duration PreferredLifetime time.Duration Addrs func() ([]net.Addr, error) }
A Prefix configures a NDP Prefix Information option.
func (*Prefix) Apply ¶
func (p *Prefix) Apply(ra *ndp.RouterAdvertisement) error
Apply implements Plugin.
type RDNSS ¶
RDNSS configures a NDP Recursive DNS Servers option.
Click to show internal directories.
Click to hide internal directories.