Documentation ¶
Overview ¶
Package options abstract setting common networking sys flags on the selected namespaces
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetIPv6AcceptRA ¶
func SetIPv6AcceptRA(f RouterAdvertisements) error
SetIPv6AcceptRA enables or disables forwarding for ipv6
func SetIPv6Forwarding ¶
SetIPv6Forwarding enables or disables forwarding for ipv6
func SetIPv6LearnDefaultRouteInRA ¶
SetIPv6LearnDefaultRouteInRA Learn default router in Router Advertisement.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option interface
func AcceptRA ¶
func AcceptRA(f RouterAdvertisements) Option
AcceptRA enables or disables forwarding for ipv6
func LearnDefaultRouteInRA ¶
LearnDefaultRouteInRA Learn default router in Router Advertisement.
type RouterAdvertisements ¶
type RouterAdvertisements int
RouterAdvertisements flag
const ( //RAOff Do not accept Router Advertisements RAOff RouterAdvertisements = iota //RAAcceptIfForwardingIsDisabled Accept Router Advertisements if forwarding is disabled RAAcceptIfForwardingIsDisabled //RAAcceptIfForwardingIsEnabled Overrule forwarding behaviour. Accept Router Advertisements even if forwarding is enabled. RAAcceptIfForwardingIsEnabled )
Click to show internal directories.
Click to hide internal directories.