1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 // source: tap.api.json
5 Package tap is a generated VPP binary API of the 'tap' VPP module.
7 It is generated from this file:
10 It contains these VPP binary API objects:
16 import "git.fd.io/govpp.git/api"
17 import "github.com/lunixbochs/struc"
20 // Reference imports to suppress errors if they are not otherwise used.
22 var _ = bytes.NewBuffer
26 // TapConnect represents the VPP binary API message 'tap_connect'.
27 // Generated from 'tap.api.json', line 4:
62 // "custom_dev_instance"
96 // "crc": "0x9b9c396f"
99 type TapConnect struct {
101 TapName []byte `struc:"[64]byte"`
102 MacAddress []byte `struc:"[6]byte"`
104 CustomDevInstance uint32
106 IP4Address []byte `struc:"[4]byte"`
109 IP6Address []byte `struc:"[16]byte"`
111 Tag []byte `struc:"[64]byte"`
114 func (*TapConnect) GetMessageName() string {
117 func (*TapConnect) GetCrcString() string {
120 func (*TapConnect) GetMessageType() api.MessageType {
121 return api.RequestMessage
123 func NewTapConnect() api.Message {
127 // TapConnectReply represents the VPP binary API message 'tap_connect_reply'.
128 // Generated from 'tap.api.json', line 75:
130 // "tap_connect_reply",
148 // "crc": "0xfda5941f"
151 type TapConnectReply struct {
156 func (*TapConnectReply) GetMessageName() string {
157 return "tap_connect_reply"
159 func (*TapConnectReply) GetCrcString() string {
162 func (*TapConnectReply) GetMessageType() api.MessageType {
163 return api.ReplyMessage
165 func NewTapConnectReply() api.Message {
166 return &TapConnectReply{}
169 // TapModify represents the VPP binary API message 'tap_modify'.
170 // Generated from 'tap.api.json', line 97:
209 // "custom_dev_instance"
212 // "crc": "0x8047ae5c"
215 type TapModify struct {
218 TapName []byte `struc:"[64]byte"`
219 MacAddress []byte `struc:"[6]byte"`
221 CustomDevInstance uint32
224 func (*TapModify) GetMessageName() string {
227 func (*TapModify) GetCrcString() string {
230 func (*TapModify) GetMessageType() api.MessageType {
231 return api.RequestMessage
233 func NewTapModify() api.Message {
237 // TapModifyReply represents the VPP binary API message 'tap_modify_reply'.
238 // Generated from 'tap.api.json', line 141:
240 // "tap_modify_reply",
258 // "crc": "0xfda5941f"
261 type TapModifyReply struct {
266 func (*TapModifyReply) GetMessageName() string {
267 return "tap_modify_reply"
269 func (*TapModifyReply) GetCrcString() string {
272 func (*TapModifyReply) GetMessageType() api.MessageType {
273 return api.ReplyMessage
275 func NewTapModifyReply() api.Message {
276 return &TapModifyReply{}
279 // TapDelete represents the VPP binary API message 'tap_delete'.
280 // Generated from 'tap.api.json', line 163:
300 // "crc": "0x529cb13f"
303 type TapDelete struct {
307 func (*TapDelete) GetMessageName() string {
310 func (*TapDelete) GetCrcString() string {
313 func (*TapDelete) GetMessageType() api.MessageType {
314 return api.RequestMessage
316 func NewTapDelete() api.Message {
320 // TapDeleteReply represents the VPP binary API message 'tap_delete_reply'.
321 // Generated from 'tap.api.json', line 185:
323 // "tap_delete_reply",
337 // "crc": "0xe8d4e804"
340 type TapDeleteReply struct {
344 func (*TapDeleteReply) GetMessageName() string {
345 return "tap_delete_reply"
347 func (*TapDeleteReply) GetCrcString() string {
350 func (*TapDeleteReply) GetMessageType() api.MessageType {
351 return api.ReplyMessage
353 func NewTapDeleteReply() api.Message {
354 return &TapDeleteReply{}
357 // SwInterfaceTapDump represents the VPP binary API message 'sw_interface_tap_dump'.
358 // Generated from 'tap.api.json', line 203:
360 // "sw_interface_tap_dump",
374 // "crc": "0x51077d14"
377 type SwInterfaceTapDump struct{}
379 func (*SwInterfaceTapDump) GetMessageName() string {
380 return "sw_interface_tap_dump"
382 func (*SwInterfaceTapDump) GetCrcString() string {
385 func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
386 return api.RequestMessage
388 func NewSwInterfaceTapDump() api.Message {
389 return &SwInterfaceTapDump{}
392 // SwInterfaceTapDetails represents the VPP binary API message 'sw_interface_tap_details'.
393 // Generated from 'tap.api.json', line 221:
395 // "sw_interface_tap_details",
414 // "crc": "0x76229a57"
417 type SwInterfaceTapDetails struct {
419 DevName []byte `struc:"[64]byte"`
422 func (*SwInterfaceTapDetails) GetMessageName() string {
423 return "sw_interface_tap_details"
425 func (*SwInterfaceTapDetails) GetCrcString() string {
428 func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
429 return api.ReplyMessage
431 func NewSwInterfaceTapDetails() api.Message {
432 return &SwInterfaceTapDetails{}
437 type Services interface {
438 DumpSwInterfaceTap(*SwInterfaceTapDump) (*SwInterfaceTapDetails, error)
439 TapConnect(*TapConnect) (*TapConnectReply, error)
440 TapDelete(*TapDelete) (*TapDeleteReply, error)
441 TapModify(*TapModify) (*TapModifyReply, error)
445 api.RegisterMessage((*TapConnect)(nil), "tap.TapConnect")
446 api.RegisterMessage((*TapConnectReply)(nil), "tap.TapConnectReply")
447 api.RegisterMessage((*TapModify)(nil), "tap.TapModify")
448 api.RegisterMessage((*TapModifyReply)(nil), "tap.TapModifyReply")
449 api.RegisterMessage((*TapDelete)(nil), "tap.TapDelete")
450 api.RegisterMessage((*TapDeleteReply)(nil), "tap.TapDeleteReply")
451 api.RegisterMessage((*SwInterfaceTapDump)(nil), "tap.SwInterfaceTapDump")
452 api.RegisterMessage((*SwInterfaceTapDetails)(nil), "tap.SwInterfaceTapDetails")