aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bin_api/af_packet/af_packet.ba.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bin_api/af_packet/af_packet.ba.go')
-rw-r--r--examples/bin_api/af_packet/af_packet.ba.go203
1 files changed, 3 insertions, 200 deletions
diff --git a/examples/bin_api/af_packet/af_packet.ba.go b/examples/bin_api/af_packet/af_packet.ba.go
index 668c95a..5177b7d 100644
--- a/examples/bin_api/af_packet/af_packet.ba.go
+++ b/examples/bin_api/af_packet/af_packet.ba.go
@@ -10,9 +10,9 @@
*/
package af_packet
-import "git.fd.io/govpp.git/api"
-import "github.com/lunixbochs/struc"
-import "bytes"
+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
@@ -20,23 +20,6 @@ var _ = struc.Pack
var _ = bytes.NewBuffer
// Services represents VPP binary API services:
-//
-// "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"
-// }
-// },
-//
type Services interface {
DumpAfPacket(*AfPacketDump) ([]*AfPacketDetails, error)
AfPacketCreate(*AfPacketCreate) (*AfPacketCreateReply, error)
@@ -47,38 +30,6 @@ type Services interface {
/* Messages */
// AfPacketCreate represents VPP binary API message 'af_packet_create':
-//
-// "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"
-// }
-//
type AfPacketCreate struct {
HostIfName []byte `struc:"[64]byte"`
HwAddr []byte `struc:"[6]byte"`
@@ -96,28 +47,6 @@ func (*AfPacketCreate) GetMessageType() api.MessageType {
}
// AfPacketCreateReply represents VPP binary API message 'af_packet_create_reply':
-//
-// "af_packet_create_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// {
-// "crc": "0xfda5941f"
-// }
-//
type AfPacketCreateReply struct {
Retval int32
SwIfIndex uint32
@@ -134,29 +63,6 @@ func (*AfPacketCreateReply) GetMessageType() api.MessageType {
}
// AfPacketDelete represents VPP binary API message 'af_packet_delete':
-//
-// "af_packet_delete",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u8",
-// "host_if_name",
-// 64
-// ],
-// {
-// "crc": "0x3efceda3"
-// }
-//
type AfPacketDelete struct {
HostIfName []byte `struc:"[64]byte"`
}
@@ -172,24 +78,6 @@ func (*AfPacketDelete) GetMessageType() api.MessageType {
}
// AfPacketDeleteReply represents VPP binary API message 'af_packet_delete_reply':
-//
-// "af_packet_delete_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xe8d4e804"
-// }
-//
type AfPacketDeleteReply struct {
Retval int32
}
@@ -205,29 +93,6 @@ func (*AfPacketDeleteReply) GetMessageType() api.MessageType {
}
// AfPacketDetails represents VPP binary API message 'af_packet_details':
-//
-// "af_packet_details",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// [
-// "u8",
-// "host_if_name",
-// 64
-// ],
-// {
-// "crc": "0x057205fa"
-// }
-//
type AfPacketDetails struct {
SwIfIndex uint32
HostIfName []byte `struc:"[64]byte"`
@@ -244,24 +109,6 @@ func (*AfPacketDetails) GetMessageType() api.MessageType {
}
// AfPacketDump represents VPP binary API message 'af_packet_dump':
-//
-// "af_packet_dump",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// {
-// "crc": "0x51077d14"
-// }
-//
type AfPacketDump struct{}
func (*AfPacketDump) GetMessageName() string {
@@ -275,32 +122,6 @@ func (*AfPacketDump) GetMessageType() api.MessageType {
}
// AfPacketSetL4CksumOffload represents VPP binary API message 'af_packet_set_l4_cksum_offload':
-//
-// "af_packet_set_l4_cksum_offload",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u8",
-// "sw_if_index"
-// ],
-// [
-// "u8",
-// "set"
-// ],
-// {
-// "crc": "0x86538585"
-// }
-//
type AfPacketSetL4CksumOffload struct {
SwIfIndex uint8
Set uint8
@@ -317,24 +138,6 @@ func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType {
}
// AfPacketSetL4CksumOffloadReply represents VPP binary API message 'af_packet_set_l4_cksum_offload_reply':
-//
-// "af_packet_set_l4_cksum_offload_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xe8d4e804"
-// }
-//
type AfPacketSetL4CksumOffloadReply struct {
Retval int32
}