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 api "git.fd.io/govpp.git/api"
14 import struc "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:
23 type Services interface {
24 DumpSwInterfaceTap(*SwInterfaceTapDump) ([]*SwInterfaceTapDetails, error)
25 TapConnect(*TapConnect) (*TapConnectReply, error)
26 TapDelete(*TapDelete) (*TapDeleteReply, error)
27 TapModify(*TapModify) (*TapModifyReply, error)
32 // SwInterfaceTapDetails represents VPP binary API message 'sw_interface_tap_details':
33 type SwInterfaceTapDetails struct {
35 DevName []byte `struc:"[64]byte"`
38 func (*SwInterfaceTapDetails) GetMessageName() string {
39 return "sw_interface_tap_details"
41 func (*SwInterfaceTapDetails) GetCrcString() string {
44 func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
45 return api.ReplyMessage
48 // SwInterfaceTapDump represents VPP binary API message 'sw_interface_tap_dump':
49 type SwInterfaceTapDump struct{}
51 func (*SwInterfaceTapDump) GetMessageName() string {
52 return "sw_interface_tap_dump"
54 func (*SwInterfaceTapDump) GetCrcString() string {
57 func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
58 return api.RequestMessage
61 // TapConnect represents VPP binary API message 'tap_connect':
62 type TapConnect struct {
64 TapName []byte `struc:"[64]byte"`
65 MacAddress []byte `struc:"[6]byte"`
67 CustomDevInstance uint32
69 IP4Address []byte `struc:"[4]byte"`
72 IP6Address []byte `struc:"[16]byte"`
74 Tag []byte `struc:"[64]byte"`
77 func (*TapConnect) GetMessageName() string {
80 func (*TapConnect) GetCrcString() string {
83 func (*TapConnect) GetMessageType() api.MessageType {
84 return api.RequestMessage
87 // TapConnectReply represents VPP binary API message 'tap_connect_reply':
88 type TapConnectReply struct {
93 func (*TapConnectReply) GetMessageName() string {
94 return "tap_connect_reply"
96 func (*TapConnectReply) GetCrcString() string {
99 func (*TapConnectReply) GetMessageType() api.MessageType {
100 return api.ReplyMessage
103 // TapDelete represents VPP binary API message 'tap_delete':
104 type TapDelete struct {
108 func (*TapDelete) GetMessageName() string {
111 func (*TapDelete) GetCrcString() string {
114 func (*TapDelete) GetMessageType() api.MessageType {
115 return api.RequestMessage
118 // TapDeleteReply represents VPP binary API message 'tap_delete_reply':
119 type TapDeleteReply struct {
123 func (*TapDeleteReply) GetMessageName() string {
124 return "tap_delete_reply"
126 func (*TapDeleteReply) GetCrcString() string {
129 func (*TapDeleteReply) GetMessageType() api.MessageType {
130 return api.ReplyMessage
133 // TapModify represents VPP binary API message 'tap_modify':
134 type TapModify struct {
137 TapName []byte `struc:"[64]byte"`
138 MacAddress []byte `struc:"[6]byte"`
140 CustomDevInstance uint32
143 func (*TapModify) GetMessageName() string {
146 func (*TapModify) GetCrcString() string {
149 func (*TapModify) GetMessageType() api.MessageType {
150 return api.RequestMessage
153 // TapModifyReply represents VPP binary API message 'tap_modify_reply':
154 type TapModifyReply struct {
159 func (*TapModifyReply) GetMessageName() string {
160 return "tap_modify_reply"
162 func (*TapModifyReply) GetCrcString() string {
165 func (*TapModifyReply) GetMessageType() api.MessageType {
166 return api.ReplyMessage
170 api.RegisterMessage((*SwInterfaceTapDetails)(nil), "tap.SwInterfaceTapDetails")
171 api.RegisterMessage((*SwInterfaceTapDump)(nil), "tap.SwInterfaceTapDump")
172 api.RegisterMessage((*TapConnect)(nil), "tap.TapConnect")
173 api.RegisterMessage((*TapConnectReply)(nil), "tap.TapConnectReply")
174 api.RegisterMessage((*TapDelete)(nil), "tap.TapDelete")
175 api.RegisterMessage((*TapDeleteReply)(nil), "tap.TapDeleteReply")
176 api.RegisterMessage((*TapModify)(nil), "tap.TapModify")
177 api.RegisterMessage((*TapModifyReply)(nil), "tap.TapModifyReply")
180 var Messages = []api.Message{
181 (*SwInterfaceTapDetails)(nil),
182 (*SwInterfaceTapDump)(nil),
184 (*TapConnectReply)(nil),
186 (*TapDeleteReply)(nil),
188 (*TapModifyReply)(nil),