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:
14 import "git.fd.io/govpp.git/api"
15 import "github.com/lunixbochs/struc"
18 // Reference imports to suppress errors if they are not otherwise used.
19 var _ = api.RegisterMessage
21 var _ = bytes.NewBuffer
23 // Services represents VPP binary API services:
27 // "reply": "tap_delete_reply"
29 // "sw_interface_tap_dump": {
30 // "reply": "sw_interface_tap_details",
34 // "reply": "tap_modify_reply"
37 // "reply": "tap_connect_reply"
41 type Services interface {
42 DumpSwInterfaceTap(*SwInterfaceTapDump) ([]*SwInterfaceTapDetails, error)
43 TapConnect(*TapConnect) (*TapConnectReply, error)
44 TapDelete(*TapDelete) (*TapDeleteReply, error)
45 TapModify(*TapModify) (*TapModifyReply, error)
50 // TapConnect represents VPP binary API message 'tap_connect':
85 // "custom_dev_instance"
119 // "crc": "0x9b9c396f"
122 type TapConnect struct {
124 TapName []byte `struc:"[64]byte"`
125 MacAddress []byte `struc:"[6]byte"`
127 CustomDevInstance uint32
129 IP4Address []byte `struc:"[4]byte"`
132 IP6Address []byte `struc:"[16]byte"`
134 Tag []byte `struc:"[64]byte"`
137 func (*TapConnect) GetMessageName() string {
140 func (*TapConnect) GetCrcString() string {
143 func (*TapConnect) GetMessageType() api.MessageType {
144 return api.RequestMessage
147 // TapConnectReply represents VPP binary API message 'tap_connect_reply':
149 // "tap_connect_reply",
167 // "crc": "0xfda5941f"
170 type TapConnectReply struct {
175 func (*TapConnectReply) GetMessageName() string {
176 return "tap_connect_reply"
178 func (*TapConnectReply) GetCrcString() string {
181 func (*TapConnectReply) GetMessageType() api.MessageType {
182 return api.ReplyMessage
185 // TapModify represents VPP binary API message 'tap_modify':
224 // "custom_dev_instance"
227 // "crc": "0x8047ae5c"
230 type TapModify struct {
233 TapName []byte `struc:"[64]byte"`
234 MacAddress []byte `struc:"[6]byte"`
236 CustomDevInstance uint32
239 func (*TapModify) GetMessageName() string {
242 func (*TapModify) GetCrcString() string {
245 func (*TapModify) GetMessageType() api.MessageType {
246 return api.RequestMessage
249 // TapModifyReply represents VPP binary API message 'tap_modify_reply':
251 // "tap_modify_reply",
269 // "crc": "0xfda5941f"
272 type TapModifyReply struct {
277 func (*TapModifyReply) GetMessageName() string {
278 return "tap_modify_reply"
280 func (*TapModifyReply) GetCrcString() string {
283 func (*TapModifyReply) GetMessageType() api.MessageType {
284 return api.ReplyMessage
287 // TapDelete represents VPP binary API message 'tap_delete':
307 // "crc": "0x529cb13f"
310 type TapDelete struct {
314 func (*TapDelete) GetMessageName() string {
317 func (*TapDelete) GetCrcString() string {
320 func (*TapDelete) GetMessageType() api.MessageType {
321 return api.RequestMessage
324 // TapDeleteReply represents VPP binary API message 'tap_delete_reply':
326 // "tap_delete_reply",
340 // "crc": "0xe8d4e804"
343 type TapDeleteReply struct {
347 func (*TapDeleteReply) GetMessageName() string {
348 return "tap_delete_reply"
350 func (*TapDeleteReply) GetCrcString() string {
353 func (*TapDeleteReply) GetMessageType() api.MessageType {
354 return api.ReplyMessage
357 // SwInterfaceTapDump represents VPP binary API message 'sw_interface_tap_dump':
359 // "sw_interface_tap_dump",
373 // "crc": "0x51077d14"
376 type SwInterfaceTapDump struct{}
378 func (*SwInterfaceTapDump) GetMessageName() string {
379 return "sw_interface_tap_dump"
381 func (*SwInterfaceTapDump) GetCrcString() string {
384 func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
385 return api.RequestMessage
388 // SwInterfaceTapDetails represents VPP binary API message 'sw_interface_tap_details':
390 // "sw_interface_tap_details",
409 // "crc": "0x76229a57"
412 type SwInterfaceTapDetails struct {
414 DevName []byte `struc:"[64]byte"`
417 func (*SwInterfaceTapDetails) GetMessageName() string {
418 return "sw_interface_tap_details"
420 func (*SwInterfaceTapDetails) GetCrcString() string {
423 func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
424 return api.ReplyMessage
428 api.RegisterMessage((*TapConnect)(nil), "tap.TapConnect")
429 api.RegisterMessage((*TapConnectReply)(nil), "tap.TapConnectReply")
430 api.RegisterMessage((*TapModify)(nil), "tap.TapModify")
431 api.RegisterMessage((*TapModifyReply)(nil), "tap.TapModifyReply")
432 api.RegisterMessage((*TapDelete)(nil), "tap.TapDelete")
433 api.RegisterMessage((*TapDeleteReply)(nil), "tap.TapDeleteReply")
434 api.RegisterMessage((*SwInterfaceTapDump)(nil), "tap.SwInterfaceTapDump")
435 api.RegisterMessage((*SwInterfaceTapDetails)(nil), "tap.SwInterfaceTapDetails")