Documentation ¶
Overview ¶
Package acl is a generated VPP binary API for 'acl' module.
It consists of:
11 enums 7 aliases 8 types 1 union 38 messages 19 services
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type ACLAction
- type ACLAddReplace
- type ACLAddReplaceReply
- type ACLDel
- type ACLDelReply
- type ACLDetails
- type ACLDump
- type ACLInterfaceAddDel
- type ACLInterfaceAddDelReply
- type ACLInterfaceEtypeWhitelistDetails
- type ACLInterfaceEtypeWhitelistDump
- type ACLInterfaceListDetails
- type ACLInterfaceListDump
- type ACLInterfaceSetACLList
- type ACLInterfaceSetACLListReply
- type ACLInterfaceSetEtypeWhitelist
- type ACLInterfaceSetEtypeWhitelistReply
- type ACLPluginControlPing
- type ACLPluginControlPingReply
- type ACLPluginGetConnTableMaxEntries
- type ACLPluginGetConnTableMaxEntriesReply
- type ACLPluginGetVersion
- type ACLPluginGetVersionReply
- type ACLRule
- type ACLStatsIntfCountersEnable
- type ACLStatsIntfCountersEnableReply
- type Address
- type AddressFamily
- type AddressUnion
- type AddressWithPrefix
- 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 MacipACLAdd
- type MacipACLAddReplace
- type MacipACLAddReplaceReply
- type MacipACLAddReply
- type MacipACLDel
- type MacipACLDelReply
- type MacipACLDetails
- type MacipACLDump
- type MacipACLInterfaceAddDel
- type MacipACLInterfaceAddDelReply
- type MacipACLInterfaceGet
- type MacipACLInterfaceGetReply
- type MacipACLInterfaceListDetails
- type MacipACLInterfaceListDump
- type MacipACLRule
- type Mprefix
- type MtuProto
- type Prefix
- type PrefixMatcher
- type RPCService
- type RPCService_DumpACLClient
- type RPCService_DumpACLInterfaceEtypeWhitelistClient
- type RPCService_DumpACLInterfaceListClient
- type RPCService_DumpMacipACLClient
- type RPCService_DumpMacipACLInterfaceListClient
- type RxMode
- type SubIfFlags
Constants ¶
const ( // ModuleName is the name of this module. ModuleName = "acl" // APIVersion is the API version of this module. APIVersion = "2.0.0" // VersionCrc is the CRC of this module. VersionCrc = 0x68c4cb37 )
Variables ¶
var ACLAction_name = map[uint8]string{
0: "ACL_ACTION_API_DENY",
1: "ACL_ACTION_API_PERMIT",
2: "ACL_ACTION_API_PERMIT_REFLECT",
}
var ACLAction_value = map[string]uint8{
"ACL_ACTION_API_DENY": 0,
"ACL_ACTION_API_PERMIT": 1,
"ACL_ACTION_API_PERMIT_REFLECT": 2,
}
var AddressFamily_name = map[uint8]string{
0: "ADDRESS_IP4",
1: "ADDRESS_IP6",
}
var AddressFamily_value = map[string]uint8{
"ADDRESS_IP4": 0,
"ADDRESS_IP6": 1,
}
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[uint8]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_ESP",
51: "IP_API_PROTO_AH",
58: "IP_API_PROTO_ICMP6",
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]uint8{
"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_ESP": 50,
"IP_API_PROTO_AH": 51,
"IP_API_PROTO_ICMP6": 58,
"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{
0: "IF_API_TYPE_HARDWARE",
1: "IF_API_TYPE_SUB",
2: "IF_API_TYPE_P2P",
3: "IF_API_TYPE_PIPE",
}
var IfType_value = map[string]uint32{
"IF_API_TYPE_HARDWARE": 0,
"IF_API_TYPE_SUB": 1,
"IF_API_TYPE_P2P": 2,
"IF_API_TYPE_PIPE": 3,
}
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{
0: "MTU_PROTO_API_L3",
1: "MTU_PROTO_API_IP4",
2: "MTU_PROTO_API_IP6",
3: "MTU_PROTO_API_MPLS",
}
var MtuProto_value = map[string]uint32{
"MTU_PROTO_API_L3": 0,
"MTU_PROTO_API_IP4": 1,
"MTU_PROTO_API_IP6": 2,
"MTU_PROTO_API_MPLS": 3,
}
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 ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type ACLAddReplace ¶
type ACLAddReplace struct { ACLIndex uint32 Tag string `struc:"[64]byte"` Count uint32 `struc:"sizeof=R"` R []ACLRule }
ACLAddReplace represents VPP binary API message 'acl_add_replace'.
func (*ACLAddReplace) GetCrcString ¶
func (*ACLAddReplace) GetCrcString() string
func (*ACLAddReplace) GetMessageName ¶
func (*ACLAddReplace) GetMessageName() string
func (*ACLAddReplace) GetMessageType ¶
func (*ACLAddReplace) GetMessageType() api.MessageType
func (*ACLAddReplace) Reset ¶
func (m *ACLAddReplace) Reset()
type ACLAddReplaceReply ¶
ACLAddReplaceReply represents VPP binary API message 'acl_add_replace_reply'.
func (*ACLAddReplaceReply) GetCrcString ¶
func (*ACLAddReplaceReply) GetCrcString() string
func (*ACLAddReplaceReply) GetMessageName ¶
func (*ACLAddReplaceReply) GetMessageName() string
func (*ACLAddReplaceReply) GetMessageType ¶
func (*ACLAddReplaceReply) GetMessageType() api.MessageType
func (*ACLAddReplaceReply) Reset ¶
func (m *ACLAddReplaceReply) Reset()
type ACLDel ¶
type ACLDel struct {
ACLIndex uint32
}
ACLDel represents VPP binary API message 'acl_del'.
func (*ACLDel) GetCrcString ¶
func (*ACLDel) GetMessageName ¶
func (*ACLDel) GetMessageType ¶
func (*ACLDel) GetMessageType() api.MessageType
type ACLDelReply ¶
type ACLDelReply struct {
Retval int32
}
ACLDelReply represents VPP binary API message 'acl_del_reply'.
func (*ACLDelReply) GetCrcString ¶
func (*ACLDelReply) GetCrcString() string
func (*ACLDelReply) GetMessageName ¶
func (*ACLDelReply) GetMessageName() string
func (*ACLDelReply) GetMessageType ¶
func (*ACLDelReply) GetMessageType() api.MessageType
func (*ACLDelReply) Reset ¶
func (m *ACLDelReply) Reset()
type ACLDetails ¶
type ACLDetails struct { ACLIndex uint32 Tag string `struc:"[64]byte"` Count uint32 `struc:"sizeof=R"` R []ACLRule }
ACLDetails represents VPP binary API message 'acl_details'.
func (*ACLDetails) GetCrcString ¶
func (*ACLDetails) GetCrcString() string
func (*ACLDetails) GetMessageName ¶
func (*ACLDetails) GetMessageName() string
func (*ACLDetails) GetMessageType ¶
func (*ACLDetails) GetMessageType() api.MessageType
func (*ACLDetails) Reset ¶
func (m *ACLDetails) Reset()
type ACLDump ¶
type ACLDump struct {
ACLIndex uint32
}
ACLDump represents VPP binary API message 'acl_dump'.
func (*ACLDump) GetCrcString ¶
func (*ACLDump) GetMessageName ¶
func (*ACLDump) GetMessageType ¶
func (*ACLDump) GetMessageType() api.MessageType
type ACLInterfaceAddDel ¶
type ACLInterfaceAddDel struct { IsAdd bool IsInput bool SwIfIndex InterfaceIndex ACLIndex uint32 }
ACLInterfaceAddDel represents VPP binary API message 'acl_interface_add_del'.
func (*ACLInterfaceAddDel) GetCrcString ¶
func (*ACLInterfaceAddDel) GetCrcString() string
func (*ACLInterfaceAddDel) GetMessageName ¶
func (*ACLInterfaceAddDel) GetMessageName() string
func (*ACLInterfaceAddDel) GetMessageType ¶
func (*ACLInterfaceAddDel) GetMessageType() api.MessageType
func (*ACLInterfaceAddDel) Reset ¶
func (m *ACLInterfaceAddDel) Reset()
type ACLInterfaceAddDelReply ¶
type ACLInterfaceAddDelReply struct {
Retval int32
}
ACLInterfaceAddDelReply represents VPP binary API message 'acl_interface_add_del_reply'.
func (*ACLInterfaceAddDelReply) GetCrcString ¶
func (*ACLInterfaceAddDelReply) GetCrcString() string
func (*ACLInterfaceAddDelReply) GetMessageName ¶
func (*ACLInterfaceAddDelReply) GetMessageName() string
func (*ACLInterfaceAddDelReply) GetMessageType ¶
func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType
func (*ACLInterfaceAddDelReply) Reset ¶
func (m *ACLInterfaceAddDelReply) Reset()
type ACLInterfaceEtypeWhitelistDetails ¶
type ACLInterfaceEtypeWhitelistDetails struct { SwIfIndex InterfaceIndex Count uint8 `struc:"sizeof=Whitelist"` NInput uint8 Whitelist []uint16 }
ACLInterfaceEtypeWhitelistDetails represents VPP binary API message 'acl_interface_etype_whitelist_details'.
func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString ¶
func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string
func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName ¶
func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string
func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType ¶
func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType
func (*ACLInterfaceEtypeWhitelistDetails) Reset ¶
func (m *ACLInterfaceEtypeWhitelistDetails) Reset()
type ACLInterfaceEtypeWhitelistDump ¶
type ACLInterfaceEtypeWhitelistDump struct {
SwIfIndex InterfaceIndex
}
ACLInterfaceEtypeWhitelistDump represents VPP binary API message 'acl_interface_etype_whitelist_dump'.
func (*ACLInterfaceEtypeWhitelistDump) GetCrcString ¶
func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string
func (*ACLInterfaceEtypeWhitelistDump) GetMessageName ¶
func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string
func (*ACLInterfaceEtypeWhitelistDump) GetMessageType ¶
func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType
func (*ACLInterfaceEtypeWhitelistDump) Reset ¶
func (m *ACLInterfaceEtypeWhitelistDump) Reset()
type ACLInterfaceListDetails ¶
type ACLInterfaceListDetails struct { SwIfIndex InterfaceIndex Count uint8 `struc:"sizeof=Acls"` NInput uint8 Acls []uint32 }
ACLInterfaceListDetails represents VPP binary API message 'acl_interface_list_details'.
func (*ACLInterfaceListDetails) GetCrcString ¶
func (*ACLInterfaceListDetails) GetCrcString() string
func (*ACLInterfaceListDetails) GetMessageName ¶
func (*ACLInterfaceListDetails) GetMessageName() string
func (*ACLInterfaceListDetails) GetMessageType ¶
func (*ACLInterfaceListDetails) GetMessageType() api.MessageType
func (*ACLInterfaceListDetails) Reset ¶
func (m *ACLInterfaceListDetails) Reset()
type ACLInterfaceListDump ¶
type ACLInterfaceListDump struct {
SwIfIndex InterfaceIndex
}
ACLInterfaceListDump represents VPP binary API message 'acl_interface_list_dump'.
func (*ACLInterfaceListDump) GetCrcString ¶
func (*ACLInterfaceListDump) GetCrcString() string
func (*ACLInterfaceListDump) GetMessageName ¶
func (*ACLInterfaceListDump) GetMessageName() string
func (*ACLInterfaceListDump) GetMessageType ¶
func (*ACLInterfaceListDump) GetMessageType() api.MessageType
func (*ACLInterfaceListDump) Reset ¶
func (m *ACLInterfaceListDump) Reset()
type ACLInterfaceSetACLList ¶
type ACLInterfaceSetACLList struct { SwIfIndex InterfaceIndex Count uint8 `struc:"sizeof=Acls"` NInput uint8 Acls []uint32 }
ACLInterfaceSetACLList represents VPP binary API message 'acl_interface_set_acl_list'.
func (*ACLInterfaceSetACLList) GetCrcString ¶
func (*ACLInterfaceSetACLList) GetCrcString() string
func (*ACLInterfaceSetACLList) GetMessageName ¶
func (*ACLInterfaceSetACLList) GetMessageName() string
func (*ACLInterfaceSetACLList) GetMessageType ¶
func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType
func (*ACLInterfaceSetACLList) Reset ¶
func (m *ACLInterfaceSetACLList) Reset()
type ACLInterfaceSetACLListReply ¶
type ACLInterfaceSetACLListReply struct {
Retval int32
}
ACLInterfaceSetACLListReply represents VPP binary API message 'acl_interface_set_acl_list_reply'.
func (*ACLInterfaceSetACLListReply) GetCrcString ¶
func (*ACLInterfaceSetACLListReply) GetCrcString() string
func (*ACLInterfaceSetACLListReply) GetMessageName ¶
func (*ACLInterfaceSetACLListReply) GetMessageName() string
func (*ACLInterfaceSetACLListReply) GetMessageType ¶
func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType
func (*ACLInterfaceSetACLListReply) Reset ¶
func (m *ACLInterfaceSetACLListReply) Reset()
type ACLInterfaceSetEtypeWhitelist ¶
type ACLInterfaceSetEtypeWhitelist struct { SwIfIndex InterfaceIndex Count uint8 `struc:"sizeof=Whitelist"` NInput uint8 Whitelist []uint16 }
ACLInterfaceSetEtypeWhitelist represents VPP binary API message 'acl_interface_set_etype_whitelist'.
func (*ACLInterfaceSetEtypeWhitelist) GetCrcString ¶
func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string
func (*ACLInterfaceSetEtypeWhitelist) GetMessageName ¶
func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string
func (*ACLInterfaceSetEtypeWhitelist) GetMessageType ¶
func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType
func (*ACLInterfaceSetEtypeWhitelist) Reset ¶
func (m *ACLInterfaceSetEtypeWhitelist) Reset()
type ACLInterfaceSetEtypeWhitelistReply ¶
type ACLInterfaceSetEtypeWhitelistReply struct {
Retval int32
}
ACLInterfaceSetEtypeWhitelistReply represents VPP binary API message 'acl_interface_set_etype_whitelist_reply'.
func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString ¶
func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string
func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName ¶
func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string
func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType ¶
func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType
func (*ACLInterfaceSetEtypeWhitelistReply) Reset ¶
func (m *ACLInterfaceSetEtypeWhitelistReply) Reset()
type ACLPluginControlPing ¶
type ACLPluginControlPing struct{}
ACLPluginControlPing represents VPP binary API message 'acl_plugin_control_ping'.
func (*ACLPluginControlPing) GetCrcString ¶
func (*ACLPluginControlPing) GetCrcString() string
func (*ACLPluginControlPing) GetMessageName ¶
func (*ACLPluginControlPing) GetMessageName() string
func (*ACLPluginControlPing) GetMessageType ¶
func (*ACLPluginControlPing) GetMessageType() api.MessageType
func (*ACLPluginControlPing) Reset ¶
func (m *ACLPluginControlPing) Reset()
type ACLPluginControlPingReply ¶
ACLPluginControlPingReply represents VPP binary API message 'acl_plugin_control_ping_reply'.
func (*ACLPluginControlPingReply) GetCrcString ¶
func (*ACLPluginControlPingReply) GetCrcString() string
func (*ACLPluginControlPingReply) GetMessageName ¶
func (*ACLPluginControlPingReply) GetMessageName() string
func (*ACLPluginControlPingReply) GetMessageType ¶
func (*ACLPluginControlPingReply) GetMessageType() api.MessageType
func (*ACLPluginControlPingReply) Reset ¶
func (m *ACLPluginControlPingReply) Reset()
type ACLPluginGetConnTableMaxEntries ¶
type ACLPluginGetConnTableMaxEntries struct{}
ACLPluginGetConnTableMaxEntries represents VPP binary API message 'acl_plugin_get_conn_table_max_entries'.
func (*ACLPluginGetConnTableMaxEntries) GetCrcString ¶
func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string
func (*ACLPluginGetConnTableMaxEntries) GetMessageName ¶
func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string
func (*ACLPluginGetConnTableMaxEntries) GetMessageType ¶
func (*ACLPluginGetConnTableMaxEntries) GetMessageType() api.MessageType
func (*ACLPluginGetConnTableMaxEntries) Reset ¶
func (m *ACLPluginGetConnTableMaxEntries) Reset()
type ACLPluginGetConnTableMaxEntriesReply ¶
type ACLPluginGetConnTableMaxEntriesReply struct {
ConnTableMaxEntries uint64
}
ACLPluginGetConnTableMaxEntriesReply represents VPP binary API message 'acl_plugin_get_conn_table_max_entries_reply'.
func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString ¶
func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString() string
func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName ¶
func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string
func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType ¶
func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType() api.MessageType
func (*ACLPluginGetConnTableMaxEntriesReply) Reset ¶
func (m *ACLPluginGetConnTableMaxEntriesReply) Reset()
type ACLPluginGetVersion ¶
type ACLPluginGetVersion struct{}
ACLPluginGetVersion represents VPP binary API message 'acl_plugin_get_version'.
func (*ACLPluginGetVersion) GetCrcString ¶
func (*ACLPluginGetVersion) GetCrcString() string
func (*ACLPluginGetVersion) GetMessageName ¶
func (*ACLPluginGetVersion) GetMessageName() string
func (*ACLPluginGetVersion) GetMessageType ¶
func (*ACLPluginGetVersion) GetMessageType() api.MessageType
func (*ACLPluginGetVersion) Reset ¶
func (m *ACLPluginGetVersion) Reset()
type ACLPluginGetVersionReply ¶
ACLPluginGetVersionReply represents VPP binary API message 'acl_plugin_get_version_reply'.
func (*ACLPluginGetVersionReply) GetCrcString ¶
func (*ACLPluginGetVersionReply) GetCrcString() string
func (*ACLPluginGetVersionReply) GetMessageName ¶
func (*ACLPluginGetVersionReply) GetMessageName() string
func (*ACLPluginGetVersionReply) GetMessageType ¶
func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType
func (*ACLPluginGetVersionReply) Reset ¶
func (m *ACLPluginGetVersionReply) Reset()
type ACLRule ¶
type ACLRule struct { IsPermit ACLAction SrcPrefix Prefix DstPrefix Prefix Proto IPProto SrcportOrIcmptypeFirst uint16 SrcportOrIcmptypeLast uint16 DstportOrIcmpcodeFirst uint16 DstportOrIcmpcodeLast uint16 TCPFlagsMask uint8 TCPFlagsValue uint8 }
ACLRule represents VPP binary API type 'acl_rule'.
func (*ACLRule) GetTypeName ¶
type ACLStatsIntfCountersEnable ¶
type ACLStatsIntfCountersEnable struct {
Enable bool
}
ACLStatsIntfCountersEnable represents VPP binary API message 'acl_stats_intf_counters_enable'.
func (*ACLStatsIntfCountersEnable) GetCrcString ¶
func (*ACLStatsIntfCountersEnable) GetCrcString() string
func (*ACLStatsIntfCountersEnable) GetMessageName ¶
func (*ACLStatsIntfCountersEnable) GetMessageName() string
func (*ACLStatsIntfCountersEnable) GetMessageType ¶
func (*ACLStatsIntfCountersEnable) GetMessageType() api.MessageType
func (*ACLStatsIntfCountersEnable) Reset ¶
func (m *ACLStatsIntfCountersEnable) Reset()
type ACLStatsIntfCountersEnableReply ¶
type ACLStatsIntfCountersEnableReply struct {
Retval int32
}
ACLStatsIntfCountersEnableReply represents VPP binary API message 'acl_stats_intf_counters_enable_reply'.
func (*ACLStatsIntfCountersEnableReply) GetCrcString ¶
func (*ACLStatsIntfCountersEnableReply) GetCrcString() string
func (*ACLStatsIntfCountersEnableReply) GetMessageName ¶
func (*ACLStatsIntfCountersEnableReply) GetMessageName() string
func (*ACLStatsIntfCountersEnableReply) GetMessageType ¶
func (*ACLStatsIntfCountersEnableReply) GetMessageType() api.MessageType
func (*ACLStatsIntfCountersEnableReply) Reset ¶
func (m *ACLStatsIntfCountersEnableReply) Reset()
type Address ¶
type Address struct { Af AddressFamily Un AddressUnion }
Address represents VPP binary API type 'address'.
func (*Address) GetTypeName ¶
type AddressFamily ¶
type AddressFamily uint8
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 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'.
func (*IP4Prefix) GetTypeName ¶
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'.
func (*IP6Prefix) GetTypeName ¶
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 uint8
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_ESP IPProto = 50 IP_API_PROTO_AH IPProto = 51 IP_API_PROTO_ICMP6 IPProto = 58 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 MacipACLAdd ¶
type MacipACLAdd struct { Tag string `struc:"[64]byte"` Count uint32 `struc:"sizeof=R"` R []MacipACLRule }
MacipACLAdd represents VPP binary API message 'macip_acl_add'.
func (*MacipACLAdd) GetCrcString ¶
func (*MacipACLAdd) GetCrcString() string
func (*MacipACLAdd) GetMessageName ¶
func (*MacipACLAdd) GetMessageName() string
func (*MacipACLAdd) GetMessageType ¶
func (*MacipACLAdd) GetMessageType() api.MessageType
func (*MacipACLAdd) Reset ¶
func (m *MacipACLAdd) Reset()
type MacipACLAddReplace ¶
type MacipACLAddReplace struct { ACLIndex uint32 Tag string `struc:"[64]byte"` Count uint32 `struc:"sizeof=R"` R []MacipACLRule }
MacipACLAddReplace represents VPP binary API message 'macip_acl_add_replace'.
func (*MacipACLAddReplace) GetCrcString ¶
func (*MacipACLAddReplace) GetCrcString() string
func (*MacipACLAddReplace) GetMessageName ¶
func (*MacipACLAddReplace) GetMessageName() string
func (*MacipACLAddReplace) GetMessageType ¶
func (*MacipACLAddReplace) GetMessageType() api.MessageType
func (*MacipACLAddReplace) Reset ¶
func (m *MacipACLAddReplace) Reset()
type MacipACLAddReplaceReply ¶
MacipACLAddReplaceReply represents VPP binary API message 'macip_acl_add_replace_reply'.
func (*MacipACLAddReplaceReply) GetCrcString ¶
func (*MacipACLAddReplaceReply) GetCrcString() string
func (*MacipACLAddReplaceReply) GetMessageName ¶
func (*MacipACLAddReplaceReply) GetMessageName() string
func (*MacipACLAddReplaceReply) GetMessageType ¶
func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType
func (*MacipACLAddReplaceReply) Reset ¶
func (m *MacipACLAddReplaceReply) Reset()
type MacipACLAddReply ¶
MacipACLAddReply represents VPP binary API message 'macip_acl_add_reply'.
func (*MacipACLAddReply) GetCrcString ¶
func (*MacipACLAddReply) GetCrcString() string
func (*MacipACLAddReply) GetMessageName ¶
func (*MacipACLAddReply) GetMessageName() string
func (*MacipACLAddReply) GetMessageType ¶
func (*MacipACLAddReply) GetMessageType() api.MessageType
func (*MacipACLAddReply) Reset ¶
func (m *MacipACLAddReply) Reset()
type MacipACLDel ¶
type MacipACLDel struct {
ACLIndex uint32
}
MacipACLDel represents VPP binary API message 'macip_acl_del'.
func (*MacipACLDel) GetCrcString ¶
func (*MacipACLDel) GetCrcString() string
func (*MacipACLDel) GetMessageName ¶
func (*MacipACLDel) GetMessageName() string
func (*MacipACLDel) GetMessageType ¶
func (*MacipACLDel) GetMessageType() api.MessageType
func (*MacipACLDel) Reset ¶
func (m *MacipACLDel) Reset()
type MacipACLDelReply ¶
type MacipACLDelReply struct {
Retval int32
}
MacipACLDelReply represents VPP binary API message 'macip_acl_del_reply'.
func (*MacipACLDelReply) GetCrcString ¶
func (*MacipACLDelReply) GetCrcString() string
func (*MacipACLDelReply) GetMessageName ¶
func (*MacipACLDelReply) GetMessageName() string
func (*MacipACLDelReply) GetMessageType ¶
func (*MacipACLDelReply) GetMessageType() api.MessageType
func (*MacipACLDelReply) Reset ¶
func (m *MacipACLDelReply) Reset()
type MacipACLDetails ¶
type MacipACLDetails struct { ACLIndex uint32 Tag string `struc:"[64]byte"` Count uint32 `struc:"sizeof=R"` R []MacipACLRule }
MacipACLDetails represents VPP binary API message 'macip_acl_details'.
func (*MacipACLDetails) GetCrcString ¶
func (*MacipACLDetails) GetCrcString() string
func (*MacipACLDetails) GetMessageName ¶
func (*MacipACLDetails) GetMessageName() string
func (*MacipACLDetails) GetMessageType ¶
func (*MacipACLDetails) GetMessageType() api.MessageType
func (*MacipACLDetails) Reset ¶
func (m *MacipACLDetails) Reset()
type MacipACLDump ¶
type MacipACLDump struct {
ACLIndex uint32
}
MacipACLDump represents VPP binary API message 'macip_acl_dump'.
func (*MacipACLDump) GetCrcString ¶
func (*MacipACLDump) GetCrcString() string
func (*MacipACLDump) GetMessageName ¶
func (*MacipACLDump) GetMessageName() string
func (*MacipACLDump) GetMessageType ¶
func (*MacipACLDump) GetMessageType() api.MessageType
func (*MacipACLDump) Reset ¶
func (m *MacipACLDump) Reset()
type MacipACLInterfaceAddDel ¶
type MacipACLInterfaceAddDel struct { IsAdd bool SwIfIndex InterfaceIndex ACLIndex uint32 }
MacipACLInterfaceAddDel represents VPP binary API message 'macip_acl_interface_add_del'.
func (*MacipACLInterfaceAddDel) GetCrcString ¶
func (*MacipACLInterfaceAddDel) GetCrcString() string
func (*MacipACLInterfaceAddDel) GetMessageName ¶
func (*MacipACLInterfaceAddDel) GetMessageName() string
func (*MacipACLInterfaceAddDel) GetMessageType ¶
func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType
func (*MacipACLInterfaceAddDel) Reset ¶
func (m *MacipACLInterfaceAddDel) Reset()
type MacipACLInterfaceAddDelReply ¶
type MacipACLInterfaceAddDelReply struct {
Retval int32
}
MacipACLInterfaceAddDelReply represents VPP binary API message 'macip_acl_interface_add_del_reply'.
func (*MacipACLInterfaceAddDelReply) GetCrcString ¶
func (*MacipACLInterfaceAddDelReply) GetCrcString() string
func (*MacipACLInterfaceAddDelReply) GetMessageName ¶
func (*MacipACLInterfaceAddDelReply) GetMessageName() string
func (*MacipACLInterfaceAddDelReply) GetMessageType ¶
func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType
func (*MacipACLInterfaceAddDelReply) Reset ¶
func (m *MacipACLInterfaceAddDelReply) Reset()
type MacipACLInterfaceGet ¶
type MacipACLInterfaceGet struct{}
MacipACLInterfaceGet represents VPP binary API message 'macip_acl_interface_get'.
func (*MacipACLInterfaceGet) GetCrcString ¶
func (*MacipACLInterfaceGet) GetCrcString() string
func (*MacipACLInterfaceGet) GetMessageName ¶
func (*MacipACLInterfaceGet) GetMessageName() string
func (*MacipACLInterfaceGet) GetMessageType ¶
func (*MacipACLInterfaceGet) GetMessageType() api.MessageType
func (*MacipACLInterfaceGet) Reset ¶
func (m *MacipACLInterfaceGet) Reset()
type MacipACLInterfaceGetReply ¶
MacipACLInterfaceGetReply represents VPP binary API message 'macip_acl_interface_get_reply'.
func (*MacipACLInterfaceGetReply) GetCrcString ¶
func (*MacipACLInterfaceGetReply) GetCrcString() string
func (*MacipACLInterfaceGetReply) GetMessageName ¶
func (*MacipACLInterfaceGetReply) GetMessageName() string
func (*MacipACLInterfaceGetReply) GetMessageType ¶
func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType
func (*MacipACLInterfaceGetReply) Reset ¶
func (m *MacipACLInterfaceGetReply) Reset()
type MacipACLInterfaceListDetails ¶
type MacipACLInterfaceListDetails struct { SwIfIndex InterfaceIndex Count uint8 `struc:"sizeof=Acls"` Acls []uint32 }
MacipACLInterfaceListDetails represents VPP binary API message 'macip_acl_interface_list_details'.
func (*MacipACLInterfaceListDetails) GetCrcString ¶
func (*MacipACLInterfaceListDetails) GetCrcString() string
func (*MacipACLInterfaceListDetails) GetMessageName ¶
func (*MacipACLInterfaceListDetails) GetMessageName() string
func (*MacipACLInterfaceListDetails) GetMessageType ¶
func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType
func (*MacipACLInterfaceListDetails) Reset ¶
func (m *MacipACLInterfaceListDetails) Reset()
type MacipACLInterfaceListDump ¶
type MacipACLInterfaceListDump struct {
SwIfIndex InterfaceIndex
}
MacipACLInterfaceListDump represents VPP binary API message 'macip_acl_interface_list_dump'.
func (*MacipACLInterfaceListDump) GetCrcString ¶
func (*MacipACLInterfaceListDump) GetCrcString() string
func (*MacipACLInterfaceListDump) GetMessageName ¶
func (*MacipACLInterfaceListDump) GetMessageName() string
func (*MacipACLInterfaceListDump) GetMessageType ¶
func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType
func (*MacipACLInterfaceListDump) Reset ¶
func (m *MacipACLInterfaceListDump) Reset()
type MacipACLRule ¶
type MacipACLRule struct { IsPermit ACLAction SrcMac MacAddress SrcMacMask MacAddress SrcPrefix Prefix }
MacipACLRule represents VPP binary API type 'macip_acl_rule'.
func (*MacipACLRule) GetTypeName ¶
func (*MacipACLRule) GetTypeName() string
type Mprefix ¶
type Mprefix struct { Af AddressFamily GrpAddressLength uint16 GrpAddress AddressUnion SrcAddress AddressUnion }
Mprefix represents VPP binary API type 'mprefix'.
func (*Mprefix) GetTypeName ¶
type PrefixMatcher ¶
PrefixMatcher represents VPP binary API type 'prefix_matcher'.
func (*PrefixMatcher) GetTypeName ¶
func (*PrefixMatcher) GetTypeName() string
type RPCService ¶
type RPCService interface { DumpACL(ctx context.Context, in *ACLDump) (RPCService_DumpACLClient, error) DumpACLInterfaceEtypeWhitelist(ctx context.Context, in *ACLInterfaceEtypeWhitelistDump) (RPCService_DumpACLInterfaceEtypeWhitelistClient, error) DumpACLInterfaceList(ctx context.Context, in *ACLInterfaceListDump) (RPCService_DumpACLInterfaceListClient, error) DumpMacipACL(ctx context.Context, in *MacipACLDump) (RPCService_DumpMacipACLClient, error) DumpMacipACLInterfaceList(ctx context.Context, in *MacipACLInterfaceListDump) (RPCService_DumpMacipACLInterfaceListClient, error) ACLAddReplace(ctx context.Context, in *ACLAddReplace) (*ACLAddReplaceReply, error) ACLDel(ctx context.Context, in *ACLDel) (*ACLDelReply, error) ACLInterfaceAddDel(ctx context.Context, in *ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error) ACLInterfaceSetACLList(ctx context.Context, in *ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error) ACLInterfaceSetEtypeWhitelist(ctx context.Context, in *ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error) ACLPluginControlPing(ctx context.Context, in *ACLPluginControlPing) (*ACLPluginControlPingReply, error) ACLPluginGetConnTableMaxEntries(ctx context.Context, in *ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error) ACLPluginGetVersion(ctx context.Context, in *ACLPluginGetVersion) (*ACLPluginGetVersionReply, error) ACLStatsIntfCountersEnable(ctx context.Context, in *ACLStatsIntfCountersEnable) (*ACLStatsIntfCountersEnableReply, error) MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error) MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error) MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error) MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error) MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error) }
RPCService represents RPC service API for acl module.
func NewServiceClient ¶
func NewServiceClient(ch api.Channel) RPCService
type RPCService_DumpACLClient ¶
type RPCService_DumpACLClient interface {
Recv() (*ACLDetails, error)
}
type RPCService_DumpACLInterfaceEtypeWhitelistClient ¶
type RPCService_DumpACLInterfaceEtypeWhitelistClient interface {
Recv() (*ACLInterfaceEtypeWhitelistDetails, error)
}
type RPCService_DumpACLInterfaceListClient ¶
type RPCService_DumpACLInterfaceListClient interface {
Recv() (*ACLInterfaceListDetails, error)
}
type RPCService_DumpMacipACLClient ¶
type RPCService_DumpMacipACLClient interface {
Recv() (*MacipACLDetails, error)
}
type RPCService_DumpMacipACLInterfaceListClient ¶
type RPCService_DumpMacipACLInterfaceListClient interface {
Recv() (*MacipACLInterfaceListDetails, 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