1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 // source: tap.api.json
5 Package tap is a generated from VPP binary API module 'tap'.
7 It contains following objects:
13 import "git.fd.io/govpp.git/api"
14 import "github.com/lunixbochs/struc"
17 // Reference imports to suppress errors if they are not otherwise used.
18 var _ = api.RegisterMessage
20 var _ = bytes.NewBuffer
22 // Services represents VPP binary API services:
26 // "reply": "tap_delete_reply"
28 // "sw_interface_tap_dump": {
29 // "reply": "sw_interface_tap_details",
33 // "reply": "tap_modify_reply"
36 // "reply": "tap_connect_reply"
40 type Services interface {
41 DumpSwInterfaceTap(*SwInterfaceTapDump) ([]*SwInterfaceTapDetails, error)
42 TapConnect(*TapConnect) (*TapConnectReply, error)
43 TapDelete(*TapDelete) (*TapDeleteReply, error)
44 TapModify(*TapModify) (*TapModifyReply, error)
49 // SwInterfaceTapDetails represents VPP binary API message 'sw_interface_tap_details':
51 // "sw_interface_tap_details",
70 // "crc": "0x76229a57"
73 type SwInterfaceTapDetails struct {
75 DevName []byte `struc:"[64]byte"`
78 func (*SwInterfaceTapDetails) GetMessageName() string {
79 return "sw_interface_tap_details"
81 func (*SwInterfaceTapDetails) GetCrcString() string {
84 func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
85 return api.ReplyMessage
88 // SwInterfaceTapDump represents VPP binary API message 'sw_interface_tap_dump':
90 // "sw_interface_tap_dump",
104 // "crc": "0x51077d14"
107 type SwInterfaceTapDump struct{}
109 func (*SwInterfaceTapDump) GetMessageName() string {
110 return "sw_interface_tap_dump"
112 func (*SwInterfaceTapDump) GetCrcString() string {
115 func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
116 return api.RequestMessage
119 // TapConnect represents VPP binary API message 'tap_connect':
154 // "custom_dev_instance"
188 // "crc": "0x9b9c396f"
191 type TapConnect struct {
193 TapName []byte `struc:"[64]byte"`
194 MacAddress []byte `struc:"[6]byte"`
196 CustomDevInstance uint32
198 IP4Address []byte `struc:"[4]byte"`
201 IP6Address []byte `struc:"[16]byte"`
203 Tag []byte `struc:"[64]byte"`
206 func (*TapConnect) GetMessageName() string {
209 func (*TapConnect) GetCrcString() string {
212 func (*TapConnect) GetMessageType() api.MessageType {
213 return api.RequestMessage
216 // TapConnectReply represents VPP binary API message 'tap_connect_reply':
218 // "tap_connect_reply",
236 // "crc": "0xfda5941f"
239 type TapConnectReply struct {
244 func (*TapConnectReply) GetMessageName() string {
245 return "tap_connect_reply"
247 func (*TapConnectReply) GetCrcString() string {
250 func (*TapConnectReply) GetMessageType() api.MessageType {
251 return api.ReplyMessage
254 // TapDelete represents VPP binary API message 'tap_delete':
274 // "crc": "0x529cb13f"
277 type TapDelete struct {
281 func (*TapDelete) GetMessageName() string {
284 func (*TapDelete) GetCrcString() string {
287 func (*TapDelete) GetMessageType() api.MessageType {
288 return api.RequestMessage
291 // TapDeleteReply represents VPP binary API message 'tap_delete_reply':
293 // "tap_delete_reply",
307 // "crc": "0xe8d4e804"
310 type TapDeleteReply struct {
314 func (*TapDeleteReply) GetMessageName() string {
315 return "tap_delete_reply"
317 func (*TapDeleteReply) GetCrcString() string {
320 func (*TapDeleteReply) GetMessageType() api.MessageType {
321 return api.ReplyMessage
324 // TapModify represents VPP binary API message 'tap_modify':
363 // "custom_dev_instance"
366 // "crc": "0x8047ae5c"
369 type TapModify struct {
372 TapName []byte `struc:"[64]byte"`
373 MacAddress []byte `struc:"[6]byte"`
375 CustomDevInstance uint32
378 func (*TapModify) GetMessageName() string {
381 func (*TapModify) GetCrcString() string {
384 func (*TapModify) GetMessageType() api.MessageType {
385 return api.RequestMessage
388 // TapModifyReply represents VPP binary API message 'tap_modify_reply':
390 // "tap_modify_reply",
408 // "crc": "0xfda5941f"
411 type TapModifyReply struct {
416 func (*TapModifyReply) GetMessageName() string {
417 return "tap_modify_reply"
419 func (*TapModifyReply) GetCrcString() string {
422 func (*TapModifyReply) GetMessageType() api.MessageType {
423 return api.ReplyMessage
427 api.RegisterMessage((*SwInterfaceTapDetails)(nil), "tap.SwInterfaceTapDetails")
428 api.RegisterMessage((*SwInterfaceTapDump)(nil), "tap.SwInterfaceTapDump")
429 api.RegisterMessage((*TapConnect)(nil), "tap.TapConnect")
430 api.RegisterMessage((*TapConnectReply)(nil), "tap.TapConnectReply")
431 api.RegisterMessage((*TapDelete)(nil), "tap.TapDelete")
432 api.RegisterMessage((*TapDeleteReply)(nil), "tap.TapDeleteReply")
433 api.RegisterMessage((*TapModify)(nil), "tap.TapModify")
434 api.RegisterMessage((*TapModifyReply)(nil), "tap.TapModifyReply")