summaryrefslogtreecommitdiffstats
path: root/examples/bin_api
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2019-06-06 14:08:48 +0200
committerOndrej Fabry <ofabry@cisco.com>2019-06-06 14:08:48 +0200
commitc4522fe10317b1729a0820dc880afc78c663f64d (patch)
tree3c370f285b3d00feb5857ca155f7e46ae8765f7f /examples/bin_api
parent0ff02b6b1f0757f5e4c011457757bd18d0a60f01 (diff)
Add various generator improvements
- generate service implementation for modules - generate conversion maps and String() method for enums - generate module name and version as constants - rename Union_data field to XXX_UnionData for consistency - generate constant GoVppAPIPackageIsVersionN for checking compatibility with API - add example for using service clients - add some documentation to socketclient adapter - cleanup gen.go file used for generating binapi - regenerate binapi with latest VPP release (19.04.1) - change global variables Messages into a function AllMessages Change-Id: Id1ef97764570759eaa3e5a4dc14ecda7a168ee39 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'examples/bin_api')
-rw-r--r--examples/bin_api/VPP_VERSION1
-rw-r--r--examples/bin_api/acl.api.json1055
-rw-r--r--examples/bin_api/acl/acl.ba.go738
-rw-r--r--examples/bin_api/af_packet.api.json204
-rw-r--r--examples/bin_api/af_packet/af_packet.ba.go175
-rw-r--r--examples/bin_api/gen.go4
-rw-r--r--examples/bin_api/interface.api.json1467
-rw-r--r--examples/bin_api/interfaces/interfaces.ba.go1014
-rw-r--r--examples/bin_api/ip.api.json3122
-rw-r--r--examples/bin_api/ip/ip.ba.go2055
-rw-r--r--examples/bin_api/map.api.json1022
-rw-r--r--examples/bin_api/maps/maps.ba.go778
-rw-r--r--examples/bin_api/memclnt.api.json598
-rw-r--r--examples/bin_api/memclnt/memclnt.ba.go470
-rw-r--r--examples/bin_api/memif.api.json318
-rw-r--r--examples/bin_api/memif/memif.ba.go226
-rw-r--r--examples/bin_api/tap.api.json264
-rw-r--r--examples/bin_api/tap/tap.ba.go189
-rw-r--r--examples/bin_api/vpe.api.json490
-rw-r--r--examples/bin_api/vpe/vpe.ba.go382
20 files changed, 0 insertions, 14572 deletions
diff --git a/examples/bin_api/VPP_VERSION b/examples/bin_api/VPP_VERSION
deleted file mode 100644
index fd1330c..0000000
--- a/examples/bin_api/VPP_VERSION
+++ /dev/null
@@ -1 +0,0 @@
-v19.01-2-gcd56f69af
diff --git a/examples/bin_api/acl.api.json b/examples/bin_api/acl.api.json
deleted file mode 100644
index 1aa8285..0000000
--- a/examples/bin_api/acl.api.json
+++ /dev/null
@@ -1,1055 +0,0 @@
-{
- "messages": [
- [
- "acl_plugin_get_version",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "acl_plugin_get_version_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "major"
- ],
- [
- "u32",
- "minor"
- ],
- {
- "crc": "0x9b32cf86"
- }
- ],
- [
- "acl_plugin_control_ping",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "acl_plugin_control_ping_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "vpe_pid"
- ],
- {
- "crc": "0xf6b0b8ca"
- }
- ],
- [
- "acl_plugin_get_conn_table_max_entries",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "acl_plugin_get_conn_table_max_entries_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u64",
- "conn_table_max_entries"
- ],
- {
- "crc": "0x7a096d3d"
- }
- ],
- [
- "acl_add_replace",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- [
- "u8",
- "tag",
- 64
- ],
- [
- "u32",
- "count"
- ],
- [
- "vl_api_acl_rule_t",
- "r",
- 0,
- "count"
- ],
- {
- "crc": "0xe839997e"
- }
- ],
- [
- "acl_add_replace_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xac407b0c"
- }
- ],
- [
- "acl_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- {
- "crc": "0xef34fea4"
- }
- ],
- [
- "acl_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "acl_interface_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u8",
- "is_input"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "acl_index"
- ],
- {
- "crc": "0x0b2aedd1"
- }
- ],
- [
- "acl_interface_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "acl_interface_set_acl_list",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "count"
- ],
- [
- "u8",
- "n_input"
- ],
- [
- "u32",
- "acls",
- 0,
- "count"
- ],
- {
- "crc": "0x8baece38"
- }
- ],
- [
- "acl_interface_set_acl_list_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "acl_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- {
- "crc": "0xef34fea4"
- }
- ],
- [
- "acl_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- [
- "u8",
- "tag",
- 64
- ],
- [
- "u32",
- "count"
- ],
- [
- "vl_api_acl_rule_t",
- "r",
- 0,
- "count"
- ],
- {
- "crc": "0x5bd895be"
- }
- ],
- [
- "acl_interface_list_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "acl_interface_list_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "count"
- ],
- [
- "u8",
- "n_input"
- ],
- [
- "u32",
- "acls",
- 0,
- "count"
- ],
- {
- "crc": "0xd5e80809"
- }
- ],
- [
- "macip_acl_add",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "tag",
- 64
- ],
- [
- "u32",
- "count"
- ],
- [
- "vl_api_macip_acl_rule_t",
- "r",
- 0,
- "count"
- ],
- {
- "crc": "0xb3d3d65a"
- }
- ],
- [
- "macip_acl_add_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xac407b0c"
- }
- ],
- [
- "macip_acl_add_replace",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- [
- "u8",
- "tag",
- 64
- ],
- [
- "u32",
- "count"
- ],
- [
- "vl_api_macip_acl_rule_t",
- "r",
- 0,
- "count"
- ],
- {
- "crc": "0xa0e8c01b"
- }
- ],
- [
- "macip_acl_add_replace_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xac407b0c"
- }
- ],
- [
- "macip_acl_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- {
- "crc": "0xef34fea4"
- }
- ],
- [
- "macip_acl_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "macip_acl_interface_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "acl_index"
- ],
- {
- "crc": "0x6a6be97c"
- }
- ],
- [
- "macip_acl_interface_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "macip_acl_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- {
- "crc": "0xef34fea4"
- }
- ],
- [
- "macip_acl_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "acl_index"
- ],
- [
- "u8",
- "tag",
- 64
- ],
- [
- "u32",
- "count"
- ],
- [
- "vl_api_macip_acl_rule_t",
- "r",
- 0,
- "count"
- ],
- {
- "crc": "0xdd2b55ba"
- }
- ],
- [
- "macip_acl_interface_get",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "macip_acl_interface_get_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "count"
- ],
- [
- "u32",
- "acls",
- 0,
- "count"
- ],
- {
- "crc": "0xaccf9b05"
- }
- ],
- [
- "macip_acl_interface_list_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "macip_acl_interface_list_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "count"
- ],
- [
- "u32",
- "acls",
- 0,
- "count"
- ],
- {
- "crc": "0x29783fa0"
- }
- ],
- [
- "acl_interface_set_etype_whitelist",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "count"
- ],
- [
- "u8",
- "n_input"
- ],
- [
- "u16",
- "whitelist",
- 0,
- "count"
- ],
- {
- "crc": "0xf515efc5"
- }
- ],
- [
- "acl_interface_set_etype_whitelist_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "acl_interface_etype_whitelist_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "acl_interface_etype_whitelist_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "count"
- ],
- [
- "u8",
- "n_input"
- ],
- [
- "u16",
- "whitelist",
- 0,
- "count"
- ],
- {
- "crc": "0x6a5d4e81"
- }
- ]
- ],
- "vl_api_version": "0x8ed22cb9",
- "unions": [],
- "services": {
- "acl_plugin_get_version": {
- "reply": "acl_plugin_get_version_reply"
- },
- "acl_dump": {
- "reply": "acl_details",
- "stream": true
- },
- "acl_interface_add_del": {
- "reply": "acl_interface_add_del_reply"
- },
- "acl_del": {
- "reply": "acl_del_reply"
- },
- "macip_acl_del": {
- "reply": "macip_acl_del_reply"
- },
- "acl_plugin_control_ping": {
- "reply": "acl_plugin_control_ping_reply"
- },
- "macip_acl_interface_get": {
- "reply": "macip_acl_interface_get_reply"
- },
- "acl_interface_etype_whitelist_dump": {
- "reply": "acl_interface_etype_whitelist_details",
- "stream": true
- },
- "macip_acl_interface_add_del": {
- "reply": "macip_acl_interface_add_del_reply"
- },
- "acl_add_replace": {
- "reply": "acl_add_replace_reply"
- },
- "acl_plugin_get_conn_table_max_entries": {
- "reply": "acl_plugin_get_conn_table_max_entries_reply"
- },
- "acl_interface_list_dump": {
- "reply": "acl_interface_list_details",
- "stream": true
- },
- "acl_interface_set_acl_list": {
- "reply": "acl_interface_set_acl_list_reply"
- },
- "macip_acl_add": {
- "reply": "macip_acl_add_reply"
- },
- "acl_interface_set_etype_whitelist": {
- "reply": "acl_interface_set_etype_whitelist_reply"
- },
- "macip_acl_add_replace": {
- "reply": "macip_acl_add_replace_reply"
- },
- "macip_acl_dump": {
- "reply": "macip_acl_details",
- "stream": true
- },
- "macip_acl_interface_list_dump": {
- "reply": "macip_acl_interface_list_details",
- "stream": true
- }
- },
- "enums": [],
- "types": [
- [
- "acl_rule",
- [
- "u8",
- "is_permit"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "src_ip_addr",
- 16
- ],
- [
- "u8",
- "src_ip_prefix_len"
- ],
- [
- "u8",
- "dst_ip_addr",
- 16
- ],
- [
- "u8",
- "dst_ip_prefix_len"
- ],
- [
- "u8",
- "proto"
- ],
- [
- "u16",
- "srcport_or_icmptype_first"
- ],
- [
- "u16",
- "srcport_or_icmptype_last"
- ],
- [
- "u16",
- "dstport_or_icmpcode_first"
- ],
- [
- "u16",
- "dstport_or_icmpcode_last"
- ],
- [
- "u8",
- "tcp_flags_mask"
- ],
- [
- "u8",
- "tcp_flags_value"
- ],
- {
- "crc": "0x6f99bf4d"
- }
- ],
- [
- "macip_acl_rule",
- [
- "u8",
- "is_permit"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "src_mac",
- 6
- ],
- [
- "u8",
- "src_mac_mask",
- 6
- ],
- [
- "u8",
- "src_ip_addr",
- 16
- ],
- [
- "u8",
- "src_ip_prefix_len"
- ],
- {
- "crc": "0x70589f1e"
- }
- ]
- ],
- "aliases": {}
-}
diff --git a/examples/bin_api/acl/acl.ba.go b/examples/bin_api/acl/acl.ba.go
deleted file mode 100644
index 54fe26d..0000000
--- a/examples/bin_api/acl/acl.ba.go
+++ /dev/null
@@ -1,738 +0,0 @@
-// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: acl.api.json
-
-/*
- Package acl is a generated from VPP binary API module 'acl'.
-
- It contains following objects:
- 18 services
- 2 types
- 36 messages
-*/
-package acl
-
-import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
-import bytes "bytes"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = api.RegisterMessage
-var _ = struc.Pack
-var _ = bytes.NewBuffer
-
-// Services represents VPP binary API services:
-type Services interface {
- DumpACL(*ACLDump) ([]*ACLDetails, error)
- DumpACLInterfaceEtypeWhitelist(*ACLInterfaceEtypeWhitelistDump) ([]*ACLInterfaceEtypeWhitelistDetails, error)
- DumpACLInterfaceList(*ACLInterfaceListDump) ([]*ACLInterfaceListDetails, error)
- DumpMacipACL(*MacipACLDump) ([]*MacipACLDetails, error)
- DumpMacipACLInterfaceList(*MacipACLInterfaceListDump) ([]*MacipACLInterfaceListDetails, error)
- ACLAddReplace(*ACLAddReplace) (*ACLAddReplaceReply, error)
- ACLDel(*ACLDel) (*ACLDelReply, error)
- ACLInterfaceAddDel(*ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error)
- ACLInterfaceSetACLList(*ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error)
- ACLInterfaceSetEtypeWhitelist(*ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error)
- ACLPluginControlPing(*ACLPluginControlPing) (*ACLPluginControlPingReply, error)
- ACLPluginGetConnTableMaxEntries(*ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error)
- ACLPluginGetVersion(*ACLPluginGetVersion) (*ACLPluginGetVersionReply, error)
- MacipACLAdd(*MacipACLAdd) (*MacipACLAddReply, error)
- MacipACLAddReplace(*MacipACLAddReplace) (*MacipACLAddReplaceReply, error)
- MacipACLDel(*MacipACLDel) (*MacipACLDelReply, error)
- MacipACLInterfaceAddDel(*MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error)
- MacipACLInterfaceGet(*MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error)
-}
-
-/* Types */
-
-// ACLRule represents VPP binary API type 'acl_rule':
-type ACLRule struct {
- IsPermit uint8
- IsIPv6 uint8
- SrcIPAddr []byte `struc:"[16]byte"`
- SrcIPPrefixLen uint8
- DstIPAddr []byte `struc:"[16]byte"`
- DstIPPrefixLen uint8
- Proto uint8
- SrcportOrIcmptypeFirst uint16
- SrcportOrIcmptypeLast uint16
- DstportOrIcmpcodeFirst uint16
- DstportOrIcmpcodeLast uint16
- TCPFlagsMask uint8
- TCPFlagsValue uint8
-}
-
-func (*ACLRule) GetTypeName() string {
- return "acl_rule"
-}
-func (*ACLRule) GetCrcString() string {
- return "6f99bf4d"
-}
-
-// MacipACLRule represents VPP binary API type 'macip_acl_rule':
-type MacipACLRule struct {
- IsPermit uint8
- IsIPv6 uint8
- SrcMac []byte `struc:"[6]byte"`
- SrcMacMask []byte `struc:"[6]byte"`
- SrcIPAddr []byte `struc:"[16]byte"`
- SrcIPPrefixLen uint8
-}
-
-func (*MacipACLRule) GetTypeName() string {
- return "macip_acl_rule"
-}
-func (*MacipACLRule) GetCrcString() string {
- return "70589f1e"
-}
-
-/* Messages */
-
-// ACLAddReplace represents VPP binary API message 'acl_add_replace':
-type ACLAddReplace struct {
- ACLIndex uint32
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []ACLRule
-}
-
-func (*ACLAddReplace) GetMessageName() string {
- return "acl_add_replace"
-}
-func (*ACLAddReplace) GetCrcString() string {
- return "e839997e"
-}
-func (*ACLAddReplace) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLAddReplaceReply represents VPP binary API message 'acl_add_replace_reply':
-type ACLAddReplaceReply struct {
- ACLIndex uint32
- Retval int32
-}
-
-func (*ACLAddReplaceReply) GetMessageName() string {
- return "acl_add_replace_reply"
-}
-func (*ACLAddReplaceReply) GetCrcString() string {
- return "ac407b0c"
-}
-func (*ACLAddReplaceReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLDel represents VPP binary API message 'acl_del':
-type ACLDel struct {
- ACLIndex uint32
-}
-
-func (*ACLDel) GetMessageName() string {
- return "acl_del"
-}
-func (*ACLDel) GetCrcString() string {
- return "ef34fea4"
-}
-func (*ACLDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLDelReply represents VPP binary API message 'acl_del_reply':
-type ACLDelReply struct {
- Retval int32
-}
-
-func (*ACLDelReply) GetMessageName() string {
- return "acl_del_reply"
-}
-func (*ACLDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*ACLDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLDetails represents VPP binary API message 'acl_details':
-type ACLDetails struct {
- ACLIndex uint32
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []ACLRule
-}
-
-func (*ACLDetails) GetMessageName() string {
- return "acl_details"
-}
-func (*ACLDetails) GetCrcString() string {
- return "5bd895be"
-}
-func (*ACLDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLDump represents VPP binary API message 'acl_dump':
-type ACLDump struct {
- ACLIndex uint32
-}
-
-func (*ACLDump) GetMessageName() string {
- return "acl_dump"
-}
-func (*ACLDump) GetCrcString() string {
- return "ef34fea4"
-}
-func (*ACLDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLInterfaceAddDel represents VPP binary API message 'acl_interface_add_del':
-type ACLInterfaceAddDel struct {
- IsAdd uint8
- IsInput uint8
- SwIfIndex uint32
- ACLIndex uint32
-}
-
-func (*ACLInterfaceAddDel) GetMessageName() string {
- return "acl_interface_add_del"
-}
-func (*ACLInterfaceAddDel) GetCrcString() string {
- return "0b2aedd1"
-}
-func (*ACLInterfaceAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLInterfaceAddDelReply represents VPP binary API message 'acl_interface_add_del_reply':
-type ACLInterfaceAddDelReply struct {
- Retval int32
-}
-
-func (*ACLInterfaceAddDelReply) GetMessageName() string {
- return "acl_interface_add_del_reply"
-}
-func (*ACLInterfaceAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLInterfaceEtypeWhitelistDetails represents VPP binary API message 'acl_interface_etype_whitelist_details':
-type ACLInterfaceEtypeWhitelistDetails struct {
- SwIfIndex uint32
- Count uint8 `struc:"sizeof=Whitelist"`
- NInput uint8
- Whitelist []uint16
-}
-
-func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string {
- return "acl_interface_etype_whitelist_details"
-}
-func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string {
- return "6a5d4e81"
-}
-func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLInterfaceEtypeWhitelistDump represents VPP binary API message 'acl_interface_etype_whitelist_dump':
-type ACLInterfaceEtypeWhitelistDump struct {
- SwIfIndex uint32
-}
-
-func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string {
- return "acl_interface_etype_whitelist_dump"
-}
-func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string {
- return "529cb13f"
-}
-func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLInterfaceListDetails represents VPP binary API message 'acl_interface_list_details':
-type ACLInterfaceListDetails struct {
- SwIfIndex uint32
- Count uint8 `struc:"sizeof=Acls"`
- NInput uint8
- Acls []uint32
-}
-
-func (*ACLInterfaceListDetails) GetMessageName() string {
- return "acl_interface_list_details"
-}
-func (*ACLInterfaceListDetails) GetCrcString() string {
- return "d5e80809"
-}
-func (*ACLInterfaceListDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLInterfaceListDump represents VPP binary API message 'acl_interface_list_dump':
-type ACLInterfaceListDump struct {
- SwIfIndex uint32
-}
-
-func (*ACLInterfaceListDump) GetMessageName() string {
- return "acl_interface_list_dump"
-}
-func (*ACLInterfaceListDump) GetCrcString() string {
- return "529cb13f"
-}
-func (*ACLInterfaceListDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLInterfaceSetACLList represents VPP binary API message 'acl_interface_set_acl_list':
-type ACLInterfaceSetACLList struct {
- SwIfIndex uint32
- Count uint8 `struc:"sizeof=Acls"`
- NInput uint8
- Acls []uint32
-}
-
-func (*ACLInterfaceSetACLList) GetMessageName() string {
- return "acl_interface_set_acl_list"
-}
-func (*ACLInterfaceSetACLList) GetCrcString() string {
- return "8baece38"
-}
-func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLInterfaceSetACLListReply represents VPP binary API message 'acl_interface_set_acl_list_reply':
-type ACLInterfaceSetACLListReply struct {
- Retval int32
-}
-
-func (*ACLInterfaceSetACLListReply) GetMessageName() string {
- return "acl_interface_set_acl_list_reply"
-}
-func (*ACLInterfaceSetACLListReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLInterfaceSetEtypeWhitelist represents VPP binary API message 'acl_interface_set_etype_whitelist':
-type ACLInterfaceSetEtypeWhitelist struct {
- SwIfIndex uint32
- Count uint8 `struc:"sizeof=Whitelist"`
- NInput uint8
- Whitelist []uint16
-}
-
-func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string {
- return "acl_interface_set_etype_whitelist"
-}
-func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string {
- return "f515efc5"
-}
-func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLInterfaceSetEtypeWhitelistReply represents VPP binary API message 'acl_interface_set_etype_whitelist_reply':
-type ACLInterfaceSetEtypeWhitelistReply struct {
- Retval int32
-}
-
-func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string {
- return "acl_interface_set_etype_whitelist_reply"
-}
-func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLPluginControlPing represents VPP binary API message 'acl_plugin_control_ping':
-type ACLPluginControlPing struct{}
-
-func (*ACLPluginControlPing) GetMessageName() string {
- return "acl_plugin_control_ping"
-}
-func (*ACLPluginControlPing) GetCrcString() string {
- return "51077d14"
-}
-func (*ACLPluginControlPing) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLPluginControlPingReply represents VPP binary API message 'acl_plugin_control_ping_reply':
-type ACLPluginControlPingReply struct {
- Retval int32
- ClientIndex uint32
- VpePID uint32
-}
-
-func (*ACLPluginControlPingReply) GetMessageName() string {
- return "acl_plugin_control_ping_reply"
-}
-func (*ACLPluginControlPingReply) GetCrcString() string {
- return "f6b0b8ca"
-}
-func (*ACLPluginControlPingReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLPluginGetConnTableMaxEntries represents VPP binary API message 'acl_plugin_get_conn_table_max_entries':
-type ACLPluginGetConnTableMaxEntries struct{}
-
-func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string {
- return "acl_plugin_get_conn_table_max_entries"
-}
-func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string {
- return "51077d14"
-}
-func (*ACLPluginGetConnTableMaxEntries) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLPluginGetConnTableMaxEntriesReply represents VPP binary API message 'acl_plugin_get_conn_table_max_entries_reply':
-type ACLPluginGetConnTableMaxEntriesReply struct {
- ConnTableMaxEntries uint64
-}
-
-func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string {
- return "acl_plugin_get_conn_table_max_entries_reply"
-}
-func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString() string {
- return "7a096d3d"
-}
-func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ACLPluginGetVersion represents VPP binary API message 'acl_plugin_get_version':
-type ACLPluginGetVersion struct{}
-
-func (*ACLPluginGetVersion) GetMessageName() string {
- return "acl_plugin_get_version"
-}
-func (*ACLPluginGetVersion) GetCrcString() string {
- return "51077d14"
-}
-func (*ACLPluginGetVersion) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ACLPluginGetVersionReply represents VPP binary API message 'acl_plugin_get_version_reply':
-type ACLPluginGetVersionReply struct {
- Major uint32
- Minor uint32
-}
-
-func (*ACLPluginGetVersionReply) GetMessageName() string {
- return "acl_plugin_get_version_reply"
-}
-func (*ACLPluginGetVersionReply) GetCrcString() string {
- return "9b32cf86"
-}
-func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MacipACLAdd represents VPP binary API message 'macip_acl_add':
-type MacipACLAdd struct {
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []MacipACLRule
-}
-
-func (*MacipACLAdd) GetMessageName() string {
- return "macip_acl_add"
-}
-func (*MacipACLAdd) GetCrcString() string {
- return "b3d3d65a"
-}
-func (*MacipACLAdd) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MacipACLAddReplace represents VPP binary API message 'macip_acl_add_replace':
-type MacipACLAddReplace struct {
- ACLIndex uint32
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []MacipACLRule
-}
-
-func (*MacipACLAddReplace) GetMessageName() string {
- return "macip_acl_add_replace"
-}
-func (*MacipACLAddReplace) GetCrcString() string {
- return "a0e8c01b"
-}
-func (*MacipACLAddReplace) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MacipACLAddReplaceReply represents VPP binary API message 'macip_acl_add_replace_reply':
-type MacipACLAddReplaceReply struct {
- ACLIndex uint32
- Retval int32
-}
-
-func (*MacipACLAddReplaceReply) GetMessageName() string {
- return "macip_acl_add_replace_reply"
-}
-func (*MacipACLAddReplaceReply) GetCrcString() string {
- return "ac407b0c"
-}
-func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MacipACLAddReply represents VPP binary API message 'macip_acl_add_reply':
-type MacipACLAddReply struct {
- ACLIndex uint32
- Retval int32
-}
-
-func (*MacipACLAddReply) GetMessageName() string {
- return "macip_acl_add_reply"
-}
-func (*MacipACLAddReply) GetCrcString() string {
- return "ac407b0c"
-}
-func (*MacipACLAddReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MacipACLDel represents VPP binary API message 'macip_acl_del':
-type MacipACLDel struct {
- ACLIndex uint32
-}
-
-func (*MacipACLDel) GetMessageName() string {
- return "macip_acl_del"
-}
-func (*MacipACLDel) GetCrcString() string {
- return "ef34fea4"
-}
-func (*MacipACLDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MacipACLDelReply represents VPP binary API message 'macip_acl_del_reply':
-type MacipACLDelReply struct {
- Retval int32
-}
-
-func (*MacipACLDelReply) GetMessageName() string {
- return "macip_acl_del_reply"
-}
-func (*MacipACLDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MacipACLDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MacipACLDetails represents VPP binary API message 'macip_acl_details':
-type MacipACLDetails struct {
- ACLIndex uint32
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []MacipACLRule
-}
-
-func (*MacipACLDetails) GetMessageName() string {
- return "macip_acl_details"
-}
-func (*MacipACLDetails) GetCrcString() string {
- return "dd2b55ba"
-}
-func (*MacipACLDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MacipACLDump represents VPP binary API message 'macip_acl_dump':
-type MacipACLDump struct {
- ACLIndex uint32
-}
-
-func (*MacipACLDump) GetMessageName() string {
- return "macip_acl_dump"
-}
-func (*MacipACLDump) GetCrcString() string {
- return "ef34fea4"
-}
-func (*MacipACLDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MacipACLInterfaceAddDel represents VPP binary API message 'macip_acl_interface_add_del':
-type MacipACLInterfaceAddDel struct {
- IsAdd uint8
- SwIfIndex uint32
- ACLIndex uint32
-}
-
-func (*MacipACLInterfaceAddDel) GetMessageName() string {
- return "macip_acl_interface_add_del"
-}
-func (*MacipACLInterfaceAddDel) GetCrcString() string {
- return "6a6be97c"
-}
-func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MacipACLInterfaceAddDelReply represents VPP binary API message 'macip_acl_interface_add_del_reply':
-type MacipACLInterfaceAddDelReply struct {
- Retval int32
-}
-
-func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
- return "macip_acl_interface_add_del_reply"
-}
-func (*MacipACLInterfaceAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MacipACLInterfaceGet represents VPP binary API message 'macip_acl_interface_get':
-type MacipACLInterfaceGet struct{}
-
-func (*MacipACLInterfaceGet) GetMessageName() string {
- return "macip_acl_interface_get"
-}
-func (*MacipACLInterfaceGet) GetCrcString() string {
- return "51077d14"
-}
-func (*MacipACLInterfaceGet) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MacipACLInterfaceGetReply represents VPP binary API message 'macip_acl_interface_get_reply':
-type MacipACLInterfaceGetReply struct {
- Count uint32 `struc:"sizeof=Acls"`
- Acls []uint32
-}
-
-func (*MacipACLInterfaceGetReply) GetMessageName() string {
- return "macip_acl_interface_get_reply"
-}
-func (*MacipACLInterfaceGetReply) GetCrcString() string {
- return "accf9b05"
-}
-func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MacipACLInterfaceListDetails represents VPP binary API message 'macip_acl_interface_list_details':
-type MacipACLInterfaceListDetails struct {
- SwIfIndex uint32
- Count uint8 `struc:"sizeof=Acls"`
- Acls []uint32
-}
-
-func (*MacipACLInterfaceListDetails) GetMessageName() string {
- return "macip_acl_interface_list_details"
-}
-func (*MacipACLInterfaceListDetails) GetCrcString() string {
- return "29783fa0"
-}
-func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MacipACLInterfaceListDump represents VPP binary API message 'macip_acl_interface_list_dump':
-type MacipACLInterfaceListDump struct {
- SwIfIndex uint32
-}
-
-func (*MacipACLInterfaceListDump) GetMessageName() string {
- return "macip_acl_interface_list_dump"
-}
-func (*MacipACLInterfaceListDump) GetCrcString() string {
- return "529cb13f"
-}
-func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-func init() {
- api.RegisterMessage((*ACLAddReplace)(nil), "acl.ACLAddReplace")
- api.RegisterMessage((*ACLAddReplaceReply)(nil), "acl.ACLAddReplaceReply")
- api.RegisterMessage((*ACLDel)(nil), "acl.ACLDel")
- api.RegisterMessage((*ACLDelReply)(nil), "acl.ACLDelReply")
- api.RegisterMessage((*ACLDetails)(nil), "acl.ACLDetails")
- api.RegisterMessage((*ACLDump)(nil), "acl.ACLDump")
- api.RegisterMessage((*ACLInterfaceAddDel)(nil), "acl.ACLInterfaceAddDel")
- api.RegisterMessage((*ACLInterfaceAddDelReply)(nil), "acl.ACLInterfaceAddDelReply")
- api.RegisterMessage((*ACLInterfaceEtypeWhitelistDetails)(nil), "acl.ACLInterfaceEtypeWhitelistDetails")
- api.RegisterMessage((*ACLInterfaceEtypeWhitelistDump)(nil), "acl.ACLInterfaceEtypeWhitelistDump")
- api.RegisterMessage((*ACLInterfaceListDetails)(nil), "acl.ACLInterfaceListDetails")
- api.RegisterMessage((*ACLInterfaceListDump)(nil), "acl.ACLInterfaceListDump")
- api.RegisterMessage((*ACLInterfaceSetACLList)(nil), "acl.ACLInterfaceSetACLList")
- api.RegisterMessage((*ACLInterfaceSetACLListReply)(nil), "acl.ACLInterfaceSetACLListReply")
- api.RegisterMessage((*ACLInterfaceSetEtypeWhitelist)(nil), "acl.ACLInterfaceSetEtypeWhitelist")
- api.RegisterMessage((*ACLInterfaceSetEtypeWhitelistReply)(nil), "acl.ACLInterfaceSetEtypeWhitelistReply")
- api.RegisterMessage((*ACLPluginControlPing)(nil), "acl.ACLPluginControlPing")
- api.RegisterMessage((*ACLPluginControlPingReply)(nil), "acl.ACLPluginControlPingReply")
- api.RegisterMessage((*ACLPluginGetConnTableMaxEntries)(nil), "acl.ACLPluginGetConnTableMaxEntries")
- api.RegisterMessage((*ACLPluginGetConnTableMaxEntriesReply)(nil), "acl.ACLPluginGetConnTableMaxEntriesReply")
- api.RegisterMessage((*ACLPluginGetVersion)(nil), "acl.ACLPluginGetVersion")
- api.RegisterMessage((*ACLPluginGetVersionReply)(nil), "acl.ACLPluginGetVersionReply")
- api.RegisterMessage((*MacipACLAdd)(nil), "acl.MacipACLAdd")
- api.RegisterMessage((*MacipACLAddReplace)(nil), "acl.MacipACLAddReplace")
- api.RegisterMessage((*MacipACLAddReplaceReply)(nil), "acl.MacipACLAddReplaceReply")
- api.RegisterMessage((*MacipACLAddReply)(nil), "acl.MacipACLAddReply")
- api.RegisterMessage((*MacipACLDel)(nil), "acl.MacipACLDel")
- api.RegisterMessage((*MacipACLDelReply)(nil), "acl.MacipACLDelReply")
- api.RegisterMessage((*MacipACLDetails)(nil), "acl.MacipACLDetails")
- api.RegisterMessage((*MacipACLDump)(nil), "acl.MacipACLDump")
- api.RegisterMessage((*MacipACLInterfaceAddDel)(nil), "acl.MacipACLInterfaceAddDel")
- api.RegisterMessage((*MacipACLInterfaceAddDelReply)(nil), "acl.MacipACLInterfaceAddDelReply")
- api.RegisterMessage((*MacipACLInterfaceGet)(nil), "acl.MacipACLInterfaceGet")
- api.RegisterMessage((*MacipACLInterfaceGetReply)(nil), "acl.MacipACLInterfaceGetReply")
- api.RegisterMessage((*MacipACLInterfaceListDetails)(nil), "acl.MacipACLInterfaceListDetails")
- api.RegisterMessage((*MacipACLInterfaceListDump)(nil), "acl.MacipACLInterfaceListDump")
-}
-
-var Messages = []api.Message{
- (*ACLAddReplace)(nil),
- (*ACLAddReplaceReply)(nil),
- (*ACLDel)(nil),
- (*ACLDelReply)(nil),
- (*ACLDetails)(nil),
- (*ACLDump)(nil),
- (*ACLInterfaceAddDel)(nil),
- (*ACLInterfaceAddDelReply)(nil),
- (*ACLInterfaceEtypeWhitelistDetails)(nil),
- (*ACLInterfaceEtypeWhitelistDump)(nil),
- (*ACLInterfaceListDetails)(nil),
- (*ACLInterfaceListDump)(nil),
- (*ACLInterfaceSetACLList)(nil),
- (*ACLInterfaceSetACLListReply)(nil),
- (*ACLInterfaceSetEtypeWhitelist)(nil),
- (*ACLInterfaceSetEtypeWhitelistReply)(nil),
- (*ACLPluginControlPing)(nil),
- (*ACLPluginControlPingReply)(nil),
- (*ACLPluginGetConnTableMaxEntries)(nil),
- (*ACLPluginGetConnTableMaxEntriesReply)(nil),
- (*ACLPluginGetVersion)(nil),
- (*ACLPluginGetVersionReply)(nil),
- (*MacipACLAdd)(nil),
- (*MacipACLAddReplace)(nil),
- (*MacipACLAddReplaceReply)(nil),
- (*MacipACLAddReply)(nil),
- (*MacipACLDel)(nil),
- (*MacipACLDelReply)(nil),
- (*MacipACLDetails)(nil),
- (*MacipACLDump)(nil),
- (*MacipACLInterfaceAddDel)(nil),
- (*MacipACLInterfaceAddDelReply)(nil),
- (*MacipACLInterfaceGet)(nil),
- (*MacipACLInterfaceGetReply)(nil),
- (*MacipACLInterfaceListDetails)(nil),
- (*MacipACLInterfaceListDump)(nil),
-}
diff --git a/examples/bin_api/af_packet.api.json b/examples/bin_api/af_packet.api.json
deleted file mode 100644
index 0d57e38..0000000
--- a/examples/bin_api/af_packet.api.json
+++ /dev/null
@@ -1,204 +0,0 @@
-{
- "messages": [
- [
- "af_packet_create",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "host_if_name",
- 64
- ],
- [
- "u8",
- "hw_addr",
- 6
- ],
- [
- "u8",
- "use_random_hw_addr"
- ],
- {
- "crc": "0x6d5d30d6"
- }
- ],
- [
- "af_packet_create_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0xfda5941f"
- }
- ],
- [
- "af_packet_delete",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "host_if_name",
- 64
- ],
- {
- "crc": "0x3efceda3"
- }
- ],
- [
- "af_packet_delete_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "af_packet_set_l4_cksum_offload",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "sw_if_index"
- ],
- [
- "u8",
- "set"
- ],
- {
- "crc": "0x86538585"
- }
- ],
- [
- "af_packet_set_l4_cksum_offload_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "af_packet_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "af_packet_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "host_if_name",
- 64
- ],
- {
- "crc": "0x057205fa"
- }
- ]
- ],
- "vl_api_version": "0x206563c",
- "unions": [],
- "services": {
- "af_packet_dump": {
- "reply": "af_packet_details",
- "stream": true
- },
- "af_packet_set_l4_cksum_offload": {
- "reply": "af_packet_set_l4_cksum_offload_reply"
- },
- "af_packet_delete": {
- "reply": "af_packet_delete_reply"
- },
- "af_packet_create": {
- "reply": "af_packet_create_reply"
- }
- },
- "enums": [],
- "types": [],
- "aliases": {}
-}
diff --git a/examples/bin_api/af_packet/af_packet.ba.go b/examples/bin_api/af_packet/af_packet.ba.go
deleted file mode 100644
index 5197a5b..0000000
--- a/examples/bin_api/af_packet/af_packet.ba.go
+++ /dev/null
@@ -1,175 +0,0 @@
-// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: af_packet.api.json
-
-/*
- Package af_packet is a generated from VPP binary API module 'af_packet'.
-
- It contains following objects:
- 4 services
- 8 messages
-*/
-package af_packet
-
-import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
-import bytes "bytes"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = api.RegisterMessage
-var _ = struc.Pack
-var _ = bytes.NewBuffer
-
-// Services represents VPP binary API services:
-type Services interface {
- DumpAfPacket(*AfPacketDump) ([]*AfPacketDetails, error)
- AfPacketCreate(*AfPacketCreate) (*AfPacketCreateReply, error)
- AfPacketDelete(*AfPacketDelete) (*AfPacketDeleteReply, error)
- AfPacketSetL4CksumOffload(*AfPacketSetL4CksumOffload) (*AfPacketSetL4CksumOffloadReply, error)
-}
-
-/* Messages */
-
-// AfPacketCreate represents VPP binary API message 'af_packet_create':
-type AfPacketCreate struct {
- HostIfName []byte `struc:"[64]byte"`
- HwAddr []byte `struc:"[6]byte"`
- UseRandomHwAddr uint8
-}
-
-func (*AfPacketCreate) GetMessageName() string {
- return "af_packet_create"
-}
-func (*AfPacketCreate) GetCrcString() string {
- return "6d5d30d6"
-}
-func (*AfPacketCreate) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// AfPacketCreateReply represents VPP binary API message 'af_packet_create_reply':
-type AfPacketCreateReply struct {
- Retval int32
- SwIfIndex uint32
-}
-
-func (*AfPacketCreateReply) GetMessageName() string {
- return "af_packet_create_reply"
-}
-func (*AfPacketCreateReply) GetCrcString() string {
- return "fda5941f"
-}
-func (*AfPacketCreateReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// AfPacketDelete represents VPP binary API message 'af_packet_delete':
-type AfPacketDelete struct {
- HostIfName []byte `struc:"[64]byte"`
-}
-
-func (*AfPacketDelete) GetMessageName() string {
- return "af_packet_delete"
-}
-func (*AfPacketDelete) GetCrcString() string {
- return "3efceda3"
-}
-func (*AfPacketDelete) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// AfPacketDeleteReply represents VPP binary API message 'af_packet_delete_reply':
-type AfPacketDeleteReply struct {
- Retval int32
-}
-
-func (*AfPacketDeleteReply) GetMessageName() string {
- return "af_packet_delete_reply"
-}
-func (*AfPacketDeleteReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*AfPacketDeleteReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// AfPacketDetails represents VPP binary API message 'af_packet_details':
-type AfPacketDetails struct {
- SwIfIndex uint32
- HostIfName []byte `struc:"[64]byte"`
-}
-
-func (*AfPacketDetails) GetMessageName() string {
- return "af_packet_details"
-}
-func (*AfPacketDetails) GetCrcString() string {
- return "057205fa"
-}
-func (*AfPacketDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// AfPacketDump represents VPP binary API message 'af_packet_dump':
-type AfPacketDump struct{}
-
-func (*AfPacketDump) GetMessageName() string {
- return "af_packet_dump"
-}
-func (*AfPacketDump) GetCrcString() string {
- return "51077d14"
-}
-func (*AfPacketDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// AfPacketSetL4CksumOffload represents VPP binary API message 'af_packet_set_l4_cksum_offload':
-type AfPacketSetL4CksumOffload struct {
- SwIfIndex uint8
- Set uint8
-}
-
-func (*AfPacketSetL4CksumOffload) GetMessageName() string {
- return "af_packet_set_l4_cksum_offload"
-}
-func (*AfPacketSetL4CksumOffload) GetCrcString() string {
- return "86538585"
-}
-func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// AfPacketSetL4CksumOffloadReply represents VPP binary API message 'af_packet_set_l4_cksum_offload_reply':
-type AfPacketSetL4CksumOffloadReply struct {
- Retval int32
-}
-
-func (*AfPacketSetL4CksumOffloadReply) GetMessageName() string {
- return "af_packet_set_l4_cksum_offload_reply"
-}
-func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*AfPacketSetL4CksumOffloadReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-func init() {
- api.RegisterMessage((*AfPacketCreate)(nil), "af_packet.AfPacketCreate")
- api.RegisterMessage((*AfPacketCreateReply)(nil), "af_packet.AfPacketCreateReply")
- api.RegisterMessage((*AfPacketDelete)(nil), "af_packet.AfPacketDelete")
- api.RegisterMessage((*AfPacketDeleteReply)(nil), "af_packet.AfPacketDeleteReply")
- api.RegisterMessage((*AfPacketDetails)(nil), "af_packet.AfPacketDetails")
- api.RegisterMessage((*AfPacketDump)(nil), "af_packet.AfPacketDump")
- api.RegisterMessage((*AfPacketSetL4CksumOffload)(nil), "af_packet.AfPacketSetL4CksumOffload")
- api.RegisterMessage((*AfPacketSetL4CksumOffloadReply)(nil), "af_packet.AfPacketSetL4CksumOffloadReply")
-}
-
-var Messages = []api.Message{
- (*AfPacketCreate)(nil),
- (*AfPacketCreateReply)(nil),
- (*AfPacketDelete)(nil),
- (*AfPacketDeleteReply)(nil),
- (*AfPacketDetails)(nil),
- (*AfPacketDump)(nil),
- (*AfPacketSetL4CksumOffload)(nil),
- (*AfPacketSetL4CksumOffloadReply)(nil),
-}
diff --git a/examples/bin_api/gen.go b/examples/bin_api/gen.go
deleted file mode 100644
index de6e275..0000000
--- a/examples/bin_api/gen.go
+++ /dev/null
@@ -1,4 +0,0 @@
-package bin_api
-
-// Generates Go bindings for all VPP APIs located in the json directory.
-//go:generate binapi-generator --input-dir=. --output-dir=.
diff --git a/examples/bin_api/interface.api.json b/examples/bin_api/interface.api.json
deleted file mode 100644
index 41862d8..0000000
--- a/examples/bin_api/interface.api.json
+++ /dev/null
@@ -1,1467 +0,0 @@
-{
- "messages": [
- [
- "sw_interface_set_flags",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "admin_up_down"
- ],
- {
- "crc": "0x555485f5"
- }
- ],
- [
- "sw_interface_set_flags_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "hw_interface_set_mtu",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u16",
- "mtu"
- ],
- {
- "crc": "0x132da1e7"
- }
- ],
- [
- "hw_interface_set_mtu_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_set_mtu",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "mtu",
- 4
- ],
- {
- "crc": "0xd0008db8"
- }
- ],
- [
- "sw_interface_set_mtu_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_set_ip_directed_broadcast",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "enable"
- ],
- {
- "crc": "0xa36fadc0"
- }
- ],
- [
- "sw_interface_set_ip_directed_broadcast_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_event",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "pid"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "admin_up_down"
- ],
- [
- "u8",
- "link_up_down"
- ],
- [
- "u8",
- "deleted"
- ],
- {
- "crc": "0xbf9938e4"
- }
- ],
- [
- "want_interface_events",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "enable_disable"
- ],
- [
- "u32",
- "pid"
- ],
- {
- "crc": "0x476f5a08"
- }
- ],
- [
- "want_interface_events_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "sup_sw_if_index"
- ],
- [
- "u32",
- "l2_address_length"
- ],
- [
- "u8",
- "l2_address",
- 8
- ],
- [
- "u8",
- "interface_name",
- 64
- ],
- [
- "u8",
- "admin_up_down"
- ],
- [
- "u8",
- "link_up_down"
- ],
- [
- "u8",
- "link_duplex"
- ],
- [
- "u32",
- "link_speed"
- ],
- [
- "u16",
- "link_mtu"
- ],
- [
- "u32",
- "mtu",
- 4
- ],
- [
- "u32",
- "sub_id"
- ],
- [
- "u8",
- "sub_dot1ad"
- ],
- [
- "u8",
- "sub_dot1ah"
- ],
- [
- "u8",
- "sub_number_of_tags"
- ],
- [
- "u16",
- "sub_outer_vlan_id"
- ],
- [
- "u16",
- "sub_inner_vlan_id"
- ],
- [
- "u8",
- "sub_exact_match"
- ],
- [
- "u8",
- "sub_default"
- ],
- [
- "u8",
- "sub_outer_vlan_id_any"
- ],
- [
- "u8",
- "sub_inner_vlan_id_any"
- ],
- [
- "u32",
- "vtr_op"
- ],
- [
- "u32",
- "vtr_push_dot1q"
- ],
- [
- "u32",
- "vtr_tag1"
- ],
- [
- "u32",
- "vtr_tag2"
- ],
- [
- "u8",
- "tag",
- 64
- ],
- [
- "u16",
- "outer_tag"
- ],
- [
- "u8",
- "b_dmac",
- 6
- ],
- [
- "u8",
- "b_smac",
- 6
- ],
- [
- "u16",
- "b_vlanid"
- ],
- [
- "u32",
- "i_sid"
- ],
- {
- "crc": "0xe4ee7eb6"
- }
- ],
- [
- "sw_interface_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "name_filter_valid"
- ],
- [
- "u8",
- "name_filter",
- 49
- ],
- {
- "crc": "0x63f5e3b7"
- }
- ],
- [
- "sw_interface_add_del_address",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "del_all"
- ],
- [
- "u8",
- "address_length"
- ],
- [
- "u8",
- "address",
- 16
- ],
- {
- "crc": "0x7b583179"
- }
- ],
- [
- "sw_interface_add_del_address_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_set_table",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u32",
- "vrf_id"
- ],
- {
- "crc": "0xacb25d89"
- }
- ],
- [
- "sw_interface_set_table_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_get_table",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- {
- "crc": "0x6b7bcd0a"
- }
- ],
- [
- "sw_interface_get_table_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "vrf_id"
- ],
- {
- "crc": "0xa6eb0109"
- }
- ],
- [
- "sw_interface_set_unnumbered",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "unnumbered_sw_if_index"
- ],
- [
- "u8",
- "is_add"
- ],
- {
- "crc": "0xa2c1bbda"
- }
- ],
- [
- "sw_interface_set_unnumbered_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_clear_stats",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "sw_interface_clear_stats_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_tag_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "tag",
- 64
- ],
- {
- "crc": "0x14cc636c"
- }
- ],
- [
- "sw_interface_tag_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_set_mac_address",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "mac_address",
- 6
- ],
- {
- "crc": "0xeed5dfca"
- }
- ],
- [
- "sw_interface_set_mac_address_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_get_mac_address",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "sw_interface_get_mac_address_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u8",
- "mac_address",
- 6
- ],
- {
- "crc": "0x8ea538d3"
- }
- ],
- [
- "sw_interface_set_rx_mode",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "queue_id_valid"
- ],
- [
- "u32",
- "queue_id"
- ],
- [
- "u8",
- "mode"
- ],
- {
- "crc": "0x2a1cc58c"
- }
- ],
- [
- "sw_interface_set_rx_mode_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_set_rx_placement",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "queue_id"
- ],
- [
- "u32",
- "worker_id"
- ],
- [
- "u8",
- "is_main"
- ],
- {
- "crc": "0x4ef4377d"
- }
- ],
- [
- "sw_interface_set_rx_placement_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_rx_placement_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "sw_interface_rx_placement_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "queue_id"
- ],
- [
- "u32",
- "worker_id"
- ],
- [
- "u8",
- "mode"
- ],
- {
- "crc": "0x0e9e33f4"
- }
- ],
- [
- "interface_name_renumber",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "new_show_dev_instance"
- ],
- {
- "crc": "0x39194269"
- }
- ],
- [
- "interface_name_renumber_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "create_subif",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "sub_id"
- ],
- [
- "u8",
- "no_tags"
- ],
- [
- "u8",
- "one_tag"
- ],
- [
- "u8",
- "two_tags"
- ],
- [
- "u8",
- "dot1ad"
- ],
- [
- "u8",
- "exact_match"
- ],
- [
- "u8",
- "default_sub"
- ],
- [
- "u8",
- "outer_vlan_id_any"
- ],
- [
- "u8",
- "inner_vlan_id_any"
- ],
- [
- "u16",
- "outer_vlan_id"
- ],
- [
- "u16",
- "inner_vlan_id"
- ],
- {
- "crc": "0x86cfe408"
- }
- ],
- [
- "create_subif_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0xfda5941f"
- }
- ],
- [
- "create_vlan_subif",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "vlan_id"
- ],
- {
- "crc": "0x70cadeda"
- }
- ],
- [
- "create_vlan_subif_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0xfda5941f"
- }
- ],
- [
- "delete_subif",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "delete_subif_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "create_loopback",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "mac_address",
- 6
- ],
- {
- "crc": "0x3b54129c"
- }
- ],
- [
- "create_loopback_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0xfda5941f"
- }
- ],
- [
- "create_loopback_instance",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "mac_address",
- 6
- ],
- [
- "u8",
- "is_specified"
- ],
- [
- "u32",
- "user_instance"
- ],
- {
- "crc": "0x7bbd53b6"
- }
- ],
- [
- "create_loopback_instance_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0xfda5941f"
- }
- ],
- [
- "delete_loopback",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "delete_loopback_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "collect_detailed_interface_stats",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "enable_disable"
- ],
- {
- "crc": "0x69d24598"
- }
- ],
- [
- "collect_detailed_interface_stats_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ]
- ],
- "vl_api_version": "0x672de521",
- "unions": [],
- "services": {
- "create_subif": {
- "reply": "create_subif_reply"
- },
- "sw_interface_set_ip_directed_broadcast": {
- "reply": "sw_interface_set_ip_directed_broadcast_reply"
- },
- "delete_subif": {
- "reply": "delete_subif_reply"
- },
- "sw_interface_get_mac_address": {
- "reply": "sw_interface_get_mac_address_reply"
- },
- "sw_interface_tag_add_del": {
- "reply": "sw_interface_tag_add_del_reply"
- },
- "collect_detailed_interface_stats": {
- "reply": "collect_detailed_interface_stats_reply"
- },
- "sw_interface_dump": {
- "reply": "sw_interface_details",
- "stream": true
- },
- "sw_interface_set_rx_placement": {
- "reply": "sw_interface_set_rx_placement_reply"
- },
- "sw_interface_add_del_address": {
- "reply": "sw_interface_add_del_address_reply"
- },
- "sw_interface_get_table": {
- "reply": "sw_interface_get_table_reply"
- },
- "interface_name_renumber": {
- "reply": "interface_name_renumber_reply"
- },
- "create_loopback_instance": {
- "reply": "create_loopback_instance_reply"
- },
- "sw_interface_set_mtu": {
- "reply": "sw_interface_set_mtu_reply"
- },
- "want_interface_events": {
- "reply": "want_interface_events_reply",
- "events": [
- "sw_interface_event"
- ]
- },
- "create_loopback": {
- "reply": "create_loopback_reply"
- },
- "sw_interface_clear_stats": {
- "reply": "sw_interface_clear_stats_reply"
- },
- "hw_interface_set_mtu": {
- "reply": "hw_interface_set_mtu_reply"
- },
- "sw_interface_set_mac_address": {
- "reply": "sw_interface_set_mac_address_reply"
- },
- "sw_interface_set_unnumbered": {
- "reply": "sw_interface_set_unnumbered_reply"
- },
- "sw_interface_rx_placement_dump": {
- "reply": "sw_interface_rx_placement_details",
- "stream": true
- },
- "sw_interface_set_flags": {
- "reply": "sw_interface_set_flags_reply"
- },
- "delete_loopback": {
- "reply": "delete_loopback_reply"
- },
- "sw_interface_set_rx_mode": {
- "reply": "sw_interface_set_rx_mode_reply"
- },
- "create_vlan_subif": {
- "reply": "create_vlan_subif_reply"
- },
- "sw_interface_set_table": {
- "reply": "sw_interface_set_table_reply"
- }
- },
- "enums": [],
- "types": [],
- "aliases": {
- "interface_index": {
- "type": "u32"
- }
- }
-}
diff --git a/examples/bin_api/interfaces/interfaces.ba.go b/examples/bin_api/interfaces/interfaces.ba.go
deleted file mode 100644
index dfdea00..0000000
--- a/examples/bin_api/interfaces/interfaces.ba.go
+++ /dev/null
@@ -1,1014 +0,0 @@
-// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: interface.api.json
-
-/*
- Package interfaces is a generated from VPP binary API module 'interface'.
-
- It contains following objects:
- 25 services
- 1 alias
- 51 messages
-*/
-package interfaces
-
-import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
-import bytes "bytes"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = api.RegisterMessage
-var _ = struc.Pack
-var _ = bytes.NewBuffer
-
-// Services represents VPP binary API services:
-type Services interface {
- DumpSwInterface(*SwInterfaceDump) ([]*SwInterfaceDetails, error)
- DumpSwInterfaceRxPlacement(*SwInterfaceRxPlacementDump) ([]*SwInterfaceRxPlacementDetails, error)
- CollectDetailedInterfaceStats(*CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
- CreateLoopback(*CreateLoopback) (*CreateLoopbackReply, error)
- CreateLoopbackInstance(*CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
- CreateSubif(*CreateSubif) (*CreateSubifReply, error)
- CreateVlanSubif(*CreateVlanSubif) (*CreateVlanSubifReply, error)
- DeleteLoopback(*DeleteLoopback) (*DeleteLoopbackReply, error)
- DeleteSubif(*DeleteSubif) (*DeleteSubifReply, error)
- HwInterfaceSetMtu(*HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
- InterfaceNameRenumber(*InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
- SwInterfaceAddDelAddress(*SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
- SwInterfaceClearStats(*SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
- SwInterfaceGetMacAddress(*SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
- SwInterfaceGetTable(*SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
- SwInterfaceSetFlags(*SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
- SwInterfaceSetIPDirectedBroadcast(*SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
- SwInterfaceSetMacAddress(*SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
- SwInterfaceSetMtu(*SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
- SwInterfaceSetRxMode(*SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
- SwInterfaceSetRxPlacement(*SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
- SwInterfaceSetTable(*SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
- SwInterfaceSetUnnumbered(*SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
- SwInterfaceTagAddDel(*SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
- WantInterfaceEvents(*WantInterfaceEvents) (*WantInterfaceEventsReply, error)
-}
-
-/* Aliases */
-
-// InterfaceIndex represents VPP binary API alias 'interface_index':
-type InterfaceIndex uint32
-
-/* Messages */
-
-// CollectDetailedInterfaceStats represents VPP binary API message 'collect_detailed_interface_stats':
-type CollectDetailedInterfaceStats struct {
- SwIfIndex uint32
- EnableDisable uint8
-}
-
-func (*CollectDetailedInterfaceStats) GetMessageName() string {
- return "collect_detailed_interface_stats"
-}
-func (*CollectDetailedInterfaceStats) GetCrcString() string {
- return "69d24598"
-}
-func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// CollectDetailedInterfaceStatsReply represents VPP binary API message 'collect_detailed_interface_stats_reply':
-type CollectDetailedInterfaceStatsReply struct {
- Retval int32
-}
-
-func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
- return "collect_detailed_interface_stats_reply"
-}
-func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// CreateLoopback represents VPP binary API message 'create_loopback':
-type CreateLoopback struct {
- MacAddress []byte `struc:"[6]byte"`
-}
-
-func (*CreateLoopback) GetMessageName() string {
- return "create_loopback"
-}
-func (*CreateLoopback) GetCrcString() string {
- return "3b54129c"
-}
-func (*CreateLoopback) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// CreateLoopbackInstance represents VPP binary API message 'create_loopback_instance':
-type CreateLoopbackInstance struct {
- MacAddress []byte `struc:"[6]byte"`
- IsSpecified uint8
- UserInstance uint32
-}
-
-func (*CreateLoopbackInstance) GetMessageName() string {
- return "create_loopback_instance"
-}
-func (*CreateLoopbackInstance) GetCrcString() string {
- return "7bbd53b6"
-}
-func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// CreateLoopbackInstanceReply represents VPP binary API message 'create_loopback_instance_reply':
-type CreateLoopbackInstanceReply struct {
- Retval int32
- SwIfIndex uint32
-}
-
-func (*CreateLoopbackInstanceReply) GetMessageName() string {
- return "create_loopback_instance_reply"
-}
-func (*CreateLoopbackInstanceReply) GetCrcString() string {
- return "fda5941f"
-}
-func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// CreateLoopbackReply represents VPP binary API message 'create_loopback_reply':
-type CreateLoopbackReply struct {
- Retval int32
- SwIfIndex uint32
-}
-
-func (*CreateLoopbackReply) GetMessageName() string {
- return "create_loopback_reply"
-}
-func (*CreateLoopbackReply) GetCrcString() string {
- return "fda5941f"
-}
-func (*CreateLoopbackReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// CreateSubif represents VPP binary API message 'create_subif':
-type CreateSubif struct {
- SwIfIndex uint32
- SubID uint32
- NoTags uint8
- OneTag uint8
- TwoTags uint8
- Dot1ad uint8
- ExactMatch uint8
- DefaultSub uint8
- OuterVlanIDAny uint8
- InnerVlanIDAny uint8
- OuterVlanID uint16
- InnerVlanID uint16
-}
-
-func (*CreateSubif) GetMessageName() string {
- return "create_subif"
-}
-func (*CreateSubif) GetCrcString() string {
- return "86cfe408"
-}
-func (*CreateSubif) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// CreateSubifReply represents VPP binary API message 'create_subif_reply':
-type CreateSubifReply struct {
- Retval int32
- SwIfIndex uint32
-}
-
-func (*CreateSubifReply) GetMessageName() string {
- return "create_subif_reply"
-}
-func (*CreateSubifReply) GetCrcString() string {
- return "fda5941f"
-}
-func (*CreateSubifReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// CreateVlanSubif represents VPP binary API message 'create_vlan_subif':
-type CreateVlanSubif struct {
- SwIfIndex uint32
- VlanID uint32
-}
-
-func (*CreateVlanSubif) GetMessageName() string {
- return "create_vlan_subif"
-}
-func (*CreateVlanSubif) GetCrcString() string {
- return "70cadeda"
-}
-func (*CreateVlanSubif) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// CreateVlanSubifReply represents VPP binary API message 'create_vlan_subif_reply':
-type CreateVlanSubifReply struct {
- Retval int32
- SwIfIndex uint32
-}
-
-func (*CreateVlanSubifReply) GetMessageName() string {
- return "create_vlan_subif_reply"
-}
-func (*CreateVlanSubifReply) GetCrcString() string {
- return "fda5941f"
-}
-func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// DeleteLoopback represents VPP binary API message 'delete_loopback':
-type DeleteLoopback struct {
- SwIfIndex uint32
-}
-
-func (*DeleteLoopback) GetMessageName() string {
- return "delete_loopback"
-}
-func (*DeleteLoopback) GetCrcString() string {
- return "529cb13f"
-}
-func (*DeleteLoopback) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// DeleteLoopbackReply represents VPP binary API message 'delete_loopback_reply':
-type DeleteLoopbackReply struct {
- Retval int32
-}
-
-func (*DeleteLoopbackReply) GetMessageName() string {
- return "delete_loopback_reply"
-}
-func (*DeleteLoopbackReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// DeleteSubif represents VPP binary API message 'delete_subif':
-type DeleteSubif struct {
- SwIfIndex uint32
-}
-
-func (*DeleteSubif) GetMessageName() string {
- return "delete_subif"
-}
-func (*DeleteSubif) GetCrcString() string {
- return "529cb13f"
-}
-func (*DeleteSubif) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// DeleteSubifReply represents VPP binary API message 'delete_subif_reply':
-type DeleteSubifReply struct {
- Retval int32
-}
-
-func (*DeleteSubifReply) GetMessageName() string {
- return "delete_subif_reply"
-}
-func (*DeleteSubifReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*DeleteSubifReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// HwInterfaceSetMtu represents VPP binary API message 'hw_interface_set_mtu':
-type HwInterfaceSetMtu struct {
- SwIfIndex uint32
- Mtu uint16
-}
-
-func (*HwInterfaceSetMtu) GetMessageName() string {
- return "hw_interface_set_mtu"
-}
-func (*HwInterfaceSetMtu) GetCrcString() string {
- return "132da1e7"
-}
-func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// HwInterfaceSetMtuReply represents VPP binary API message 'hw_interface_set_mtu_reply':
-type HwInterfaceSetMtuReply struct {
- Retval int32
-}
-
-func (*HwInterfaceSetMtuReply) GetMessageName() string {
- return "hw_interface_set_mtu_reply"
-}
-func (*HwInterfaceSetMtuReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// InterfaceNameRenumber represents VPP binary API message 'interface_name_renumber':
-type InterfaceNameRenumber struct {
- SwIfIndex uint32
- NewShowDevInstance uint32
-}
-
-func (*InterfaceNameRenumber) GetMessageName() string {
- return "interface_name_renumber"
-}
-func (*InterfaceNameRenumber) GetCrcString() string {
- return "39194269"
-}
-func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// InterfaceNameRenumberReply represents VPP binary API message 'interface_name_renumber_reply':
-type InterfaceNameRenumberReply struct {
- Retval int32
-}
-
-func (*InterfaceNameRenumberReply) GetMessageName() string {
- return "interface_name_renumber_reply"
-}
-func (*InterfaceNameRenumberReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceAddDelAddress represents VPP binary API message 'sw_interface_add_del_address':
-type SwInterfaceAddDelAddress struct {
- SwIfIndex uint32
- IsAdd uint8
- IsIPv6 uint8
- DelAll uint8
- AddressLength uint8
- Address []byte `struc:"[16]byte"`
-}
-
-func (*SwInterfaceAddDelAddress) GetMessageName() string {
- return "sw_interface_add_del_address"
-}
-func (*SwInterfaceAddDelAddress) GetCrcString() string {
- return "7b583179"
-}
-func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceAddDelAddressReply represents VPP binary API message 'sw_interface_add_del_address_reply':
-type SwInterfaceAddDelAddressReply struct {
- Retval int32
-}
-
-func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
- return "sw_interface_add_del_address_reply"
-}
-func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceClearStats represents VPP binary API message 'sw_interface_clear_stats':
-type SwInterfaceClearStats struct {
- SwIfIndex uint32
-}
-
-func (*SwInterfaceClearStats) GetMessageName() string {
- return "sw_interface_clear_stats"
-}
-func (*SwInterfaceClearStats) GetCrcString() string {
- return "529cb13f"
-}
-func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceClearStatsReply represents VPP binary API message 'sw_interface_clear_stats_reply':
-type SwInterfaceClearStatsReply struct {
- Retval int32
-}
-
-func (*SwInterfaceClearStatsReply) GetMessageName() string {
- return "sw_interface_clear_stats_reply"
-}
-func (*SwInterfaceClearStatsReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceDetails represents VPP binary API message 'sw_interface_details':
-type SwInterfaceDetails struct {
- SwIfIndex uint32
- SupSwIfIndex uint32
- L2AddressLength uint32
- L2Address []byte `struc:"[8]byte"`
- InterfaceName []byte `struc:"[64]byte"`
- AdminUpDown uint8
- LinkUpDown uint8
- LinkDuplex uint8
- LinkSpeed uint32
- LinkMtu uint16
- Mtu []uint32 `struc:"[4]uint32"`
- SubID uint32
- SubDot1ad uint8
- SubDot1ah uint8
- SubNumberOfTags uint8
- SubOuterVlanID uint16
- SubInnerVlanID uint16
- SubExactMatch uint8
- SubDefault uint8
- SubOuterVlanIDAny uint8
- SubInnerVlanIDAny uint8
- VtrOp uint32
- VtrPushDot1q uint32
- VtrTag1 uint32
- VtrTag2 uint32
- Tag []byte `struc:"[64]byte"`
- OuterTag uint16
- BDmac []byte `struc:"[6]byte"`
- BSmac []byte `struc:"[6]byte"`
- BVlanid uint16
- ISid uint32
-}
-
-func (*SwInterfaceDetails) GetMessageName() string {
- return "sw_interface_details"
-}
-func (*SwInterfaceDetails) GetCrcString() string {
- return "e4ee7eb6"
-}
-func (*SwInterfaceDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceDump represents VPP binary API message 'sw_interface_dump':
-type SwInterfaceDump struct {
- NameFilterValid uint8
- NameFilter []byte `struc:"[49]byte"`
-}
-
-func (*SwInterfaceDump) GetMessageName() string {
- return "sw_interface_dump"
-}
-func (*SwInterfaceDump) GetCrcString() string {
- return "63f5e3b7"
-}
-func (*SwInterfaceDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceEvent represents VPP binary API message 'sw_interface_event':
-type SwInterfaceEvent struct {
- PID uint32
- SwIfIndex uint32
- AdminUpDown uint8
- LinkUpDown uint8
- Deleted uint8
-}
-
-func (*SwInterfaceEvent) GetMessageName() string {
- return "sw_interface_event"
-}
-func (*SwInterfaceEvent) GetCrcString() string {
- return "bf9938e4"
-}
-func (*SwInterfaceEvent) GetMessageType() api.MessageType {
- return api.EventMessage
-}
-
-// SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address':
-type SwInterfaceGetMacAddress struct {
- SwIfIndex uint32
-}
-
-func (*SwInterfaceGetMacAddress) GetMessageName() string {
- return "sw_interface_get_mac_address"
-}
-func (*SwInterfaceGetMacAddress) GetCrcString() string {
- return "529cb13f"
-}
-func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply':
-type SwInterfaceGetMacAddressReply struct {
- Retval int32
- MacAddress []byte `struc:"[6]byte"`
-}
-
-func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
- return "sw_interface_get_mac_address_reply"
-}
-func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
- return "8ea538d3"
-}
-func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table':
-type SwInterfaceGetTable struct {
- SwIfIndex uint32
- IsIPv6 uint8
-}
-
-func (*SwInterfaceGetTable) GetMessageName() string {
- return "sw_interface_get_table"
-}
-func (*SwInterfaceGetTable) GetCrcString() string {
- return "6b7bcd0a"
-}
-func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply':
-type SwInterfaceGetTableReply struct {
- Retval int32
- VrfID uint32
-}
-
-func (*SwInterfaceGetTableReply) GetMessageName() string {
- return "sw_interface_get_table_reply"
-}
-func (*SwInterfaceGetTableReply) GetCrcString() string {
- return "a6eb0109"
-}
-func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details':
-type SwInterfaceRxPlacementDetails struct {
- SwIfIndex uint32
- QueueID uint32
- WorkerID uint32
- Mode uint8
-}
-
-func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
- return "sw_interface_rx_placement_details"
-}
-func (*SwInterfaceRxPlacementDetails) GetCrcString() string {
- return "0e9e33f4"
-}
-func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump':
-type SwInterfaceRxPlacementDump struct {
- SwIfIndex uint32
-}
-
-func (*SwInterfaceRxPlacementDump) GetMessageName() string {
- return "sw_interface_rx_placement_dump"
-}
-func (*SwInterfaceRxPlacementDump) GetCrcString() string {
- return "529cb13f"
-}
-func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags':
-type SwInterfaceSetFlags struct {
- SwIfIndex uint32
- AdminUpDown uint8
-}
-
-func (*SwInterfaceSetFlags) GetMessageName() string {
- return "sw_interface_set_flags"
-}
-func (*SwInterfaceSetFlags) GetCrcString() string {
- return "555485f5"
-}
-func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply':
-type SwInterfaceSetFlagsReply struct {
- Retval int32
-}
-
-func (*SwInterfaceSetFlagsReply) GetMessageName() string {
- return "sw_interface_set_flags_reply"
-}
-func (*SwInterfaceSetFlagsReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast':
-type SwInterfaceSetIPDirectedBroadcast struct {
- SwIfIndex uint32
- Enable uint8
-}
-
-func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
- return "sw_interface_set_ip_directed_broadcast"
-}
-func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string {
- return "a36fadc0"
-}
-func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply':
-type SwInterfaceSetIPDirectedBroadcastReply struct {
- Retval int32
-}
-
-func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
- return "sw_interface_set_ip_directed_broadcast_reply"
-}
-func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address':
-type SwInterfaceSetMacAddress struct {
- SwIfIndex uint32
- MacAddress []byte `struc:"[6]byte"`
-}
-
-func (*SwInterfaceSetMacAddress) GetMessageName() string {
- return "sw_interface_set_mac_address"
-}
-func (*SwInterfaceSetMacAddress) GetCrcString() string {
- return "eed5dfca"
-}
-func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply':
-type SwInterfaceSetMacAddressReply struct {
- Retval int32
-}
-
-func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
- return "sw_interface_set_mac_address_reply"
-}
-func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu':
-type SwInterfaceSetMtu struct {
- SwIfIndex uint32
- Mtu []uint32 `struc:"[4]uint32"`
-}
-
-func (*SwInterfaceSetMtu) GetMessageName() string {
- return "sw_interface_set_mtu"
-}
-func (*SwInterfaceSetMtu) GetCrcString() string {
- return "d0008db8"
-}
-func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply':
-type SwInterfaceSetMtuReply struct {
- Retval int32
-}
-
-func (*SwInterfaceSetMtuReply) GetMessageName() string {
- return "sw_interface_set_mtu_reply"
-}
-func (*SwInterfaceSetMtuReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode':
-type SwInterfaceSetRxMode struct {
- SwIfIndex uint32
- QueueIDValid uint8
- QueueID uint32
- Mode uint8
-}
-
-func (*SwInterfaceSetRxMode) GetMessageName() string {
- return "sw_interface_set_rx_mode"
-}
-func (*SwInterfaceSetRxMode) GetCrcString() string {
- return "2a1cc58c"
-}
-func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply':
-type SwInterfaceSetRxModeReply struct {
- Retval int32
-}
-
-func (*SwInterfaceSetRxModeReply) GetMessageName() string {
- return "sw_interface_set_rx_mode_reply"
-}
-func (*SwInterfaceSetRxModeReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement':
-type SwInterfaceSetRxPlacement struct {
- SwIfIndex uint32
- QueueID uint32
- WorkerID uint32
- IsMain uint8
-}
-
-func (*SwInterfaceSetRxPlacement) GetMessageName() string {
- return "sw_interface_set_rx_placement"
-}
-func (*SwInterfaceSetRxPlacement) GetCrcString() string {
- return "4ef4377d"
-}
-func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply':
-type SwInterfaceSetRxPlacementReply struct {
- Retval int32
-}
-
-func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
- return "sw_interface_set_rx_placement_reply"
-}
-func (*SwInterfaceSetRxPlacementReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table':
-type SwInterfaceSetTable struct {
- SwIfIndex uint32
- IsIPv6 uint8
- VrfID uint32
-}
-
-func (*SwInterfaceSetTable) GetMessageName() string {
- return "sw_interface_set_table"
-}
-func (*SwInterfaceSetTable) GetCrcString() string {
- return "acb25d89"
-}
-func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply':
-type SwInterfaceSetTableReply struct {
- Retval int32
-}
-
-func (*SwInterfaceSetTableReply) GetMessageName() string {
- return "sw_interface_set_table_reply"
-}
-func (*SwInterfaceSetTableReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered':
-type SwInterfaceSetUnnumbered struct {
- SwIfIndex uint32
- UnnumberedSwIfIndex uint32
- IsAdd uint8
-}
-
-func (*SwInterfaceSetUnnumbered) GetMessageName() string {
- return "sw_interface_set_unnumbered"
-}
-func (*SwInterfaceSetUnnumbered) GetCrcString() string {
- return "a2c1bbda"
-}
-func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply':
-type SwInterfaceSetUnnumberedReply struct {
- Retval int32
-}
-
-func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
- return "sw_interface_set_unnumbered_reply"
-}
-func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del':
-type SwInterfaceTagAddDel struct {
- IsAdd uint8
- SwIfIndex uint32
- Tag []byte `struc:"[64]byte"`
-}
-
-func (*SwInterfaceTagAddDel) GetMessageName() string {
- return "sw_interface_tag_add_del"
-}
-func (*SwInterfaceTagAddDel) GetCrcString() string {
- return "14cc636c"
-}
-func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply':
-type SwInterfaceTagAddDelReply struct {
- Retval int32
-}
-
-func (*SwInterfaceTagAddDelReply) GetMessageName() string {
- return "sw_interface_tag_add_del_reply"
-}
-func (*SwInterfaceTagAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// WantInterfaceEvents represents VPP binary API message 'want_interface_events':
-type WantInterfaceEvents struct {
- EnableDisable uint32
- PID uint32
-}
-
-func (*WantInterfaceEvents) GetMessageName() string {
- return "want_interface_events"
-}
-func (*WantInterfaceEvents) GetCrcString() string {
- return "476f5a08"
-}
-func (*WantInterfaceEvents) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply':
-type WantInterfaceEventsReply struct {
- Retval int32
-}
-
-func (*WantInterfaceEventsReply) GetMessageName() string {
- return "want_interface_events_reply"
-}
-func (*WantInterfaceEventsReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-func init() {
- api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
- api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
- api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
- api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
- api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
- api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
- api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
- api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
- api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
- api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
- api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
- api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
- api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
- api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
- api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
- api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
- api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
- api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
- api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
- api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
- api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
- api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
- api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
- api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
- api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
- api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
- api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
- api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
- api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
- api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
- api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
- api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
- api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
- api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
- api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
- api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
- api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
- api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
- api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
- api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
- api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
- api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
- api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
- api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
- api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
- api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
- api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
- api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
- api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
- api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
- api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
-}
-
-var Messages = []api.Message{
- (*CollectDetailedInterfaceStats)(nil),
- (*CollectDetailedInterfaceStatsReply)(nil),
- (*CreateLoopback)(nil),
- (*CreateLoopbackInstance)(nil),
- (*CreateLoopbackInstanceReply)(nil),
- (*CreateLoopbackReply)(nil),
- (*CreateSubif)(nil),
- (*CreateSubifReply)(nil),
- (*CreateVlanSubif)(nil),
- (*CreateVlanSubifReply)(nil),
- (*DeleteLoopback)(nil),
- (*DeleteLoopbackReply)(nil),
- (*DeleteSubif)(nil),
- (*DeleteSubifReply)(nil),
- (*HwInterfaceSetMtu)(nil),
- (*HwInterfaceSetMtuReply)(nil),
- (*InterfaceNameRenumber)(nil),
- (*InterfaceNameRenumberReply)(nil),
- (*SwInterfaceAddDelAddress)(nil),
- (*SwInterfaceAddDelAddressReply)(nil),
- (*SwInterfaceClearStats)(nil),
- (*SwInterfaceClearStatsReply)(nil),
- (*SwInterfaceDetails)(nil),
- (*SwInterfaceDump)(nil),
- (*SwInterfaceEvent)(nil),
- (*SwInterfaceGetMacAddress)(nil),
- (*SwInterfaceGetMacAddressReply)(nil),
- (*SwInterfaceGetTable)(nil),
- (*SwInterfaceGetTableReply)(nil),
- (*SwInterfaceRxPlacementDetails)(nil),
- (*SwInterfaceRxPlacementDump)(nil),
- (*SwInterfaceSetFlags)(nil),
- (*SwInterfaceSetFlagsReply)(nil),
- (*SwInterfaceSetIPDirectedBroadcast)(nil),
- (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
- (*SwInterfaceSetMacAddress)(nil),
- (*SwInterfaceSetMacAddressReply)(nil),
- (*SwInterfaceSetMtu)(nil),
- (*SwInterfaceSetMtuReply)(nil),
- (*SwInterfaceSetRxMode)(nil),
- (*SwInterfaceSetRxModeReply)(nil),
- (*SwInterfaceSetRxPlacement)(nil),
- (*SwInterfaceSetRxPlacementReply)(nil),
- (*SwInterfaceSetTable)(nil),
- (*SwInterfaceSetTableReply)(nil),
- (*SwInterfaceSetUnnumbered)(nil),
- (*SwInterfaceSetUnnumberedReply)(nil),
- (*SwInterfaceTagAddDel)(nil),
- (*SwInterfaceTagAddDelReply)(nil),
- (*WantInterfaceEvents)(nil),
- (*WantInterfaceEventsReply)(nil),
-}
diff --git a/examples/bin_api/ip.api.json b/examples/bin_api/ip.api.json
deleted file mode 100644
index 62c282b..0000000
--- a/examples/bin_api/ip.api.json
+++ /dev/null
@@ -1,3122 +0,0 @@
-{
- "messages": [
- [
- "ip_table_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "table_id"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u8",
- "name",
- 64
- ],
- {
- "crc": "0x0240c89d"
- }
- ],
- [
- "ip_table_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_fib_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "ip_fib_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "table_id"
- ],
- [
- "u8",
- "table_name",
- 64
- ],
- [
- "u8",
- "address_length"
- ],
- [
- "u8",
- "address",
- 4
- ],
- [
- "u32",
- "count"
- ],
- [
- "u32",
- "stats_index"
- ],
- [
- "vl_api_fib_path_t",
- "path",
- 0,
- "count"
- ],
- {
- "crc": "0xf6a2fab3"
- }
- ],
- [
- "ip6_fib_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "ip6_fib_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "table_id"
- ],
- [
- "u8",
- "table_name",
- 64
- ],
- [
- "u8",
- "address_length"
- ],
- [
- "u8",
- "address",
- 16
- ],
- [
- "u32",
- "count"
- ],
- [
- "u32",
- "stats_index"
- ],
- [
- "vl_api_fib_path_t",
- "path",
- 0,
- "count"
- ],
- {
- "crc": "0xef11e94d"
- }
- ],
- [
- "ip_neighbor_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- {
- "crc": "0x6b7bcd0a"
- }
- ],
- [
- "ip_neighbor_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "stats_index"
- ],
- [
- "u8",
- "is_static"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "mac_address",
- 6
- ],
- [
- "u8",
- "ip_address",
- 16
- ],
- {
- "crc": "0xc7001770"
- }
- ],
- [
- "ip_neighbor_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "is_static"
- ],
- [
- "u8",
- "is_no_adj_fib"
- ],
- [
- "u8",
- "mac_address",
- 6
- ],
- [
- "u8",
- "dst_address",
- 16
- ],
- {
- "crc": "0x4711eb25"
- }
- ],
- [
- "ip_neighbor_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "stats_index"
- ],
- {
- "crc": "0x1992deab"
- }
- ],
- [
- "set_ip_flow_hash",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "vrf_id"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "src"
- ],
- [
- "u8",
- "dst"
- ],
- [
- "u8",
- "sport"
- ],
- [
- "u8",
- "dport"
- ],
- [
- "u8",
- "proto"
- ],
- [
- "u8",
- "reverse"
- ],
- [
- "u8",
- "symmetric"
- ],
- {
- "crc": "0xa9084bfb"
- }
- ],
- [
- "set_ip_flow_hash_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_ip6nd_ra_config",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "suppress"
- ],
- [
- "u8",
- "managed"
- ],
- [
- "u8",
- "other"
- ],
- [
- "u8",
- "ll_option"
- ],
- [
- "u8",
- "send_unicast"
- ],
- [
- "u8",
- "cease"
- ],
- [
- "u8",
- "is_no"
- ],
- [
- "u8",
- "default_router"
- ],
- [
- "u32",
- "max_interval"
- ],
- [
- "u32",
- "min_interval"
- ],
- [
- "u32",
- "lifetime"
- ],
- [
- "u32",
- "initial_count"
- ],
- [
- "u32",
- "initial_interval"
- ],
- {
- "crc": "0xc3f02daa"
- }
- ],
- [
- "sw_interface_ip6nd_ra_config_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_ip6nd_ra_prefix",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "address",
- 16
- ],
- [
- "u8",
- "address_length"
- ],
- [
- "u8",
- "use_default"
- ],
- [
- "u8",
- "no_advertise"
- ],
- [
- "u8",
- "off_link"
- ],
- [
- "u8",
- "no_autoconfig"
- ],
- [
- "u8",
- "no_onlink"
- ],
- [
- "u8",
- "is_no"
- ],
- [
- "u32",
- "val_lifetime"
- ],
- [
- "u32",
- "pref_lifetime"
- ],
- {
- "crc": "0xca763c9a"
- }
- ],
- [
- "sw_interface_ip6nd_ra_prefix_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip6nd_proxy_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_del"
- ],
- [
- "u8",
- "address",
- 16
- ],
- {
- "crc": "0xd95f0fa0"
- }
- ],
- [
- "ip6nd_proxy_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip6nd_proxy_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "address",
- 16
- ],
- {
- "crc": "0x6a47c974"
- }
- ],
- [
- "ip6nd_proxy_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "ip6nd_send_router_solicitation",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "irt"
- ],
- [
- "u32",
- "mrt"
- ],
- [
- "u32",
- "mrc"
- ],
- [
- "u32",
- "mrd"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "stop"
- ],
- {
- "crc": "0xbd968917"
- }
- ],
- [
- "ip6nd_send_router_solicitation_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_ip6_enable_disable",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "enable"
- ],
- {
- "crc": "0xa36fadc0"
- }
- ],
- [
- "sw_interface_ip6_enable_disable_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_add_del_route",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "next_hop_sw_if_index"
- ],
- [
- "u32",
- "table_id"
- ],
- [
- "u32",
- "classify_table_index"
- ],
- [
- "u32",
- "next_hop_table_id"
- ],
- [
- "u32",
- "next_hop_id"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u8",
- "is_drop"
- ],
- [
- "u8",
- "is_unreach"
- ],
- [
- "u8",
- "is_prohibit"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "is_local"
- ],
- [
- "u8",
- "is_classify"
- ],
- [
- "u8",
- "is_multipath"
- ],
- [
- "u8",
- "is_resolve_host"
- ],
- [
- "u8",
- "is_resolve_attached"
- ],
- [
- "u8",
- "is_dvr"
- ],
- [
- "u8",
- "is_source_lookup"
- ],
- [
- "u8",
- "is_udp_encap"
- ],
- [
- "u8",
- "next_hop_weight"
- ],
- [
- "u8",
- "next_hop_preference"
- ],
- [
- "u8",
- "next_hop_proto"
- ],
- [
- "u8",
- "dst_address_length"
- ],
- [
- "u8",
- "dst_address",
- 16
- ],
- [
- "u8",
- "next_hop_address",
- 16
- ],
- [
- "u8",
- "next_hop_n_out_labels"
- ],
- [
- "u32",
- "next_hop_via_label"
- ],
- [
- "vl_api_fib_mpls_label_t",
- "next_hop_out_label_stack",
- 0,
- "next_hop_n_out_labels"
- ],
- {
- "crc": "0x4219d62d"
- }
- ],
- [
- "ip_add_del_route_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "stats_index"
- ],
- {
- "crc": "0x1992deab"
- }
- ],
- [
- "ip_mroute_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "next_hop_sw_if_index"
- ],
- [
- "u32",
- "table_id"
- ],
- [
- "u32",
- "entry_flags"
- ],
- [
- "u32",
- "itf_flags"
- ],
- [
- "u32",
- "rpf_id"
- ],
- [
- "u32",
- "bier_imp"
- ],
- [
- "u16",
- "grp_address_length"
- ],
- [
- "u8",
- "next_hop_afi"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "is_local"
- ],
- [
- "u8",
- "grp_address",
- 16
- ],
- [
- "u8",
- "src_address",
- 16
- ],
- [
- "u8",
- "nh_address",
- 16
- ],
- {
- "crc": "0xf44c17b1"
- }
- ],
- [
- "ip_mroute_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "stats_index"
- ],
- {
- "crc": "0x1992deab"
- }
- ],
- [
- "ip_mfib_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "ip_mfib_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "table_id"
- ],
- [
- "u32",
- "entry_flags"
- ],
- [
- "u32",
- "rpf_id"
- ],
- [
- "u8",
- "address_length"
- ],
- [
- "u8",
- "grp_address",
- 4
- ],
- [
- "u8",
- "src_address",
- 4
- ],
- [
- "u32",
- "count"
- ],
- [
- "u32",
- "stats_index"
- ],
- [
- "vl_api_mfib_path_t",
- "path",
- 0,
- "count"
- ],
- {
- "crc": "0x61faa26f"
- }
- ],
- [
- "ip6_mfib_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "ip6_mfib_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "table_id"
- ],
- [
- "u8",
- "address_length"
- ],
- [
- "u8",
- "grp_address",
- 16
- ],
- [
- "u8",
- "src_address",
- 16
- ],
- [
- "u32",
- "count"
- ],
- [
- "vl_api_mfib_path_t",
- "path",
- 0,
- "count"
- ],
- {
- "crc": "0x738c546e"
- }
- ],
- [
- "ip_address_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "ip",
- 16
- ],
- [
- "u8",
- "prefix_length"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- {
- "crc": "0x9bc25966"
- }
- ],
- [
- "ip_address_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- {
- "crc": "0x6b7bcd0a"
- }
- ],
- [
- "ip_unnumbered_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "ip_sw_if_index"
- ],
- {
- "crc": "0xae694cf4"
- }
- ],
- [
- "ip_unnumbered_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "ip_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- {
- "crc": "0x8bb37ec4"
- }
- ],
- [
- "ip_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- {
- "crc": "0xde883da4"
- }
- ],
- [
- "mfib_signal_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "mfib_signal_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "table_id"
- ],
- [
- "u16",
- "grp_address_len"
- ],
- [
- "u8",
- "grp_address",
- 16
- ],
- [
- "u8",
- "src_address",
- 16
- ],
- [
- "u16",
- "ip_packet_len"
- ],
- [
- "u8",
- "ip_packet_data",
- 256
- ],
- {
- "crc": "0x3f5f03f5"
- }
- ],
- [
- "ip_punt_police",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "policer_index"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u8",
- "is_ip6"
- ],
- {
- "crc": "0x38691592"
- }
- ],
- [
- "ip_punt_police_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_punt_redirect",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "vl_api_punt_redirect_t",
- "punt"
- ],
- [
- "u8",
- "is_add"
- ],
- {
- "crc": "0xa953495b"
- }
- ],
- [
- "ip_punt_redirect_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_punt_redirect_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- {
- "crc": "0x6b7bcd0a"
- }
- ],
- [
- "ip_punt_redirect_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "vl_api_punt_redirect_t",
- "punt"
- ],
- {
- "crc": "0xa47f70da"
- }
- ],
- [
- "ip_container_proxy_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "ip",
- 16
- ],
- [
- "u8",
- "is_ip4"
- ],
- [
- "u8",
- "plen"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "is_add"
- ],
- {
- "crc": "0x0a355d39"
- }
- ],
- [
- "ip_container_proxy_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_container_proxy_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "ip_container_proxy_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "vl_api_prefix_t",
- "prefix"
- ],
- {
- "crc": "0xd528df63"
- }
- ],
- [
- "ip_source_and_port_range_check_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u8",
- "mask_length"
- ],
- [
- "u8",
- "address",
- 16
- ],
- [
- "u8",
- "number_of_ranges"
- ],
- [
- "u16",
- "low_ports",
- 32
- ],
- [
- "u16",
- "high_ports",
- 32
- ],
- [
- "u32",
- "vrf_id"
- ],
- {
- "crc": "0x03d6b03a"
- }
- ],
- [
- "ip_source_and_port_range_check_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_source_and_port_range_check_interface_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "tcp_in_vrf_id"
- ],
- [
- "u32",
- "tcp_out_vrf_id"
- ],
- [
- "u32",
- "udp_in_vrf_id"
- ],
- [
- "u32",
- "udp_out_vrf_id"
- ],
- {
- "crc": "0x6966bc44"
- }
- ],
- [
- "ip_source_and_port_range_check_interface_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_source_check_interface_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u8",
- "loose"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x0a60152a"
- }
- ],
- [
- "ip_source_check_interface_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_scan_neighbor_enable_disable",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "mode"
- ],
- [
- "u8",
- "scan_interval"
- ],
- [
- "u8",
- "max_proc_time"
- ],
- [
- "u8",
- "max_update"
- ],
- [
- "u8",
- "scan_int_delay"
- ],
- [
- "u8",
- "stale_threshold"
- ],
- {
- "crc": "0x0a6bf57a"
- }
- ],
- [
- "ip_scan_neighbor_enable_disable_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_probe_neighbor",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "dst_address",
- 16
- ],
- [
- "u8",
- "is_ipv6"
- ],
- {
- "crc": "0x1e44bfd7"
- }
- ],
- [
- "ip_probe_neighbor_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "want_ip4_arp_events",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "enable_disable"
- ],
- [
- "u32",
- "pid"
- ],
- [
- "u32",
- "address"
- ],
- {
- "crc": "0x77e06379"
- }
- ],
- [
- "want_ip4_arp_events_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip4_arp_event",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "address"
- ],
- [
- "u32",
- "pid"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "new_mac",
- 6
- ],
- [
- "u8",
- "mac_ip"
- ],
- {
- "crc": "0xef7235f7"
- }
- ],
- [
- "want_ip6_nd_events",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "enable_disable"
- ],
- [
- "u32",
- "pid"
- ],
- [
- "u8",
- "address",
- 16
- ],
- {
- "crc": "0x1cf65fbb"
- }
- ],
- [
- "want_ip6_nd_events_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip6_nd_event",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "pid"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "address",
- 16
- ],
- [
- "u8",
- "new_mac",
- 6
- ],
- [
- "u8",
- "mac_ip"
- ],
- {
- "crc": "0x96ab2fdd"
- }
- ],
- [
- "want_ip6_ra_events",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "enable_disable"
- ],
- [
- "u32",
- "pid"
- ],
- {
- "crc": "0x05b454b5"
- }
- ],
- [
- "want_ip6_ra_events_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip6_ra_event",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "pid"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "router_address",
- 16
- ],
- [
- "u8",
- "current_hop_limit"
- ],
- [
- "u8",
- "flags"
- ],
- [
- "u16",
- "router_lifetime_in_sec"
- ],
- [
- "u32",
- "neighbor_reachable_time_in_msec"
- ],
- [
- "u32",
- "time_in_msec_between_retransmitted_neighbor_solicitations"
- ],
- [
- "u32",
- "n_prefixes"
- ],
- [
- "vl_api_ip6_ra_prefix_info_t",
- "prefixes",
- 0,
- "n_prefixes"
- ],
- {
- "crc": "0xc5e54257"
- }
- ],
- [
- "proxy_arp_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "vl_api_proxy_arp_t",
- "proxy"
- ],
- {
- "crc": "0x227988d9"
- }
- ],
- [
- "proxy_arp_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "proxy_arp_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "proxy_arp_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "vl_api_proxy_arp_t",
- "proxy"
- ],
- {
- "crc": "0x9b707c77"
- }
- ],
- [
- "proxy_arp_intfc_enable_disable",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "enable_disable"
- ],
- {
- "crc": "0x69d24598"
- }
- ],
- [
- "proxy_arp_intfc_enable_disable_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "proxy_arp_intfc_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "proxy_arp_intfc_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0xf6458e5f"
- }
- ],
- [
- "reset_fib",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "vrf_id"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- {
- "crc": "0x8553ebd9"
- }
- ],
- [
- "reset_fib_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "set_arp_neighbor_limit",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_ipv6"
- ],
- [
- "u32",
- "arp_neighbor_limit"
- ],
- {
- "crc": "0x97d01fd6"
- }
- ],
- [
- "set_arp_neighbor_limit_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ioam_enable",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u16",
- "id"
- ],
- [
- "u8",
- "seqno"
- ],
- [
- "u8",
- "analyse"
- ],
- [
- "u8",
- "pot_enable"
- ],
- [
- "u8",
- "trace_enable"
- ],
- [
- "u32",
- "node_id"
- ],
- {
- "crc": "0x9392e032"
- }
- ],
- [
- "ioam_enable_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ioam_disable",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u16",
- "id"
- ],
- {
- "crc": "0x6b16a45e"
- }
- ],
- [
- "ioam_disable_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_reassembly_set",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "timeout_ms"
- ],
- [
- "u32",
- "max_reassemblies"
- ],
- [
- "u32",
- "expire_walk_interval_ms"
- ],
- [
- "u8",
- "is_ip6"
- ],
- {
- "crc": "0x1db184de"
- }
- ],
- [
- "ip_reassembly_set_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "ip_reassembly_get",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_ip6"
- ],
- {
- "crc": "0x6fe91190"
- }
- ],
- [
- "ip_reassembly_get_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "timeout_ms"
- ],
- [
- "u32",
- "max_reassemblies"
- ],
- [
- "u32",
- "expire_walk_interval_ms"
- ],
- [
- "u8",
- "is_ip6"
- ],
- {
- "crc": "0x1f90afd1"
- }
- ],
- [
- "ip_reassembly_enable_disable",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "enable_ip4"
- ],
- [
- "u8",
- "enable_ip6"
- ],
- {
- "crc": "0xbb8dc5d0"
- }
- ],
- [
- "ip_reassembly_enable_disable_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ]
- ],
- "vl_api_version": "0xa3532a2f",
- "unions": [
- [
- "address_union",
- [
- "vl_api_ip4_address_t",
- "ip4"
- ],
- [
- "vl_api_ip6_address_t",
- "ip6"
- ],
- {
- "crc": "0xd68a2fb4"
- }
- ]
- ],
- "services": {
- "ip_container_proxy_dump": {
- "reply": "ip_container_proxy_details",
- "stream": true
- },
- "ip_address_dump": {
- "reply": "ip_address_details",
- "stream": true
- },
- "ip_source_and_port_range_check_add_del": {
- "reply": "ip_source_and_port_range_check_add_del_reply"
- },
- "reset_fib": {
- "reply": "reset_fib_reply"
- },
- "ip_probe_neighbor": {
- "reply": "ip_probe_neighbor_reply"
- },
- "want_ip6_nd_events": {
- "reply": "want_ip6_nd_events_reply",
- "events": [
- "ip6_nd_event"
- ]
- },
- "ip_punt_police": {
- "reply": "ip_punt_police_reply"
- },
- "ip6nd_proxy_add_del": {
- "reply": "ip6nd_proxy_add_del_reply"
- },
- "set_arp_neighbor_limit": {
- "reply": "set_arp_neighbor_limit_reply"
- },
- "ip_reassembly_enable_disable": {
- "reply": "ip_reassembly_enable_disable_reply"
- },
- "ip6_fib_dump": {
- "reply": "ip6_fib_details",
- "stream": true
- },
- "ip6nd_send_router_solicitation": {
- "reply": "ip6nd_send_router_solicitation_reply"
- },
- "ip_source_check_interface_add_del": {
- "reply": "ip_source_check_interface_add_del_reply"
- },
- "ip_table_add_del": {
- "reply": "ip_table_add_del_reply"
- },
- "ip_neighbor_dump": {
- "reply": "ip_neighbor_details",
- "stream": true
- },
- "ip_punt_redirect": {
- "reply": "ip_punt_redirect_reply"
- },
- "sw_interface_ip6nd_ra_prefix": {
- "reply": "sw_interface_ip6nd_ra_prefix_reply"
- },
- "ip_reassembly_set": {
- "reply": "ip_reassembly_set_reply"
- },
- "ip6_mfib_dump": {
- "reply": "ip6_mfib_details",
- "stream": true
- },
- "sw_interface_ip6nd_ra_config": {
- "reply": "sw_interface_ip6nd_ra_config_reply"
- },
- "proxy_arp_dump": {
- "reply": "proxy_arp_details",
- "stream": true
- },
- "sw_interface_ip6_enable_disable": {
- "reply": "sw_interface_ip6_enable_disable_reply"
- },
- "ip_source_and_port_range_check_interface_add_del": {
- "reply": "ip_source_and_port_range_check_interface_add_del_reply"
- },
- "mfib_signal_dump": {
- "reply": "mfib_signal_details",
- "stream": true
- },
- "ip_punt_redirect_dump": {
- "reply": "ip_punt_redirect_details",
- "stream": true
- },
- "ip_container_proxy_add_del": {
- "reply": "ip_container_proxy_add_del_reply"
- },
- "ip_mfib_dump": {
- "reply": "ip_mfib_details",
- "stream": true
- },
- "ip_unnumbered_dump": {
- "reply": "ip_unnumbered_details",
- "stream": true
- },
- "ip_dump": {
- "reply": "ip_details",
- "stream": true
- },
- "ip_neighbor_add_del": {
- "reply": "ip_neighbor_add_del_reply"
- },
- "proxy_arp_intfc_enable_disable": {
- "reply": "proxy_arp_intfc_enable_disable_reply"
- },
- "proxy_arp_add_del": {
- "reply": "proxy_arp_add_del_reply"
- },
- "ip_add_del_route": {
- "reply": "ip_add_del_route_reply"
- },
- "ip6nd_proxy_dump": {
- "reply": "ip6nd_proxy_details",
- "stream": true
- },
- "want_ip6_ra_events": {
- "reply": "want_ip6_ra_events_reply",
- "events": [
- "ip6_ra_event"
- ]
- },
- "ip_fib_dump": {
- "reply": "ip_fib_details",
- "stream": true
- },
- "ip_scan_neighbor_enable_disable": {
- "reply": "ip_scan_neighbor_enable_disable_reply"
- },
- "ioam_enable": {
- "reply": "ioam_enable_reply"
- },
- "ip_mroute_add_del": {
- "reply": "ip_mroute_add_del_reply"
- },
- "proxy_arp_intfc_dump": {
- "reply": "proxy_arp_intfc_details",
- "stream": true
- },
- "want_ip4_arp_events": {
- "reply": "want_ip4_arp_events_reply",
- "events": [
- "ip4_arp_event"
- ]
- },
- "ip_reassembly_get": {
- "reply": "ip_reassembly_get_reply"
- },
- "set_ip_flow_hash": {
- "reply": "set_ip_flow_hash_reply"
- },
- "ioam_disable": {
- "reply": "ioam_disable_reply"
- }
- },
- "enums": [
- [
- "address_family",
- [
- "ADDRESS_IP4",
- 0
- ],
- [
- "ADDRESS_IP6",
- 1
- ],
- {
- "enumtype": "u32"
- }
- ]
- ],
- "types": [
- [
- "address",
- [
- "vl_api_address_family_t",
- "af"
- ],
- [
- "vl_api_address_union_t",
- "un"
- ],
- {
- "crc": "0x09f11671"
- }
- ],
- [
- "prefix",
- [
- "vl_api_address_t",
- "address"
- ],
- [
- "u8",
- "address_length"
- ],
- {
- "crc": "0x0403aebc"
- }
- ],
- [
- "mprefix",
- [
- "vl_api_address_family_t",
- "af"
- ],
- [
- "u16",
- "grp_address_length"
- ],
- [
- "vl_api_address_union_t",
- "grp_address"
- ],
- [
- "vl_api_address_union_t",
- "src_address"
- ],
- {
- "crc": "0x1c4cba05"
- }
- ],
- [
- "ip6_prefix",
- [
- "vl_api_ip6_address_t",
- "prefix"
- ],
- [
- "u8",
- "len"
- ],
- {
- "crc": "0x779fd64f"
- }
- ],
- [
- "ip4_prefix",
- [
- "vl_api_ip4_address_t",
- "prefix"
- ],
- [
- "u8",
- "len"
- ],
- {
- "crc": "0xea8dc11d"
- }
- ],
- [
- "fib_mpls_label",
- [
- "u8",
- "is_uniform"
- ],
- [
- "u32",
- "label"
- ],
- [
- "u8",
- "ttl"
- ],
- [
- "u8",
- "exp"
- ],
- {
- "crc": "0xc93bf35c"
- }
- ],
- [
- "fib_path",
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u32",
- "table_id"
- ],
- [
- "u8",
- "weight"
- ],
- [
- "u8",
- "preference"
- ],
- [
- "u8",
- "is_local"
- ],
- [
- "u8",
- "is_drop"
- ],
- [
- "u8",
- "is_udp_encap"
- ],
- [
- "u8",
- "is_unreach"
- ],
- [
- "u8",
- "is_prohibit"
- ],
- [
- "u8",
- "is_resolve_host"
- ],
- [
- "u8",
- "is_resolve_attached"
- ],
- [
- "u8",
- "is_dvr"
- ],
- [
- "u8",
- "is_source_lookup"
- ],
- [
- "u8",
- "is_interface_rx"
- ],
- [
- "u8",
- "afi"
- ],
- [
- "u8",
- "next_hop",
- 16
- ],
- [
- "u32",
- "next_hop_id"
- ],
- [
- "u32",
- "rpf_id"
- ],
- [
- "u32",
- "via_label"
- ],
- [
- "u8",
- "n_labels"
- ],
- [
- "vl_api_fib_mpls_label_t",
- "label_stack",
- 16
- ],
- {
- "crc": "0xba7a81f0"
- }
- ],
- [
- "mfib_path",
- [
- "vl_api_fib_path_t",
- "path"
- ],
- [
- "u32",
- "itf_flags"
- ],
- {
- "crc": "0x4ba77d32"
- }
- ],
- [
- "punt_redirect",
- [
- "u32",
- "rx_sw_if_index"
- ],
- [
- "u32",
- "tx_sw_if_index"
- ],
- [
- "vl_api_address_t",
- "nh"
- ],
- {
- "crc": "0x3e7a801f"
- }
- ],
- [
- "ip6_ra_prefix_info",
- [
- "u8",
- "dst_address",
- 16
- ],
- [
- "u8",
- "dst_address_length"
- ],
- [
- "u8",
- "flags"
- ],
- [
- "u32",
- "valid_time"
- ],
- [
- "u32",
- "preferred_time"
- ],
- {
- "crc": "0x83d7c6e5"
- }
- ],
- [
- "proxy_arp",
- [
- "u32",
- "vrf_id"
- ],
- [
- "u8",
- "low_address",
- 4
- ],
- [
- "u8",
- "hi_address",
- 4
- ],
- {
- "crc": "0x6d88106e"
- }
- ]
- ],
- "aliases": {
- "ip6_address": {
- "length": 16,
- "type": "u8"
- },
- "ip4_address": {
- "length": 4,
- "type": "u8"
- },
- "mac_address": {
- "length": 6,
- "type": "u8"
- }
- }
-}
diff --git a/examples/bin_api/ip/ip.ba.go b/examples/bin_api/ip/ip.ba.go
deleted file mode 100644
index b566608..0000000
--- a/examples/bin_api/ip/ip.ba.go
+++ /dev/null
@@ -1,2055 +0,0 @@
-// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: ip.api.json
-
-/*
- Package ip is a generated from VPP binary API module 'ip'.
-
- It contains following objects:
- 44 services
- 1 enum
- 3 aliases
- 11 types
- 1 union
- 91 messages
-*/
-package ip
-
-import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
-import bytes "bytes"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = api.RegisterMessage
-var _ = struc.Pack
-var _ = bytes.NewBuffer
-
-// Services represents VPP binary API services:
-type Services interface {
- DumpIP6Fib(*IP6FibDump) ([]*IP6FibDetails, error)
- DumpIP6Mfib(*IP6MfibDump) ([]*IP6MfibDetails, error)
- DumpIP6ndProxy(*IP6ndProxyDump) ([]*IP6ndProxyDetails, error)
- DumpIPAddress(*IPAddressDump) ([]*IPAddressDetails, error)
- DumpIPContainerProxy(*IPContainerProxyDump) ([]*IPContainerProxyDetails, error)
- DumpIP(*IPDump) ([]*IPDetails, error)
- DumpIPFib(*IPFibDump) ([]*IPFibDetails, error)
- DumpIPMfib(*IPMfibDump) ([]*IPMfibDetails, error)
- DumpIPNeighbor(*IPNeighborDump) ([]*IPNeighborDetails, error)
- DumpIPPuntRedirect(*IPPuntRedirectDump) ([]*IPPuntRedirectDetails, error)
- DumpIPUnnumbered(*IPUnnumberedDump) ([]*IPUnnumberedDetails, error)
- DumpMfibSignal(*MfibSignalDump) ([]*MfibSignalDetails, error)
- DumpProxyArp(*ProxyArpDump) ([]*ProxyArpDetails, error)
- DumpProxyArpIntfc(*ProxyArpIntfcDump) ([]*ProxyArpIntfcDetails, error)
- IoamDisable(*IoamDisable) (*IoamDisableReply, error)
- IoamEnable(*IoamEnable) (*IoamEnableReply, error)
- IP6ndProxyAddDel(*IP6ndProxyAddDel) (*IP6ndProxyAddDelReply, error)
- IP6ndSendRouterSolicitation(*IP6ndSendRouterSolicitation) (*IP6ndSendRouterSolicitationReply, error)
- IPAddDelRoute(*IPAddDelRoute) (*IPAddDelRouteReply, error)
- IPContainerProxyAddDel(*IPContainerProxyAddDel) (*IPContainerProxyAddDelReply, error)
- IPMrouteAddDel(*IPMrouteAddDel) (*IPMrouteAddDelReply, error)
- IPNeighborAddDel(*IPNeighborAddDel) (*IPNeighborAddDelReply, error)
- IPProbeNeighbor(*IPProbeNeighbor) (*IPProbeNeighborReply, error)
- IPPuntPolice(*IPPuntPolice) (*IPPuntPoliceReply, error)
- IPPuntRedirect(*IPPuntRedirect) (*IPPuntRedirectReply, error)
- IPReassemblyEnableDisable(*IPReassemblyEnableDisable) (*IPReassemblyEnableDisableReply, error)
- IPReassemblyGet(*IPReassemblyGet) (*IPReassemblyGetReply, error)
- IPReassemblySet(*IPReassemblySet) (*IPReassemblySetReply, error)
- IPScanNeighborEnableDisable(*IPScanNeighborEnableDisable) (*IPScanNeighborEnableDisableReply, error)
- IPSourceAndPortRangeCheckAddDel(*IPSourceAndPortRangeCheckAddDel) (*IPSourceAndPortRangeCheckAddDelReply, error)
- IPSourceAndPortRangeCheckInterfaceAddDel(*IPSourceAndPortRangeCheckInterfaceAddDel) (*IPSourceAndPortRangeCheckInterfaceAddDelReply, error)
- IPSourceCheckInterfaceAddDel(*IPSourceCheckInterfaceAddDel) (*IPSourceCheckInterfaceAddDelReply, error)
- IPTableAddDel(*IPTableAddDel) (*IPTableAddDelReply, error)
- ProxyArpAddDel(*ProxyArpAddDel) (*ProxyArpAddDelReply, error)
- ProxyArpIntfcEnableDisable(*ProxyArpIntfcEnableDisable) (*ProxyArpIntfcEnableDisableReply, error)
- ResetFib(*ResetFib) (*ResetFibReply, error)
- SetArpNeighborLimit(*SetArpNeighborLimit) (*SetArpNeighborLimitReply, error)
- SetIPFlowHash(*SetIPFlowHash) (*SetIPFlowHashReply, error)
- SwInterfaceIP6EnableDisable(*SwInterfaceIP6EnableDisable) (*SwInterfaceIP6EnableDisableReply, error)
- SwInterfaceIP6ndRaConfig(*SwInterfaceIP6ndRaConfig) (*SwInterfaceIP6ndRaConfigReply, error)
- SwInterfaceIP6ndRaPrefix(*SwInterfaceIP6ndRaPrefix) (*SwInterfaceIP6ndRaPrefixReply, error)
- WantIP4ArpEvents(*WantIP4ArpEvents) (*WantIP4ArpEventsReply, error)
- WantIP6NdEvents(*WantIP6NdEvents) (*WantIP6NdEventsReply, error)
- WantIP6RaEvents(*WantIP6RaEvents) (*WantIP6RaEventsReply, error)
-}
-
-/* Enums */
-
-// AddressFamily represents VPP binary API enum 'address_family':
-type AddressFamily uint32
-
-const (
- ADDRESS_IP4 AddressFamily = 0
- ADDRESS_IP6 AddressFamily = 1
-)
-
-/* Aliases */
-
-// IP4Address represents VPP binary API alias 'ip4_address':
-type IP4Address [4]uint8
-
-// IP6Address represents VPP binary API alias 'ip6_address':
-type IP6Address [16]uint8
-
-// MacAddress represents VPP binary API alias 'mac_address':
-type MacAddress [6]uint8
-
-/* Types */
-
-// Address represents VPP binary API type 'address':
-type Address struct {
- Af AddressFamily
- Un AddressUnion
-}
-
-func (*Address) GetTypeName() string {
- return "address"
-}
-func (*Address) GetCrcString() string {
- return "09f11671"
-}
-
-// FibMplsLabel represents VPP binary API type 'fib_mpls_label':
-type FibMplsLabel struct {
- IsUniform uint8
- Label uint32
- TTL uint8
- Exp uint8
-}
-
-func (*FibMplsLabel) GetTypeName() string {
- return "fib_mpls_label"
-}
-func (*FibMplsLabel) GetCrcString() string {
- return "c93bf35c"
-}
-
-// FibPath represents VPP binary API type 'fib_path':
-type FibPath struct {
- SwIfIndex uint32
- TableID uint32
- Weight uint8
- Preference uint8
- IsLocal uint8
- IsDrop uint8
- IsUDPEncap uint8
- IsUnreach uint8
- IsProhibit uint8
- IsResolveHost uint8
- IsResolveAttached uint8
- IsDvr uint8
- IsSourceLookup uint8
- IsInterfaceRx uint8
- Afi uint8
- NextHop []byte `struc:"[16]byte"`
- NextHopID uint32
- RpfID uint32
- ViaLabel uint32
- NLabels uint8
- LabelStack []FibMplsLabel `struc:"[16]FibMplsLabel"`
-}
-
-func (*FibPath) GetTypeName() string {
- return "fib_path"
-}
-func (*FibPath) GetCrcString() string {
- return "ba7a81f0"
-}
-
-// IP4Prefix represents VPP binary API type 'ip4_prefix':
-type IP4Prefix struct {
- Prefix IP4Address
- Len uint8
-}
-
-func (*IP4Prefix) GetTypeName() string {
- return "ip4_prefix"
-}
-func (*IP4Prefix) GetCrcString() string {
- return "ea8dc11d"
-}
-
-// IP6Prefix represents VPP binary API type 'ip6_prefix':
-type IP6Prefix struct {
- Prefix IP6Address
- Len uint8
-}
-
-func (*IP6Prefix) GetTypeName() string {
- return "ip6_prefix"
-}
-func (*IP6Prefix) GetCrcString() string {
- return "779fd64f"
-}
-
-// IP6RaPrefixInfo represents VPP binary API type 'ip6_ra_prefix_info':
-type IP6RaPrefixInfo struct {
- DstAddress []byte `struc:"[16]byte"`
- DstAddressLength uint8
- Flags uint8
- ValidTime uint32
- PreferredTime uint32
-}
-
-func (*IP6RaPrefixInfo) GetTypeName() string {
- return "ip6_ra_prefix_info"
-}
-func (*IP6RaPrefixInfo) GetCrcString() string {
- return "83d7c6e5"
-}
-
-// MfibPath represents VPP binary API type 'mfib_path':
-type MfibPath struct {
- Path FibPath
- ItfFlags uint32
-}
-
-func (*MfibPath) GetTypeName() string {
- return "mfib_path"
-}
-func (*MfibPath) GetCrcString() string {
- return "4ba77d32"
-}
-
-// Mprefix represents VPP binary API type 'mprefix':
-type Mprefix struct {
- Af AddressFamily
- GrpAddressLength uint16
- GrpAddress AddressUnion
- SrcAddress AddressUnion
-}
-
-func (*Mprefix) GetTypeName() string {
- return "mprefix"
-}
-func (*Mprefix) GetCrcString() string {
- return "1c4cba05"
-}
-
-// Prefix represents VPP binary API type 'prefix':
-type Prefix struct {
- Address Address
- AddressLength uint8
-}
-
-func (*Prefix) GetTypeName() string {
- return "prefix"
-}
-func (*Prefix) GetCrcString() string {
- return "0403aebc"
-}
-
-// ProxyArp represents VPP binary API type 'proxy_arp':
-type ProxyArp struct {
- VrfID uint32
- LowAddress []byte `struc:"[4]byte"`
- HiAddress []byte `struc:"[4]byte"`
-}
-
-func (*ProxyArp) GetTypeName() string {
- return "proxy_arp"
-}
-func (*ProxyArp) GetCrcString() string {
- return "6d88106e"
-}
-
-// PuntRedirect represents VPP binary API type 'punt_redirect':
-type PuntRedirect struct {
- RxSwIfIndex uint32
- TxSwIfIndex uint32
- Nh Address
-}
-
-func (*PuntRedirect) GetTypeName() string {
- return "punt_redirect"
-}
-func (*PuntRedirect) GetCrcString() string {
- return "3e7a801f"
-}
-
-/* Unions */
-
-// AddressUnion represents VPP binary API union 'address_union':
-type AddressUnion struct {
- Union_data [16]byte
-}
-
-func (*AddressUnion) GetTypeName() string {
- return "address_union"
-}
-func (*AddressUnion) GetCrcString() string {
- return "d68a2fb4"
-}
-
-func AddressUnionIP4(a IP4Address) (u AddressUnion) {
- u.SetIP4(a)
- return
-}
-func (u *AddressUnion) SetIP4(a IP4Address) {
- var b = new(bytes.Buffer)
- if err := struc.Pack(b, &a); err != nil {
- return
- }
- copy(u.Union_data[:], b.Bytes())
-}
-func (u *AddressUnion) GetIP4() (a IP4Address) {
- var b = bytes.NewReader(u.Union_data[:])
- struc.Unpack(b, &a)
- return
-}
-
-func AddressUnionIP6(a IP6Address) (u AddressUnion) {
- u.SetIP6(a)
- return
-}
-func (u *AddressUnion) SetIP6(a IP6Address) {
- var b = new(bytes.Buffer)
- if err := struc.Pack(b, &a); err != nil {
- return
- }
- copy(u.Union_data[:], b.Bytes())
-}
-func (u *AddressUnion) GetIP6() (a IP6Address) {
- var b = bytes.NewReader(u.Union_data[:])
- struc.Unpack(b, &a)
- return
-}
-
-/* Messages */
-
-// IoamDisable represents VPP binary API message 'ioam_disable':
-type IoamDisable struct {
- ID uint16
-}
-
-func (*IoamDisable) GetMessageName() string {
- return "ioam_disable"
-}
-func (*IoamDisable) GetCrcString() string {
- return "6b16a45e"
-}
-func (*IoamDisable) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IoamDisableReply represents VPP binary API message 'ioam_disable_reply':
-type IoamDisableReply struct {
- Retval int32
-}
-
-func (*IoamDisableReply) GetMessageName() string {
- return "ioam_disable_reply"
-}
-func (*IoamDisableReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IoamDisableReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IoamEnable represents VPP binary API message 'ioam_enable':
-type IoamEnable struct {
- ID uint16
- Seqno uint8
- Analyse uint8
- PotEnable uint8
- TraceEnable uint8
- NodeID uint32
-}
-
-func (*IoamEnable) GetMessageName() string {
- return "ioam_enable"
-}
-func (*IoamEnable) GetCrcString() string {
- return "9392e032"
-}
-func (*IoamEnable) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IoamEnableReply represents VPP binary API message 'ioam_enable_reply':
-type IoamEnableReply struct {
- Retval int32
-}
-
-func (*IoamEnableReply) GetMessageName() string {
- return "ioam_enable_reply"
-}
-func (*IoamEnableReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IoamEnableReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IP4ArpEvent represents VPP binary API message 'ip4_arp_event':
-type IP4ArpEvent struct {
- Address uint32
- PID uint32
- SwIfIndex uint32
- NewMac []byte `struc:"[6]byte"`
- MacIP uint8
-}
-
-func (*IP4ArpEvent) GetMessageName() string {
- return "ip4_arp_event"
-}
-func (*IP4ArpEvent) GetCrcString() string {
- return "ef7235f7"
-}
-func (*IP4ArpEvent) GetMessageType() api.MessageType {
- return api.EventMessage
-}
-
-// IP6FibDetails represents VPP binary API message 'ip6_fib_details':
-type IP6FibDetails struct {
- TableID uint32
- TableName []byte `struc:"[64]byte"`
- AddressLength uint8
- Address []byte `struc:"[16]byte"`
- Count uint32 `struc:"sizeof=Path"`
- StatsIndex uint32
- Path []FibPath
-}
-
-func (*IP6FibDetails) GetMessageName() string {
- return "ip6_fib_details"
-}
-func (*IP6FibDetails) GetCrcString() string {
- return "ef11e94d"
-}
-func (*IP6FibDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IP6FibDump represents VPP binary API message 'ip6_fib_dump':
-type IP6FibDump struct{}
-
-func (*IP6FibDump) GetMessageName() string {
- return "ip6_fib_dump"
-}
-func (*IP6FibDump) GetCrcString() string {
- return "51077d14"
-}
-func (*IP6FibDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IP6MfibDetails represents VPP binary API message 'ip6_mfib_details':
-type IP6MfibDetails struct {
- TableID uint32
- AddressLength uint8
- GrpAddress []byte `struc:"[16]byte"`
- SrcAddress []byte `struc:"[16]byte"`
- Count uint32 `struc:"sizeof=Path"`
- Path []MfibPath
-}
-
-func (*IP6MfibDetails) GetMessageName() string {
- return "ip6_mfib_details"
-}
-func (*IP6MfibDetails) GetCrcString() string {
- return "738c546e"
-}
-func (*IP6MfibDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IP6MfibDump represents VPP binary API message 'ip6_mfib_dump':
-type IP6MfibDump struct{}
-
-func (*IP6MfibDump) GetMessageName() string {
- return "ip6_mfib_dump"
-}
-func (*IP6MfibDump) GetCrcString() string {
- return "51077d14"
-}
-func (*IP6MfibDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IP6NdEvent represents VPP binary API message 'ip6_nd_event':
-type IP6NdEvent struct {
- PID uint32
- SwIfIndex uint32
- Address []byte `struc:"[16]byte"`
- NewMac []byte `struc:"[6]byte"`
- MacIP uint8
-}
-
-func (*IP6NdEvent) GetMessageName() string {
- return "ip6_nd_event"
-}
-func (*IP6NdEvent) GetCrcString() string {
- return "96ab2fdd"
-}
-func (*IP6NdEvent) GetMessageType() api.MessageType {
- return api.EventMessage
-}
-
-// IP6RaEvent represents VPP binary API message 'ip6_ra_event':
-type IP6RaEvent struct {
- PID uint32
- SwIfIndex uint32
- RouterAddress []byte `struc:"[16]byte"`
- CurrentHopLimit uint8
- Flags uint8
- RouterLifetimeInSec uint16
- NeighborReachableTimeInMsec uint32
- TimeInMsecBetweenRetransmittedNeighborSolicitations uint32
- NPrefixes uint32 `struc:"sizeof=Prefixes"`
- Prefixes []IP6RaPrefixInfo
-}
-
-func (*IP6RaEvent) GetMessageName() string {
- return "ip6_ra_event"
-}
-func (*IP6RaEvent) GetCrcString() string {
- return "c5e54257"
-}
-func (*IP6RaEvent) GetMessageType() api.MessageType {
- return api.EventMessage
-}
-
-// IP6ndProxyAddDel represents VPP binary API message 'ip6nd_proxy_add_del':
-type IP6ndProxyAddDel struct {
- SwIfIndex uint32
- IsDel uint8
- Address []byte `struc:"[16]byte"`
-}
-
-func (*IP6ndProxyAddDel) GetMessageName() string {
- return "ip6nd_proxy_add_del"
-}
-func (*IP6ndProxyAddDel) GetCrcString() string {
- return "d95f0fa0"
-}
-func (*IP6ndProxyAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IP6ndProxyAddDelReply represents VPP binary API message 'ip6nd_proxy_add_del_reply':
-type IP6ndProxyAddDelReply struct {
- Retval int32
-}
-
-func (*IP6ndProxyAddDelReply) GetMessageName() string {
- return "ip6nd_proxy_add_del_reply"
-}
-func (*IP6ndProxyAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IP6ndProxyAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IP6ndProxyDetails represents VPP binary API message 'ip6nd_proxy_details':
-type IP6ndProxyDetails struct {
- SwIfIndex uint32
- Address []byte `struc:"[16]byte"`
-}
-
-func (*IP6ndProxyDetails) GetMessageName() string {
- return "ip6nd_proxy_details"
-}
-func (*IP6ndProxyDetails) GetCrcString() string {
- return "6a47c974"
-}
-func (*IP6ndProxyDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IP6ndProxyDump represents VPP binary API message 'ip6nd_proxy_dump':
-type IP6ndProxyDump struct{}
-
-func (*IP6ndProxyDump) GetMessageName() string {
- return "ip6nd_proxy_dump"
-}
-func (*IP6ndProxyDump) GetCrcString() string {
- return "51077d14"
-}
-func (*IP6ndProxyDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IP6ndSendRouterSolicitation represents VPP binary API message 'ip6nd_send_router_solicitation':
-type IP6ndSendRouterSolicitation struct {
- Irt uint32
- Mrt uint32
- Mrc uint32
- Mrd uint32
- SwIfIndex uint32
- Stop uint8
-}
-
-func (*IP6ndSendRouterSolicitation) GetMessageName() string {
- return "ip6nd_send_router_solicitation"
-}
-func (*IP6ndSendRouterSolicitation) GetCrcString() string {
- return "bd968917"
-}
-func (*IP6ndSendRouterSolicitation) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IP6ndSendRouterSolicitationReply represents VPP binary API message 'ip6nd_send_router_solicitation_reply':
-type IP6ndSendRouterSolicitationReply struct {
- Retval int32
-}
-
-func (*IP6ndSendRouterSolicitationReply) GetMessageName() string {
- return "ip6nd_send_router_solicitation_reply"
-}
-func (*IP6ndSendRouterSolicitationReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IP6ndSendRouterSolicitationReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPAddDelRoute represents VPP binary API message 'ip_add_del_route':
-type IPAddDelRoute struct {
- NextHopSwIfIndex uint32
- TableID uint32
- ClassifyTableIndex uint32
- NextHopTableID uint32
- NextHopID uint32
- IsAdd uint8
- IsDrop uint8
- IsUnreach uint8
- IsProhibit uint8
- IsIPv6 uint8
- IsLocal uint8
- IsClassify uint8
- IsMultipath uint8
- IsResolveHost uint8
- IsResolveAttached uint8
- IsDvr uint8
- IsSourceLookup uint8
- IsUDPEncap uint8
- NextHopWeight uint8
- NextHopPreference uint8
- NextHopProto uint8
- DstAddressLength uint8
- DstAddress []byte `struc:"[16]byte"`
- NextHopAddress []byte `struc:"[16]byte"`
- NextHopNOutLabels uint8 `struc:"sizeof=NextHopOutLabelStack"`
- NextHopViaLabel uint32
- NextHopOutLabelStack []FibMplsLabel
-}
-
-func (*IPAddDelRoute) GetMessageName() string {
- return "ip_add_del_route"
-}
-func (*IPAddDelRoute) GetCrcString() string {
- return "4219d62d"
-}
-func (*IPAddDelRoute) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPAddDelRouteReply represents VPP binary API message 'ip_add_del_route_reply':
-type IPAddDelRouteReply struct {
- Retval int32
- StatsIndex uint32
-}
-
-func (*IPAddDelRouteReply) GetMessageName() string {
- return "ip_add_del_route_reply"
-}
-func (*IPAddDelRouteReply) GetCrcString() string {
- return "1992deab"
-}
-func (*IPAddDelRouteReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPAddressDetails represents VPP binary API message 'ip_address_details':
-type IPAddressDetails struct {
- IP []byte `struc:"[16]byte"`
- PrefixLength uint8
- SwIfIndex uint32
- IsIPv6 uint8
-}
-
-func (*IPAddressDetails) GetMessageName() string {
- return "ip_address_details"
-}
-func (*IPAddressDetails) GetCrcString() string {
- return "9bc25966"
-}
-func (*IPAddressDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPAddressDump represents VPP binary API message 'ip_address_dump':
-type IPAddressDump struct {
- SwIfIndex uint32
- IsIPv6 uint8
-}
-
-func (*IPAddressDump) GetMessageName() string {
- return "ip_address_dump"
-}
-func (*IPAddressDump) GetCrcString() string {
- return "6b7bcd0a"
-}
-func (*IPAddressDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPContainerProxyAddDel represents VPP binary API message 'ip_container_proxy_add_del':
-type IPContainerProxyAddDel struct {
- IP []byte `struc:"[16]byte"`
- IsIP4 uint8
- Plen uint8
- SwIfIndex uint32
- IsAdd uint8
-}
-
-func (*IPContainerProxyAddDel) GetMessageName() string {
- return "ip_container_proxy_add_del"
-}
-func (*IPContainerProxyAddDel) GetCrcString() string {
- return "0a355d39"
-}
-func (*IPContainerProxyAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPContainerProxyAddDelReply represents VPP binary API message 'ip_container_proxy_add_del_reply':
-type IPContainerProxyAddDelReply struct {
- Retval int32
-}
-
-func (*IPContainerProxyAddDelReply) GetMessageName() string {
- return "ip_container_proxy_add_del_reply"
-}
-func (*IPContainerProxyAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPContainerProxyAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPContainerProxyDetails represents VPP binary API message 'ip_container_proxy_details':
-type IPContainerProxyDetails struct {
- SwIfIndex uint32
- Prefix Prefix
-}
-
-func (*IPContainerProxyDetails) GetMessageName() string {
- return "ip_container_proxy_details"
-}
-func (*IPContainerProxyDetails) GetCrcString() string {
- return "d528df63"
-}
-func (*IPContainerProxyDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPContainerProxyDump represents VPP binary API message 'ip_container_proxy_dump':
-type IPContainerProxyDump struct{}
-
-func (*IPContainerProxyDump) GetMessageName() string {
- return "ip_container_proxy_dump"
-}
-func (*IPContainerProxyDump) GetCrcString() string {
- return "51077d14"
-}
-func (*IPContainerProxyDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPDetails represents VPP binary API message 'ip_details':
-type IPDetails struct {
- SwIfIndex uint32
- IsIPv6 uint8
-}
-
-func (*IPDetails) GetMessageName() string {
- return "ip_details"
-}
-func (*IPDetails) GetCrcString() string {
- return "8bb37ec4"
-}
-func (*IPDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPDump represents VPP binary API message 'ip_dump':
-type IPDump struct {
- IsIPv6 uint8
-}
-
-func (*IPDump) GetMessageName() string {
- return "ip_dump"
-}
-func (*IPDump) GetCrcString() string {
- return "de883da4"
-}
-func (*IPDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPFibDetails represents VPP binary API message 'ip_fib_details':
-type IPFibDetails struct {
- TableID uint32
- TableName []byte `struc:"[64]byte"`
- AddressLength uint8
- Address []byte `struc:"[4]byte"`
- Count uint32 `struc:"sizeof=Path"`
- StatsIndex uint32
- Path []FibPath
-}
-
-func (*IPFibDetails) GetMessageName() string {
- return "ip_fib_details"
-}
-func (*IPFibDetails) GetCrcString() string {
- return "f6a2fab3"
-}
-func (*IPFibDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPFibDump represents VPP binary API message 'ip_fib_dump':
-type IPFibDump struct{}
-
-func (*IPFibDump) GetMessageName() string {
- return "ip_fib_dump"
-}
-func (*IPFibDump) GetCrcString() string {
- return "51077d14"
-}
-func (*IPFibDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPMfibDetails represents VPP binary API message 'ip_mfib_details':
-type IPMfibDetails struct {
- TableID uint32
- EntryFlags uint32
- RpfID uint32
- AddressLength uint8
- GrpAddress []byte `struc:"[4]byte"`
- SrcAddress []byte `struc:"[4]byte"`
- Count uint32 `struc:"sizeof=Path"`
- StatsIndex uint32
- Path []MfibPath
-}
-
-func (*IPMfibDetails) GetMessageName() string {
- return "ip_mfib_details"
-}
-func (*IPMfibDetails) GetCrcString() string {
- return "61faa26f"
-}
-func (*IPMfibDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPMfibDump represents VPP binary API message 'ip_mfib_dump':
-type IPMfibDump struct{}
-
-func (*IPMfibDump) GetMessageName() string {
- return "ip_mfib_dump"
-}
-func (*IPMfibDump) GetCrcString() string {
- return "51077d14"
-}
-func (*IPMfibDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPMrouteAddDel represents VPP binary API message 'ip_mroute_add_del':
-type IPMrouteAddDel struct {
- NextHopSwIfIndex uint32
- TableID uint32
- EntryFlags uint32
- ItfFlags uint32
- RpfID uint32
- BierImp uint32
- GrpAddressLength uint16
- NextHopAfi uint8
- IsAdd uint8
- IsIPv6 uint8
- IsLocal uint8
- GrpAddress []byte `struc:"[16]byte"`
- SrcAddress []byte `struc:"[16]byte"`
- NhAddress []byte `struc:"[16]byte"`
-}
-
-func (*IPMrouteAddDel) GetMessageName() string {
- return "ip_mroute_add_del"
-}
-func (*IPMrouteAddDel) GetCrcString() string {
- return "f44c17b1"
-}
-func (*IPMrouteAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPMrouteAddDelReply represents VPP binary API message 'ip_mroute_add_del_reply':
-type IPMrouteAddDelReply struct {
- Retval int32
- StatsIndex uint32
-}
-
-func (*IPMrouteAddDelReply) GetMessageName() string {
- return "ip_mroute_add_del_reply"
-}
-func (*IPMrouteAddDelReply) GetCrcString() string {
- return "1992deab"
-}
-func (*IPMrouteAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPNeighborAddDel represents VPP binary API message 'ip_neighbor_add_del':
-type IPNeighborAddDel struct {
- SwIfIndex uint32
- IsAdd uint8
- IsIPv6 uint8
- IsStatic uint8
- IsNoAdjFib uint8
- MacAddress []byte `struc:"[6]byte"`
- DstAddress []byte `struc:"[16]byte"`
-}
-
-func (*IPNeighborAddDel) GetMessageName() string {
- return "ip_neighbor_add_del"
-}
-func (*IPNeighborAddDel) GetCrcString() string {
- return "4711eb25"
-}
-func (*IPNeighborAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPNeighborAddDelReply represents VPP binary API message 'ip_neighbor_add_del_reply':
-type IPNeighborAddDelReply struct {
- Retval int32
- StatsIndex uint32
-}
-
-func (*IPNeighborAddDelReply) GetMessageName() string {
- return "ip_neighbor_add_del_reply"
-}
-func (*IPNeighborAddDelReply) GetCrcString() string {
- return "1992deab"
-}
-func (*IPNeighborAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPNeighborDetails represents VPP binary API message 'ip_neighbor_details':
-type IPNeighborDetails struct {
- SwIfIndex uint32
- StatsIndex uint32
- IsStatic uint8
- IsIPv6 uint8
- MacAddress []byte `struc:"[6]byte"`
- IPAddress []byte `struc:"[16]byte"`
-}
-
-func (*IPNeighborDetails) GetMessageName() string {
- return "ip_neighbor_details"
-}
-func (*IPNeighborDetails) GetCrcString() string {
- return "c7001770"
-}
-func (*IPNeighborDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPNeighborDump represents VPP binary API message 'ip_neighbor_dump':
-type IPNeighborDump struct {
- SwIfIndex uint32
- IsIPv6 uint8
-}
-
-func (*IPNeighborDump) GetMessageName() string {
- return "ip_neighbor_dump"
-}
-func (*IPNeighborDump) GetCrcString() string {
- return "6b7bcd0a"
-}
-func (*IPNeighborDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPProbeNeighbor represents VPP binary API message 'ip_probe_neighbor':
-type IPProbeNeighbor struct {
- SwIfIndex uint32
- DstAddress []byte `struc:"[16]byte"`
- IsIPv6 uint8
-}
-
-func (*IPProbeNeighbor) GetMessageName() string {
- return "ip_probe_neighbor"
-}
-func (*IPProbeNeighbor) GetCrcString() string {
- return "1e44bfd7"
-}
-func (*IPProbeNeighbor) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPProbeNeighborReply represents VPP binary API message 'ip_probe_neighbor_reply':
-type IPProbeNeighborReply struct {
- Retval int32
-}
-
-func (*IPProbeNeighborReply) GetMessageName() string {
- return "ip_probe_neighbor_reply"
-}
-func (*IPProbeNeighborReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPProbeNeighborReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPPuntPolice represents VPP binary API message 'ip_punt_police':
-type IPPuntPolice struct {
- PolicerIndex uint32
- IsAdd uint8
- IsIP6 uint8
-}
-
-func (*IPPuntPolice) GetMessageName() string {
- return "ip_punt_police"
-}
-func (*IPPuntPolice) GetCrcString() string {
- return "38691592"
-}
-func (*IPPuntPolice) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPPuntPoliceReply represents VPP binary API message 'ip_punt_police_reply':
-type IPPuntPoliceReply struct {
- Retval int32
-}
-
-func (*IPPuntPoliceReply) GetMessageName() string {
- return "ip_punt_police_reply"
-}
-func (*IPPuntPoliceReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPPuntPoliceReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPPuntRedirect represents VPP binary API message 'ip_punt_redirect':
-type IPPuntRedirect struct {
- Punt PuntRedirect
- IsAdd uint8
-}
-
-func (*IPPuntRedirect) GetMessageName() string {
- return "ip_punt_redirect"
-}
-func (*IPPuntRedirect) GetCrcString() string {
- return "a953495b"
-}
-func (*IPPuntRedirect) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPPuntRedirectDetails represents VPP binary API message 'ip_punt_redirect_details':
-type IPPuntRedirectDetails struct {
- Punt PuntRedirect
-}
-
-func (*IPPuntRedirectDetails) GetMessageName() string {
- return "ip_punt_redirect_details"
-}
-func (*IPPuntRedirectDetails) GetCrcString() string {
- return "a47f70da"
-}
-func (*IPPuntRedirectDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPPuntRedirectDump represents VPP binary API message 'ip_punt_redirect_dump':
-type IPPuntRedirectDump struct {
- SwIfIndex uint32
- IsIPv6 uint8
-}
-
-func (*IPPuntRedirectDump) GetMessageName() string {
- return "ip_punt_redirect_dump"
-}
-func (*IPPuntRedirectDump) GetCrcString() string {
- return "6b7bcd0a"
-}
-func (*IPPuntRedirectDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPPuntRedirectReply represents VPP binary API message 'ip_punt_redirect_reply':
-type IPPuntRedirectReply struct {
- Retval int32
-}
-
-func (*IPPuntRedirectReply) GetMessageName() string {
- return "ip_punt_redirect_reply"
-}
-func (*IPPuntRedirectReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPPuntRedirectReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPReassemblyEnableDisable represents VPP binary API message 'ip_reassembly_enable_disable':
-type IPReassemblyEnableDisable struct {
- SwIfIndex uint32
- EnableIP4 uint8
- EnableIP6 uint8
-}
-
-func (*IPReassemblyEnableDisable) GetMessageName() string {
- return "ip_reassembly_enable_disable"
-}
-func (*IPReassemblyEnableDisable) GetCrcString() string {
- return "bb8dc5d0"
-}
-func (*IPReassemblyEnableDisable) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPReassemblyEnableDisableReply represents VPP binary API message 'ip_reassembly_enable_disable_reply':
-type IPReassemblyEnableDisableReply struct {
- Retval int32
-}
-
-func (*IPReassemblyEnableDisableReply) GetMessageName() string {
- return "ip_reassembly_enable_disable_reply"
-}
-func (*IPReassemblyEnableDisableReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPReassemblyEnableDisableReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPReassemblyGet represents VPP binary API message 'ip_reassembly_get':
-type IPReassemblyGet struct {
- IsIP6 uint8
-}
-
-func (*IPReassemblyGet) GetMessageName() string {
- return "ip_reassembly_get"
-}
-func (*IPReassemblyGet) GetCrcString() string {
- return "6fe91190"
-}
-func (*IPReassemblyGet) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPReassemblyGetReply represents VPP binary API message 'ip_reassembly_get_reply':
-type IPReassemblyGetReply struct {
- Retval int32
- TimeoutMs uint32
- MaxReassemblies uint32
- ExpireWalkIntervalMs uint32
- IsIP6 uint8
-}
-
-func (*IPReassemblyGetReply) GetMessageName() string {
- return "ip_reassembly_get_reply"
-}
-func (*IPReassemblyGetReply) GetCrcString() string {
- return "1f90afd1"
-}
-func (*IPReassemblyGetReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPReassemblySet represents VPP binary API message 'ip_reassembly_set':
-type IPReassemblySet struct {
- TimeoutMs uint32
- MaxReassemblies uint32
- ExpireWalkIntervalMs uint32
- IsIP6 uint8
-}
-
-func (*IPReassemblySet) GetMessageName() string {
- return "ip_reassembly_set"
-}
-func (*IPReassemblySet) GetCrcString() string {
- return "1db184de"
-}
-func (*IPReassemblySet) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPReassemblySetReply represents VPP binary API message 'ip_reassembly_set_reply':
-type IPReassemblySetReply struct {
- Retval int32
-}
-
-func (*IPReassemblySetReply) GetMessageName() string {
- return "ip_reassembly_set_reply"
-}
-func (*IPReassemblySetReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPReassemblySetReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPScanNeighborEnableDisable represents VPP binary API message 'ip_scan_neighbor_enable_disable':
-type IPScanNeighborEnableDisable struct {
- Mode uint8
- ScanInterval uint8
- MaxProcTime uint8
- MaxUpdate uint8
- ScanIntDelay uint8
- StaleThreshold uint8
-}
-
-func (*IPScanNeighborEnableDisable) GetMessageName() string {
- return "ip_scan_neighbor_enable_disable"
-}
-func (*IPScanNeighborEnableDisable) GetCrcString() string {
- return "0a6bf57a"
-}
-func (*IPScanNeighborEnableDisable) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPScanNeighborEnableDisableReply represents VPP binary API message 'ip_scan_neighbor_enable_disable_reply':
-type IPScanNeighborEnableDisableReply struct {
- Retval int32
-}
-
-func (*IPScanNeighborEnableDisableReply) GetMessageName() string {
- return "ip_scan_neighbor_enable_disable_reply"
-}
-func (*IPScanNeighborEnableDisableReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPScanNeighborEnableDisableReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPSourceAndPortRangeCheckAddDel represents VPP binary API message 'ip_source_and_port_range_check_add_del':
-type IPSourceAndPortRangeCheckAddDel struct {
- IsIPv6 uint8
- IsAdd uint8
- MaskLength uint8
- Address []byte `struc:"[16]byte"`
- NumberOfRanges uint8
- LowPorts []uint16 `struc:"[32]uint16"`
- HighPorts []uint16 `struc:"[32]uint16"`
- VrfID uint32
-}
-
-func (*IPSourceAndPortRangeCheckAddDel) GetMessageName() string {
- return "ip_source_and_port_range_check_add_del"
-}
-func (*IPSourceAndPortRangeCheckAddDel) GetCrcString() string {
- return "03d6b03a"
-}
-func (*IPSourceAndPortRangeCheckAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPSourceAndPortRangeCheckAddDelReply represents VPP binary API message 'ip_source_and_port_range_check_add_del_reply':
-type IPSourceAndPortRangeCheckAddDelReply struct {
- Retval int32
-}
-
-func (*IPSourceAndPortRangeCheckAddDelReply) GetMessageName() string {
- return "ip_source_and_port_range_check_add_del_reply"
-}
-func (*IPSourceAndPortRangeCheckAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPSourceAndPortRangeCheckAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPSourceAndPortRangeCheckInterfaceAddDel represents VPP binary API message 'ip_source_and_port_range_check_interface_add_del':
-type IPSourceAndPortRangeCheckInterfaceAddDel struct {
- IsAdd uint8
- SwIfIndex uint32
- TCPInVrfID uint32
- TCPOutVrfID uint32
- UDPInVrfID uint32
- UDPOutVrfID uint32
-}
-
-func (*IPSourceAndPortRangeCheckInterfaceAddDel) GetMessageName() string {
- return "ip_source_and_port_range_check_interface_add_del"
-}
-func (*IPSourceAndPortRangeCheckInterfaceAddDel) GetCrcString() string {
- return "6966bc44"
-}
-func (*IPSourceAndPortRangeCheckInterfaceAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPSourceAndPortRangeCheckInterfaceAddDelReply represents VPP binary API message 'ip_source_and_port_range_check_interface_add_del_reply':
-type IPSourceAndPortRangeCheckInterfaceAddDelReply struct {
- Retval int32
-}
-
-func (*IPSourceAndPortRangeCheckInterfaceAddDelReply) GetMessageName() string {
- return "ip_source_and_port_range_check_interface_add_del_reply"
-}
-func (*IPSourceAndPortRangeCheckInterfaceAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPSourceAndPortRangeCheckInterfaceAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPSourceCheckInterfaceAddDel represents VPP binary API message 'ip_source_check_interface_add_del':
-type IPSourceCheckInterfaceAddDel struct {
- IsAdd uint8
- Loose uint8
- SwIfIndex uint32
-}
-
-func (*IPSourceCheckInterfaceAddDel) GetMessageName() string {
- return "ip_source_check_interface_add_del"
-}
-func (*IPSourceCheckInterfaceAddDel) GetCrcString() string {
- return "0a60152a"
-}
-func (*IPSourceCheckInterfaceAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPSourceCheckInterfaceAddDelReply represents VPP binary API message 'ip_source_check_interface_add_del_reply':
-type IPSourceCheckInterfaceAddDelReply struct {
- Retval int32
-}
-
-func (*IPSourceCheckInterfaceAddDelReply) GetMessageName() string {
- return "ip_source_check_interface_add_del_reply"
-}
-func (*IPSourceCheckInterfaceAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPSourceCheckInterfaceAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPTableAddDel represents VPP binary API message 'ip_table_add_del':
-type IPTableAddDel struct {
- TableID uint32
- IsIPv6 uint8
- IsAdd uint8
- Name []byte `struc:"[64]byte"`
-}
-
-func (*IPTableAddDel) GetMessageName() string {
- return "ip_table_add_del"
-}
-func (*IPTableAddDel) GetCrcString() string {
- return "0240c89d"
-}
-func (*IPTableAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// IPTableAddDelReply represents VPP binary API message 'ip_table_add_del_reply':
-type IPTableAddDelReply struct {
- Retval int32
-}
-
-func (*IPTableAddDelReply) GetMessageName() string {
- return "ip_table_add_del_reply"
-}
-func (*IPTableAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*IPTableAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPUnnumberedDetails represents VPP binary API message 'ip_unnumbered_details':
-type IPUnnumberedDetails struct {
- SwIfIndex uint32
- IPSwIfIndex uint32
-}
-
-func (*IPUnnumberedDetails) GetMessageName() string {
- return "ip_unnumbered_details"
-}
-func (*IPUnnumberedDetails) GetCrcString() string {
- return "ae694cf4"
-}
-func (*IPUnnumberedDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// IPUnnumberedDump represents VPP binary API message 'ip_unnumbered_dump':
-type IPUnnumberedDump struct {
- SwIfIndex uint32
-}
-
-func (*IPUnnumberedDump) GetMessageName() string {
- return "ip_unnumbered_dump"
-}
-func (*IPUnnumberedDump) GetCrcString() string {
- return "529cb13f"
-}
-func (*IPUnnumberedDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MfibSignalDetails represents VPP binary API message 'mfib_signal_details':
-type MfibSignalDetails struct {
- SwIfIndex uint32
- TableID uint32
- GrpAddressLen uint16
- GrpAddress []byte `struc:"[16]byte"`
- SrcAddress []byte `struc:"[16]byte"`
- IPPacketLen uint16
- IPPacketData []byte `struc:"[256]byte"`
-}
-
-func (*MfibSignalDetails) GetMessageName() string {
- return "mfib_signal_details"
-}
-func (*MfibSignalDetails) GetCrcString() string {
- return "3f5f03f5"
-}
-func (*MfibSignalDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MfibSignalDump represents VPP binary API message 'mfib_signal_dump':
-type MfibSignalDump struct{}
-
-func (*MfibSignalDump) GetMessageName() string {
- return "mfib_signal_dump"
-}
-func (*MfibSignalDump) GetCrcString() string {
- return "51077d14"
-}
-func (*MfibSignalDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ProxyArpAddDel represents VPP binary API message 'proxy_arp_add_del':
-type ProxyArpAddDel struct {
- IsAdd uint8
- Proxy ProxyArp
-}
-
-func (*ProxyArpAddDel) GetMessageName() string {
- return "proxy_arp_add_del"
-}
-func (*ProxyArpAddDel) GetCrcString() string {
- return "227988d9"
-}
-func (*ProxyArpAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ProxyArpAddDelReply represents VPP binary API message 'proxy_arp_add_del_reply':
-type ProxyArpAddDelReply struct {
- Retval int32
-}
-
-func (*ProxyArpAddDelReply) GetMessageName() string {
- return "proxy_arp_add_del_reply"
-}
-func (*ProxyArpAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*ProxyArpAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ProxyArpDetails represents VPP binary API message 'proxy_arp_details':
-type ProxyArpDetails struct {
- Proxy ProxyArp
-}
-
-func (*ProxyArpDetails) GetMessageName() string {
- return "proxy_arp_details"
-}
-func (*ProxyArpDetails) GetCrcString() string {
- return "9b707c77"
-}
-func (*ProxyArpDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ProxyArpDump represents VPP binary API message 'proxy_arp_dump':
-type ProxyArpDump struct{}
-
-func (*ProxyArpDump) GetMessageName() string {
- return "proxy_arp_dump"
-}
-func (*ProxyArpDump) GetCrcString() string {
- return "51077d14"
-}
-func (*ProxyArpDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ProxyArpIntfcDetails represents VPP binary API message 'proxy_arp_intfc_details':
-type ProxyArpIntfcDetails struct {
- SwIfIndex uint32
-}
-
-func (*ProxyArpIntfcDetails) GetMessageName() string {
- return "proxy_arp_intfc_details"
-}
-func (*ProxyArpIntfcDetails) GetCrcString() string {
- return "f6458e5f"
-}
-func (*ProxyArpIntfcDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ProxyArpIntfcDump represents VPP binary API message 'proxy_arp_intfc_dump':
-type ProxyArpIntfcDump struct{}
-
-func (*ProxyArpIntfcDump) GetMessageName() string {
- return "proxy_arp_intfc_dump"
-}
-func (*ProxyArpIntfcDump) GetCrcString() string {
- return "51077d14"
-}
-func (*ProxyArpIntfcDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ProxyArpIntfcEnableDisable represents VPP binary API message 'proxy_arp_intfc_enable_disable':
-type ProxyArpIntfcEnableDisable struct {
- SwIfIndex uint32
- EnableDisable uint8
-}
-
-func (*ProxyArpIntfcEnableDisable) GetMessageName() string {
- return "proxy_arp_intfc_enable_disable"
-}
-func (*ProxyArpIntfcEnableDisable) GetCrcString() string {
- return "69d24598"
-}
-func (*ProxyArpIntfcEnableDisable) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ProxyArpIntfcEnableDisableReply represents VPP binary API message 'proxy_arp_intfc_enable_disable_reply':
-type ProxyArpIntfcEnableDisableReply struct {
- Retval int32
-}
-
-func (*ProxyArpIntfcEnableDisableReply) GetMessageName() string {
- return "proxy_arp_intfc_enable_disable_reply"
-}
-func (*ProxyArpIntfcEnableDisableReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*ProxyArpIntfcEnableDisableReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ResetFib represents VPP binary API message 'reset_fib':
-type ResetFib struct {
- VrfID uint32
- IsIPv6 uint8
-}
-
-func (*ResetFib) GetMessageName() string {
- return "reset_fib"
-}
-func (*ResetFib) GetCrcString() string {
- return "8553ebd9"
-}
-func (*ResetFib) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ResetFibReply represents VPP binary API message 'reset_fib_reply':
-type ResetFibReply struct {
- Retval int32
-}
-
-func (*ResetFibReply) GetMessageName() string {
- return "reset_fib_reply"
-}
-func (*ResetFibReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*ResetFibReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SetArpNeighborLimit represents VPP binary API message 'set_arp_neighbor_limit':
-type SetArpNeighborLimit struct {
- IsIPv6 uint8
- ArpNeighborLimit uint32
-}
-
-func (*SetArpNeighborLimit) GetMessageName() string {
- return "set_arp_neighbor_limit"
-}
-func (*SetArpNeighborLimit) GetCrcString() string {
- return "97d01fd6"
-}
-func (*SetArpNeighborLimit) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SetArpNeighborLimitReply represents VPP binary API message 'set_arp_neighbor_limit_reply':
-type SetArpNeighborLimitReply struct {
- Retval int32
-}
-
-func (*SetArpNeighborLimitReply) GetMessageName() string {
- return "set_arp_neighbor_limit_reply"
-}
-func (*SetArpNeighborLimitReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SetArpNeighborLimitReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SetIPFlowHash represents VPP binary API message 'set_ip_flow_hash':
-type SetIPFlowHash struct {
- VrfID uint32
- IsIPv6 uint8
- Src uint8
- Dst uint8
- Sport uint8
- Dport uint8
- Proto uint8
- Reverse uint8
- Symmetric uint8
-}
-
-func (*SetIPFlowHash) GetMessageName() string {
- return "set_ip_flow_hash"
-}
-func (*SetIPFlowHash) GetCrcString() string {
- return "a9084bfb"
-}
-func (*SetIPFlowHash) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SetIPFlowHashReply represents VPP binary API message 'set_ip_flow_hash_reply':
-type SetIPFlowHashReply struct {
- Retval int32
-}
-
-func (*SetIPFlowHashReply) GetMessageName() string {
- return "set_ip_flow_hash_reply"
-}
-func (*SetIPFlowHashReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SetIPFlowHashReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceIP6EnableDisable represents VPP binary API message 'sw_interface_ip6_enable_disable':
-type SwInterfaceIP6EnableDisable struct {
- SwIfIndex uint32
- Enable uint8
-}
-
-func (*SwInterfaceIP6EnableDisable) GetMessageName() string {
- return "sw_interface_ip6_enable_disable"
-}
-func (*SwInterfaceIP6EnableDisable) GetCrcString() string {
- return "a36fadc0"
-}
-func (*SwInterfaceIP6EnableDisable) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceIP6EnableDisableReply represents VPP binary API message 'sw_interface_ip6_enable_disable_reply':
-type SwInterfaceIP6EnableDisableReply struct {
- Retval int32
-}
-
-func (*SwInterfaceIP6EnableDisableReply) GetMessageName() string {
- return "sw_interface_ip6_enable_disable_reply"
-}
-func (*SwInterfaceIP6EnableDisableReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceIP6EnableDisableReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceIP6ndRaConfig represents VPP binary API message 'sw_interface_ip6nd_ra_config':
-type SwInterfaceIP6ndRaConfig struct {
- SwIfIndex uint32
- Suppress uint8
- Managed uint8
- Other uint8
- LlOption uint8
- SendUnicast uint8
- Cease uint8
- IsNo uint8
- DefaultRouter uint8
- MaxInterval uint32
- MinInterval uint32
- Lifetime uint32
- InitialCount uint32
- InitialInterval uint32
-}
-
-func (*SwInterfaceIP6ndRaConfig) GetMessageName() string {
- return "sw_interface_ip6nd_ra_config"
-}
-func (*SwInterfaceIP6ndRaConfig) GetCrcString() string {
- return "c3f02daa"
-}
-func (*SwInterfaceIP6ndRaConfig) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceIP6ndRaConfigReply represents VPP binary API message 'sw_interface_ip6nd_ra_config_reply':
-type SwInterfaceIP6ndRaConfigReply struct {
- Retval int32
-}
-
-func (*SwInterfaceIP6ndRaConfigReply) GetMessageName() string {
- return "sw_interface_ip6nd_ra_config_reply"
-}
-func (*SwInterfaceIP6ndRaConfigReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceIP6ndRaConfigReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceIP6ndRaPrefix represents VPP binary API message 'sw_interface_ip6nd_ra_prefix':
-type SwInterfaceIP6ndRaPrefix struct {
- SwIfIndex uint32
- Address []byte `struc:"[16]byte"`
- AddressLength uint8
- UseDefault uint8
- NoAdvertise uint8
- OffLink uint8
- NoAutoconfig uint8
- NoOnlink uint8
- IsNo uint8
- ValLifetime uint32
- PrefLifetime uint32
-}
-
-func (*SwInterfaceIP6ndRaPrefix) GetMessageName() string {
- return "sw_interface_ip6nd_ra_prefix"
-}
-func (*SwInterfaceIP6ndRaPrefix) GetCrcString() string {
- return "ca763c9a"
-}
-func (*SwInterfaceIP6ndRaPrefix) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SwInterfaceIP6ndRaPrefixReply represents VPP binary API message 'sw_interface_ip6nd_ra_prefix_reply':
-type SwInterfaceIP6ndRaPrefixReply struct {
- Retval int32
-}
-
-func (*SwInterfaceIP6ndRaPrefixReply) GetMessageName() string {
- return "sw_interface_ip6nd_ra_prefix_reply"
-}
-func (*SwInterfaceIP6ndRaPrefixReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SwInterfaceIP6ndRaPrefixReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// WantIP4ArpEvents represents VPP binary API message 'want_ip4_arp_events':
-type WantIP4ArpEvents struct {
- EnableDisable uint8
- PID uint32
- Address uint32
-}
-
-func (*WantIP4ArpEvents) GetMessageName() string {
- return "want_ip4_arp_events"
-}
-func (*WantIP4ArpEvents) GetCrcString() string {
- return "77e06379"
-}
-func (*WantIP4ArpEvents) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// WantIP4ArpEventsReply represents VPP binary API message 'want_ip4_arp_events_reply':
-type WantIP4ArpEventsReply struct {
- Retval int32
-}
-
-func (*WantIP4ArpEventsReply) GetMessageName() string {
- return "want_ip4_arp_events_reply"
-}
-func (*WantIP4ArpEventsReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*WantIP4ArpEventsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// WantIP6NdEvents represents VPP binary API message 'want_ip6_nd_events':
-type WantIP6NdEvents struct {
- EnableDisable uint8
- PID uint32
- Address []byte `struc:"[16]byte"`
-}
-
-func (*WantIP6NdEvents) GetMessageName() string {
- return "want_ip6_nd_events"
-}
-func (*WantIP6NdEvents) GetCrcString() string {
- return "1cf65fbb"
-}
-func (*WantIP6NdEvents) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// WantIP6NdEventsReply represents VPP binary API message 'want_ip6_nd_events_reply':
-type WantIP6NdEventsReply struct {
- Retval int32
-}
-
-func (*WantIP6NdEventsReply) GetMessageName() string {
- return "want_ip6_nd_events_reply"
-}
-func (*WantIP6NdEventsReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*WantIP6NdEventsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// WantIP6RaEvents represents VPP binary API message 'want_ip6_ra_events':
-type WantIP6RaEvents struct {
- EnableDisable uint8
- PID uint32
-}
-
-func (*WantIP6RaEvents) GetMessageName() string {
- return "want_ip6_ra_events"
-}
-func (*WantIP6RaEvents) GetCrcString() string {
- return "05b454b5"
-}
-func (*WantIP6RaEvents) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// WantIP6RaEventsReply represents VPP binary API message 'want_ip6_ra_events_reply':
-type WantIP6RaEventsReply struct {
- Retval int32
-}
-
-func (*WantIP6RaEventsReply) GetMessageName() string {
- return "want_ip6_ra_events_reply"
-}
-func (*WantIP6RaEventsReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*WantIP6RaEventsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-func init() {
- api.RegisterMessage((*IoamDisable)(nil), "ip.IoamDisable")
- api.RegisterMessage((*IoamDisableReply)(nil), "ip.IoamDisableReply")
- api.RegisterMessage((*IoamEnable)(nil), "ip.IoamEnable")
- api.RegisterMessage((*IoamEnableReply)(nil), "ip.IoamEnableReply")
- api.RegisterMessage((*IP4ArpEvent)(nil), "ip.IP4ArpEvent")
- api.RegisterMessage((*IP6FibDetails)(nil), "ip.IP6FibDetails")
- api.RegisterMessage((*IP6FibDump)(nil), "ip.IP6FibDump")
- api.RegisterMessage((*IP6MfibDetails)(nil), "ip.IP6MfibDetails")
- api.RegisterMessage((*IP6MfibDump)(nil), "ip.IP6MfibDump")
- api.RegisterMessage((*IP6NdEvent)(nil), "ip.IP6NdEvent")
- api.RegisterMessage((*IP6RaEvent)(nil), "ip.IP6RaEvent")
- api.RegisterMessage((*IP6ndProxyAddDel)(nil), "ip.IP6ndProxyAddDel")
- api.RegisterMessage((*IP6ndProxyAddDelReply)(nil), "ip.IP6ndProxyAddDelReply")
- api.RegisterMessage((*IP6ndProxyDetails)(nil), "ip.IP6ndProxyDetails")
- api.RegisterMessage((*IP6ndProxyDump)(nil), "ip.IP6ndProxyDump")
- api.RegisterMessage((*IP6ndSendRouterSolicitation)(nil), "ip.IP6ndSendRouterSolicitation")
- api.RegisterMessage((*IP6ndSendRouterSolicitationReply)(nil), "ip.IP6ndSendRouterSolicitationReply")
- api.RegisterMessage((*IPAddDelRoute)(nil), "ip.IPAddDelRoute")
- api.RegisterMessage((*IPAddDelRouteReply)(nil), "ip.IPAddDelRouteReply")
- api.RegisterMessage((*IPAddressDetails)(nil), "ip.IPAddressDetails")
- api.RegisterMessage((*IPAddressDump)(nil), "ip.IPAddressDump")
- api.RegisterMessage((*IPContainerProxyAddDel)(nil), "ip.IPContainerProxyAddDel")
- api.RegisterMessage((*IPContainerProxyAddDelReply)(nil), "ip.IPContainerProxyAddDelReply")
- api.RegisterMessage((*IPContainerProxyDetails)(nil), "ip.IPContainerProxyDetails")
- api.RegisterMessage((*IPContainerProxyDump)(nil), "ip.IPContainerProxyDump")
- api.RegisterMessage((*IPDetails)(nil), "ip.IPDetails")
- api.RegisterMessage((*IPDump)(nil), "ip.IPDump")
- api.RegisterMessage((*IPFibDetails)(nil), "ip.IPFibDetails")
- api.RegisterMessage((*IPFibDump)(nil), "ip.IPFibDump")
- api.RegisterMessage((*IPMfibDetails)(nil), "ip.IPMfibDetails")
- api.RegisterMessage((*IPMfibDump)(nil), "ip.IPMfibDump")
- api.RegisterMessage((*IPMrouteAddDel)(nil), "ip.IPMrouteAddDel")
- api.RegisterMessage((*IPMrouteAddDelReply)(nil), "ip.IPMrouteAddDelReply")
- api.RegisterMessage((*IPNeighborAddDel)(nil), "ip.IPNeighborAddDel")
- api.RegisterMessage((*IPNeighborAddDelReply)(nil), "ip.IPNeighborAddDelReply")
- api.RegisterMessage((*IPNeighborDetails)(nil), "ip.IPNeighborDetails")
- api.RegisterMessage((*IPNeighborDump)(nil), "ip.IPNeighborDump")
- api.RegisterMessage((*IPProbeNeighbor)(nil), "ip.IPProbeNeighbor")
- api.RegisterMessage((*IPProbeNeighborReply)(nil), "ip.IPProbeNeighborReply")
- api.RegisterMessage((*IPPuntPolice)(nil), "ip.IPPuntPolice")
- api.RegisterMessage((*IPPuntPoliceReply)(nil), "ip.IPPuntPoliceReply")
- api.RegisterMessage((*IPPuntRedirect)(nil), "ip.IPPuntRedirect")
- api.RegisterMessage((*IPPuntRedirectDetails)(nil), "ip.IPPuntRedirectDetails")
- api.RegisterMessage((*IPPuntRedirectDump)(nil), "ip.IPPuntRedirectDump")
- api.RegisterMessage((*IPPuntRedirectReply)(nil), "ip.IPPuntRedirectReply")
- api.RegisterMessage((*IPReassemblyEnableDisable)(nil), "ip.IPReassemblyEnableDisable")
- api.RegisterMessage((*IPReassemblyEnableDisableReply)(nil), "ip.IPReassemblyEnableDisableReply")
- api.RegisterMessage((*IPReassemblyGet)(nil), "ip.IPReassemblyGet")
- api.RegisterMessage((*IPReassemblyGetReply)(nil), "ip.IPReassemblyGetReply")
- api.RegisterMessage((*IPReassemblySet)(nil), "ip.IPReassemblySet")
- api.RegisterMessage((*IPReassemblySetReply)(nil), "ip.IPReassemblySetReply")
- api.RegisterMessage((*IPScanNeighborEnableDisable)(nil), "ip.IPScanNeighborEnableDisable")
- api.RegisterMessage((*IPScanNeighborEnableDisableReply)(nil), "ip.IPScanNeighborEnableDisableReply")
- api.RegisterMessage((*IPSourceAndPortRangeCheckAddDel)(nil), "ip.IPSourceAndPortRangeCheckAddDel")
- api.RegisterMessage((*IPSourceAndPortRangeCheckAddDelReply)(nil), "ip.IPSourceAndPortRangeCheckAddDelReply")
- api.RegisterMessage((*IPSourceAndPortRangeCheckInterfaceAddDel)(nil), "ip.IPSourceAndPortRangeCheckInterfaceAddDel")
- api.RegisterMessage((*IPSourceAndPortRangeCheckInterfaceAddDelReply)(nil), "ip.IPSourceAndPortRangeCheckInterfaceAddDelReply")
- api.RegisterMessage((*IPSourceCheckInterfaceAddDel)(nil), "ip.IPSourceCheckInterfaceAddDel")
- api.RegisterMessage((*IPSourceCheckInterfaceAddDelReply)(nil), "ip.IPSourceCheckInterfaceAddDelReply")
- api.RegisterMessage((*IPTableAddDel)(nil), "ip.IPTableAddDel")
- api.RegisterMessage((*IPTableAddDelReply)(nil), "ip.IPTableAddDelReply")
- api.RegisterMessage((*IPUnnumberedDetails)(nil), "ip.IPUnnumberedDetails")
- api.RegisterMessage((*IPUnnumberedDump)(nil), "ip.IPUnnumberedDump")
- api.RegisterMessage((*MfibSignalDetails)(nil), "ip.MfibSignalDetails")
- api.RegisterMessage((*MfibSignalDump)(nil), "ip.MfibSignalDump")
- api.RegisterMessage((*ProxyArpAddDel)(nil), "ip.ProxyArpAddDel")
- api.RegisterMessage((*ProxyArpAddDelReply)(nil), "ip.ProxyArpAddDelReply")
- api.RegisterMessage((*ProxyArpDetails)(nil), "ip.ProxyArpDetails")
- api.RegisterMessage((*ProxyArpDump)(nil), "ip.ProxyArpDump")
- api.RegisterMessage((*ProxyArpIntfcDetails)(nil), "ip.ProxyArpIntfcDetails")
- api.RegisterMessage((*ProxyArpIntfcDump)(nil), "ip.ProxyArpIntfcDump")
- api.RegisterMessage((*ProxyArpIntfcEnableDisable)(nil), "ip.ProxyArpIntfcEnableDisable")
- api.RegisterMessage((*ProxyArpIntfcEnableDisableReply)(nil), "ip.ProxyArpIntfcEnableDisableReply")
- api.RegisterMessage((*ResetFib)(nil), "ip.ResetFib")
- api.RegisterMessage((*ResetFibReply)(nil), "ip.ResetFibReply")
- api.RegisterMessage((*SetArpNeighborLimit)(nil), "ip.SetArpNeighborLimit")
- api.RegisterMessage((*SetArpNeighborLimitReply)(nil), "ip.SetArpNeighborLimitReply")
- api.RegisterMessage((*SetIPFlowHash)(nil), "ip.SetIPFlowHash")
- api.RegisterMessage((*SetIPFlowHashReply)(nil), "ip.SetIPFlowHashReply")
- api.RegisterMessage((*SwInterfaceIP6EnableDisable)(nil), "ip.SwInterfaceIP6EnableDisable")
- api.RegisterMessage((*SwInterfaceIP6EnableDisableReply)(nil), "ip.SwInterfaceIP6EnableDisableReply")
- api.RegisterMessage((*SwInterfaceIP6ndRaConfig)(nil), "ip.SwInterfaceIP6ndRaConfig")
- api.RegisterMessage((*SwInterfaceIP6ndRaConfigReply)(nil), "ip.SwInterfaceIP6ndRaConfigReply")
- api.RegisterMessage((*SwInterfaceIP6ndRaPrefix)(nil), "ip.SwInterfaceIP6ndRaPrefix")
- api.RegisterMessage((*SwInterfaceIP6ndRaPrefixReply)(nil), "ip.SwInterfaceIP6ndRaPrefixReply")
- api.RegisterMessage((*WantIP4ArpEvents)(nil), "ip.WantIP4ArpEvents")
- api.RegisterMessage((*WantIP4ArpEventsReply)(nil), "ip.WantIP4ArpEventsReply")
- api.RegisterMessage((*WantIP6NdEvents)(nil), "ip.WantIP6NdEvents")
- api.RegisterMessage((*WantIP6NdEventsReply)(nil), "ip.WantIP6NdEventsReply")
- api.RegisterMessage((*WantIP6RaEvents)(nil), "ip.WantIP6RaEvents")
- api.RegisterMessage((*WantIP6RaEventsReply)(nil), "ip.WantIP6RaEventsReply")
-}
-
-var Messages = []api.Message{
- (*IoamDisable)(nil),
- (*IoamDisableReply)(nil),
- (*IoamEnable)(nil),
- (*IoamEnableReply)(nil),
- (*IP4ArpEvent)(nil),
- (*IP6FibDetails)(nil),
- (*IP6FibDump)(nil),
- (*IP6MfibDetails)(nil),
- (*IP6MfibDump)(nil),
- (*IP6NdEvent)(nil),
- (*IP6RaEvent)(nil),
- (*IP6ndProxyAddDel)(nil),
- (*IP6ndProxyAddDelReply)(nil),
- (*IP6ndProxyDetails)(nil),
- (*IP6ndProxyDump)(nil),
- (*IP6ndSendRouterSolicitation)(nil),
- (*IP6ndSendRouterSolicitationReply)(nil),
- (*IPAddDelRoute)(nil),
- (*IPAddDelRouteReply)(nil),
- (*IPAddressDetails)(nil),
- (*IPAddressDump)(nil),
- (*IPContainerProxyAddDel)(nil),
- (*IPContainerProxyAddDelReply)(nil),
- (*IPContainerProxyDetails)(nil),
- (*IPContainerProxyDump)(nil),
- (*IPDetails)(nil),
- (*IPDump)(nil),
- (*IPFibDetails)(nil),
- (*IPFibDump)(nil),
- (*IPMfibDetails)(nil),
- (*IPMfibDump)(nil),
- (*IPMrouteAddDel)(nil),
- (*IPMrouteAddDelReply)(nil),
- (*IPNeighborAddDel)(nil),
- (*IPNeighborAddDelReply)(nil),
- (*IPNeighborDetails)(nil),
- (*IPNeighborDump)(nil),
- (*IPProbeNeighbor)(nil),
- (*IPProbeNeighborReply)(nil),
- (*IPPuntPolice)(nil),
- (*IPPuntPoliceReply)(nil),
- (*IPPuntRedirect)(nil),
- (*IPPuntRedirectDetails)(nil),
- (*IPPuntRedirectDump)(nil),
- (*IPPuntRedirectReply)(nil),
- (*IPReassemblyEnableDisable)(nil),
- (*IPReassemblyEnableDisableReply)(nil),
- (*IPReassemblyGet)(nil),
- (*IPReassemblyGetReply)(nil),
- (*IPReassemblySet)(nil),
- (*IPReassemblySetReply)(nil),
- (*IPScanNeighborEnableDisable)(nil),
- (*IPScanNeighborEnableDisableReply)(nil),
- (*IPSourceAndPortRangeCheckAddDel)(nil),
- (*IPSourceAndPortRangeCheckAddDelReply)(nil),
- (*IPSourceAndPortRangeCheckInterfaceAddDel)(nil),
- (*IPSourceAndPortRangeCheckInterfaceAddDelReply)(nil),
- (*IPSourceCheckInterfaceAddDel)(nil),
- (*IPSourceCheckInterfaceAddDelReply)(nil),
- (*IPTableAddDel)(nil),
- (*IPTableAddDelReply)(nil),
- (*IPUnnumberedDetails)(nil),
- (*IPUnnumberedDump)(nil),
- (*MfibSignalDetails)(nil),
- (*MfibSignalDump)(nil),
- (*ProxyArpAddDel)(nil),
- (*ProxyArpAddDelReply)(nil),
- (*ProxyArpDetails)(nil),
- (*ProxyArpDump)(nil),
- (*ProxyArpIntfcDetails)(nil),
- (*ProxyArpIntfcDump)(nil),
- (*ProxyArpIntfcEnableDisable)(nil),
- (*ProxyArpIntfcEnableDisableReply)(nil),
- (*ResetFib)(nil),
- (*ResetFibReply)(nil),
- (*SetArpNeighborLimit)(nil),
- (*SetArpNeighborLimitReply)(nil),
- (*SetIPFlowHash)(nil),
- (*SetIPFlowHashReply)(nil),
- (*SwInterfaceIP6EnableDisable)(nil),
- (*SwInterfaceIP6EnableDisableReply)(nil),
- (*SwInterfaceIP6ndRaConfig)(nil),
- (*SwInterfaceIP6ndRaConfigReply)(nil),
- (*SwInterfaceIP6ndRaPrefix)(nil),
- (*SwInterfaceIP6ndRaPrefixReply)(nil),
- (*WantIP4ArpEvents)(nil),
- (*WantIP4ArpEventsReply)(nil),
- (*WantIP6NdEvents)(nil),
- (*WantIP6NdEventsReply)(nil),
- (*WantIP6RaEvents)(nil),
- (*WantIP6RaEventsReply)(nil),
-}
diff --git a/examples/bin_api/map.api.json b/examples/bin_api/map.api.json
deleted file mode 100644
index a19bd3a..0000000
--- a/examples/bin_api/map.api.json
+++ /dev/null
@@ -1,1022 +0,0 @@
-{
- "messages": [
- [
- "map_add_domain",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "vl_api_ip6_prefix_t",
- "ip6_prefix"
- ],
- [
- "vl_api_ip4_prefix_t",
- "ip4_prefix"
- ],
- [
- "vl_api_ip6_prefix_t",
- "ip6_src"
- ],
- [
- "u8",
- "ea_bits_len"
- ],
- [
- "u8",
- "psid_offset"
- ],
- [
- "u8",
- "psid_length"
- ],
- [
- "u16",
- "mtu"
- ],
- {
- "crc": "0xa9358068"
- }
- ],
- [
- "map_add_domain_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "index"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0x3e6d4e2c"
- }
- ],
- [
- "map_del_domain",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "index"
- ],
- {
- "crc": "0x8ac76db6"
- }
- ],
- [
- "map_del_domain_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_add_del_rule",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "index"
- ],
- [
- "bool",
- "is_add"
- ],
- [
- "vl_api_ip6_address_t",
- "ip6_dst"
- ],
- [
- "u16",
- "psid"
- ],
- {
- "crc": "0xe6132040"
- }
- ],
- [
- "map_add_del_rule_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_domain_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "map_domain_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "domain_index"
- ],
- [
- "vl_api_ip6_prefix_t",
- "ip6_prefix"
- ],
- [
- "vl_api_ip4_prefix_t",
- "ip4_prefix"
- ],
- [
- "vl_api_ip6_prefix_t",
- "ip6_src"
- ],
- [
- "u8",
- "ea_bits_len"
- ],
- [
- "u8",
- "psid_offset"
- ],
- [
- "u8",
- "psid_length"
- ],
- [
- "u8",
- "flags"
- ],
- [
- "u16",
- "mtu"
- ],
- {
- "crc": "0x2a17dcb8"
- }
- ],
- [
- "map_rule_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "domain_index"
- ],
- {
- "crc": "0xe43e6ff6"
- }
- ],
- [
- "map_rule_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "vl_api_ip6_address_t",
- "ip6_dst"
- ],
- [
- "u16",
- "psid"
- ],
- {
- "crc": "0x4f932665"
- }
- ],
- [
- "map_if_enable_disable",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "bool",
- "is_enable"
- ],
- [
- "bool",
- "is_translation"
- ],
- {
- "crc": "0x61a30cd9"
- }
- ],
- [
- "map_if_enable_disable_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_summary_stats",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "map_summary_stats_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u64",
- "total_bindings"
- ],
- [
- "u64",
- "total_pkts",
- 2
- ],
- [
- "u64",
- "total_bytes",
- 2
- ],
- [
- "u64",
- "total_ip4_fragments"
- ],
- [
- "u64",
- "total_security_check",
- 2
- ],
- {
- "crc": "0x0e4ace0e"
- }
- ],
- [
- "map_param_set_fragmentation",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "bool",
- "inner"
- ],
- [
- "bool",
- "ignore_df"
- ],
- {
- "crc": "0x9ff54d90"
- }
- ],
- [
- "map_param_set_fragmentation_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_param_set_icmp",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "vl_api_ip4_address_t",
- "ip4_err_relay_src"
- ],
- {
- "crc": "0x4c0a4fd2"
- }
- ],
- [
- "map_param_set_icmp_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_param_set_icmp6",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "bool",
- "enable_unreachable"
- ],
- {
- "crc": "0x5d01f8c1"
- }
- ],
- [
- "map_param_set_icmp6_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_param_add_del_pre_resolve",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "bool",
- "is_add"
- ],
- [
- "vl_api_ip4_address_t",
- "ip4_nh_address"
- ],
- [
- "vl_api_ip6_address_t",
- "ip6_nh_address"
- ],
- {
- "crc": "0xea9a9a4a"
- }
- ],
- [
- "map_param_add_del_pre_resolve_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_param_set_reassembly",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "bool",
- "is_ip6"
- ],
- [
- "u16",
- "lifetime_ms"
- ],
- [
- "u16",
- "pool_size"
- ],
- [
- "u32",
- "buffers"
- ],
- [
- "f64",
- "ht_ratio"
- ],
- {
- "crc": "0x54172b10"
- }
- ],
- [
- "map_param_set_reassembly_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_param_set_security_check",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "bool",
- "enable"
- ],
- [
- "bool",
- "fragments"
- ],
- {
- "crc": "0x6abe9836"
- }
- ],
- [
- "map_param_set_security_check_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_param_set_traffic_class",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "bool",
- "copy"
- ],
- [
- "u8",
- "class"
- ],
- {
- "crc": "0x007ee563"
- }
- ],
- [
- "map_param_set_traffic_class_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_param_set_tcp",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u16",
- "tcp_mss"
- ],
- {
- "crc": "0x87a825d9"
- }
- ],
- [
- "map_param_set_tcp_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "map_param_get",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "map_param_get_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u8",
- "frag_inner"
- ],
- [
- "u8",
- "frag_ignore_df"
- ],
- [
- "vl_api_ip4_address_t",
- "icmp_ip4_err_relay_src"
- ],
- [
- "bool",
- "icmp6_enable_unreachable"
- ],
- [
- "vl_api_ip4_address_t",
- "ip4_nh_address"
- ],
- [
- "vl_api_ip6_address_t",
- "ip6_nh_address"
- ],
- [
- "u16",
- "ip4_lifetime_ms"
- ],
- [
- "u16",
- "ip4_pool_size"
- ],
- [
- "u32",
- "ip4_buffers"
- ],
- [
- "f64",
- "ip4_ht_ratio"
- ],
- [
- "u16",
- "ip6_lifetime_ms"
- ],
- [
- "u16",
- "ip6_pool_size"
- ],
- [
- "u32",
- "ip6_buffers"
- ],
- [
- "f64",
- "ip6_ht_ratio"
- ],
- [
- "bool",
- "sec_check_enable"
- ],
- [
- "bool",
- "sec_check_fragments"
- ],
- [
- "bool",
- "tc_copy"
- ],
- [
- "u8",
- "tc_class"
- ],
- {
- "crc": "0xb40e9226"
- }
- ]
- ],
- "vl_api_version": "0x75de78c3",
- "unions": [
- [
- "address_union",
- [
- "vl_api_ip4_address_t",
- "ip4"
- ],
- [
- "vl_api_ip6_address_t",
- "ip6"
- ],
- {
- "crc": "0xd68a2fb4"
- }
- ]
- ],
- "services": {
- "map_param_set_fragmentation": {
- "reply": "map_param_set_fragmentation_reply"
- },
- "map_param_add_del_pre_resolve": {
- "reply": "map_param_add_del_pre_resolve_reply"
- },
- "map_param_set_tcp": {
- "reply": "map_param_set_tcp_reply"
- },
- "map_rule_dump": {
- "reply": "map_rule_details",
- "stream": true
- },
- "map_if_enable_disable": {
- "reply": "map_if_enable_disable_reply"
- },
- "map_param_set_icmp6": {
- "reply": "map_param_set_icmp6_reply"
- },
- "map_add_del_rule": {
- "reply": "map_add_del_rule_reply"
- },
- "map_domain_dump": {
- "reply": "map_domain_details",
- "stream": true
- },
- "map_param_get": {
- "reply": "map_param_get_reply"
- },
- "map_param_set_icmp": {
- "reply": "map_param_set_icmp_reply"
- },
- "map_add_domain": {
- "reply": "map_add_domain_reply"
- },
- "map_summary_stats": {
- "reply": "map_summary_stats_reply"
- },
- "map_param_set_traffic_class": {
- "reply": "map_param_set_traffic_class_reply"
- },
- "map_del_domain": {
- "reply": "map_del_domain_reply"
- },
- "map_param_set_reassembly": {
- "reply": "map_param_set_reassembly_reply"
- },
- "map_param_set_security_check": {
- "reply": "map_param_set_security_check_reply"
- }
- },
- "enums": [
- [
- "address_family",
- [
- "ADDRESS_IP4",
- 0
- ],
- [
- "ADDRESS_IP6",
- 1
- ],
- {
- "enumtype": "u32"
- }
- ]
- ],
- "types": [
- [
- "address",
- [
- "vl_api_address_family_t",
- "af"
- ],
- [
- "vl_api_address_union_t",
- "un"
- ],
- {
- "crc": "0x09f11671"
- }
- ],
- [
- "prefix",
- [
- "vl_api_address_t",
- "address"
- ],
- [
- "u8",
- "address_length"
- ],
- {
- "crc": "0x0403aebc"
- }
- ],
- [
- "mprefix",
- [
- "vl_api_address_family_t",
- "af"
- ],
- [
- "u16",
- "grp_address_length"
- ],
- [
- "vl_api_address_union_t",
- "grp_address"
- ],
- [
- "vl_api_address_union_t",
- "src_address"
- ],
- {
- "crc": "0x1c4cba05"
- }
- ],
- [
- "ip6_prefix",
- [
- "vl_api_ip6_address_t",
- "prefix"
- ],
- [
- "u8",
- "len"
- ],
- {
- "crc": "0x779fd64f"
- }
- ],
- [
- "ip4_prefix",
- [
- "vl_api_ip4_address_t",
- "prefix"
- ],
- [
- "u8",
- "len"
- ],
- {
- "crc": "0xea8dc11d"
- }
- ]
- ],
- "aliases": {
- "ip6_address": {
- "length": 16,
- "type": "u8"
- },
- "ip4_address": {
- "length": 4,
- "type": "u8"
- }
- }
-}
diff --git a/examples/bin_api/maps/maps.ba.go b/examples/bin_api/maps/maps.ba.go
deleted file mode 100644
index 366b822..0000000
--- a/examples/bin_api/maps/maps.ba.go
+++ /dev/null
@@ -1,778 +0,0 @@
-// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: map.api.json
-
-/*
- Package maps is a generated from VPP binary API module 'map'.
-
- It contains following objects:
- 16 services
- 1 enum
- 2 aliases
- 5 types
- 1 union
- 32 messages
-*/
-package maps
-
-import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
-import bytes "bytes"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = api.RegisterMessage
-var _ = struc.Pack
-var _ = bytes.NewBuffer
-
-// Services represents VPP binary API services:
-type Services interface {
- DumpMapDomain(*MapDomainDump) ([]*MapDomainDetails, error)
- DumpMapRule(*MapRuleDump) ([]*MapRuleDetails, error)
- MapAddDelRule(*MapAddDelRule) (*MapAddDelRuleReply, error)
- MapAddDomain(*MapAddDomain) (*MapAddDomainReply, error)
- MapDelDomain(*MapDelDomain) (*MapDelDomainReply, error)
- MapIfEnableDisable(*MapIfEnableDisable) (*MapIfEnableDisableReply, error)
- MapParamAddDelPreResolve(*MapParamAddDelPreResolve) (*MapParamAddDelPreResolveReply, error)
- MapParamGet(*MapParamGet) (*MapParamGetReply, error)
- MapParamSetFragmentation(*MapParamSetFragmentation) (*MapParamSetFragmentationReply, error)
- MapParamSetICMP(*MapParamSetICMP) (*MapParamSetICMPReply, error)
- MapParamSetICMP6(*MapParamSetICMP6) (*MapParamSetICMP6Reply, error)
- MapParamSetReassembly(*MapParamSetReassembly) (*MapParamSetReassemblyReply, error)
- MapParamSetSecurityCheck(*MapParamSetSecurityCheck) (*MapParamSetSecurityCheckReply, error)
- MapParamSetTCP(*MapParamSetTCP) (*MapParamSetTCPReply, error)
- MapParamSetTrafficClass(*MapParamSetTrafficClass) (*MapParamSetTrafficClassReply, error)
- MapSummaryStats(*MapSummaryStats) (*MapSummaryStatsReply, error)
-}
-
-/* Enums */
-
-// AddressFamily represents VPP binary API enum 'address_family':
-type AddressFamily uint32
-
-const (
- ADDRESS_IP4 AddressFamily = 0
- ADDRESS_IP6 AddressFamily = 1
-)
-
-/* Aliases */
-
-// IP4Address represents VPP binary API alias 'ip4_address':
-type IP4Address [4]uint8
-
-// IP6Address represents VPP binary API alias 'ip6_address':
-type IP6Address [16]uint8
-
-/* Types */
-
-// Address represents VPP binary API type 'address':
-type Address struct {
- Af AddressFamily
- Un AddressUnion
-}
-
-func (*Address) GetTypeName() string {
- return "address"
-}
-func (*Address) GetCrcString() string {
- return "09f11671"
-}
-
-// IP4Prefix represents VPP binary API type 'ip4_prefix':
-type IP4Prefix struct {
- Prefix IP4Address
- Len uint8
-}
-
-func (*IP4Prefix) GetTypeName() string {
- return "ip4_prefix"
-}
-func (*IP4Prefix) GetCrcString() string {
- return "ea8dc11d"
-}
-
-// IP6Prefix represents VPP binary API type 'ip6_prefix':
-type IP6Prefix struct {
- Prefix IP6Address
- Len uint8
-}
-
-func (*IP6Prefix) GetTypeName() string {
- return "ip6_prefix"
-}
-func (*IP6Prefix) GetCrcString() string {
- return "779fd64f"
-}
-
-// Mprefix represents VPP binary API type 'mprefix':
-type Mprefix struct {
- Af AddressFamily
- GrpAddressLength uint16
- GrpAddress AddressUnion
- SrcAddress AddressUnion
-}
-
-func (*Mprefix) GetTypeName() string {
- return "mprefix"
-}
-func (*Mprefix) GetCrcString() string {
- return "1c4cba05"
-}
-
-// Prefix represents VPP binary API type 'prefix':
-type Prefix struct {
- Address Address
- AddressLength uint8
-}
-
-func (*Prefix) GetTypeName() string {
- return "prefix"
-}
-func (*Prefix) GetCrcString() string {
- return "0403aebc"
-}
-
-/* Unions */
-
-// AddressUnion represents VPP binary API union 'address_union':
-type AddressUnion struct {
- Union_data [16]byte
-}
-
-func (*AddressUnion) GetTypeName() string {
- return "address_union"
-}
-func (*AddressUnion) GetCrcString() string {
- return "d68a2fb4"
-}
-
-func AddressUnionIP4(a IP4Address) (u AddressUnion) {
- u.SetIP4(a)
- return
-}
-func (u *AddressUnion) SetIP4(a IP4Address) {
- var b = new(bytes.Buffer)
- if err := struc.Pack(b, &a); err != nil {
- return
- }
- copy(u.Union_data[:], b.Bytes())
-}
-func (u *AddressUnion) GetIP4() (a IP4Address) {
- var b = bytes.NewReader(u.Union_data[:])
- struc.Unpack(b, &a)
- return
-}
-
-func AddressUnionIP6(a IP6Address) (u AddressUnion) {
- u.SetIP6(a)
- return
-}
-func (u *AddressUnion) SetIP6(a IP6Address) {
- var b = new(bytes.Buffer)
- if err := struc.Pack(b, &a); err != nil {
- return
- }
- copy(u.Union_data[:], b.Bytes())
-}
-func (u *AddressUnion) GetIP6() (a IP6Address) {
- var b = bytes.NewReader(u.Union_data[:])
- struc.Unpack(b, &a)
- return
-}
-
-/* Messages */
-
-// MapAddDelRule represents VPP binary API message 'map_add_del_rule':
-type MapAddDelRule struct {
- Index uint32
- IsAdd bool
- IP6Dst IP6Address
- Psid uint16
-}
-
-func (*MapAddDelRule) GetMessageName() string {
- return "map_add_del_rule"
-}
-func (*MapAddDelRule) GetCrcString() string {
- return "e6132040"
-}
-func (*MapAddDelRule) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapAddDelRuleReply represents VPP binary API message 'map_add_del_rule_reply':
-type MapAddDelRuleReply struct {
- Retval int32
-}
-
-func (*MapAddDelRuleReply) GetMessageName() string {
- return "map_add_del_rule_reply"
-}
-func (*MapAddDelRuleReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapAddDelRuleReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapAddDomain represents VPP binary API message 'map_add_domain':
-type MapAddDomain struct {
- IP6Prefix IP6Prefix
- IP4Prefix IP4Prefix
- IP6Src IP6Prefix
- EaBitsLen uint8
- PsidOffset uint8
- PsidLength uint8
- Mtu uint16
-}
-
-func (*MapAddDomain) GetMessageName() string {
- return "map_add_domain"
-}
-func (*MapAddDomain) GetCrcString() string {
- return "a9358068"
-}
-func (*MapAddDomain) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapAddDomainReply represents VPP binary API message 'map_add_domain_reply':
-type MapAddDomainReply struct {
- Index uint32
- Retval int32
-}
-
-func (*MapAddDomainReply) GetMessageName() string {
- return "map_add_domain_reply"
-}
-func (*MapAddDomainReply) GetCrcString() string {
- return "3e6d4e2c"
-}
-func (*MapAddDomainReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapDelDomain represents VPP binary API message 'map_del_domain':
-type MapDelDomain struct {
- Index uint32
-}
-
-func (*MapDelDomain) GetMessageName() string {
- return "map_del_domain"
-}
-func (*MapDelDomain) GetCrcString() string {
- return "8ac76db6"
-}
-func (*MapDelDomain) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapDelDomainReply represents VPP binary API message 'map_del_domain_reply':
-type MapDelDomainReply struct {
- Retval int32
-}
-
-func (*MapDelDomainReply) GetMessageName() string {
- return "map_del_domain_reply"
-}
-func (*MapDelDomainReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapDelDomainReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapDomainDetails represents VPP binary API message 'map_domain_details':
-type MapDomainDetails struct {
- DomainIndex uint32
- IP6Prefix IP6Prefix
- IP4Prefix IP4Prefix
- IP6Src IP6Prefix
- EaBitsLen uint8
- PsidOffset uint8
- PsidLength uint8
- Flags uint8
- Mtu uint16
-}
-
-func (*MapDomainDetails) GetMessageName() string {
- return "map_domain_details"
-}
-func (*MapDomainDetails) GetCrcString() string {
- return "2a17dcb8"
-}
-func (*MapDomainDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapDomainDump represents VPP binary API message 'map_domain_dump':
-type MapDomainDump struct{}
-
-func (*MapDomainDump) GetMessageName() string {
- return "map_domain_dump"
-}
-func (*MapDomainDump) GetCrcString() string {
- return "51077d14"
-}
-func (*MapDomainDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapIfEnableDisable represents VPP binary API message 'map_if_enable_disable':
-type MapIfEnableDisable struct {
- SwIfIndex uint32
- IsEnable bool
- IsTranslation bool
-}
-
-func (*MapIfEnableDisable) GetMessageName() string {
- return "map_if_enable_disable"
-}
-func (*MapIfEnableDisable) GetCrcString() string {
- return "61a30cd9"
-}
-func (*MapIfEnableDisable) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapIfEnableDisableReply represents VPP binary API message 'map_if_enable_disable_reply':
-type MapIfEnableDisableReply struct {
- Retval int32
-}
-
-func (*MapIfEnableDisableReply) GetMessageName() string {
- return "map_if_enable_disable_reply"
-}
-func (*MapIfEnableDisableReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapIfEnableDisableReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapParamAddDelPreResolve represents VPP binary API message 'map_param_add_del_pre_resolve':
-type MapParamAddDelPreResolve struct {
- IsAdd bool
- IP4NhAddress IP4Address
- IP6NhAddress IP6Address
-}
-
-func (*MapParamAddDelPreResolve) GetMessageName() string {
- return "map_param_add_del_pre_resolve"
-}
-func (*MapParamAddDelPreResolve) GetCrcString() string {
- return "ea9a9a4a"
-}
-func (*MapParamAddDelPreResolve) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapParamAddDelPreResolveReply represents VPP binary API message 'map_param_add_del_pre_resolve_reply':
-type MapParamAddDelPreResolveReply struct {
- Retval int32
-}
-
-func (*MapParamAddDelPreResolveReply) GetMessageName() string {
- return "map_param_add_del_pre_resolve_reply"
-}
-func (*MapParamAddDelPreResolveReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapParamAddDelPreResolveReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapParamGet represents VPP binary API message 'map_param_get':
-type MapParamGet struct{}
-
-func (*MapParamGet) GetMessageName() string {
- return "map_param_get"
-}
-func (*MapParamGet) GetCrcString() string {
- return "51077d14"
-}
-func (*MapParamGet) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapParamGetReply represents VPP binary API message 'map_param_get_reply':
-type MapParamGetReply struct {
- Retval int32
- FragInner uint8
- FragIgnoreDf uint8
- ICMPIP4ErrRelaySrc IP4Address
- ICMP6EnableUnreachable bool
- IP4NhAddress IP4Address
- IP6NhAddress IP6Address
- IP4LifetimeMs uint16
- IP4PoolSize uint16
- IP4Buffers uint32
- IP4HtRatio float64
- IP6LifetimeMs uint16
- IP6PoolSize uint16
- IP6Buffers uint32
- IP6HtRatio float64
- SecCheckEnable bool
- SecCheckFragments bool
- TcCopy bool
- TcClass uint8
-}
-
-func (*MapParamGetReply) GetMessageName() string {
- return "map_param_get_reply"
-}
-func (*MapParamGetReply) GetCrcString() string {
- return "b40e9226"
-}
-func (*MapParamGetReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapParamSetFragmentation represents VPP binary API message 'map_param_set_fragmentation':
-type MapParamSetFragmentation struct {
- Inner bool
- IgnoreDf bool
-}
-
-func (*MapParamSetFragmentation) GetMessageName() string {
- return "map_param_set_fragmentation"
-}
-func (*MapParamSetFragmentation) GetCrcString() string {
- return "9ff54d90"
-}
-func (*MapParamSetFragmentation) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapParamSetFragmentationReply represents VPP binary API message 'map_param_set_fragmentation_reply':
-type MapParamSetFragmentationReply struct {
- Retval int32
-}
-
-func (*MapParamSetFragmentationReply) GetMessageName() string {
- return "map_param_set_fragmentation_reply"
-}
-func (*MapParamSetFragmentationReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapParamSetFragmentationReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapParamSetICMP represents VPP binary API message 'map_param_set_icmp':
-type MapParamSetICMP struct {
- IP4ErrRelaySrc IP4Address
-}
-
-func (*MapParamSetICMP) GetMessageName() string {
- return "map_param_set_icmp"
-}
-func (*MapParamSetICMP) GetCrcString() string {
- return "4c0a4fd2"
-}
-func (*MapParamSetICMP) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapParamSetICMP6 represents VPP binary API message 'map_param_set_icmp6':
-type MapParamSetICMP6 struct {
- EnableUnreachable bool
-}
-
-func (*MapParamSetICMP6) GetMessageName() string {
- return "map_param_set_icmp6"
-}
-func (*MapParamSetICMP6) GetCrcString() string {
- return "5d01f8c1"
-}
-func (*MapParamSetICMP6) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapParamSetICMP6Reply represents VPP binary API message 'map_param_set_icmp6_reply':
-type MapParamSetICMP6Reply struct {
- Retval int32
-}
-
-func (*MapParamSetICMP6Reply) GetMessageName() string {
- return "map_param_set_icmp6_reply"
-}
-func (*MapParamSetICMP6Reply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapParamSetICMP6Reply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapParamSetICMPReply represents VPP binary API message 'map_param_set_icmp_reply':
-type MapParamSetICMPReply struct {
- Retval int32
-}
-
-func (*MapParamSetICMPReply) GetMessageName() string {
- return "map_param_set_icmp_reply"
-}
-func (*MapParamSetICMPReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapParamSetICMPReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapParamSetReassembly represents VPP binary API message 'map_param_set_reassembly':
-type MapParamSetReassembly struct {
- IsIP6 bool
- LifetimeMs uint16
- PoolSize uint16
- Buffers uint32
- HtRatio float64
-}
-
-func (*MapParamSetReassembly) GetMessageName() string {
- return "map_param_set_reassembly"
-}
-func (*MapParamSetReassembly) GetCrcString() string {
- return "54172b10"
-}
-func (*MapParamSetReassembly) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapParamSetReassemblyReply represents VPP binary API message 'map_param_set_reassembly_reply':
-type MapParamSetReassemblyReply struct {
- Retval int32
-}
-
-func (*MapParamSetReassemblyReply) GetMessageName() string {
- return "map_param_set_reassembly_reply"
-}
-func (*MapParamSetReassemblyReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapParamSetReassemblyReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapParamSetSecurityCheck represents VPP binary API message 'map_param_set_security_check':
-type MapParamSetSecurityCheck struct {
- Enable bool
- Fragments bool
-}
-
-func (*MapParamSetSecurityCheck) GetMessageName() string {
- return "map_param_set_security_check"
-}
-func (*MapParamSetSecurityCheck) GetCrcString() string {
- return "6abe9836"
-}
-func (*MapParamSetSecurityCheck) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapParamSetSecurityCheckReply represents VPP binary API message 'map_param_set_security_check_reply':
-type MapParamSetSecurityCheckReply struct {
- Retval int32
-}
-
-func (*MapParamSetSecurityCheckReply) GetMessageName() string {
- return "map_param_set_security_check_reply"
-}
-func (*MapParamSetSecurityCheckReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapParamSetSecurityCheckReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapParamSetTCP represents VPP binary API message 'map_param_set_tcp':
-type MapParamSetTCP struct {
- TCPMss uint16
-}
-
-func (*MapParamSetTCP) GetMessageName() string {
- return "map_param_set_tcp"
-}
-func (*MapParamSetTCP) GetCrcString() string {
- return "87a825d9"
-}
-func (*MapParamSetTCP) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapParamSetTCPReply represents VPP binary API message 'map_param_set_tcp_reply':
-type MapParamSetTCPReply struct {
- Retval int32
-}
-
-func (*MapParamSetTCPReply) GetMessageName() string {
- return "map_param_set_tcp_reply"
-}
-func (*MapParamSetTCPReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapParamSetTCPReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapParamSetTrafficClass represents VPP binary API message 'map_param_set_traffic_class':
-type MapParamSetTrafficClass struct {
- Copy bool
- Class uint8
-}
-
-func (*MapParamSetTrafficClass) GetMessageName() string {
- return "map_param_set_traffic_class"
-}
-func (*MapParamSetTrafficClass) GetCrcString() string {
- return "007ee563"
-}
-func (*MapParamSetTrafficClass) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapParamSetTrafficClassReply represents VPP binary API message 'map_param_set_traffic_class_reply':
-type MapParamSetTrafficClassReply struct {
- Retval int32
-}
-
-func (*MapParamSetTrafficClassReply) GetMessageName() string {
- return "map_param_set_traffic_class_reply"
-}
-func (*MapParamSetTrafficClassReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MapParamSetTrafficClassReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapRuleDetails represents VPP binary API message 'map_rule_details':
-type MapRuleDetails struct {
- IP6Dst IP6Address
- Psid uint16
-}
-
-func (*MapRuleDetails) GetMessageName() string {
- return "map_rule_details"
-}
-func (*MapRuleDetails) GetCrcString() string {
- return "4f932665"
-}
-func (*MapRuleDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MapRuleDump represents VPP binary API message 'map_rule_dump':
-type MapRuleDump struct {
- DomainIndex uint32
-}
-
-func (*MapRuleDump) GetMessageName() string {
- return "map_rule_dump"
-}
-func (*MapRuleDump) GetCrcString() string {
- return "e43e6ff6"
-}
-func (*MapRuleDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapSummaryStats represents VPP binary API message 'map_summary_stats':
-type MapSummaryStats struct{}
-
-func (*MapSummaryStats) GetMessageName() string {
- return "map_summary_stats"
-}
-func (*MapSummaryStats) GetCrcString() string {
- return "51077d14"
-}
-func (*MapSummaryStats) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MapSummaryStatsReply represents VPP binary API message 'map_summary_stats_reply':
-type MapSummaryStatsReply struct {
- Retval int32
- TotalBindings uint64
- TotalPkts []uint64 `struc:"[2]uint64"`
- TotalBytes []uint64 `struc:"[2]uint64"`
- TotalIP4Fragments uint64
- TotalSecurityCheck []uint64 `struc:"[2]uint64"`
-}
-
-func (*MapSummaryStatsReply) GetMessageName() string {
- return "map_summary_stats_reply"
-}
-func (*MapSummaryStatsReply) GetCrcString() string {
- return "0e4ace0e"
-}
-func (*MapSummaryStatsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-func init() {
- api.RegisterMessage((*MapAddDelRule)(nil), "map.MapAddDelRule")
- api.RegisterMessage((*MapAddDelRuleReply)(nil), "map.MapAddDelRuleReply")
- api.RegisterMessage((*MapAddDomain)(nil), "map.MapAddDomain")
- api.RegisterMessage((*MapAddDomainReply)(nil), "map.MapAddDomainReply")
- api.RegisterMessage((*MapDelDomain)(nil), "map.MapDelDomain")
- api.RegisterMessage((*MapDelDomainReply)(nil), "map.MapDelDomainReply")
- api.RegisterMessage((*MapDomainDetails)(nil), "map.MapDomainDetails")
- api.RegisterMessage((*MapDomainDump)(nil), "map.MapDomainDump")
- api.RegisterMessage((*MapIfEnableDisable)(nil), "map.MapIfEnableDisable")
- api.RegisterMessage((*MapIfEnableDisableReply)(nil), "map.MapIfEnableDisableReply")
- api.RegisterMessage((*MapParamAddDelPreResolve)(nil), "map.MapParamAddDelPreResolve")
- api.RegisterMessage((*MapParamAddDelPreResolveReply)(nil), "map.MapParamAddDelPreResolveReply")
- api.RegisterMessage((*MapParamGet)(nil), "map.MapParamGet")
- api.RegisterMessage((*MapParamGetReply)(nil), "map.MapParamGetReply")
- api.RegisterMessage((*MapParamSetFragmentation)(nil), "map.MapParamSetFragmentation")
- api.RegisterMessage((*MapParamSetFragmentationReply)(nil), "map.MapParamSetFragmentationReply")
- api.RegisterMessage((*MapParamSetICMP)(nil), "map.MapParamSetICMP")
- api.RegisterMessage((*MapParamSetICMP6)(nil), "map.MapParamSetICMP6")
- api.RegisterMessage((*MapParamSetICMP6Reply)(nil), "map.MapParamSetICMP6Reply")
- api.RegisterMessage((*MapParamSetICMPReply)(nil), "map.MapParamSetICMPReply")
- api.RegisterMessage((*MapParamSetReassembly)(nil), "map.MapParamSetReassembly")
- api.RegisterMessage((*MapParamSetReassemblyReply)(nil), "map.MapParamSetReassemblyReply")
- api.RegisterMessage((*MapParamSetSecurityCheck)(nil), "map.MapParamSetSecurityCheck")
- api.RegisterMessage((*MapParamSetSecurityCheckReply)(nil), "map.MapParamSetSecurityCheckReply")
- api.RegisterMessage((*MapParamSetTCP)(nil), "map.MapParamSetTCP")
- api.RegisterMessage((*MapParamSetTCPReply)(nil), "map.MapParamSetTCPReply")
- api.RegisterMessage((*MapParamSetTrafficClass)(nil), "map.MapParamSetTrafficClass")
- api.RegisterMessage((*MapParamSetTrafficClassReply)(nil), "map.MapParamSetTrafficClassReply")
- api.RegisterMessage((*MapRuleDetails)(nil), "map.MapRuleDetails")
- api.RegisterMessage((*MapRuleDump)(nil), "map.MapRuleDump")
- api.RegisterMessage((*MapSummaryStats)(nil), "map.MapSummaryStats")
- api.RegisterMessage((*MapSummaryStatsReply)(nil), "map.MapSummaryStatsReply")
-}
-
-var Messages = []api.Message{
- (*MapAddDelRule)(nil),
- (*MapAddDelRuleReply)(nil),
- (*MapAddDomain)(nil),
- (*MapAddDomainReply)(nil),
- (*MapDelDomain)(nil),
- (*MapDelDomainReply)(nil),
- (*MapDomainDetails)(nil),
- (*MapDomainDump)(nil),
- (*MapIfEnableDisable)(nil),
- (*MapIfEnableDisableReply)(nil),
- (*MapParamAddDelPreResolve)(nil),
- (*MapParamAddDelPreResolveReply)(nil),
- (*MapParamGet)(nil),
- (*MapParamGetReply)(nil),
- (*MapParamSetFragmentation)(nil),
- (*MapParamSetFragmentationReply)(nil),
- (*MapParamSetICMP)(nil),
- (*MapParamSetICMP6)(nil),
- (*MapParamSetICMP6Reply)(nil),
- (*MapParamSetICMPReply)(nil),
- (*MapParamSetReassembly)(nil),
- (*MapParamSetReassemblyReply)(nil),
- (*MapParamSetSecurityCheck)(nil),
- (*MapParamSetSecurityCheckReply)(nil),
- (*MapParamSetTCP)(nil),
- (*MapParamSetTCPReply)(nil),
- (*MapParamSetTrafficClass)(nil),
- (*MapParamSetTrafficClassReply)(nil),
- (*MapRuleDetails)(nil),
- (*MapRuleDump)(nil),
- (*MapSummaryStats)(nil),
- (*MapSummaryStatsReply)(nil),
-}
diff --git a/examples/bin_api/memclnt.api.json b/examples/bin_api/memclnt.api.json
deleted file mode 100644
index 8014a26..0000000
--- a/examples/bin_api/memclnt.api.json
+++ /dev/null
@@ -1,598 +0,0 @@
-{
- "messages": [
- [
- "memclnt_create",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "ctx_quota"
- ],
- [
- "u64",
- "input_queue"
- ],
- [
- "u8",
- "name",
- 64
- ],
- [
- "u32",
- "api_versions",
- 8
- ],
- {
- "crc": "0x6d33c5ea"
- }
- ],
- [
- "memclnt_create_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "response"
- ],
- [
- "u64",
- "handle"
- ],
- [
- "u32",
- "index"
- ],
- [
- "u64",
- "message_table"
- ],
- {
- "crc": "0x42ec4560"
- }
- ],
- [
- "memclnt_delete",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "index"
- ],
- [
- "u64",
- "handle"
- ],
- [
- "u8",
- "do_cleanup"
- ],
- {
- "crc": "0x4dd351e9"
- }
- ],
- [
- "memclnt_delete_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "i32",
- "response"
- ],
- [
- "u64",
- "handle"
- ],
- {
- "crc": "0x3d3b6312"
- }
- ],
- [
- "rx_thread_exit",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u8",
- "dummy"
- ],
- {
- "crc": "0xc3a3a452"
- }
- ],
- [
- "memclnt_rx_thread_suspend",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u8",
- "dummy"
- ],
- {
- "crc": "0xc3a3a452"
- }
- ],
- [
- "memclnt_read_timeout",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u8",
- "dummy"
- ],
- {
- "crc": "0xc3a3a452"
- }
- ],
- [
- "rpc_call",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u64",
- "function"
- ],
- [
- "u8",
- "multicast"
- ],
- [
- "u8",
- "need_barrier_sync"
- ],
- [
- "u8",
- "send_reply"
- ],
- [
- "u32",
- "data_len"
- ],
- [
- "u8",
- "data",
- 0,
- "data_len"
- ],
- {
- "crc": "0x7e8a2c95"
- }
- ],
- [
- "rpc_call_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "get_first_msg_id",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "name",
- 64
- ],
- {
- "crc": "0x0cb71b0e"
- }
- ],
- [
- "get_first_msg_id_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u16",
- "first_msg_id"
- ],
- {
- "crc": "0x7d337472"
- }
- ],
- [
- "api_versions",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "api_versions_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "count"
- ],
- [
- "vl_api_module_version_t",
- "api_versions",
- 0,
- "count"
- ],
- {
- "crc": "0x90a39195"
- }
- ],
- [
- "trace_plugin_msg_ids",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "plugin_name",
- 128
- ],
- [
- "u16",
- "first_msg_id"
- ],
- [
- "u16",
- "last_msg_id"
- ],
- {
- "crc": "0x64af79f9"
- }
- ],
- [
- "sockclnt_create",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "name",
- 64
- ],
- {
- "crc": "0xdf2cf94d"
- }
- ],
- [
- "sockclnt_create_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "response"
- ],
- [
- "u32",
- "index"
- ],
- [
- "u16",
- "count"
- ],
- [
- "vl_api_message_table_entry_t",
- "message_table",
- 0,
- "count"
- ],
- {
- "crc": "0xa134a8a8"
- }
- ],
- [
- "sockclnt_delete",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "index"
- ],
- {
- "crc": "0x8ac76db6"
- }
- ],
- [
- "sockclnt_delete_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "response"
- ],
- {
- "crc": "0x8f38b1ee"
- }
- ],
- [
- "sock_init_shm",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "requested_size"
- ],
- [
- "u8",
- "nitems"
- ],
- [
- "u64",
- "configs",
- 0,
- "nitems"
- ],
- {
- "crc": "0x51646d92"
- }
- ],
- [
- "sock_init_shm_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "memclnt_keepalive",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "memclnt_keepalive_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ]
- ],
- "vl_api_version": "0xb619530",
- "unions": [],
- "services": {
- "api_versions": {
- "reply": "api_versions_reply"
- },
- "memclnt_keepalive": {
- "reply": "memclnt_keepalive_reply"
- },
- "memclnt_rx_thread_suspend": {
- "reply": "null"
- },
- "sockclnt_delete": {
- "reply": "sockclnt_delete_reply"
- },
- "memclnt_create": {
- "reply": "memclnt_create_reply"
- },
- "get_first_msg_id": {
- "reply": "get_first_msg_id_reply"
- },
- "memclnt_read_timeout": {
- "reply": "null"
- },
- "rpc_call": {
- "reply": "rpc_call_reply"
- },
- "rx_thread_exit": {
- "reply": "null"
- },
- "sock_init_shm": {
- "reply": "sock_init_shm_reply"
- },
- "memclnt_delete": {
- "reply": "memclnt_delete_reply"
- },
- "sockclnt_create": {
- "reply": "sockclnt_create_reply"
- },
- "trace_plugin_msg_ids": {
- "reply": "null"
- }
- },
- "enums": [],
- "types": [
- [
- "module_version",
- [
- "u32",
- "major"
- ],
- [
- "u32",
- "minor"
- ],
- [
- "u32",
- "patch"
- ],
- [
- "u8",
- "name",
- 64
- ],
- {
- "crc": "0x4b6da11a"
- }
- ],
- [
- "message_table_entry",
- [
- "u16",
- "index"
- ],
- [
- "u8",
- "name",
- 64
- ],
- {
- "crc": "0x913bf1c6"
- }
- ]
- ],
- "aliases": {}
-}
diff --git a/examples/bin_api/memclnt/memclnt.ba.go b/examples/bin_api/memclnt/memclnt.ba.go
deleted file mode 100644
index 68ff320..0000000
--- a/examples/bin_api/memclnt/memclnt.ba.go
+++ /dev/null
@@ -1,470 +0,0 @@
-// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: memclnt.api.json
-
-/*
- Package memclnt is a generated from VPP binary API module 'memclnt'.
-
- It contains following objects:
- 13 services
- 2 types
- 22 messages
-*/
-package memclnt
-
-import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
-import bytes "bytes"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = api.RegisterMessage
-var _ = struc.Pack
-var _ = bytes.NewBuffer
-
-// Services represents VPP binary API services:
-type Services interface {
- APIVersions(*APIVersions) (*APIVersionsReply, error)
- GetFirstMsgID(*GetFirstMsgID) (*GetFirstMsgIDReply, error)
- MemclntCreate(*MemclntCreate) (*MemclntCreateReply, error)
- MemclntDelete(*MemclntDelete) (*MemclntDeleteReply, error)
- MemclntKeepalive(*MemclntKeepalive) (*MemclntKeepaliveReply, error)
- MemclntReadTimeout(*MemclntReadTimeout) error
- MemclntRxThreadSuspend(*MemclntRxThreadSuspend) error
- RPCCall(*RPCCall) (*RPCCallReply, error)
- RxThreadExit(*RxThreadExit) error
- SockInitShm(*SockInitShm) (*SockInitShmReply, error)
- SockclntCreate(*SockclntCreate) (*SockclntCreateReply, error)
- SockclntDelete(*SockclntDelete) (*SockclntDeleteReply, error)
- TracePluginMsgIds(*TracePluginMsgIds) error
-}
-
-/* Types */
-
-// MessageTableEntry represents VPP binary API type 'message_table_entry':
-type MessageTableEntry struct {
- Index uint16
- Name []byte `struc:"[64]byte"`
-}
-
-func (*MessageTableEntry) GetTypeName() string {
- return "message_table_entry"
-}
-func (*MessageTableEntry) GetCrcString() string {
- return "913bf1c6"
-}
-
-// ModuleVersion represents VPP binary API type 'module_version':
-type ModuleVersion struct {
- Major uint32
- Minor uint32
- Patch uint32
- Name []byte `struc:"[64]byte"`
-}
-
-func (*ModuleVersion) GetTypeName() string {
- return "module_version"
-}
-func (*ModuleVersion) GetCrcString() string {
- return "4b6da11a"
-}
-
-/* Messages */
-
-// APIVersions represents VPP binary API message 'api_versions':
-type APIVersions struct{}
-
-func (*APIVersions) GetMessageName() string {
- return "api_versions"
-}
-func (*APIVersions) GetCrcString() string {
- return "51077d14"
-}
-func (*APIVersions) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// APIVersionsReply represents VPP binary API message 'api_versions_reply':
-type APIVersionsReply struct {
- Retval int32
- Count uint32 `struc:"sizeof=APIVersions"`
- APIVersions []ModuleVersion
-}
-
-func (*APIVersionsReply) GetMessageName() string {
- return "api_versions_reply"
-}
-func (*APIVersionsReply) GetCrcString() string {
- return "90a39195"
-}
-func (*APIVersionsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// GetFirstMsgID represents VPP binary API message 'get_first_msg_id':
-type GetFirstMsgID struct {
- Name []byte `struc:"[64]byte"`
-}
-
-func (*GetFirstMsgID) GetMessageName() string {
- return "get_first_msg_id"
-}
-func (*GetFirstMsgID) GetCrcString() string {
- return "0cb71b0e"
-}
-func (*GetFirstMsgID) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// GetFirstMsgIDReply represents VPP binary API message 'get_first_msg_id_reply':
-type GetFirstMsgIDReply struct {
- Retval int32
- FirstMsgID uint16
-}
-
-func (*GetFirstMsgIDReply) GetMessageName() string {
- return "get_first_msg_id_reply"
-}
-func (*GetFirstMsgIDReply) GetCrcString() string {
- return "7d337472"
-}
-func (*GetFirstMsgIDReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MemclntCreate represents VPP binary API message 'memclnt_create':
-type MemclntCreate struct {
- CtxQuota int32
- InputQueue uint64
- Name []byte `struc:"[64]byte"`
- APIVersions []uint32 `struc:"[8]uint32"`
-}
-
-func (*MemclntCreate) GetMessageName() string {
- return "memclnt_create"
-}
-func (*MemclntCreate) GetCrcString() string {
- return "6d33c5ea"
-}
-func (*MemclntCreate) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MemclntCreateReply represents VPP binary API message 'memclnt_create_reply':
-type MemclntCreateReply struct {
- Response int32
- Handle uint64
- Index uint32
- MessageTable uint64
-}
-
-func (*MemclntCreateReply) GetMessageName() string {
- return "memclnt_create_reply"
-}
-func (*MemclntCreateReply) GetCrcString() string {
- return "42ec4560"
-}
-func (*MemclntCreateReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MemclntDelete represents VPP binary API message 'memclnt_delete':
-type MemclntDelete struct {
- Index uint32
- Handle uint64
- DoCleanup uint8
-}
-
-func (*MemclntDelete) GetMessageName() string {
- return "memclnt_delete"
-}
-func (*MemclntDelete) GetCrcString() string {
- return "4dd351e9"
-}
-func (*MemclntDelete) GetMessageType() api.MessageType {
- return api.OtherMessage
-}
-
-// MemclntDeleteReply represents VPP binary API message 'memclnt_delete_reply':
-type MemclntDeleteReply struct {
- Response int32
- Handle uint64
-}
-
-func (*MemclntDeleteReply) GetMessageName() string {
- return "memclnt_delete_reply"
-}
-func (*MemclntDeleteReply) GetCrcString() string {
- return "3d3b6312"
-}
-func (*MemclntDeleteReply) GetMessageType() api.MessageType {
- return api.OtherMessage
-}
-
-// MemclntKeepalive represents VPP binary API message 'memclnt_keepalive':
-type MemclntKeepalive struct{}
-
-func (*MemclntKeepalive) GetMessageName() string {
- return "memclnt_keepalive"
-}
-func (*MemclntKeepalive) GetCrcString() string {
- return "51077d14"
-}
-func (*MemclntKeepalive) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MemclntKeepaliveReply represents VPP binary API message 'memclnt_keepalive_reply':
-type MemclntKeepaliveReply struct {
- Retval int32
-}
-
-func (*MemclntKeepaliveReply) GetMessageName() string {
- return "memclnt_keepalive_reply"
-}
-func (*MemclntKeepaliveReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MemclntKeepaliveReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MemclntReadTimeout represents VPP binary API message 'memclnt_read_timeout':
-type MemclntReadTimeout struct {
- Dummy uint8
-}
-
-func (*MemclntReadTimeout) GetMessageName() string {
- return "memclnt_read_timeout"
-}
-func (*MemclntReadTimeout) GetCrcString() string {
- return "c3a3a452"
-}
-func (*MemclntReadTimeout) GetMessageType() api.MessageType {
- return api.OtherMessage
-}
-
-// MemclntRxThreadSuspend represents VPP binary API message 'memclnt_rx_thread_suspend':
-type MemclntRxThreadSuspend struct {
- Dummy uint8
-}
-
-func (*MemclntRxThreadSuspend) GetMessageName() string {
- return "memclnt_rx_thread_suspend"
-}
-func (*MemclntRxThreadSuspend) GetCrcString() string {
- return "c3a3a452"
-}
-func (*MemclntRxThreadSuspend) GetMessageType() api.MessageType {
- return api.OtherMessage
-}
-
-// RPCCall represents VPP binary API message 'rpc_call':
-type RPCCall struct {
- Function uint64
- Multicast uint8
- NeedBarrierSync uint8
- SendReply uint8
- DataLen uint32 `struc:"sizeof=Data"`
- Data []byte
-}
-
-func (*RPCCall) GetMessageName() string {
- return "rpc_call"
-}
-func (*RPCCall) GetCrcString() string {
- return "7e8a2c95"
-}
-func (*RPCCall) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// RPCCallReply represents VPP binary API message 'rpc_call_reply':
-type RPCCallReply struct {
- Retval int32
-}
-
-func (*RPCCallReply) GetMessageName() string {
- return "rpc_call_reply"
-}
-func (*RPCCallReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*RPCCallReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// RxThreadExit represents VPP binary API message 'rx_thread_exit':
-type RxThreadExit struct {
- Dummy uint8
-}
-
-func (*RxThreadExit) GetMessageName() string {
- return "rx_thread_exit"
-}
-func (*RxThreadExit) GetCrcString() string {
- return "c3a3a452"
-}
-func (*RxThreadExit) GetMessageType() api.MessageType {
- return api.OtherMessage
-}
-
-// SockInitShm represents VPP binary API message 'sock_init_shm':
-type SockInitShm struct {
- RequestedSize uint32
- Nitems uint8 `struc:"sizeof=Configs"`
- Configs []uint64
-}
-
-func (*SockInitShm) GetMessageName() string {
- return "sock_init_shm"
-}
-func (*SockInitShm) GetCrcString() string {
- return "51646d92"
-}
-func (*SockInitShm) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SockInitShmReply represents VPP binary API message 'sock_init_shm_reply':
-type SockInitShmReply struct {
- Retval int32
-}
-
-func (*SockInitShmReply) GetMessageName() string {
- return "sock_init_shm_reply"
-}
-func (*SockInitShmReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*SockInitShmReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SockclntCreate represents VPP binary API message 'sockclnt_create':
-type SockclntCreate struct {
- Name []byte `struc:"[64]byte"`
-}
-
-func (*SockclntCreate) GetMessageName() string {
- return "sockclnt_create"
-}
-func (*SockclntCreate) GetCrcString() string {
- return "df2cf94d"
-}
-func (*SockclntCreate) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SockclntCreateReply represents VPP binary API message 'sockclnt_create_reply':
-type SockclntCreateReply struct {
- Response int32
- Index uint32
- Count uint16 `struc:"sizeof=MessageTable"`
- MessageTable []MessageTableEntry
-}
-
-func (*SockclntCreateReply) GetMessageName() string {
- return "sockclnt_create_reply"
-}
-func (*SockclntCreateReply) GetCrcString() string {
- return "a134a8a8"
-}
-func (*SockclntCreateReply) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SockclntDelete represents VPP binary API message 'sockclnt_delete':
-type SockclntDelete struct {
- Index uint32
-}
-
-func (*SockclntDelete) GetMessageName() string {
- return "sockclnt_delete"
-}
-func (*SockclntDelete) GetCrcString() string {
- return "8ac76db6"
-}
-func (*SockclntDelete) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// SockclntDeleteReply represents VPP binary API message 'sockclnt_delete_reply':
-type SockclntDeleteReply struct {
- Response int32
-}
-
-func (*SockclntDeleteReply) GetMessageName() string {
- return "sockclnt_delete_reply"
-}
-func (*SockclntDeleteReply) GetCrcString() string {
- return "8f38b1ee"
-}
-func (*SockclntDeleteReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// TracePluginMsgIds represents VPP binary API message 'trace_plugin_msg_ids':
-type TracePluginMsgIds struct {
- PluginName []byte `struc:"[128]byte"`
- FirstMsgID uint16
- LastMsgID uint16
-}
-
-func (*TracePluginMsgIds) GetMessageName() string {
- return "trace_plugin_msg_ids"
-}
-func (*TracePluginMsgIds) GetCrcString() string {
- return "64af79f9"
-}
-func (*TracePluginMsgIds) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-func init() {
- api.RegisterMessage((*APIVersions)(nil), "memclnt.APIVersions")
- api.RegisterMessage((*APIVersionsReply)(nil), "memclnt.APIVersionsReply")
- api.RegisterMessage((*GetFirstMsgID)(nil), "memclnt.GetFirstMsgID")
- api.RegisterMessage((*GetFirstMsgIDReply)(nil), "memclnt.GetFirstMsgIDReply")
- api.RegisterMessage((*MemclntCreate)(nil), "memclnt.MemclntCreate")
- api.RegisterMessage((*MemclntCreateReply)(nil), "memclnt.MemclntCreateReply")
- api.RegisterMessage((*MemclntDelete)(nil), "memclnt.MemclntDelete")
- api.RegisterMessage((*MemclntDeleteReply)(nil), "memclnt.MemclntDeleteReply")
- api.RegisterMessage((*MemclntKeepalive)(nil), "memclnt.MemclntKeepalive")
- api.RegisterMessage((*MemclntKeepaliveReply)(nil), "memclnt.MemclntKeepaliveReply")
- api.RegisterMessage((*MemclntReadTimeout)(nil), "memclnt.MemclntReadTimeout")
- api.RegisterMessage((*MemclntRxThreadSuspend)(nil), "memclnt.MemclntRxThreadSuspend")
- api.RegisterMessage((*RPCCall)(nil), "memclnt.RPCCall")
- api.RegisterMessage((*RPCCallReply)(nil), "memclnt.RPCCallReply")
- api.RegisterMessage((*RxThreadExit)(nil), "memclnt.RxThreadExit")
- api.RegisterMessage((*SockInitShm)(nil), "memclnt.SockInitShm")
- api.RegisterMessage((*SockInitShmReply)(nil), "memclnt.SockInitShmReply")
- api.RegisterMessage((*SockclntCreate)(nil), "memclnt.SockclntCreate")
- api.RegisterMessage((*SockclntCreateReply)(nil), "memclnt.SockclntCreateReply")
- api.RegisterMessage((*SockclntDelete)(nil), "memclnt.SockclntDelete")
- api.RegisterMessage((*SockclntDeleteReply)(nil), "memclnt.SockclntDeleteReply")
- api.RegisterMessage((*TracePluginMsgIds)(nil), "memclnt.TracePluginMsgIds")
-}
-
-var Messages = []api.Message{
- (*APIVersions)(nil),
- (*APIVersionsReply)(nil),
- (*GetFirstMsgID)(nil),
- (*GetFirstMsgIDReply)(nil),
- (*MemclntCreate)(nil),
- (*MemclntCreateReply)(nil),
- (*MemclntDelete)(nil),
- (*MemclntDeleteReply)(nil),
- (*MemclntKeepalive)(nil),
- (*MemclntKeepaliveReply)(nil),
- (*MemclntReadTimeout)(nil),
- (*MemclntRxThreadSuspend)(nil),
- (*RPCCall)(nil),
- (*RPCCallReply)(nil),
- (*RxThreadExit)(nil),
- (*SockInitShm)(nil),
- (*SockInitShmReply)(nil),
- (*SockclntCreate)(nil),
- (*SockclntCreateReply)(nil),
- (*SockclntDelete)(nil),
- (*SockclntDeleteReply)(nil),
- (*TracePluginMsgIds)(nil),
-}
diff --git a/examples/bin_api/memif.api.json b/examples/bin_api/memif.api.json
deleted file mode 100644
index 4399f1c..0000000
--- a/examples/bin_api/memif.api.json
+++ /dev/null
@@ -1,318 +0,0 @@
-{
- "messages": [
- [
- "memif_socket_filename_add_del",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "is_add"
- ],
- [
- "u32",
- "socket_id"
- ],
- [
- "u8",
- "socket_filename",
- 128
- ],
- {
- "crc": "0x30e3929d"
- }
- ],
- [
- "memif_socket_filename_add_del_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "memif_create",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "role"
- ],
- [
- "u8",
- "mode"
- ],
- [
- "u8",
- "rx_queues"
- ],
- [
- "u8",
- "tx_queues"
- ],
- [
- "u32",
- "id"
- ],
- [
- "u32",
- "socket_id"
- ],
- [
- "u8",
- "secret",
- 24
- ],
- [
- "u32",
- "ring_size"
- ],
- [
- "u16",
- "buffer_size"
- ],
- [
- "u8",
- "hw_addr",
- 6
- ],
- {
- "crc": "0x6597cdb2"
- }
- ],
- [
- "memif_create_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0xfda5941f"
- }
- ],
- [
- "memif_delete",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "memif_delete_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "memif_socket_filename_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "socket_id"
- ],
- [
- "u8",
- "socket_filename",
- 128
- ],
- {
- "crc": "0xe347e32f"
- }
- ],
- [
- "memif_socket_filename_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "memif_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "if_name",
- 64
- ],
- [
- "u8",
- "hw_addr",
- 6
- ],
- [
- "u32",
- "id"
- ],
- [
- "u8",
- "role"
- ],
- [
- "u8",
- "mode"
- ],
- [
- "u32",
- "socket_id"
- ],
- [
- "u32",
- "ring_size"
- ],
- [
- "u16",
- "buffer_size"
- ],
- [
- "u8",
- "admin_up_down"
- ],
- [
- "u8",
- "link_up_down"
- ],
- {
- "crc": "0x4f5a3397"
- }
- ],
- [
- "memif_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ]
- ],
- "vl_api_version": "0x31b42e17",
- "unions": [],
- "services": {
- "memif_delete": {
- "reply": "memif_delete_reply"
- },
- "memif_socket_filename_add_del": {
- "reply": "memif_socket_filename_add_del_reply"
- },
- "memif_create": {
- "reply": "memif_create_reply"
- },
- "memif_socket_filename_dump": {
- "reply": "memif_socket_filename_details",
- "stream": true
- },
- "memif_dump": {
- "reply": "memif_details",
- "stream": true
- }
- },
- "enums": [],
- "types": [],
- "aliases": {}
-}
diff --git a/examples/bin_api/memif/memif.ba.go b/examples/bin_api/memif/memif.ba.go
deleted file mode 100644
index 58c466e..0000000
--- a/examples/bin_api/memif/memif.ba.go
+++ /dev/null
@@ -1,226 +0,0 @@
-// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: memif.api.json
-
-/*
- Package memif is a generated from VPP binary API module 'memif'.
-
- It contains following objects:
- 5 services
- 10 messages
-*/
-package memif
-
-import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
-import bytes "bytes"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = api.RegisterMessage
-var _ = struc.Pack
-var _ = bytes.NewBuffer
-
-// Services represents VPP binary API services:
-type Services interface {
- DumpMemif(*MemifDump) ([]*MemifDetails, error)
- DumpMemifSocketFilename(*MemifSocketFilenameDump) ([]*MemifSocketFilenameDetails, error)
- MemifCreate(*MemifCreate) (*MemifCreateReply, error)
- MemifDelete(*MemifDelete) (*MemifDeleteReply, error)
- MemifSocketFilenameAddDel(*MemifSocketFilenameAddDel) (*MemifSocketFilenameAddDelReply, error)
-}
-
-/* Messages */
-
-// MemifCreate represents VPP binary API message 'memif_create':
-type MemifCreate struct {
- Role uint8
- Mode uint8
- RxQueues uint8
- TxQueues uint8
- ID uint32
- SocketID uint32
- Secret []byte `struc:"[24]byte"`
- RingSize uint32
- BufferSize uint16
- HwAddr []byte `struc:"[6]byte"`
-}
-
-func (*MemifCreate) GetMessageName() string {
- return "memif_create"
-}
-func (*MemifCreate) GetCrcString() string {
- return "6597cdb2"
-}
-func (*MemifCreate) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MemifCreateReply represents VPP binary API message 'memif_create_reply':
-type MemifCreateReply struct {
- Retval int32
- SwIfIndex uint32
-}
-
-func (*MemifCreateReply) GetMessageName() string {
- return "memif_create_reply"
-}
-func (*MemifCreateReply) GetCrcString() string {
- return "fda5941f"
-}
-func (*MemifCreateReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MemifDelete represents VPP binary API message 'memif_delete':
-type MemifDelete struct {
- SwIfIndex uint32
-}
-
-func (*MemifDelete) GetMessageName() string {
- return "memif_delete"
-}
-func (*MemifDelete) GetCrcString() string {
- return "529cb13f"
-}
-func (*MemifDelete) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MemifDeleteReply represents VPP binary API message 'memif_delete_reply':
-type MemifDeleteReply struct {
- Retval int32
-}
-
-func (*MemifDeleteReply) GetMessageName() string {
- return "memif_delete_reply"
-}
-func (*MemifDeleteReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MemifDeleteReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MemifDetails represents VPP binary API message 'memif_details':
-type MemifDetails struct {
- SwIfIndex uint32
- IfName []byte `struc:"[64]byte"`
- HwAddr []byte `struc:"[6]byte"`
- ID uint32
- Role uint8
- Mode uint8
- SocketID uint32
- RingSize uint32
- BufferSize uint16
- AdminUpDown uint8
- LinkUpDown uint8
-}
-
-func (*MemifDetails) GetMessageName() string {
- return "memif_details"
-}
-func (*MemifDetails) GetCrcString() string {
- return "4f5a3397"
-}
-func (*MemifDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MemifDump represents VPP binary API message 'memif_dump':
-type MemifDump struct{}
-
-func (*MemifDump) GetMessageName() string {
- return "memif_dump"
-}
-func (*MemifDump) GetCrcString() string {
- return "51077d14"
-}
-func (*MemifDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MemifSocketFilenameAddDel represents VPP binary API message 'memif_socket_filename_add_del':
-type MemifSocketFilenameAddDel struct {
- IsAdd uint8
- SocketID uint32
- SocketFilename []byte `struc:"[128]byte"`
-}
-
-func (*MemifSocketFilenameAddDel) GetMessageName() string {
- return "memif_socket_filename_add_del"
-}
-func (*MemifSocketFilenameAddDel) GetCrcString() string {
- return "30e3929d"
-}
-func (*MemifSocketFilenameAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// MemifSocketFilenameAddDelReply represents VPP binary API message 'memif_socket_filename_add_del_reply':
-type MemifSocketFilenameAddDelReply struct {
- Retval int32
-}
-
-func (*MemifSocketFilenameAddDelReply) GetMessageName() string {
- return "memif_socket_filename_add_del_reply"
-}
-func (*MemifSocketFilenameAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*MemifSocketFilenameAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MemifSocketFilenameDetails represents VPP binary API message 'memif_socket_filename_details':
-type MemifSocketFilenameDetails struct {
- SocketID uint32
- SocketFilename []byte `struc:"[128]byte"`
-}
-
-func (*MemifSocketFilenameDetails) GetMessageName() string {
- return "memif_socket_filename_details"
-}
-func (*MemifSocketFilenameDetails) GetCrcString() string {
- return "e347e32f"
-}
-func (*MemifSocketFilenameDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// MemifSocketFilenameDump represents VPP binary API message 'memif_socket_filename_dump':
-type MemifSocketFilenameDump struct{}
-
-func (*MemifSocketFilenameDump) GetMessageName() string {
- return "memif_socket_filename_dump"
-}
-func (*MemifSocketFilenameDump) GetCrcString() string {
- return "51077d14"
-}
-func (*MemifSocketFilenameDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-func init() {
- api.RegisterMessage((*MemifCreate)(nil), "memif.MemifCreate")
- api.RegisterMessage((*MemifCreateReply)(nil), "memif.MemifCreateReply")
- api.RegisterMessage((*MemifDelete)(nil), "memif.MemifDelete")
- api.RegisterMessage((*MemifDeleteReply)(nil), "memif.MemifDeleteReply")
- api.RegisterMessage((*MemifDetails)(nil), "memif.MemifDetails")
- api.RegisterMessage((*MemifDump)(nil), "memif.MemifDump")
- api.RegisterMessage((*MemifSocketFilenameAddDel)(nil), "memif.MemifSocketFilenameAddDel")
- api.RegisterMessage((*MemifSocketFilenameAddDelReply)(nil), "memif.MemifSocketFilenameAddDelReply")
- api.RegisterMessage((*MemifSocketFilenameDetails)(nil), "memif.MemifSocketFilenameDetails")
- api.RegisterMessage((*MemifSocketFilenameDump)(nil), "memif.MemifSocketFilenameDump")
-}
-
-var Messages = []api.Message{
- (*MemifCreate)(nil),
- (*MemifCreateReply)(nil),
- (*MemifDelete)(nil),
- (*MemifDeleteReply)(nil),
- (*MemifDetails)(nil),
- (*MemifDump)(nil),
- (*MemifSocketFilenameAddDel)(nil),
- (*MemifSocketFilenameAddDelReply)(nil),
- (*MemifSocketFilenameDetails)(nil),
- (*MemifSocketFilenameDump)(nil),
-}
diff --git a/examples/bin_api/tap.api.json b/examples/bin_api/tap.api.json
deleted file mode 100644
index 45edc6a..0000000
--- a/examples/bin_api/tap.api.json
+++ /dev/null
@@ -1,264 +0,0 @@
-{
- "messages": [
- [
- "tap_connect",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "use_random_mac"
- ],
- [
- "u8",
- "tap_name",
- 64
- ],
- [
- "u8",
- "mac_address",
- 6
- ],
- [
- "u8",
- "renumber"
- ],
- [
- "u32",
- "custom_dev_instance"
- ],
- [
- "u8",
- "ip4_address_set"
- ],
- [
- "u8",
- "ip4_address",
- 4
- ],
- [
- "u8",
- "ip4_mask_width"
- ],
- [
- "u8",
- "ip6_address_set"
- ],
- [
- "u8",
- "ip6_address",
- 16
- ],
- [
- "u8",
- "ip6_mask_width"
- ],
- [
- "u8",
- "tag",
- 64
- ],
- {
- "crc": "0x9b9c396f"
- }
- ],
- [
- "tap_connect_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0xfda5941f"
- }
- ],
- [
- "tap_modify",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "use_random_mac"
- ],
- [
- "u8",
- "tap_name",
- 64
- ],
- [
- "u8",
- "mac_address",
- 6
- ],
- [
- "u8",
- "renumber"
- ],
- [
- "u32",
- "custom_dev_instance"
- ],
- {
- "crc": "0x8047ae5c"
- }
- ],
- [
- "tap_modify_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0xfda5941f"
- }
- ],
- [
- "tap_delete",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- {
- "crc": "0x529cb13f"
- }
- ],
- [
- "tap_delete_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- {
- "crc": "0xe8d4e804"
- }
- ],
- [
- "sw_interface_tap_dump",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "sw_interface_tap_details",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u32",
- "sw_if_index"
- ],
- [
- "u8",
- "dev_name",
- 64
- ],
- {
- "crc": "0x76229a57"
- }
- ]
- ],
- "vl_api_version": "0xacec1ba1",
- "unions": [],
- "services": {
- "tap_delete": {
- "reply": "tap_delete_reply"
- },
- "sw_interface_tap_dump": {
- "reply": "sw_interface_tap_details",
- "stream": true
- },
- "tap_modify": {
- "reply": "tap_modify_reply"
- },
- "tap_connect": {
- "reply": "tap_connect_reply"
- }
- },
- "enums": [],
- "types": [],
- "aliases": {}
-}
diff --git a/examples/bin_api/tap/tap.ba.go b/examples/bin_api/tap/tap.ba.go
deleted file mode 100644
index 04ae411..0000000
--- a/examples/bin_api/tap/tap.ba.go
+++ /dev/null
@@ -1,189 +0,0 @@
-// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: tap.api.json
-
-/*
- Package tap is a generated from VPP binary API module 'tap'.
-
- It contains following objects:
- 4 services
- 8 messages
-*/
-package tap
-
-import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
-import bytes "bytes"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = api.RegisterMessage
-var _ = struc.Pack
-var _ = bytes.NewBuffer
-
-// Services represents VPP binary API services:
-type Services interface {
- DumpSwInterfaceTap(*SwInterfaceTapDump) ([]*SwInterfaceTapDetails, error)
- TapConnect(*TapConnect) (*TapConnectReply, error)
- TapDelete(*TapDelete) (*TapDeleteReply, error)
- TapModify(*TapModify) (*TapModifyReply, error)
-}
-
-/* Messages */
-
-// SwInterfaceTapDetails represents VPP binary API message 'sw_interface_tap_details':
-type SwInterfaceTapDetails struct {
- SwIfIndex uint32
- DevName []byte `struc:"[64]byte"`
-}
-
-func (*SwInterfaceTapDetails) GetMessageName() string {
- return "sw_interface_tap_details"
-}
-func (*SwInterfaceTapDetails) GetCrcString() string {
- return "76229a57"
-}
-func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// SwInterfaceTapDump represents VPP binary API message 'sw_interface_tap_dump':
-type SwInterfaceTapDump struct{}
-
-func (*SwInterfaceTapDump) GetMessageName() string {
- return "sw_interface_tap_dump"
-}
-func (*SwInterfaceTapDump) GetCrcString() string {
- return "51077d14"
-}
-func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// TapConnect represents VPP binary API message 'tap_connect':
-type TapConnect struct {
- UseRandomMac uint8
- TapName []byte `struc:"[64]byte"`
- MacAddress []byte `struc:"[6]byte"`
- Renumber uint8
- CustomDevInstance uint32
- IP4AddressSet uint8
- IP4Address []byte `struc:"[4]byte"`
- IP4MaskWidth uint8
- IP6AddressSet uint8
- IP6Address []byte `struc:"[16]byte"`
- IP6MaskWidth uint8
- Tag []byte `struc:"[64]byte"`
-}
-
-func (*TapConnect) GetMessageName() string {
- return "tap_connect"
-}
-func (*TapConnect) GetCrcString() string {
- return "9b9c396f"
-}
-func (*TapConnect) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// TapConnectReply represents VPP binary API message 'tap_connect_reply':
-type TapConnectReply struct {
- Retval int32
- SwIfIndex uint32
-}
-
-func (*TapConnectReply) GetMessageName() string {
- return "tap_connect_reply"
-}
-func (*TapConnectReply) GetCrcString() string {
- return "fda5941f"
-}
-func (*TapConnectReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// TapDelete represents VPP binary API message 'tap_delete':
-type TapDelete struct {
- SwIfIndex uint32
-}
-
-func (*TapDelete) GetMessageName() string {
- return "tap_delete"
-}
-func (*TapDelete) GetCrcString() string {
- return "529cb13f"
-}
-func (*TapDelete) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// TapDeleteReply represents VPP binary API message 'tap_delete_reply':
-type TapDeleteReply struct {
- Retval int32
-}
-
-func (*TapDeleteReply) GetMessageName() string {
- return "tap_delete_reply"
-}
-func (*TapDeleteReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*TapDeleteReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// TapModify represents VPP binary API message 'tap_modify':
-type TapModify struct {
- SwIfIndex uint32
- UseRandomMac uint8
- TapName []byte `struc:"[64]byte"`
- MacAddress []byte `struc:"[6]byte"`
- Renumber uint8
- CustomDevInstance uint32
-}
-
-func (*TapModify) GetMessageName() string {
- return "tap_modify"
-}
-func (*TapModify) GetCrcString() string {
- return "8047ae5c"
-}
-func (*TapModify) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// TapModifyReply represents VPP binary API message 'tap_modify_reply':
-type TapModifyReply struct {
- Retval int32
- SwIfIndex uint32
-}
-
-func (*TapModifyReply) GetMessageName() string {
- return "tap_modify_reply"
-}
-func (*TapModifyReply) GetCrcString() string {
- return "fda5941f"
-}
-func (*TapModifyReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-func init() {
- api.RegisterMessage((*SwInterfaceTapDetails)(nil), "tap.SwInterfaceTapDetails")
- api.RegisterMessage((*SwInterfaceTapDump)(nil), "tap.SwInterfaceTapDump")
- api.RegisterMessage((*TapConnect)(nil), "tap.TapConnect")
- api.RegisterMessage((*TapConnectReply)(nil), "tap.TapConnectReply")
- api.RegisterMessage((*TapDelete)(nil), "tap.TapDelete")
- api.RegisterMessage((*TapDeleteReply)(nil), "tap.TapDeleteReply")
- api.RegisterMessage((*TapModify)(nil), "tap.TapModify")
- api.RegisterMessage((*TapModifyReply)(nil), "tap.TapModifyReply")
-}
-
-var Messages = []api.Message{
- (*SwInterfaceTapDetails)(nil),
- (*SwInterfaceTapDump)(nil),
- (*TapConnect)(nil),
- (*TapConnectReply)(nil),
- (*TapDelete)(nil),
- (*TapDeleteReply)(nil),
- (*TapModify)(nil),
- (*TapModifyReply)(nil),
-}
diff --git a/examples/bin_api/vpe.api.json b/examples/bin_api/vpe.api.json
deleted file mode 100644
index cc5ddee..0000000
--- a/examples/bin_api/vpe.api.json
+++ /dev/null
@@ -1,490 +0,0 @@
-{
- "messages": [
- [
- "control_ping",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "control_ping_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "vpe_pid"
- ],
- {
- "crc": "0xf6b0b8ca"
- }
- ],
- [
- "cli",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u64",
- "cmd_in_shmem"
- ],
- {
- "crc": "0x23bfbfff"
- }
- ],
- [
- "cli_inband",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "string",
- "cmd"
- ],
- {
- "crc": "0xb1ad59b3"
- }
- ],
- [
- "cli_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u64",
- "reply_in_shmem"
- ],
- {
- "crc": "0x06d68297"
- }
- ],
- [
- "cli_inband_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "string",
- "reply"
- ],
- {
- "crc": "0x6d3c80a4"
- }
- ],
- [
- "get_node_index",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "node_name",
- 64
- ],
- {
- "crc": "0x6c9a495d"
- }
- ],
- [
- "get_node_index_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "node_index"
- ],
- {
- "crc": "0xa8600b89"
- }
- ],
- [
- "add_node_next",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "node_name",
- 64
- ],
- [
- "u8",
- "next_name",
- 64
- ],
- {
- "crc": "0x9ab92f7a"
- }
- ],
- [
- "add_node_next_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "next_index"
- ],
- {
- "crc": "0x2ed75f32"
- }
- ],
- [
- "show_version",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "show_version_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "string",
- "program"
- ],
- [
- "string",
- "version"
- ],
- [
- "string",
- "build_date"
- ],
- [
- "string",
- "build_directory"
- ],
- {
- "crc": "0xb9bcf6df"
- }
- ],
- [
- "show_threads",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "show_threads_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "count"
- ],
- [
- "vl_api_thread_data_t",
- "thread_data",
- 0,
- "count"
- ],
- {
- "crc": "0x6942fb35"
- }
- ],
- [
- "get_node_graph",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- {
- "crc": "0x51077d14"
- }
- ],
- [
- "get_node_graph_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u64",
- "reply_in_shmem"
- ],
- {
- "crc": "0x06d68297"
- }
- ],
- [
- "get_next_index",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "client_index"
- ],
- [
- "u32",
- "context"
- ],
- [
- "u8",
- "node_name",
- 64
- ],
- [
- "u8",
- "next_name",
- 64
- ],
- {
- "crc": "0x9ab92f7a"
- }
- ],
- [
- "get_next_index_reply",
- [
- "u16",
- "_vl_msg_id"
- ],
- [
- "u32",
- "context"
- ],
- [
- "i32",
- "retval"
- ],
- [
- "u32",
- "next_index"
- ],
- {
- "crc": "0x2ed75f32"
- }
- ]
- ],
- "vl_api_version": "0x2cc8d629",
- "unions": [],
- "services": {
- "cli_inband": {
- "reply": "cli_inband_reply"
- },
- "get_node_index": {
- "reply": "get_node_index_reply"
- },
- "cli": {
- "reply": "cli_reply"
- },
- "show_version": {
- "reply": "show_version_reply"
- },
- "get_node_graph": {
- "reply": "get_node_graph_reply"
- },
- "get_next_index": {
- "reply": "get_next_index_reply"
- },
- "show_threads": {
- "reply": "show_threads_reply"
- },
- "add_node_next": {
- "reply": "add_node_next_reply"
- },
- "control_ping": {
- "reply": "control_ping_reply"
- }
- },
- "enums": [],
- "types": [
- [
- "thread_data",
- [
- "u32",
- "id"
- ],
- [
- "u8",
- "name",
- 64
- ],
- [
- "u8",
- "type",
- 64
- ],
- [
- "u32",
- "pid"
- ],
- [
- "u32",
- "cpu_id"
- ],
- [
- "u32",
- "core"
- ],
- [
- "u32",
- "cpu_socket"
- ],
- {
- "crc": "0x0f57094e"
- }
- ]
- ],
- "aliases": {}
-}
diff --git a/examples/bin_api/vpe/vpe.ba.go b/examples/bin_api/vpe/vpe.ba.go
deleted file mode 100644
index 486f1a0..0000000
--- a/examples/bin_api/vpe/vpe.ba.go
+++ /dev/null
@@ -1,382 +0,0 @@
-// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: vpe.api.json
-
-/*
- Package vpe is a generated from VPP binary API module 'vpe'.
-
- It contains following objects:
- 9 services
- 1 type
- 18 messages
-*/
-package vpe
-
-import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
-import bytes "bytes"
-
-// Reference imports to suppress errors if they are not otherwise used.
-var _ = api.RegisterMessage
-var _ = struc.Pack
-var _ = bytes.NewBuffer
-
-// Services represents VPP binary API services:
-type Services interface {
- AddNodeNext(*AddNodeNext) (*AddNodeNextReply, error)
- Cli(*Cli) (*CliReply, error)
- CliInband(*CliInband) (*CliInbandReply, error)
- ControlPing(*ControlPing) (*ControlPingReply, error)
- GetNextIndex(*GetNextIndex) (*GetNextIndexReply, error)
- GetNodeGraph(*GetNodeGraph) (*GetNodeGraphReply, error)
- GetNodeIndex(*GetNodeIndex) (*GetNodeIndexReply, error)
- ShowThreads(*ShowThreads) (*ShowThreadsReply, error)
- ShowVersion(*ShowVersion) (*ShowVersionReply, error)
-}
-
-/* Types */
-
-// ThreadData represents VPP binary API type 'thread_data':
-type ThreadData struct {
- ID uint32
- Name []byte `struc:"[64]byte"`
- Type []byte `struc:"[64]byte"`
- PID uint32
- CPUID uint32
- Core uint32
- CPUSocket uint32
-}
-
-func (*ThreadData) GetTypeName() string {
- return "thread_data"
-}
-func (*ThreadData) GetCrcString() string {
- return "0f57094e"
-}
-
-/* Messages */
-
-// AddNodeNext represents VPP binary API message 'add_node_next':
-type AddNodeNext struct {
- NodeName []byte `struc:"[64]byte"`
- NextName []byte `struc:"[64]byte"`
-}
-
-func (*AddNodeNext) GetMessageName() string {
- return "add_node_next"
-}
-func (*AddNodeNext) GetCrcString() string {
- return "9ab92f7a"
-}
-func (*AddNodeNext) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// AddNodeNextReply represents VPP binary API message 'add_node_next_reply':
-type AddNodeNextReply struct {
- Retval int32
- NextIndex uint32
-}
-
-func (*AddNodeNextReply) GetMessageName() string {
- return "add_node_next_reply"
-}
-func (*AddNodeNextReply) GetCrcString() string {
- return "2ed75f32"
-}
-func (*AddNodeNextReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// Cli represents VPP binary API message 'cli':
-type Cli struct {
- CmdInShmem uint64
-}
-
-func (*Cli) GetMessageName() string {
- return "cli"
-}
-func (*Cli) GetCrcString() string {
- return "23bfbfff"
-}
-func (*Cli) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// CliInband represents VPP binary API message 'cli_inband':
-type CliInband struct {
- XXX_CmdLen uint32 `struc:"sizeof=Cmd"`
- Cmd string
-}
-
-func (*CliInband) GetMessageName() string {
- return "cli_inband"
-}
-func (*CliInband) GetCrcString() string {
- return "b1ad59b3"
-}
-func (*CliInband) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// CliInbandReply represents VPP binary API message 'cli_inband_reply':
-type CliInbandReply struct {
- Retval int32
- XXX_ReplyLen uint32 `struc:"sizeof=Reply"`
- Reply string
-}
-
-func (*CliInbandReply) GetMessageName() string {
- return "cli_inband_reply"
-}
-func (*CliInbandReply) GetCrcString() string {
- return "6d3c80a4"
-}
-func (*CliInbandReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// CliReply represents VPP binary API message 'cli_reply':
-type CliReply struct {
- Retval int32
- ReplyInShmem uint64
-}
-
-func (*CliReply) GetMessageName() string {
- return "cli_reply"
-}
-func (*CliReply) GetCrcString() string {
- return "06d68297"
-}
-func (*CliReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ControlPing represents VPP binary API message 'control_ping':
-type ControlPing struct{}
-
-func (*ControlPing) GetMessageName() string {
- return "control_ping"
-}
-func (*ControlPing) GetCrcString() string {
- return "51077d14"
-}
-func (*ControlPing) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ControlPingReply represents VPP binary API message 'control_ping_reply':
-type ControlPingReply struct {
- Retval int32
- ClientIndex uint32
- VpePID uint32
-}
-
-func (*ControlPingReply) GetMessageName() string {
- return "control_ping_reply"
-}
-func (*ControlPingReply) GetCrcString() string {
- return "f6b0b8ca"
-}
-func (*ControlPingReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// GetNextIndex represents VPP binary API message 'get_next_index':
-type GetNextIndex struct {
- NodeName []byte `struc:"[64]byte"`
- NextName []byte `struc:"[64]byte"`
-}
-
-func (*GetNextIndex) GetMessageName() string {
- return "get_next_index"
-}
-func (*GetNextIndex) GetCrcString() string {
- return "9ab92f7a"
-}
-func (*GetNextIndex) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// GetNextIndexReply represents VPP binary API message 'get_next_index_reply':
-type GetNextIndexReply struct {
- Retval int32
- NextIndex uint32
-}
-
-func (*GetNextIndexReply) GetMessageName() string {
- return "get_next_index_reply"
-}
-func (*GetNextIndexReply) GetCrcString() string {
- return "2ed75f32"
-}
-func (*GetNextIndexReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// GetNodeGraph represents VPP binary API message 'get_node_graph':
-type GetNodeGraph struct{}
-
-func (*GetNodeGraph) GetMessageName() string {
- return "get_node_graph"
-}
-func (*GetNodeGraph) GetCrcString() string {
- return "51077d14"
-}
-func (*GetNodeGraph) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// GetNodeGraphReply represents VPP binary API message 'get_node_graph_reply':
-type GetNodeGraphReply struct {
- Retval int32
- ReplyInShmem uint64
-}
-
-func (*GetNodeGraphReply) GetMessageName() string {
- return "get_node_graph_reply"
-}
-func (*GetNodeGraphReply) GetCrcString() string {
- return "06d68297"
-}
-func (*GetNodeGraphReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// GetNodeIndex represents VPP binary API message 'get_node_index':
-type GetNodeIndex struct {
- NodeName []byte `struc:"[64]byte"`
-}
-
-func (*GetNodeIndex) GetMessageName() string {
- return "get_node_index"
-}
-func (*GetNodeIndex) GetCrcString() string {
- return "6c9a495d"
-}
-func (*GetNodeIndex) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// GetNodeIndexReply represents VPP binary API message 'get_node_index_reply':
-type GetNodeIndexReply struct {
- Retval int32
- NodeIndex uint32
-}
-
-func (*GetNodeIndexReply) GetMessageName() string {
- return "get_node_index_reply"
-}
-func (*GetNodeIndexReply) GetCrcString() string {
- return "a8600b89"
-}
-func (*GetNodeIndexReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ShowThreads represents VPP binary API message 'show_threads':
-type ShowThreads struct{}
-
-func (*ShowThreads) GetMessageName() string {
- return "show_threads"
-}
-func (*ShowThreads) GetCrcString() string {
- return "51077d14"
-}
-func (*ShowThreads) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ShowThreadsReply represents VPP binary API message 'show_threads_reply':
-type ShowThreadsReply struct {
- Retval int32
- Count uint32 `struc:"sizeof=ThreadData"`
- ThreadData []ThreadData
-}
-
-func (*ShowThreadsReply) GetMessageName() string {
- return "show_threads_reply"
-}
-func (*ShowThreadsReply) GetCrcString() string {
- return "6942fb35"
-}
-func (*ShowThreadsReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-// ShowVersion represents VPP binary API message 'show_version':
-type ShowVersion struct{}
-
-func (*ShowVersion) GetMessageName() string {
- return "show_version"
-}
-func (*ShowVersion) GetCrcString() string {
- return "51077d14"
-}
-func (*ShowVersion) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-
-// ShowVersionReply represents VPP binary API message 'show_version_reply':
-type ShowVersionReply struct {
- Retval int32
- XXX_ProgramLen uint32 `struc:"sizeof=Program"`
- Program string
- XXX_VersionLen uint32 `struc:"sizeof=Version"`
- Version string
- XXX_BuildDateLen uint32 `struc:"sizeof=BuildDate"`
- BuildDate string
- XXX_BuildDirectoryLen uint32 `struc:"sizeof=BuildDirectory"`
- BuildDirectory string
-}
-
-func (*ShowVersionReply) GetMessageName() string {
- return "show_version_reply"
-}
-func (*ShowVersionReply) GetCrcString() string {
- return "b9bcf6df"
-}
-func (*ShowVersionReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-
-func init() {
- api.RegisterMessage((*AddNodeNext)(nil), "vpe.AddNodeNext")
- api.RegisterMessage((*AddNodeNextReply)(nil), "vpe.AddNodeNextReply")
- api.RegisterMessage((*Cli)(nil), "vpe.Cli")
- api.RegisterMessage((*CliInband)(nil), "vpe.CliInband")
- api.RegisterMessage((*CliInbandReply)(nil), "vpe.CliInbandReply")
- api.RegisterMessage((*CliReply)(nil), "vpe.CliReply")
- api.RegisterMessage((*ControlPing)(nil), "vpe.ControlPing")
- api.RegisterMessage((*ControlPingReply)(nil), "vpe.ControlPingReply")
- api.RegisterMessage((*GetNextIndex)(nil), "vpe.GetNextIndex")
- api.RegisterMessage((*GetNextIndexReply)(nil), "vpe.GetNextIndexReply")
- api.RegisterMessage((*GetNodeGraph)(nil), "vpe.GetNodeGraph")
- api.RegisterMessage((*GetNodeGraphReply)(nil), "vpe.GetNodeGraphReply")
- api.RegisterMessage((*GetNodeIndex)(nil), "vpe.GetNodeIndex")
- api.RegisterMessage((*GetNodeIndexReply)(nil), "vpe.GetNodeIndexReply")
- api.RegisterMessage((*ShowThreads)(nil), "vpe.ShowThreads")
- api.RegisterMessage((*ShowThreadsReply)(nil), "vpe.ShowThreadsReply")
- api.RegisterMessage((*ShowVersion)(nil), "vpe.ShowVersion")
- api.RegisterMessage((*ShowVersionReply)(nil), "vpe.ShowVersionReply")
-}
-
-var Messages = []api.Message{
- (*AddNodeNext)(nil),
- (*AddNodeNextReply)(nil),
- (*Cli)(nil),
- (*CliInband)(nil),
- (*CliInbandReply)(nil),
- (*CliReply)(nil),
- (*ControlPing)(nil),
- (*ControlPingReply)(nil),
- (*GetNextIndex)(nil),
- (*GetNextIndexReply)(nil),
- (*GetNodeGraph)(nil),
- (*GetNodeGraphReply)(nil),
- (*GetNodeIndex)(nil),
- (*GetNodeIndexReply)(nil),
- (*ShowThreads)(nil),
- (*ShowThreadsReply)(nil),
- (*ShowVersion)(nil),
- (*ShowVersionReply)(nil),
-}