platform

package
v0.0.0-...-2e9568b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const XFRM_POLICY_ALLOW = 0

Variables

This section is empty.

Functions

func GetLocalAddress

func GetLocalAddress(remote net.IP) (local net.IP, err error)

func InstallChildSa

func InstallChildSa(reqID int32, sa *SaParams, log log.Logger) error

func InstallPolicy

func InstallPolicy(reqID int32, pol *protocol.PolicyParams, log log.Logger, forInitiator bool) error

func ListenForEvents

func ListenForEvents(parent context.Context, cb ListenerCallback, log log.Logger)

func RemoveChildSa

func RemoveChildSa(reqID int32, sa *SaParams, log log.Logger) error

func RemovePolicy

func RemovePolicy(reqID int32, pol *protocol.PolicyParams, log log.Logger, forInitiator bool) error

func SetSocketBypass

func SetSocketBypass(conn net.Conn) error

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL