1 // Code generated by govpp binapi-generator DO NOT EDIT.
2 // Package tap represents the VPP binary API of the 'tap' VPP module.
3 // Generated from '../../bin_api/tap.api.json'
6 import "git.fd.io/govpp.git/api"
8 // VlApiVersion contains version of the API.
9 const VlAPIVersion = 0x4eaa2b5a
11 // TapConnect represents the VPP binary API message 'tap_connect'.
12 // Generated from '../../bin_api/tap.api.json', line 6:
15 // ["u16", "_vl_msg_id"],
16 // ["u32", "client_index"],
17 // ["u32", "context"],
18 // ["u8", "use_random_mac"],
19 // ["u8", "tap_name", 64],
20 // ["u8", "mac_address", 6],
21 // ["u8", "renumber"],
22 // ["u32", "custom_dev_instance"],
23 // ["u8", "ip4_address_set"],
24 // ["u8", "ip4_address", 4],
25 // ["u8", "ip4_mask_width"],
26 // ["u8", "ip6_address_set"],
27 // ["u8", "ip6_address", 16],
28 // ["u8", "ip6_mask_width"],
30 // {"crc" : "0x91720de3"}
33 type TapConnect struct {
35 TapName []byte `struc:"[64]byte"`
36 MacAddress []byte `struc:"[6]byte"`
38 CustomDevInstance uint32
40 IP4Address []byte `struc:"[4]byte"`
43 IP6Address []byte `struc:"[16]byte"`
45 Tag []byte `struc:"[64]byte"`
48 func (*TapConnect) GetMessageName() string {
51 func (*TapConnect) GetMessageType() api.MessageType {
52 return api.RequestMessage
54 func (*TapConnect) GetCrcString() string {
57 func NewTapConnect() api.Message {
61 // TapConnectReply represents the VPP binary API message 'tap_connect_reply'.
62 // Generated from '../../bin_api/tap.api.json', line 24:
64 // ["tap_connect_reply",
65 // ["u16", "_vl_msg_id"],
66 // ["u32", "context"],
68 // ["u32", "sw_if_index"],
69 // {"crc" : "0xf47feac1"}
72 type TapConnectReply struct {
77 func (*TapConnectReply) GetMessageName() string {
78 return "tap_connect_reply"
80 func (*TapConnectReply) GetMessageType() api.MessageType {
81 return api.ReplyMessage
83 func (*TapConnectReply) GetCrcString() string {
86 func NewTapConnectReply() api.Message {
87 return &TapConnectReply{}
90 // TapModify represents the VPP binary API message 'tap_modify'.
91 // Generated from '../../bin_api/tap.api.json', line 31:
94 // ["u16", "_vl_msg_id"],
95 // ["u32", "client_index"],
96 // ["u32", "context"],
97 // ["u32", "sw_if_index"],
98 // ["u8", "use_random_mac"],
99 // ["u8", "tap_name", 64],
100 // ["u8", "mac_address", 6],
101 // ["u8", "renumber"],
102 // ["u32", "custom_dev_instance"],
103 // {"crc" : "0x8abcd5f3"}
106 type TapModify struct {
109 TapName []byte `struc:"[64]byte"`
110 MacAddress []byte `struc:"[6]byte"`
112 CustomDevInstance uint32
115 func (*TapModify) GetMessageName() string {
118 func (*TapModify) GetMessageType() api.MessageType {
119 return api.RequestMessage
121 func (*TapModify) GetCrcString() string {
124 func NewTapModify() api.Message {
128 // TapModifyReply represents the VPP binary API message 'tap_modify_reply'.
129 // Generated from '../../bin_api/tap.api.json', line 43:
131 // ["tap_modify_reply",
132 // ["u16", "_vl_msg_id"],
133 // ["u32", "context"],
134 // ["i32", "retval"],
135 // ["u32", "sw_if_index"],
136 // {"crc" : "0x00aaf940"}
139 type TapModifyReply struct {
144 func (*TapModifyReply) GetMessageName() string {
145 return "tap_modify_reply"
147 func (*TapModifyReply) GetMessageType() api.MessageType {
148 return api.ReplyMessage
150 func (*TapModifyReply) GetCrcString() string {
153 func NewTapModifyReply() api.Message {
154 return &TapModifyReply{}
157 // TapDelete represents the VPP binary API message 'tap_delete'.
158 // Generated from '../../bin_api/tap.api.json', line 50:
161 // ["u16", "_vl_msg_id"],
162 // ["u32", "client_index"],
163 // ["u32", "context"],
164 // ["u32", "sw_if_index"],
165 // {"crc" : "0xe99d41c1"}
168 type TapDelete struct {
172 func (*TapDelete) GetMessageName() string {
175 func (*TapDelete) GetMessageType() api.MessageType {
176 return api.RequestMessage
178 func (*TapDelete) GetCrcString() string {
181 func NewTapDelete() api.Message {
185 // TapDeleteReply represents the VPP binary API message 'tap_delete_reply'.
186 // Generated from '../../bin_api/tap.api.json', line 57:
188 // ["tap_delete_reply",
189 // ["u16", "_vl_msg_id"],
190 // ["u32", "context"],
191 // ["i32", "retval"],
192 // {"crc" : "0x0e47d140"}
195 type TapDeleteReply struct {
199 func (*TapDeleteReply) GetMessageName() string {
200 return "tap_delete_reply"
202 func (*TapDeleteReply) GetMessageType() api.MessageType {
203 return api.ReplyMessage
205 func (*TapDeleteReply) GetCrcString() string {
208 func NewTapDeleteReply() api.Message {
209 return &TapDeleteReply{}
212 // SwInterfaceTapDump represents the VPP binary API message 'sw_interface_tap_dump'.
213 // Generated from '../../bin_api/tap.api.json', line 63:
215 // ["sw_interface_tap_dump",
216 // ["u16", "_vl_msg_id"],
217 // ["u32", "client_index"],
218 // ["u32", "context"],
219 // {"crc" : "0xbc6ddbe2"}
222 type SwInterfaceTapDump struct {
225 func (*SwInterfaceTapDump) GetMessageName() string {
226 return "sw_interface_tap_dump"
228 func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
229 return api.RequestMessage
231 func (*SwInterfaceTapDump) GetCrcString() string {
234 func NewSwInterfaceTapDump() api.Message {
235 return &SwInterfaceTapDump{}
238 // SwInterfaceTapDetails represents the VPP binary API message 'sw_interface_tap_details'.
239 // Generated from '../../bin_api/tap.api.json', line 69:
241 // ["sw_interface_tap_details",
242 // ["u16", "_vl_msg_id"],
243 // ["u32", "context"],
244 // ["u32", "sw_if_index"],
245 // ["u8", "dev_name", 64],
246 // {"crc" : "0x0df07bc3"}
249 type SwInterfaceTapDetails struct {
251 DevName []byte `struc:"[64]byte"`
254 func (*SwInterfaceTapDetails) GetMessageName() string {
255 return "sw_interface_tap_details"
257 func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
258 return api.ReplyMessage
260 func (*SwInterfaceTapDetails) GetCrcString() string {
263 func NewSwInterfaceTapDetails() api.Message {
264 return &SwInterfaceTapDetails{}