Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameters ¶
type Parameters struct {
// The BootID for the local host is used to determine if creation of the
// policy should occur and for key derivation purposes.
LocalBootID string
// The BootID for the remote host is used to determine if creation of the
// policy should occur and for key derivation purposes.
RemoteBootID string
// The direction of the created XFRM policy.
Dir Direction
// The source subnet selector for the XFRM policy/state
SourceSubnet *net.IPNet
// The destination subnet selector for the XFRM policy/state
DestSubnet *net.IPNet
// The source security gateway IP used to define an IPsec tunnel mode SA
// For OUT policies this is the resulting source address of an ESP encrypted
// packet.
// For IN/FWD this should identify the source SA address of the state which
// decrypted the the packet.
SourceTunnelIP *net.IP
// The destination security gateway IP used to define an IPsec tunnel mode SA
// For OUT policies this is the resulting destination address of an ESP encrypted
// packet.
// For IN/FWD this should identify the destination SA address of the state which
// decrypted the the packet.
DestTunnelIP *net.IP
// The ReqID used for the resulting XFRM policy/state
ReqID int
// The remote node ID used for SPI identification and appropriate packet
// mark matching.
RemoteNodeID uint16
// Whether to use a zero output mark or not.
// This is useful when you want the resulting encrypted packet to immediately
// handled by the stack and not Cilium's datapath.
ZeroOutputMark bool
// Whether the remote has been rebooted, this is used for bookkeping and
// informs the policy/state creation methods whether the creation should
// take place.
RemoteRebooted bool
}
func NewParameters ¶
func NewParameters(template *Parameters) *Parameters
Creates a new Parameters. If template is provided make a copy of it instead of returning a new empty structure.
Click to show internal directories.
Click to hide internal directories.