Documentation ¶
Overview ¶
package IPsec provides primitives for establishing IPsec in the fastdp mode.
Index ¶
- type IPSec
- func (ipsec *IPSec) Destroy(localPeer, remotePeer mesh.PeerName, connUID uint64, localIP, remoteIP net.IP, ...) error
- func (ipsec *IPSec) Flush(destroy bool) error
- func (ipsec *IPSec) InitSALocal(localPeer, remotePeer mesh.PeerName, connUID uint64, localIP, remoteIP net.IP, ...) ([]byte, error)
- func (ipsec *IPSec) InitSARemote(msgInitSARemote []byte, localPeer, remotePeer mesh.PeerName, connUID uint64, ...) error
- type SPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPSec ¶
func (*IPSec) Destroy ¶
func (ipsec *IPSec) Destroy(localPeer, remotePeer mesh.PeerName, connUID uint64, localIP, remoteIP net.IP, udpPort int) error
Destroy destroys any (inbound / outbound) ipsec establishment between the peers.
func (*IPSec) Flush ¶
Flush removes all policies/SAs established by us. Also, it removes chains and rules of iptables.
If destroy is true, the chains and the rules won't be re-created.
Click to show internal directories.
Click to hide internal directories.