Documentation ¶
Overview ¶
Package l2tp is a generated VPP binary API for 'l2tp' module.
It consists of:
10 messages 5 services
Index ¶
- Constants
- func AllMessages() []api.Message
- type L2tpv3CreateTunnel
- type L2tpv3CreateTunnelReply
- type L2tpv3InterfaceEnableDisable
- type L2tpv3InterfaceEnableDisableReply
- type L2tpv3SetLookupKey
- type L2tpv3SetLookupKeyReply
- type L2tpv3SetTunnelCookies
- type L2tpv3SetTunnelCookiesReply
- type RPCService
- type RPCService_DumpSwIfL2tpv3TunnelClient
- type SwIfL2tpv3TunnelDetails
- type SwIfL2tpv3TunnelDump
Constants ¶
const ( // ModuleName is the name of this module. ModuleName = "l2tp" // APIVersion is the API version of this module. APIVersion = "1.0.0" // VersionCrc is the CRC of this module. VersionCrc = 0xc9f2ad26 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type L2tpv3CreateTunnel ¶
type L2tpv3CreateTunnel struct { ClientAddress []byte `struc:"[16]byte"` OurAddress []byte `struc:"[16]byte"` IsIPv6 uint8 LocalSessionID uint32 RemoteSessionID uint32 LocalCookie uint64 RemoteCookie uint64 L2SublayerPresent uint8 EncapVrfID uint32 }
L2tpv3CreateTunnel represents VPP binary API message 'l2tpv3_create_tunnel'.
func (*L2tpv3CreateTunnel) GetCrcString ¶
func (*L2tpv3CreateTunnel) GetCrcString() string
func (*L2tpv3CreateTunnel) GetMessageName ¶
func (*L2tpv3CreateTunnel) GetMessageName() string
func (*L2tpv3CreateTunnel) GetMessageType ¶
func (*L2tpv3CreateTunnel) GetMessageType() api.MessageType
func (*L2tpv3CreateTunnel) Reset ¶
func (m *L2tpv3CreateTunnel) Reset()
type L2tpv3CreateTunnelReply ¶
L2tpv3CreateTunnelReply represents VPP binary API message 'l2tpv3_create_tunnel_reply'.
func (*L2tpv3CreateTunnelReply) GetCrcString ¶
func (*L2tpv3CreateTunnelReply) GetCrcString() string
func (*L2tpv3CreateTunnelReply) GetMessageName ¶
func (*L2tpv3CreateTunnelReply) GetMessageName() string
func (*L2tpv3CreateTunnelReply) GetMessageType ¶
func (*L2tpv3CreateTunnelReply) GetMessageType() api.MessageType
func (*L2tpv3CreateTunnelReply) Reset ¶
func (m *L2tpv3CreateTunnelReply) Reset()
type L2tpv3InterfaceEnableDisable ¶
L2tpv3InterfaceEnableDisable represents VPP binary API message 'l2tpv3_interface_enable_disable'.
func (*L2tpv3InterfaceEnableDisable) GetCrcString ¶
func (*L2tpv3InterfaceEnableDisable) GetCrcString() string
func (*L2tpv3InterfaceEnableDisable) GetMessageName ¶
func (*L2tpv3InterfaceEnableDisable) GetMessageName() string
func (*L2tpv3InterfaceEnableDisable) GetMessageType ¶
func (*L2tpv3InterfaceEnableDisable) GetMessageType() api.MessageType
func (*L2tpv3InterfaceEnableDisable) Reset ¶
func (m *L2tpv3InterfaceEnableDisable) Reset()
type L2tpv3InterfaceEnableDisableReply ¶
type L2tpv3InterfaceEnableDisableReply struct {
Retval int32
}
L2tpv3InterfaceEnableDisableReply represents VPP binary API message 'l2tpv3_interface_enable_disable_reply'.
func (*L2tpv3InterfaceEnableDisableReply) GetCrcString ¶
func (*L2tpv3InterfaceEnableDisableReply) GetCrcString() string
func (*L2tpv3InterfaceEnableDisableReply) GetMessageName ¶
func (*L2tpv3InterfaceEnableDisableReply) GetMessageName() string
func (*L2tpv3InterfaceEnableDisableReply) GetMessageType ¶
func (*L2tpv3InterfaceEnableDisableReply) GetMessageType() api.MessageType
func (*L2tpv3InterfaceEnableDisableReply) Reset ¶
func (m *L2tpv3InterfaceEnableDisableReply) Reset()
type L2tpv3SetLookupKey ¶
type L2tpv3SetLookupKey struct {
Key uint8
}
L2tpv3SetLookupKey represents VPP binary API message 'l2tpv3_set_lookup_key'.
func (*L2tpv3SetLookupKey) GetCrcString ¶
func (*L2tpv3SetLookupKey) GetCrcString() string
func (*L2tpv3SetLookupKey) GetMessageName ¶
func (*L2tpv3SetLookupKey) GetMessageName() string
func (*L2tpv3SetLookupKey) GetMessageType ¶
func (*L2tpv3SetLookupKey) GetMessageType() api.MessageType
func (*L2tpv3SetLookupKey) Reset ¶
func (m *L2tpv3SetLookupKey) Reset()
type L2tpv3SetLookupKeyReply ¶
type L2tpv3SetLookupKeyReply struct {
Retval int32
}
L2tpv3SetLookupKeyReply represents VPP binary API message 'l2tpv3_set_lookup_key_reply'.
func (*L2tpv3SetLookupKeyReply) GetCrcString ¶
func (*L2tpv3SetLookupKeyReply) GetCrcString() string
func (*L2tpv3SetLookupKeyReply) GetMessageName ¶
func (*L2tpv3SetLookupKeyReply) GetMessageName() string
func (*L2tpv3SetLookupKeyReply) GetMessageType ¶
func (*L2tpv3SetLookupKeyReply) GetMessageType() api.MessageType
func (*L2tpv3SetLookupKeyReply) Reset ¶
func (m *L2tpv3SetLookupKeyReply) Reset()
type L2tpv3SetTunnelCookies ¶
type L2tpv3SetTunnelCookies struct { SwIfIndex uint32 NewLocalCookie uint64 NewRemoteCookie uint64 }
L2tpv3SetTunnelCookies represents VPP binary API message 'l2tpv3_set_tunnel_cookies'.
func (*L2tpv3SetTunnelCookies) GetCrcString ¶
func (*L2tpv3SetTunnelCookies) GetCrcString() string
func (*L2tpv3SetTunnelCookies) GetMessageName ¶
func (*L2tpv3SetTunnelCookies) GetMessageName() string
func (*L2tpv3SetTunnelCookies) GetMessageType ¶
func (*L2tpv3SetTunnelCookies) GetMessageType() api.MessageType
func (*L2tpv3SetTunnelCookies) Reset ¶
func (m *L2tpv3SetTunnelCookies) Reset()
type L2tpv3SetTunnelCookiesReply ¶
type L2tpv3SetTunnelCookiesReply struct {
Retval int32
}
L2tpv3SetTunnelCookiesReply represents VPP binary API message 'l2tpv3_set_tunnel_cookies_reply'.
func (*L2tpv3SetTunnelCookiesReply) GetCrcString ¶
func (*L2tpv3SetTunnelCookiesReply) GetCrcString() string
func (*L2tpv3SetTunnelCookiesReply) GetMessageName ¶
func (*L2tpv3SetTunnelCookiesReply) GetMessageName() string
func (*L2tpv3SetTunnelCookiesReply) GetMessageType ¶
func (*L2tpv3SetTunnelCookiesReply) GetMessageType() api.MessageType
func (*L2tpv3SetTunnelCookiesReply) Reset ¶
func (m *L2tpv3SetTunnelCookiesReply) Reset()
type RPCService ¶
type RPCService interface { DumpSwIfL2tpv3Tunnel(ctx context.Context, in *SwIfL2tpv3TunnelDump) (RPCService_DumpSwIfL2tpv3TunnelClient, error) L2tpv3CreateTunnel(ctx context.Context, in *L2tpv3CreateTunnel) (*L2tpv3CreateTunnelReply, error) L2tpv3InterfaceEnableDisable(ctx context.Context, in *L2tpv3InterfaceEnableDisable) (*L2tpv3InterfaceEnableDisableReply, error) L2tpv3SetLookupKey(ctx context.Context, in *L2tpv3SetLookupKey) (*L2tpv3SetLookupKeyReply, error) L2tpv3SetTunnelCookies(ctx context.Context, in *L2tpv3SetTunnelCookies) (*L2tpv3SetTunnelCookiesReply, error) }
RPCService represents RPC service API for l2tp module.
func NewServiceClient ¶
func NewServiceClient(ch api.Channel) RPCService
type RPCService_DumpSwIfL2tpv3TunnelClient ¶
type RPCService_DumpSwIfL2tpv3TunnelClient interface {
Recv() (*SwIfL2tpv3TunnelDetails, error)
}
type SwIfL2tpv3TunnelDetails ¶
type SwIfL2tpv3TunnelDetails struct { SwIfIndex uint32 InterfaceName []byte `struc:"[64]byte"` ClientAddress []byte `struc:"[16]byte"` OurAddress []byte `struc:"[16]byte"` LocalSessionID uint32 RemoteSessionID uint32 LocalCookie []uint64 `struc:"[2]uint64"` RemoteCookie uint64 L2SublayerPresent uint8 }
SwIfL2tpv3TunnelDetails represents VPP binary API message 'sw_if_l2tpv3_tunnel_details'.
func (*SwIfL2tpv3TunnelDetails) GetCrcString ¶
func (*SwIfL2tpv3TunnelDetails) GetCrcString() string
func (*SwIfL2tpv3TunnelDetails) GetMessageName ¶
func (*SwIfL2tpv3TunnelDetails) GetMessageName() string
func (*SwIfL2tpv3TunnelDetails) GetMessageType ¶
func (*SwIfL2tpv3TunnelDetails) GetMessageType() api.MessageType
func (*SwIfL2tpv3TunnelDetails) Reset ¶
func (m *SwIfL2tpv3TunnelDetails) Reset()
type SwIfL2tpv3TunnelDump ¶
type SwIfL2tpv3TunnelDump struct{}
SwIfL2tpv3TunnelDump represents VPP binary API message 'sw_if_l2tpv3_tunnel_dump'.
func (*SwIfL2tpv3TunnelDump) GetCrcString ¶
func (*SwIfL2tpv3TunnelDump) GetCrcString() string
func (*SwIfL2tpv3TunnelDump) GetMessageName ¶
func (*SwIfL2tpv3TunnelDump) GetMessageName() string
func (*SwIfL2tpv3TunnelDump) GetMessageType ¶
func (*SwIfL2tpv3TunnelDump) GetMessageType() api.MessageType
func (*SwIfL2tpv3TunnelDump) Reset ¶
func (m *SwIfL2tpv3TunnelDump) Reset()