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.
21 var _ = api.RegisterMessage
23 var _ = bytes.NewBuffer
27 // TapConnect represents the VPP binary API message 'tap_connect'.
28 // Generated from 'tap.api.json', line 4:
63 // "custom_dev_instance"
97 // "crc": "0x9b9c396f"
100 type TapConnect struct {
102 TapName []byte `struc:"[64]byte"`
103 MacAddress []byte `struc:"[6]byte"`
105 CustomDevInstance uint32
107 IP4Address []byte `struc:"[4]byte"`
110 IP6Address []byte `struc:"[16]byte"`
112 Tag []byte `struc:"[64]byte"`
115 func (*TapConnect) GetMessageName() string {
118 func (*TapConnect) GetCrcString() string {
121 func (*TapConnect) GetMessageType() api.MessageType {
122 return api.RequestMessage
124 func NewTapConnect() api.Message {
128 // TapConnectReply represents the VPP binary API message 'tap_connect_reply'.
129 // Generated from 'tap.api.json', line 75:
131 // "tap_connect_reply",
149 // "crc": "0xfda5941f"
152 type TapConnectReply struct {
157 func (*TapConnectReply) GetMessageName() string {
158 return "tap_connect_reply"
160 func (*TapConnectReply) GetCrcString() string {
163 func (*TapConnectReply) GetMessageType() api.MessageType {
164 return api.ReplyMessage
166 func NewTapConnectReply() api.Message {
167 return &TapConnectReply{}
170 // TapModify represents the VPP binary API message 'tap_modify'.
171 // Generated from 'tap.api.json', line 97:
210 // "custom_dev_instance"
213 // "crc": "0x8047ae5c"
216 type TapModify struct {
219 TapName []byte `struc:"[64]byte"`
220 MacAddress []byte `struc:"[6]byte"`
222 CustomDevInstance uint32
225 func (*TapModify) GetMessageName() string {
228 func (*TapModify) GetCrcString() string {
231 func (*TapModify) GetMessageType() api.MessageType {
232 return api.RequestMessage
234 func NewTapModify() api.Message {
238 // TapModifyReply represents the VPP binary API message 'tap_modify_reply'.
239 // Generated from 'tap.api.json', line 141:
241 // "tap_modify_reply",
259 // "crc": "0xfda5941f"
262 type TapModifyReply struct {
267 func (*TapModifyReply) GetMessageName() string {
268 return "tap_modify_reply"
270 func (*TapModifyReply) GetCrcString() string {
273 func (*TapModifyReply) GetMessageType() api.MessageType {
274 return api.ReplyMessage
276 func NewTapModifyReply() api.Message {
277 return &TapModifyReply{}
280 // TapDelete represents the VPP binary API message 'tap_delete'.
281 // Generated from 'tap.api.json', line 163:
301 // "crc": "0x529cb13f"
304 type TapDelete struct {
308 func (*TapDelete) GetMessageName() string {
311 func (*TapDelete) GetCrcString() string {
314 func (*TapDelete) GetMessageType() api.MessageType {
315 return api.RequestMessage
317 func NewTapDelete() api.Message {
321 // TapDeleteReply represents the VPP binary API message 'tap_delete_reply'.
322 // Generated from 'tap.api.json', line 185:
324 // "tap_delete_reply",
338 // "crc": "0xe8d4e804"
341 type TapDeleteReply struct {
345 func (*TapDeleteReply) GetMessageName() string {
346 return "tap_delete_reply"
348 func (*TapDeleteReply) GetCrcString() string {
351 func (*TapDeleteReply) GetMessageType() api.MessageType {
352 return api.ReplyMessage
354 func NewTapDeleteReply() api.Message {
355 return &TapDeleteReply{}
358 // SwInterfaceTapDump represents the VPP binary API message 'sw_interface_tap_dump'.
359 // Generated from 'tap.api.json', line 203:
361 // "sw_interface_tap_dump",
375 // "crc": "0x51077d14"
378 type SwInterfaceTapDump struct{}
380 func (*SwInterfaceTapDump) GetMessageName() string {
381 return "sw_interface_tap_dump"
383 func (*SwInterfaceTapDump) GetCrcString() string {
386 func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
387 return api.RequestMessage
389 func NewSwInterfaceTapDump() api.Message {
390 return &SwInterfaceTapDump{}
393 // SwInterfaceTapDetails represents the VPP binary API message 'sw_interface_tap_details'.
394 // Generated from 'tap.api.json', line 221:
396 // "sw_interface_tap_details",
415 // "crc": "0x76229a57"
418 type SwInterfaceTapDetails struct {
420 DevName []byte `struc:"[64]byte"`
423 func (*SwInterfaceTapDetails) GetMessageName() string {
424 return "sw_interface_tap_details"
426 func (*SwInterfaceTapDetails) GetCrcString() string {
429 func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
430 return api.ReplyMessage
432 func NewSwInterfaceTapDetails() api.Message {
433 return &SwInterfaceTapDetails{}
438 type Services interface {
439 DumpSwInterfaceTap(*SwInterfaceTapDump) (*SwInterfaceTapDetails, error)
440 TapConnect(*TapConnect) (*TapConnectReply, error)
441 TapDelete(*TapDelete) (*TapDeleteReply, error)
442 TapModify(*TapModify) (*TapModifyReply, error)
446 api.RegisterMessage((*TapConnect)(nil), "tap.TapConnect")
447 api.RegisterMessage((*TapConnectReply)(nil), "tap.TapConnectReply")
448 api.RegisterMessage((*TapModify)(nil), "tap.TapModify")
449 api.RegisterMessage((*TapModifyReply)(nil), "tap.TapModifyReply")
450 api.RegisterMessage((*TapDelete)(nil), "tap.TapDelete")
451 api.RegisterMessage((*TapDeleteReply)(nil), "tap.TapDeleteReply")
452 api.RegisterMessage((*SwInterfaceTapDump)(nil), "tap.SwInterfaceTapDump")
453 api.RegisterMessage((*SwInterfaceTapDetails)(nil), "tap.SwInterfaceTapDetails")