Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigLANAddr ¶
type ConfigLANHWAddr ¶
type ConfigLANHWAddr interface { // The MAC address to use for the LAN. This is virtually assigned to // facilitate HA failover. LANHWAddr() net.HardwareAddr }
type ConfigUplinkAddr ¶
type ConfigUplinkAddr interface { // The IP+net of the uplink interface for connection. UplinkAddr() (a fw.Addr, ok bool) }
If this interface isn't implemented by a fw.Config and ConfigUplinkHWAddr is, it's assumed DHCP will be used.
type ConfigUplinkHWAddr ¶
type ConfigUplinkHWAddr interface { // The MAC address to use for the uplink interface. This is virtually // assigned to facilitate HA failover with picky (*cough* *cough* FiOS // *cough*) network hardware. UplinkHWAddr() net.HardwareAddr }
Implementing this interface implies a virtual IP will be used. To specify a static virtual IP, implement ConfigUplinkAddr. If this interface is implemented and ConfigUplinkAddr is not implemented, a virtual IP will be requested using DHCP on the uplink.
type ConfigUplinkLeaseStore ¶
type ConfigUplinkLeaseStore interface { // When ConfigUplinkAddr isn't implemented, the dhcp.LeaseStore to use when // using DHCP. This can be nil and DHCP will still work; it just won't save // leases. UplinkLeaseStore() dhcp.LeaseStore }
Allows specifying the dhcp.LeaseStore when DHCP is used. DHCP is used when ConfigUplinkHWAddr is implemented and ConfigUplinkAddr is not.
Click to show internal directories.
Click to hide internal directories.