initial commit
[govpp.git] / examples / bin_api / tap / tap.go
1 // Package tap represents the VPP binary API of the 'tap' VPP module.
2 // DO NOT EDIT. Generated from 'bin_api/tap.api.json' on Fri, 21 Apr 2017 17:10:06 CEST.
3 package tap
4
5 import "gerrit.fd.io/r/govpp/api"
6
7 // VlApiVersion contains version of the API.
8 const VlAPIVersion = 0x1aedb9f2
9
10 // TapConnect represents the VPP binary API message 'tap_connect'.
11 // Generated from 'bin_api/tap.api.json', line 6:
12 //
13 //        ["tap_connect",
14 //            ["u16", "_vl_msg_id"],
15 //            ["u32", "client_index"],
16 //            ["u32", "context"],
17 //            ["u8", "use_random_mac"],
18 //            ["u8", "tap_name", 64],
19 //            ["u8", "mac_address", 6],
20 //            ["u8", "renumber"],
21 //            ["u32", "custom_dev_instance"],
22 //            ["u8", "ip4_address_set"],
23 //            ["u8", "ip4_address", 4],
24 //            ["u8", "ip4_mask_width"],
25 //            ["u8", "ip6_address_set"],
26 //            ["u8", "ip6_address", 16],
27 //            ["u8", "ip6_mask_width"],
28 //            ["u8", "tag", 64],
29 //            {"crc" : "0x91720de3"}
30 //        ],
31 //
32 type TapConnect struct {
33         UseRandomMac      uint8
34         TapName           []byte `struc:"[64]byte"`
35         MacAddress        []byte `struc:"[6]byte"`
36         Renumber          uint8
37         CustomDevInstance uint32
38         IP4AddressSet     uint8
39         IP4Address        []byte `struc:"[4]byte"`
40         IP4MaskWidth      uint8
41         IP6AddressSet     uint8
42         IP6Address        []byte `struc:"[16]byte"`
43         IP6MaskWidth      uint8
44         Tag               []byte `struc:"[64]byte"`
45 }
46
47 func (*TapConnect) GetMessageName() string {
48         return "tap_connect"
49 }
50 func (*TapConnect) GetMessageType() api.MessageType {
51         return api.RequestMessage
52 }
53 func (*TapConnect) GetCrcString() string {
54         return "91720de3"
55 }
56 func NewTapConnect() api.Message {
57         return &TapConnect{}
58 }
59
60 // TapConnectReply represents the VPP binary API message 'tap_connect_reply'.
61 // Generated from 'bin_api/tap.api.json', line 24:
62 //
63 //        ["tap_connect_reply",
64 //            ["u16", "_vl_msg_id"],
65 //            ["u32", "context"],
66 //            ["i32", "retval"],
67 //            ["u32", "sw_if_index"],
68 //            {"crc" : "0xf47feac1"}
69 //        ],
70 //
71 type TapConnectReply struct {
72         Retval    int32
73         SwIfIndex uint32
74 }
75
76 func (*TapConnectReply) GetMessageName() string {
77         return "tap_connect_reply"
78 }
79 func (*TapConnectReply) GetMessageType() api.MessageType {
80         return api.ReplyMessage
81 }
82 func (*TapConnectReply) GetCrcString() string {
83         return "f47feac1"
84 }
85 func NewTapConnectReply() api.Message {
86         return &TapConnectReply{}
87 }
88
89 // TapModify represents the VPP binary API message 'tap_modify'.
90 // Generated from 'bin_api/tap.api.json', line 31:
91 //
92 //        ["tap_modify",
93 //            ["u16", "_vl_msg_id"],
94 //            ["u32", "client_index"],
95 //            ["u32", "context"],
96 //            ["u32", "sw_if_index"],
97 //            ["u8", "use_random_mac"],
98 //            ["u8", "tap_name", 64],
99 //            ["u8", "mac_address", 6],
100 //            ["u8", "renumber"],
101 //            ["u32", "custom_dev_instance"],
102 //            {"crc" : "0x8abcd5f3"}
103 //        ],
104 //
105 type TapModify struct {
106         SwIfIndex         uint32
107         UseRandomMac      uint8
108         TapName           []byte `struc:"[64]byte"`
109         MacAddress        []byte `struc:"[6]byte"`
110         Renumber          uint8
111         CustomDevInstance uint32
112 }
113
114 func (*TapModify) GetMessageName() string {
115         return "tap_modify"
116 }
117 func (*TapModify) GetMessageType() api.MessageType {
118         return api.RequestMessage
119 }
120 func (*TapModify) GetCrcString() string {
121         return "8abcd5f3"
122 }
123 func NewTapModify() api.Message {
124         return &TapModify{}
125 }
126
127 // TapModifyReply represents the VPP binary API message 'tap_modify_reply'.
128 // Generated from 'bin_api/tap.api.json', line 43:
129 //
130 //        ["tap_modify_reply",
131 //            ["u16", "_vl_msg_id"],
132 //            ["u32", "context"],
133 //            ["i32", "retval"],
134 //            ["u32", "sw_if_index"],
135 //            {"crc" : "0x00aaf940"}
136 //        ],
137 //
138 type TapModifyReply struct {
139         Retval    int32
140         SwIfIndex uint32
141 }
142
143 func (*TapModifyReply) GetMessageName() string {
144         return "tap_modify_reply"
145 }
146 func (*TapModifyReply) GetMessageType() api.MessageType {
147         return api.ReplyMessage
148 }
149 func (*TapModifyReply) GetCrcString() string {
150         return "00aaf940"
151 }
152 func NewTapModifyReply() api.Message {
153         return &TapModifyReply{}
154 }
155
156 // TapDelete represents the VPP binary API message 'tap_delete'.
157 // Generated from 'bin_api/tap.api.json', line 50:
158 //
159 //        ["tap_delete",
160 //            ["u16", "_vl_msg_id"],
161 //            ["u32", "client_index"],
162 //            ["u32", "context"],
163 //            ["u32", "sw_if_index"],
164 //            {"crc" : "0xe99d41c1"}
165 //        ],
166 //
167 type TapDelete struct {
168         SwIfIndex uint32
169 }
170
171 func (*TapDelete) GetMessageName() string {
172         return "tap_delete"
173 }
174 func (*TapDelete) GetMessageType() api.MessageType {
175         return api.RequestMessage
176 }
177 func (*TapDelete) GetCrcString() string {
178         return "e99d41c1"
179 }
180 func NewTapDelete() api.Message {
181         return &TapDelete{}
182 }
183
184 // TapDeleteReply represents the VPP binary API message 'tap_delete_reply'.
185 // Generated from 'bin_api/tap.api.json', line 57:
186 //
187 //        ["tap_delete_reply",
188 //            ["u16", "_vl_msg_id"],
189 //            ["u32", "context"],
190 //            ["i32", "retval"],
191 //            {"crc" : "0x0e47d140"}
192 //        ],
193 //
194 type TapDeleteReply struct {
195         Retval int32
196 }
197
198 func (*TapDeleteReply) GetMessageName() string {
199         return "tap_delete_reply"
200 }
201 func (*TapDeleteReply) GetMessageType() api.MessageType {
202         return api.ReplyMessage
203 }
204 func (*TapDeleteReply) GetCrcString() string {
205         return "0e47d140"
206 }
207 func NewTapDeleteReply() api.Message {
208         return &TapDeleteReply{}
209 }
210
211 // SwInterfaceTapDump represents the VPP binary API message 'sw_interface_tap_dump'.
212 // Generated from 'bin_api/tap.api.json', line 63:
213 //
214 //        ["sw_interface_tap_dump",
215 //            ["u16", "_vl_msg_id"],
216 //            ["u32", "client_index"],
217 //            ["u32", "context"],
218 //            {"crc" : "0xbc6ddbe2"}
219 //        ],
220 //
221 type SwInterfaceTapDump struct {
222 }
223
224 func (*SwInterfaceTapDump) GetMessageName() string {
225         return "sw_interface_tap_dump"
226 }
227 func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
228         return api.RequestMessage
229 }
230 func (*SwInterfaceTapDump) GetCrcString() string {
231         return "bc6ddbe2"
232 }
233 func NewSwInterfaceTapDump() api.Message {
234         return &SwInterfaceTapDump{}
235 }
236
237 // SwInterfaceTapDetails represents the VPP binary API message 'sw_interface_tap_details'.
238 // Generated from 'bin_api/tap.api.json', line 69:
239 //
240 //        ["sw_interface_tap_details",
241 //            ["u16", "_vl_msg_id"],
242 //            ["u32", "context"],
243 //            ["u32", "sw_if_index"],
244 //            ["u8", "dev_name", 64],
245 //            {"crc" : "0x0df07bc3"}
246 //        ]
247 //
248 type SwInterfaceTapDetails struct {
249         SwIfIndex uint32
250         DevName   []byte `struc:"[64]byte"`
251 }
252
253 func (*SwInterfaceTapDetails) GetMessageName() string {
254         return "sw_interface_tap_details"
255 }
256 func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
257         return api.ReplyMessage
258 }
259 func (*SwInterfaceTapDetails) GetCrcString() string {
260         return "0df07bc3"
261 }
262 func NewSwInterfaceTapDetails() api.Message {
263         return &SwInterfaceTapDetails{}
264 }