Documentation ¶
Overview ¶
Package vppinit contains initialization code for vpp
Index ¶
- func InitLinks(ctx context.Context, vppConn api.Connection, deviceNames map[string]string, ...) error
- func LinkToSocket(ctx context.Context, vppConn api.Connection, tunnelIP net.IP, family AfType) (net.IP, error)
- func Must(tunnelIP net.IP, err error) net.IP
- func None(_ context.Context, _ api.Connection, tunnelIP net.IP) (net.IP, error)
- type AfType
- type Func
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLinks ¶ added in v1.1.1
func InitLinks(ctx context.Context, vppConn api.Connection, deviceNames map[string]string, tunnelIP net.IP) error
InitLinks creates AF_PACKET interface if needed and put the given interfaces in promisc mode
func LinkToSocket ¶ added in v1.9.0
func LinkToSocket(ctx context.Context, vppConn api.Connection, tunnelIP net.IP, family AfType) (net.IP, error)
LinkToSocket - will link vpp via af_packet or af_xdp to the interface having the tunnelIP if tunnelIP is nil, it will find the interface for the default route and use that instead. It returns the resulting tunnelIP
Types ¶
Click to show internal directories.
Click to hide internal directories.