Documentation ¶
Overview ¶
Package dhcp is a generated VPP binary API for 'dhcp' module.
It consists of:
13 enums 7 aliases 12 types 1 union 25 messages 11 services
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type Address
- type AddressFamily
- type AddressUnion
- type AddressWithPrefix
- type DHCP6AddressInfo
- type DHCP6ClientsEnableDisable
- type DHCP6ClientsEnableDisableReply
- type DHCP6DuidLlSet
- type DHCP6DuidLlSetReply
- type DHCP6PdPrefixInfo
- type DHCP6PdReplyEvent
- type DHCP6PdSendClientMessage
- type DHCP6PdSendClientMessageReply
- type DHCP6ReplyEvent
- type DHCP6SendClientMessage
- type DHCP6SendClientMessageReply
- type DHCPClient
- type DHCPClientConfig
- type DHCPClientConfigReply
- type DHCPClientDetails
- type DHCPClientDump
- type DHCPClientState
- type DHCPComplEvent
- type DHCPLease
- type DHCPProxyConfig
- type DHCPProxyConfigReply
- type DHCPProxyDetails
- type DHCPProxyDump
- type DHCPProxySetVss
- type DHCPProxySetVssReply
- type DHCPServer
- type Dhcpv6MsgType
- type DomainServer
- type IP4Address
- type IP4AddressWithPrefix
- type IP4Prefix
- type IP6Address
- type IP6AddressWithPrefix
- type IP6Prefix
- type IPDscp
- type IPEcn
- type IPProto
- type IfStatusFlags
- type IfType
- type InterfaceIndex
- type LinkDuplex
- type MacAddress
- type Mprefix
- type MtuProto
- type Prefix
- type PrefixMatcher
- type RPCService
- type RPCService_DumpDHCPClientClient
- type RPCService_DumpDHCPProxyClient
- type RxMode
- type SubIfFlags
- type VssType
- type WantDHCP6PdReplyEvents
- type WantDHCP6PdReplyEventsReply
- type WantDHCP6ReplyEvents
- type WantDHCP6ReplyEventsReply
Constants ¶
const ( // ModuleName is the name of this module. ModuleName = "dhcp" // VersionCrc is the CRC of this module. VersionCrc = 0x46777165 )
Variables ¶
var DHCPClientState_name = map[uint32]string{
1: "DHCP_CLIENT_STATE_API_DISCOVER",
2: "DHCP_CLIENT_STATE_API_REQUEST",
3: "DHCP_CLIENT_STATE_API_BOUND",
}
var DHCPClientState_value = map[string]uint32{
"DHCP_CLIENT_STATE_API_DISCOVER": 1,
"DHCP_CLIENT_STATE_API_REQUEST": 2,
"DHCP_CLIENT_STATE_API_BOUND": 3,
}
var Dhcpv6MsgType_name = map[uint32]string{
1: "DHCPV6_MSG_API_SOLICIT",
2: "DHCPV6_MSG_API_ADVERTISE",
3: "DHCPV6_MSG_API_REQUEST",
4: "DHCPV6_MSG_API_CONFIRM",
5: "DHCPV6_MSG_API_RENEW",
6: "DHCPV6_MSG_API_REBIND",
7: "DHCPV6_MSG_API_REPLY",
8: "DHCPV6_MSG_API_RELEASE",
9: "DHCPV6_MSG_API_DECLINE",
10: "DHCPV6_MSG_API_RECONFIGURE",
11: "DHCPV6_MSG_API_INFORMATION_REQUEST",
12: "DHCPV6_MSG_API_RELAY_FORW",
13: "DHCPV6_MSG_API_RELAY_REPL",
}
var Dhcpv6MsgType_value = map[string]uint32{
"DHCPV6_MSG_API_SOLICIT": 1,
"DHCPV6_MSG_API_ADVERTISE": 2,
"DHCPV6_MSG_API_REQUEST": 3,
"DHCPV6_MSG_API_CONFIRM": 4,
"DHCPV6_MSG_API_RENEW": 5,
"DHCPV6_MSG_API_REBIND": 6,
"DHCPV6_MSG_API_REPLY": 7,
"DHCPV6_MSG_API_RELEASE": 8,
"DHCPV6_MSG_API_DECLINE": 9,
"DHCPV6_MSG_API_RECONFIGURE": 10,
"DHCPV6_MSG_API_INFORMATION_REQUEST": 11,
"DHCPV6_MSG_API_RELAY_FORW": 12,
"DHCPV6_MSG_API_RELAY_REPL": 13,
}
var IPDscp_name = map[uint8]string{
0: "IP_API_DSCP_CS0",
8: "IP_API_DSCP_CS1",
10: "IP_API_DSCP_AF11",
12: "IP_API_DSCP_AF12",
14: "IP_API_DSCP_AF13",
16: "IP_API_DSCP_CS2",
18: "IP_API_DSCP_AF21",
20: "IP_API_DSCP_AF22",
22: "IP_API_DSCP_AF23",
24: "IP_API_DSCP_CS3",
26: "IP_API_DSCP_AF31",
28: "IP_API_DSCP_AF32",
30: "IP_API_DSCP_AF33",
32: "IP_API_DSCP_CS4",
34: "IP_API_DSCP_AF41",
36: "IP_API_DSCP_AF42",
38: "IP_API_DSCP_AF43",
40: "IP_API_DSCP_CS5",
46: "IP_API_DSCP_EF",
48: "IP_API_DSCP_CS6",
50: "IP_API_DSCP_CS7",
}
var IPDscp_value = map[string]uint8{
"IP_API_DSCP_CS0": 0,
"IP_API_DSCP_CS1": 8,
"IP_API_DSCP_AF11": 10,
"IP_API_DSCP_AF12": 12,
"IP_API_DSCP_AF13": 14,
"IP_API_DSCP_CS2": 16,
"IP_API_DSCP_AF21": 18,
"IP_API_DSCP_AF22": 20,
"IP_API_DSCP_AF23": 22,
"IP_API_DSCP_CS3": 24,
"IP_API_DSCP_AF31": 26,
"IP_API_DSCP_AF32": 28,
"IP_API_DSCP_AF33": 30,
"IP_API_DSCP_CS4": 32,
"IP_API_DSCP_AF41": 34,
"IP_API_DSCP_AF42": 36,
"IP_API_DSCP_AF43": 38,
"IP_API_DSCP_CS5": 40,
"IP_API_DSCP_EF": 46,
"IP_API_DSCP_CS6": 48,
"IP_API_DSCP_CS7": 50,
}
var IPEcn_name = map[uint8]string{
0: "IP_API_ECN_NONE",
1: "IP_API_ECN_ECT0",
2: "IP_API_ECN_ECT1",
3: "IP_API_ECN_CE",
}
var IPEcn_value = map[string]uint8{
"IP_API_ECN_NONE": 0,
"IP_API_ECN_ECT0": 1,
"IP_API_ECN_ECT1": 2,
"IP_API_ECN_CE": 3,
}
var IPProto_name = map[uint32]string{
0: "IP_API_PROTO_HOPOPT",
1: "IP_API_PROTO_ICMP",
2: "IP_API_PROTO_IGMP",
6: "IP_API_PROTO_TCP",
17: "IP_API_PROTO_UDP",
47: "IP_API_PROTO_GRE",
50: "IP_API_PROTO_AH",
51: "IP_API_PROTO_ESP",
88: "IP_API_PROTO_EIGRP",
89: "IP_API_PROTO_OSPF",
132: "IP_API_PROTO_SCTP",
255: "IP_API_PROTO_RESERVED",
}
var IPProto_value = map[string]uint32{
"IP_API_PROTO_HOPOPT": 0,
"IP_API_PROTO_ICMP": 1,
"IP_API_PROTO_IGMP": 2,
"IP_API_PROTO_TCP": 6,
"IP_API_PROTO_UDP": 17,
"IP_API_PROTO_GRE": 47,
"IP_API_PROTO_AH": 50,
"IP_API_PROTO_ESP": 51,
"IP_API_PROTO_EIGRP": 88,
"IP_API_PROTO_OSPF": 89,
"IP_API_PROTO_SCTP": 132,
"IP_API_PROTO_RESERVED": 255,
}
var IfStatusFlags_name = map[uint32]string{
1: "IF_STATUS_API_FLAG_ADMIN_UP",
2: "IF_STATUS_API_FLAG_LINK_UP",
}
var IfStatusFlags_value = map[string]uint32{
"IF_STATUS_API_FLAG_ADMIN_UP": 1,
"IF_STATUS_API_FLAG_LINK_UP": 2,
}
var IfType_name = map[uint32]string{
1: "IF_API_TYPE_HARDWARE",
2: "IF_API_TYPE_SUB",
3: "IF_API_TYPE_P2P",
4: "IF_API_TYPE_PIPE",
}
var IfType_value = map[string]uint32{
"IF_API_TYPE_HARDWARE": 1,
"IF_API_TYPE_SUB": 2,
"IF_API_TYPE_P2P": 3,
"IF_API_TYPE_PIPE": 4,
}
var LinkDuplex_name = map[uint32]string{
0: "LINK_DUPLEX_API_UNKNOWN",
1: "LINK_DUPLEX_API_HALF",
2: "LINK_DUPLEX_API_FULL",
}
var LinkDuplex_value = map[string]uint32{
"LINK_DUPLEX_API_UNKNOWN": 0,
"LINK_DUPLEX_API_HALF": 1,
"LINK_DUPLEX_API_FULL": 2,
}
var MtuProto_name = map[uint32]string{
1: "MTU_PROTO_API_L3",
2: "MTU_PROTO_API_IP4",
3: "MTU_PROTO_API_IP6",
4: "MTU_PROTO_API_MPLS",
5: "MTU_PROTO_API_N",
}
var MtuProto_value = map[string]uint32{
"MTU_PROTO_API_L3": 1,
"MTU_PROTO_API_IP4": 2,
"MTU_PROTO_API_IP6": 3,
"MTU_PROTO_API_MPLS": 4,
"MTU_PROTO_API_N": 5,
}
var RxMode_name = map[uint32]string{
0: "RX_MODE_API_UNKNOWN",
1: "RX_MODE_API_POLLING",
2: "RX_MODE_API_INTERRUPT",
3: "RX_MODE_API_ADAPTIVE",
4: "RX_MODE_API_DEFAULT",
}
var RxMode_value = map[string]uint32{
"RX_MODE_API_UNKNOWN": 0,
"RX_MODE_API_POLLING": 1,
"RX_MODE_API_INTERRUPT": 2,
"RX_MODE_API_ADAPTIVE": 3,
"RX_MODE_API_DEFAULT": 4,
}
var SubIfFlags_name = map[uint32]string{
1: "SUB_IF_API_FLAG_NO_TAGS",
2: "SUB_IF_API_FLAG_ONE_TAG",
4: "SUB_IF_API_FLAG_TWO_TAGS",
8: "SUB_IF_API_FLAG_DOT1AD",
16: "SUB_IF_API_FLAG_EXACT_MATCH",
32: "SUB_IF_API_FLAG_DEFAULT",
64: "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY",
128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY",
254: "SUB_IF_API_FLAG_MASK_VNET",
256: "SUB_IF_API_FLAG_DOT1AH",
}
var SubIfFlags_value = map[string]uint32{
"SUB_IF_API_FLAG_NO_TAGS": 1,
"SUB_IF_API_FLAG_ONE_TAG": 2,
"SUB_IF_API_FLAG_TWO_TAGS": 4,
"SUB_IF_API_FLAG_DOT1AD": 8,
"SUB_IF_API_FLAG_EXACT_MATCH": 16,
"SUB_IF_API_FLAG_DEFAULT": 32,
"SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64,
"SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128,
"SUB_IF_API_FLAG_MASK_VNET": 254,
"SUB_IF_API_FLAG_DOT1AH": 256,
}
Functions ¶
Types ¶
type Address ¶
type Address struct { Af AddressFamily Un AddressUnion }
Address represents VPP binary API type 'address'.
type AddressFamily ¶
type AddressFamily uint32
AddressFamily represents VPP binary API enum 'address_family'.
const ( ADDRESS_IP4 AddressFamily = 0 ADDRESS_IP6 AddressFamily = 1 )
func (AddressFamily) String ¶
func (x AddressFamily) String() string
type AddressUnion ¶
type AddressUnion struct {
XXX_UnionData [16]byte
}
AddressUnion represents VPP binary API union 'address_union'.
func AddressUnionIP4 ¶
func AddressUnionIP4(a IP4Address) (u AddressUnion)
func AddressUnionIP6 ¶
func AddressUnionIP6(a IP6Address) (u AddressUnion)
func (*AddressUnion) GetIP4 ¶
func (u *AddressUnion) GetIP4() (a IP4Address)
func (*AddressUnion) GetIP6 ¶
func (u *AddressUnion) GetIP6() (a IP6Address)
func (*AddressUnion) GetTypeName ¶
func (*AddressUnion) GetTypeName() string
func (*AddressUnion) SetIP4 ¶
func (u *AddressUnion) SetIP4(a IP4Address)
func (*AddressUnion) SetIP6 ¶
func (u *AddressUnion) SetIP6(a IP6Address)
type AddressWithPrefix ¶
type AddressWithPrefix Prefix
AddressWithPrefix represents VPP binary API alias 'address_with_prefix'.
type DHCP6AddressInfo ¶
type DHCP6AddressInfo struct { Address IP6Address ValidTime uint32 PreferredTime uint32 }
DHCP6AddressInfo represents VPP binary API type 'dhcp6_address_info'.
func (*DHCP6AddressInfo) GetTypeName ¶
func (*DHCP6AddressInfo) GetTypeName() string
type DHCP6ClientsEnableDisable ¶
type DHCP6ClientsEnableDisable struct {
Enable bool
}
DHCP6ClientsEnableDisable represents VPP binary API message 'dhcp6_clients_enable_disable'.
func (*DHCP6ClientsEnableDisable) GetCrcString ¶
func (*DHCP6ClientsEnableDisable) GetCrcString() string
func (*DHCP6ClientsEnableDisable) GetMessageName ¶
func (*DHCP6ClientsEnableDisable) GetMessageName() string
func (*DHCP6ClientsEnableDisable) GetMessageType ¶
func (*DHCP6ClientsEnableDisable) GetMessageType() api.MessageType
type DHCP6ClientsEnableDisableReply ¶
type DHCP6ClientsEnableDisableReply struct {
Retval int32
}
DHCP6ClientsEnableDisableReply represents VPP binary API message 'dhcp6_clients_enable_disable_reply'.
func (*DHCP6ClientsEnableDisableReply) GetCrcString ¶
func (*DHCP6ClientsEnableDisableReply) GetCrcString() string
func (*DHCP6ClientsEnableDisableReply) GetMessageName ¶
func (*DHCP6ClientsEnableDisableReply) GetMessageName() string
func (*DHCP6ClientsEnableDisableReply) GetMessageType ¶
func (*DHCP6ClientsEnableDisableReply) GetMessageType() api.MessageType
type DHCP6DuidLlSet ¶
type DHCP6DuidLlSet struct {
DuidLl []byte `struc:"[10]byte"`
}
DHCP6DuidLlSet represents VPP binary API message 'dhcp6_duid_ll_set'.
func (*DHCP6DuidLlSet) GetCrcString ¶
func (*DHCP6DuidLlSet) GetCrcString() string
func (*DHCP6DuidLlSet) GetMessageName ¶
func (*DHCP6DuidLlSet) GetMessageName() string
func (*DHCP6DuidLlSet) GetMessageType ¶
func (*DHCP6DuidLlSet) GetMessageType() api.MessageType
type DHCP6DuidLlSetReply ¶
type DHCP6DuidLlSetReply struct {
Retval int32
}
DHCP6DuidLlSetReply represents VPP binary API message 'dhcp6_duid_ll_set_reply'.
func (*DHCP6DuidLlSetReply) GetCrcString ¶
func (*DHCP6DuidLlSetReply) GetCrcString() string
func (*DHCP6DuidLlSetReply) GetMessageName ¶
func (*DHCP6DuidLlSetReply) GetMessageName() string
func (*DHCP6DuidLlSetReply) GetMessageType ¶
func (*DHCP6DuidLlSetReply) GetMessageType() api.MessageType
type DHCP6PdPrefixInfo ¶
DHCP6PdPrefixInfo represents VPP binary API type 'dhcp6_pd_prefix_info'.
func (*DHCP6PdPrefixInfo) GetTypeName ¶
func (*DHCP6PdPrefixInfo) GetTypeName() string
type DHCP6PdReplyEvent ¶
type DHCP6PdReplyEvent struct { PID uint32 SwIfIndex InterfaceIndex ServerIndex uint32 MsgType Dhcpv6MsgType T1 uint32 T2 uint32 InnerStatusCode uint16 StatusCode uint16 Preference uint8 NPrefixes uint32 `struc:"sizeof=Prefixes"` Prefixes []DHCP6PdPrefixInfo }
DHCP6PdReplyEvent represents VPP binary API message 'dhcp6_pd_reply_event'.
func (*DHCP6PdReplyEvent) GetCrcString ¶
func (*DHCP6PdReplyEvent) GetCrcString() string
func (*DHCP6PdReplyEvent) GetMessageName ¶
func (*DHCP6PdReplyEvent) GetMessageName() string
func (*DHCP6PdReplyEvent) GetMessageType ¶
func (*DHCP6PdReplyEvent) GetMessageType() api.MessageType
type DHCP6PdSendClientMessage ¶
type DHCP6PdSendClientMessage struct { SwIfIndex InterfaceIndex ServerIndex uint32 Irt uint32 Mrt uint32 Mrc uint32 Mrd uint32 Stop bool MsgType Dhcpv6MsgType T1 uint32 T2 uint32 NPrefixes uint32 `struc:"sizeof=Prefixes"` Prefixes []DHCP6PdPrefixInfo }
DHCP6PdSendClientMessage represents VPP binary API message 'dhcp6_pd_send_client_message'.
func (*DHCP6PdSendClientMessage) GetCrcString ¶
func (*DHCP6PdSendClientMessage) GetCrcString() string
func (*DHCP6PdSendClientMessage) GetMessageName ¶
func (*DHCP6PdSendClientMessage) GetMessageName() string
func (*DHCP6PdSendClientMessage) GetMessageType ¶
func (*DHCP6PdSendClientMessage) GetMessageType() api.MessageType
type DHCP6PdSendClientMessageReply ¶
type DHCP6PdSendClientMessageReply struct {
Retval int32
}
DHCP6PdSendClientMessageReply represents VPP binary API message 'dhcp6_pd_send_client_message_reply'.
func (*DHCP6PdSendClientMessageReply) GetCrcString ¶
func (*DHCP6PdSendClientMessageReply) GetCrcString() string
func (*DHCP6PdSendClientMessageReply) GetMessageName ¶
func (*DHCP6PdSendClientMessageReply) GetMessageName() string
func (*DHCP6PdSendClientMessageReply) GetMessageType ¶
func (*DHCP6PdSendClientMessageReply) GetMessageType() api.MessageType
type DHCP6ReplyEvent ¶
type DHCP6ReplyEvent struct { PID uint32 SwIfIndex InterfaceIndex ServerIndex uint32 MsgType Dhcpv6MsgType T1 uint32 T2 uint32 InnerStatusCode uint16 StatusCode uint16 Preference uint8 NAddresses uint32 `struc:"sizeof=Addresses"` Addresses []DHCP6AddressInfo }
DHCP6ReplyEvent represents VPP binary API message 'dhcp6_reply_event'.
func (*DHCP6ReplyEvent) GetCrcString ¶
func (*DHCP6ReplyEvent) GetCrcString() string
func (*DHCP6ReplyEvent) GetMessageName ¶
func (*DHCP6ReplyEvent) GetMessageName() string
func (*DHCP6ReplyEvent) GetMessageType ¶
func (*DHCP6ReplyEvent) GetMessageType() api.MessageType
type DHCP6SendClientMessage ¶
type DHCP6SendClientMessage struct { SwIfIndex InterfaceIndex ServerIndex uint32 Irt uint32 Mrt uint32 Mrc uint32 Mrd uint32 Stop bool MsgType Dhcpv6MsgType T1 uint32 T2 uint32 NAddresses uint32 `struc:"sizeof=Addresses"` Addresses []DHCP6AddressInfo }
DHCP6SendClientMessage represents VPP binary API message 'dhcp6_send_client_message'.
func (*DHCP6SendClientMessage) GetCrcString ¶
func (*DHCP6SendClientMessage) GetCrcString() string
func (*DHCP6SendClientMessage) GetMessageName ¶
func (*DHCP6SendClientMessage) GetMessageName() string
func (*DHCP6SendClientMessage) GetMessageType ¶
func (*DHCP6SendClientMessage) GetMessageType() api.MessageType
type DHCP6SendClientMessageReply ¶
type DHCP6SendClientMessageReply struct {
Retval int32
}
DHCP6SendClientMessageReply represents VPP binary API message 'dhcp6_send_client_message_reply'.
func (*DHCP6SendClientMessageReply) GetCrcString ¶
func (*DHCP6SendClientMessageReply) GetCrcString() string
func (*DHCP6SendClientMessageReply) GetMessageName ¶
func (*DHCP6SendClientMessageReply) GetMessageName() string
func (*DHCP6SendClientMessageReply) GetMessageType ¶
func (*DHCP6SendClientMessageReply) GetMessageType() api.MessageType
type DHCPClient ¶
type DHCPClient struct { SwIfIndex InterfaceIndex Hostname string `struc:"[64]byte"` ID []byte `struc:"[64]byte"` WantDHCPEvent bool SetBroadcastFlag bool Dscp IPDscp PID uint32 }
DHCPClient represents VPP binary API type 'dhcp_client'.
func (*DHCPClient) GetTypeName ¶
func (*DHCPClient) GetTypeName() string
type DHCPClientConfig ¶
type DHCPClientConfig struct { IsAdd bool Client DHCPClient }
DHCPClientConfig represents VPP binary API message 'dhcp_client_config'.
func (*DHCPClientConfig) GetCrcString ¶
func (*DHCPClientConfig) GetCrcString() string
func (*DHCPClientConfig) GetMessageName ¶
func (*DHCPClientConfig) GetMessageName() string
func (*DHCPClientConfig) GetMessageType ¶
func (*DHCPClientConfig) GetMessageType() api.MessageType
type DHCPClientConfigReply ¶
type DHCPClientConfigReply struct {
Retval int32
}
DHCPClientConfigReply represents VPP binary API message 'dhcp_client_config_reply'.
func (*DHCPClientConfigReply) GetCrcString ¶
func (*DHCPClientConfigReply) GetCrcString() string
func (*DHCPClientConfigReply) GetMessageName ¶
func (*DHCPClientConfigReply) GetMessageName() string
func (*DHCPClientConfigReply) GetMessageType ¶
func (*DHCPClientConfigReply) GetMessageType() api.MessageType
type DHCPClientDetails ¶
type DHCPClientDetails struct { Client DHCPClient Lease DHCPLease }
DHCPClientDetails represents VPP binary API message 'dhcp_client_details'.
func (*DHCPClientDetails) GetCrcString ¶
func (*DHCPClientDetails) GetCrcString() string
func (*DHCPClientDetails) GetMessageName ¶
func (*DHCPClientDetails) GetMessageName() string
func (*DHCPClientDetails) GetMessageType ¶
func (*DHCPClientDetails) GetMessageType() api.MessageType
type DHCPClientDump ¶
type DHCPClientDump struct{}
DHCPClientDump represents VPP binary API message 'dhcp_client_dump'.
func (*DHCPClientDump) GetCrcString ¶
func (*DHCPClientDump) GetCrcString() string
func (*DHCPClientDump) GetMessageName ¶
func (*DHCPClientDump) GetMessageName() string
func (*DHCPClientDump) GetMessageType ¶
func (*DHCPClientDump) GetMessageType() api.MessageType
type DHCPClientState ¶
type DHCPClientState uint32
DHCPClientState represents VPP binary API enum 'dhcp_client_state'.
const ( DHCP_CLIENT_STATE_API_DISCOVER DHCPClientState = 1 DHCP_CLIENT_STATE_API_REQUEST DHCPClientState = 2 DHCP_CLIENT_STATE_API_BOUND DHCPClientState = 3 )
func (DHCPClientState) String ¶
func (x DHCPClientState) String() string
type DHCPComplEvent ¶
DHCPComplEvent represents VPP binary API message 'dhcp_compl_event'.
func (*DHCPComplEvent) GetCrcString ¶
func (*DHCPComplEvent) GetCrcString() string
func (*DHCPComplEvent) GetMessageName ¶
func (*DHCPComplEvent) GetMessageName() string
func (*DHCPComplEvent) GetMessageType ¶
func (*DHCPComplEvent) GetMessageType() api.MessageType
type DHCPLease ¶
type DHCPLease struct { SwIfIndex InterfaceIndex State DHCPClientState IsIPv6 bool Hostname string `struc:"[64]byte"` MaskWidth uint8 HostAddress Address RouterAddress Address HostMac MacAddress Count uint8 `struc:"sizeof=DomainServer"` DomainServer []DomainServer }
DHCPLease represents VPP binary API type 'dhcp_lease'.
type DHCPProxyConfig ¶
type DHCPProxyConfig struct { RxVrfID uint32 ServerVrfID uint32 IsAdd bool DHCPServer Address DHCPSrcAddress Address }
DHCPProxyConfig represents VPP binary API message 'dhcp_proxy_config'.
func (*DHCPProxyConfig) GetCrcString ¶
func (*DHCPProxyConfig) GetCrcString() string
func (*DHCPProxyConfig) GetMessageName ¶
func (*DHCPProxyConfig) GetMessageName() string
func (*DHCPProxyConfig) GetMessageType ¶
func (*DHCPProxyConfig) GetMessageType() api.MessageType
type DHCPProxyConfigReply ¶
type DHCPProxyConfigReply struct {
Retval int32
}
DHCPProxyConfigReply represents VPP binary API message 'dhcp_proxy_config_reply'.
func (*DHCPProxyConfigReply) GetCrcString ¶
func (*DHCPProxyConfigReply) GetCrcString() string
func (*DHCPProxyConfigReply) GetMessageName ¶
func (*DHCPProxyConfigReply) GetMessageName() string
func (*DHCPProxyConfigReply) GetMessageType ¶
func (*DHCPProxyConfigReply) GetMessageType() api.MessageType
type DHCPProxyDetails ¶
type DHCPProxyDetails struct { RxVrfID uint32 VssOui uint32 VssFibID uint32 VssType VssType IsIPv6 bool VssVPNAsciiID string `struc:"[129]byte"` DHCPSrcAddress Address Count uint8 `struc:"sizeof=Servers"` Servers []DHCPServer }
DHCPProxyDetails represents VPP binary API message 'dhcp_proxy_details'.
func (*DHCPProxyDetails) GetCrcString ¶
func (*DHCPProxyDetails) GetCrcString() string
func (*DHCPProxyDetails) GetMessageName ¶
func (*DHCPProxyDetails) GetMessageName() string
func (*DHCPProxyDetails) GetMessageType ¶
func (*DHCPProxyDetails) GetMessageType() api.MessageType
type DHCPProxyDump ¶
type DHCPProxyDump struct {
IsIP6 bool
}
DHCPProxyDump represents VPP binary API message 'dhcp_proxy_dump'.
func (*DHCPProxyDump) GetCrcString ¶
func (*DHCPProxyDump) GetCrcString() string
func (*DHCPProxyDump) GetMessageName ¶
func (*DHCPProxyDump) GetMessageName() string
func (*DHCPProxyDump) GetMessageType ¶
func (*DHCPProxyDump) GetMessageType() api.MessageType
type DHCPProxySetVss ¶
type DHCPProxySetVss struct { TblID uint32 VssType VssType VPNAsciiID string `struc:"[129]byte"` Oui uint32 VPNIndex uint32 IsIPv6 bool IsAdd bool }
DHCPProxySetVss represents VPP binary API message 'dhcp_proxy_set_vss'.
func (*DHCPProxySetVss) GetCrcString ¶
func (*DHCPProxySetVss) GetCrcString() string
func (*DHCPProxySetVss) GetMessageName ¶
func (*DHCPProxySetVss) GetMessageName() string
func (*DHCPProxySetVss) GetMessageType ¶
func (*DHCPProxySetVss) GetMessageType() api.MessageType
type DHCPProxySetVssReply ¶
type DHCPProxySetVssReply struct {
Retval int32
}
DHCPProxySetVssReply represents VPP binary API message 'dhcp_proxy_set_vss_reply'.
func (*DHCPProxySetVssReply) GetCrcString ¶
func (*DHCPProxySetVssReply) GetCrcString() string
func (*DHCPProxySetVssReply) GetMessageName ¶
func (*DHCPProxySetVssReply) GetMessageName() string
func (*DHCPProxySetVssReply) GetMessageType ¶
func (*DHCPProxySetVssReply) GetMessageType() api.MessageType
type DHCPServer ¶
DHCPServer represents VPP binary API type 'dhcp_server'.
func (*DHCPServer) GetTypeName ¶
func (*DHCPServer) GetTypeName() string
type Dhcpv6MsgType ¶
type Dhcpv6MsgType uint32
Dhcpv6MsgType represents VPP binary API enum 'dhcpv6_msg_type'.
const ( DHCPV6_MSG_API_SOLICIT Dhcpv6MsgType = 1 DHCPV6_MSG_API_ADVERTISE Dhcpv6MsgType = 2 DHCPV6_MSG_API_REQUEST Dhcpv6MsgType = 3 DHCPV6_MSG_API_CONFIRM Dhcpv6MsgType = 4 DHCPV6_MSG_API_RENEW Dhcpv6MsgType = 5 DHCPV6_MSG_API_REBIND Dhcpv6MsgType = 6 DHCPV6_MSG_API_REPLY Dhcpv6MsgType = 7 DHCPV6_MSG_API_RELEASE Dhcpv6MsgType = 8 DHCPV6_MSG_API_DECLINE Dhcpv6MsgType = 9 DHCPV6_MSG_API_RECONFIGURE Dhcpv6MsgType = 10 DHCPV6_MSG_API_INFORMATION_REQUEST Dhcpv6MsgType = 11 DHCPV6_MSG_API_RELAY_FORW Dhcpv6MsgType = 12 DHCPV6_MSG_API_RELAY_REPL Dhcpv6MsgType = 13 )
func (Dhcpv6MsgType) String ¶
func (x Dhcpv6MsgType) String() string
type DomainServer ¶
type DomainServer struct {
Address Address
}
DomainServer represents VPP binary API type 'domain_server'.
func (*DomainServer) GetTypeName ¶
func (*DomainServer) GetTypeName() string
type IP4Address ¶
type IP4Address [4]uint8
IP4Address represents VPP binary API alias 'ip4_address'.
type IP4AddressWithPrefix ¶
type IP4AddressWithPrefix IP4Prefix
IP4AddressWithPrefix represents VPP binary API alias 'ip4_address_with_prefix'.
type IP4Prefix ¶
type IP4Prefix struct { Address IP4Address Len uint8 }
IP4Prefix represents VPP binary API type 'ip4_prefix'.
type IP6Address ¶
type IP6Address [16]uint8
IP6Address represents VPP binary API alias 'ip6_address'.
type IP6AddressWithPrefix ¶
type IP6AddressWithPrefix IP6Prefix
IP6AddressWithPrefix represents VPP binary API alias 'ip6_address_with_prefix'.
type IP6Prefix ¶
type IP6Prefix struct { Address IP6Address Len uint8 }
IP6Prefix represents VPP binary API type 'ip6_prefix'.
type IPDscp ¶
type IPDscp uint8
IPDscp represents VPP binary API enum 'ip_dscp'.
const ( IP_API_DSCP_CS0 IPDscp = 0 IP_API_DSCP_CS1 IPDscp = 8 IP_API_DSCP_AF11 IPDscp = 10 IP_API_DSCP_AF12 IPDscp = 12 IP_API_DSCP_AF13 IPDscp = 14 IP_API_DSCP_CS2 IPDscp = 16 IP_API_DSCP_AF21 IPDscp = 18 IP_API_DSCP_AF22 IPDscp = 20 IP_API_DSCP_AF23 IPDscp = 22 IP_API_DSCP_CS3 IPDscp = 24 IP_API_DSCP_AF31 IPDscp = 26 IP_API_DSCP_AF32 IPDscp = 28 IP_API_DSCP_AF33 IPDscp = 30 IP_API_DSCP_CS4 IPDscp = 32 IP_API_DSCP_AF41 IPDscp = 34 IP_API_DSCP_AF42 IPDscp = 36 IP_API_DSCP_AF43 IPDscp = 38 IP_API_DSCP_CS5 IPDscp = 40 IP_API_DSCP_EF IPDscp = 46 IP_API_DSCP_CS6 IPDscp = 48 IP_API_DSCP_CS7 IPDscp = 50 )
type IPProto ¶
type IPProto uint32
IPProto represents VPP binary API enum 'ip_proto'.
const ( IP_API_PROTO_HOPOPT IPProto = 0 IP_API_PROTO_ICMP IPProto = 1 IP_API_PROTO_IGMP IPProto = 2 IP_API_PROTO_TCP IPProto = 6 IP_API_PROTO_UDP IPProto = 17 IP_API_PROTO_GRE IPProto = 47 IP_API_PROTO_AH IPProto = 50 IP_API_PROTO_ESP IPProto = 51 IP_API_PROTO_EIGRP IPProto = 88 IP_API_PROTO_OSPF IPProto = 89 IP_API_PROTO_SCTP IPProto = 132 IP_API_PROTO_RESERVED IPProto = 255 )
type IfStatusFlags ¶
type IfStatusFlags uint32
IfStatusFlags represents VPP binary API enum 'if_status_flags'.
const ( IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1 IF_STATUS_API_FLAG_LINK_UP IfStatusFlags = 2 )
func (IfStatusFlags) String ¶
func (x IfStatusFlags) String() string
type InterfaceIndex ¶
type InterfaceIndex uint32
InterfaceIndex represents VPP binary API alias 'interface_index'.
type LinkDuplex ¶
type LinkDuplex uint32
LinkDuplex represents VPP binary API enum 'link_duplex'.
const ( LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0 LINK_DUPLEX_API_HALF LinkDuplex = 1 LINK_DUPLEX_API_FULL LinkDuplex = 2 )
func (LinkDuplex) String ¶
func (x LinkDuplex) String() string
type MacAddress ¶
type MacAddress [6]uint8
MacAddress represents VPP binary API alias 'mac_address'.
type Mprefix ¶
type Mprefix struct { Af AddressFamily GrpAddressLength uint16 GrpAddress AddressUnion SrcAddress AddressUnion }
Mprefix represents VPP binary API type 'mprefix'.
type Prefix ¶
Prefix represents VPP binary API type 'prefix'.
type PrefixMatcher ¶
PrefixMatcher represents VPP binary API type 'prefix_matcher'.
func (*PrefixMatcher) GetTypeName ¶
func (*PrefixMatcher) GetTypeName() string
type RPCService ¶
type RPCService interface { DumpDHCPClient(ctx context.Context, in *DHCPClientDump) (RPCService_DumpDHCPClientClient, error) DumpDHCPProxy(ctx context.Context, in *DHCPProxyDump) (RPCService_DumpDHCPProxyClient, error) DHCP6ClientsEnableDisable(ctx context.Context, in *DHCP6ClientsEnableDisable) (*DHCP6ClientsEnableDisableReply, error) DHCP6DuidLlSet(ctx context.Context, in *DHCP6DuidLlSet) (*DHCP6DuidLlSetReply, error) DHCP6PdSendClientMessage(ctx context.Context, in *DHCP6PdSendClientMessage) (*DHCP6PdSendClientMessageReply, error) DHCP6SendClientMessage(ctx context.Context, in *DHCP6SendClientMessage) (*DHCP6SendClientMessageReply, error) DHCPClientConfig(ctx context.Context, in *DHCPClientConfig) (*DHCPClientConfigReply, error) DHCPProxyConfig(ctx context.Context, in *DHCPProxyConfig) (*DHCPProxyConfigReply, error) DHCPProxySetVss(ctx context.Context, in *DHCPProxySetVss) (*DHCPProxySetVssReply, error) WantDHCP6PdReplyEvents(ctx context.Context, in *WantDHCP6PdReplyEvents) (*WantDHCP6PdReplyEventsReply, error) WantDHCP6ReplyEvents(ctx context.Context, in *WantDHCP6ReplyEvents) (*WantDHCP6ReplyEventsReply, error) }
RPCService represents RPC service API for dhcp module.
func NewServiceClient ¶
func NewServiceClient(ch api.Channel) RPCService
type RPCService_DumpDHCPClientClient ¶
type RPCService_DumpDHCPClientClient interface {
Recv() (*DHCPClientDetails, error)
}
type RPCService_DumpDHCPProxyClient ¶
type RPCService_DumpDHCPProxyClient interface {
Recv() (*DHCPProxyDetails, error)
}
type SubIfFlags ¶
type SubIfFlags uint32
SubIfFlags represents VPP binary API enum 'sub_if_flags'.
const ( SUB_IF_API_FLAG_NO_TAGS SubIfFlags = 1 SUB_IF_API_FLAG_ONE_TAG SubIfFlags = 2 SUB_IF_API_FLAG_TWO_TAGS SubIfFlags = 4 SUB_IF_API_FLAG_DOT1AD SubIfFlags = 8 SUB_IF_API_FLAG_EXACT_MATCH SubIfFlags = 16 SUB_IF_API_FLAG_DEFAULT SubIfFlags = 32 SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64 SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128 SUB_IF_API_FLAG_MASK_VNET SubIfFlags = 254 SUB_IF_API_FLAG_DOT1AH SubIfFlags = 256 )
func (SubIfFlags) String ¶
func (x SubIfFlags) String() string
type WantDHCP6PdReplyEvents ¶
WantDHCP6PdReplyEvents represents VPP binary API message 'want_dhcp6_pd_reply_events'.
func (*WantDHCP6PdReplyEvents) GetCrcString ¶
func (*WantDHCP6PdReplyEvents) GetCrcString() string
func (*WantDHCP6PdReplyEvents) GetMessageName ¶
func (*WantDHCP6PdReplyEvents) GetMessageName() string
func (*WantDHCP6PdReplyEvents) GetMessageType ¶
func (*WantDHCP6PdReplyEvents) GetMessageType() api.MessageType
type WantDHCP6PdReplyEventsReply ¶
type WantDHCP6PdReplyEventsReply struct {
Retval int32
}
WantDHCP6PdReplyEventsReply represents VPP binary API message 'want_dhcp6_pd_reply_events_reply'.
func (*WantDHCP6PdReplyEventsReply) GetCrcString ¶
func (*WantDHCP6PdReplyEventsReply) GetCrcString() string
func (*WantDHCP6PdReplyEventsReply) GetMessageName ¶
func (*WantDHCP6PdReplyEventsReply) GetMessageName() string
func (*WantDHCP6PdReplyEventsReply) GetMessageType ¶
func (*WantDHCP6PdReplyEventsReply) GetMessageType() api.MessageType
type WantDHCP6ReplyEvents ¶
WantDHCP6ReplyEvents represents VPP binary API message 'want_dhcp6_reply_events'.
func (*WantDHCP6ReplyEvents) GetCrcString ¶
func (*WantDHCP6ReplyEvents) GetCrcString() string
func (*WantDHCP6ReplyEvents) GetMessageName ¶
func (*WantDHCP6ReplyEvents) GetMessageName() string
func (*WantDHCP6ReplyEvents) GetMessageType ¶
func (*WantDHCP6ReplyEvents) GetMessageType() api.MessageType
type WantDHCP6ReplyEventsReply ¶
type WantDHCP6ReplyEventsReply struct {
Retval int32
}
WantDHCP6ReplyEventsReply represents VPP binary API message 'want_dhcp6_reply_events_reply'.
func (*WantDHCP6ReplyEventsReply) GetCrcString ¶
func (*WantDHCP6ReplyEventsReply) GetCrcString() string
func (*WantDHCP6ReplyEventsReply) GetMessageName ¶
func (*WantDHCP6ReplyEventsReply) GetMessageName() string
func (*WantDHCP6ReplyEventsReply) GetMessageType ¶
func (*WantDHCP6ReplyEventsReply) GetMessageType() api.MessageType