1 // Package af_packet represents the VPP binary API of the 'af_packet' VPP module.
2 // DO NOT EDIT. Generated from 'bin_api/af_packet.api.json' on Thu, 04 May 2017 13:11:57 CEST.
5 import "git.fd.io/govpp.git/api"
7 // VlApiVersion contains version of the API.
8 const VlAPIVersion = 0x4ca71f33
10 // AfPacketCreate represents the VPP binary API message 'af_packet_create'.
11 // Generated from 'bin_api/af_packet.api.json', line 6:
13 // ["af_packet_create",
14 // ["u16", "_vl_msg_id"],
15 // ["u32", "client_index"],
16 // ["u32", "context"],
17 // ["u8", "host_if_name", 64],
18 // ["u8", "hw_addr", 6],
19 // ["u8", "use_random_hw_addr"],
20 // {"crc" : "0x92768640"}
23 type AfPacketCreate struct {
24 HostIfName []byte `struc:"[64]byte"`
25 HwAddr []byte `struc:"[6]byte"`
29 func (*AfPacketCreate) GetMessageName() string {
30 return "af_packet_create"
32 func (*AfPacketCreate) GetMessageType() api.MessageType {
33 return api.RequestMessage
35 func (*AfPacketCreate) GetCrcString() string {
38 func NewAfPacketCreate() api.Message {
39 return &AfPacketCreate{}
42 // AfPacketCreateReply represents the VPP binary API message 'af_packet_create_reply'.
43 // Generated from 'bin_api/af_packet.api.json', line 15:
45 // ["af_packet_create_reply",
46 // ["u16", "_vl_msg_id"],
47 // ["u32", "context"],
49 // ["u32", "sw_if_index"],
50 // {"crc" : "0x718bac92"}
53 type AfPacketCreateReply struct {
58 func (*AfPacketCreateReply) GetMessageName() string {
59 return "af_packet_create_reply"
61 func (*AfPacketCreateReply) GetMessageType() api.MessageType {
62 return api.ReplyMessage
64 func (*AfPacketCreateReply) GetCrcString() string {
67 func NewAfPacketCreateReply() api.Message {
68 return &AfPacketCreateReply{}
71 // AfPacketDelete represents the VPP binary API message 'af_packet_delete'.
72 // Generated from 'bin_api/af_packet.api.json', line 22:
74 // ["af_packet_delete",
75 // ["u16", "_vl_msg_id"],
76 // ["u32", "client_index"],
77 // ["u32", "context"],
78 // ["u8", "host_if_name", 64],
79 // {"crc" : "0xc063ce85"}
82 type AfPacketDelete struct {
83 HostIfName []byte `struc:"[64]byte"`
86 func (*AfPacketDelete) GetMessageName() string {
87 return "af_packet_delete"
89 func (*AfPacketDelete) GetMessageType() api.MessageType {
90 return api.RequestMessage
92 func (*AfPacketDelete) GetCrcString() string {
95 func NewAfPacketDelete() api.Message {
96 return &AfPacketDelete{}
99 // AfPacketDeleteReply represents the VPP binary API message 'af_packet_delete_reply'.
100 // Generated from 'bin_api/af_packet.api.json', line 29:
102 // ["af_packet_delete_reply",
103 // ["u16", "_vl_msg_id"],
104 // ["u32", "context"],
105 // ["i32", "retval"],
106 // {"crc" : "0x1a80431a"}
109 type AfPacketDeleteReply struct {
113 func (*AfPacketDeleteReply) GetMessageName() string {
114 return "af_packet_delete_reply"
116 func (*AfPacketDeleteReply) GetMessageType() api.MessageType {
117 return api.ReplyMessage
119 func (*AfPacketDeleteReply) GetCrcString() string {
122 func NewAfPacketDeleteReply() api.Message {
123 return &AfPacketDeleteReply{}