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
25 // TapConnect represents the VPP binary API message 'tap_connect'.
60 // "custom_dev_instance"
94 // "crc": "0x9b9c396f"
97 type TapConnect struct {
99 TapName []byte `struc:"[64]byte"`
100 MacAddress []byte `struc:"[6]byte"`
102 CustomDevInstance uint32
104 IP4Address []byte `struc:"[4]byte"`
107 IP6Address []byte `struc:"[16]byte"`
109 Tag []byte `struc:"[64]byte"`
112 func (*TapConnect) GetMessageName() string {
115 func (*TapConnect) GetCrcString() string {
118 func (*TapConnect) GetMessageType() api.MessageType {
119 return api.RequestMessage
122 // TapConnectReply represents the VPP binary API message 'tap_connect_reply'.
124 // "tap_connect_reply",
142 // "crc": "0xfda5941f"
145 type TapConnectReply struct {
150 func (*TapConnectReply) GetMessageName() string {
151 return "tap_connect_reply"
153 func (*TapConnectReply) GetCrcString() string {
156 func (*TapConnectReply) GetMessageType() api.MessageType {
157 return api.ReplyMessage
160 // TapModify represents the VPP binary API message 'tap_modify'.
199 // "custom_dev_instance"
202 // "crc": "0x8047ae5c"
205 type TapModify struct {
208 TapName []byte `struc:"[64]byte"`
209 MacAddress []byte `struc:"[6]byte"`
211 CustomDevInstance uint32
214 func (*TapModify) GetMessageName() string {
217 func (*TapModify) GetCrcString() string {
220 func (*TapModify) GetMessageType() api.MessageType {
221 return api.RequestMessage
224 // TapModifyReply represents the VPP binary API message 'tap_modify_reply'.
226 // "tap_modify_reply",
244 // "crc": "0xfda5941f"
247 type TapModifyReply struct {
252 func (*TapModifyReply) GetMessageName() string {
253 return "tap_modify_reply"
255 func (*TapModifyReply) GetCrcString() string {
258 func (*TapModifyReply) GetMessageType() api.MessageType {
259 return api.ReplyMessage
262 // TapDelete represents the VPP binary API message 'tap_delete'.
282 // "crc": "0x529cb13f"
285 type TapDelete struct {
289 func (*TapDelete) GetMessageName() string {
292 func (*TapDelete) GetCrcString() string {
295 func (*TapDelete) GetMessageType() api.MessageType {
296 return api.RequestMessage
299 // TapDeleteReply represents the VPP binary API message 'tap_delete_reply'.
301 // "tap_delete_reply",
315 // "crc": "0xe8d4e804"
318 type TapDeleteReply struct {
322 func (*TapDeleteReply) GetMessageName() string {
323 return "tap_delete_reply"
325 func (*TapDeleteReply) GetCrcString() string {
328 func (*TapDeleteReply) GetMessageType() api.MessageType {
329 return api.ReplyMessage
332 // SwInterfaceTapDump represents the VPP binary API message 'sw_interface_tap_dump'.
334 // "sw_interface_tap_dump",
348 // "crc": "0x51077d14"
351 type SwInterfaceTapDump struct{}
353 func (*SwInterfaceTapDump) GetMessageName() string {
354 return "sw_interface_tap_dump"
356 func (*SwInterfaceTapDump) GetCrcString() string {
359 func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
360 return api.RequestMessage
363 // SwInterfaceTapDetails represents the VPP binary API message 'sw_interface_tap_details'.
365 // "sw_interface_tap_details",
384 // "crc": "0x76229a57"
387 type SwInterfaceTapDetails struct {
389 DevName []byte `struc:"[64]byte"`
392 func (*SwInterfaceTapDetails) GetMessageName() string {
393 return "sw_interface_tap_details"
395 func (*SwInterfaceTapDetails) GetCrcString() string {
398 func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
399 return api.ReplyMessage
404 type Services interface {
405 DumpSwInterfaceTap(*SwInterfaceTapDump) (*SwInterfaceTapDetails, error)
406 TapConnect(*TapConnect) (*TapConnectReply, error)
407 TapDelete(*TapDelete) (*TapDeleteReply, error)
408 TapModify(*TapModify) (*TapModifyReply, error)
412 api.RegisterMessage((*TapConnect)(nil), "tap.TapConnect")
413 api.RegisterMessage((*TapConnectReply)(nil), "tap.TapConnectReply")
414 api.RegisterMessage((*TapModify)(nil), "tap.TapModify")
415 api.RegisterMessage((*TapModifyReply)(nil), "tap.TapModifyReply")
416 api.RegisterMessage((*TapDelete)(nil), "tap.TapDelete")
417 api.RegisterMessage((*TapDeleteReply)(nil), "tap.TapDeleteReply")
418 api.RegisterMessage((*SwInterfaceTapDump)(nil), "tap.SwInterfaceTapDump")
419 api.RegisterMessage((*SwInterfaceTapDetails)(nil), "tap.SwInterfaceTapDetails")