Documentation
¶
Index ¶
- Constants
- func GetLocalAddress(remote net.IP) (local net.IP, err error)
- func InstallChildSa(reqID int32, sa *SaParams, log log.Logger) error
- func InstallPolicy(reqID int32, pol *protocol.PolicyParams, log log.Logger, forInitiator bool) error
- func ListenForEvents(parent context.Context, cb ListenerCallback, log log.Logger)
- func RemoveChildSa(reqID int32, sa *SaParams, log log.Logger) error
- func RemovePolicy(reqID int32, pol *protocol.PolicyParams, log log.Logger, forInitiator bool) error
- func SetSocketBypass(conn net.Conn) error
- type ListenerCallback
- type SaParams
Constants ¶
View Source
const XFRM_POLICY_ALLOW = 0
Variables ¶
This section is empty.
Functions ¶
func InstallPolicy ¶
func ListenForEvents ¶
func ListenForEvents(parent context.Context, cb ListenerCallback, log log.Logger)
func RemovePolicy ¶
func SetSocketBypass ¶
set ike in & out bypass on defautl port 500
Types ¶
type ListenerCallback ¶
type ListenerCallback func(interface{})
type SaParams ¶
type SaParams struct { *protocol.PolicyParams EspTransforms protocol.TransformMap EspEi, EspAi, EspEr, EspAr []byte SpiI, SpiR int }
Click to show internal directories.
Click to hide internal directories.