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.
5 import "gerrit.fd.io/r/govpp/api"
7 // VlApiVersion contains version of the API.
8 const VlAPIVersion = 0x1aedb9f2
10 // TapConnect represents the VPP binary API message 'tap_connect'.
11 // Generated from 'bin_api/tap.api.json', line 6:
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"],
29 // {"crc" : "0x91720de3"}
32 type TapConnect struct {
34 TapName []byte `struc:"[64]byte"`
35 MacAddress []byte `struc:"[6]byte"`
37 CustomDevInstance uint32
39 IP4Address []byte `struc:"[4]byte"`
42 IP6Address []byte `struc:"[16]byte"`
44 Tag []byte `struc:"[64]byte"`
47 func (*TapConnect) GetMessageName() string {
50 func (*TapConnect) GetMessageType() api.MessageType {
51 return api.RequestMessage
53 func (*TapConnect) GetCrcString() string {
56 func NewTapConnect() api.Message {
60 // TapConnectReply represents the VPP binary API message 'tap_connect_reply'.
61 // Generated from 'bin_api/tap.api.json', line 24:
63 // ["tap_connect_reply",
64 // ["u16", "_vl_msg_id"],
65 // ["u32", "context"],
67 // ["u32", "sw_if_index"],
68 // {"crc" : "0xf47feac1"}
71 type TapConnectReply struct {
76 func (*TapConnectReply) GetMessageName() string {
77 return "tap_connect_reply"
79 func (*TapConnectReply) GetMessageType() api.MessageType {
80 return api.ReplyMessage
82 func (*TapConnectReply) GetCrcString() string {
85 func NewTapConnectReply() api.Message {
86 return &TapConnectReply{}
89 // TapModify represents the VPP binary API message 'tap_modify'.
90 // Generated from 'bin_api/tap.api.json', line 31:
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"}
105 type TapModify struct {
108 TapName []byte `struc:"[64]byte"`
109 MacAddress []byte `struc:"[6]byte"`
111 CustomDevInstance uint32
114 func (*TapModify) GetMessageName() string {
117 func (*TapModify) GetMessageType() api.MessageType {
118 return api.RequestMessage
120 func (*TapModify) GetCrcString() string {
123 func NewTapModify() api.Message {
127 // TapModifyReply represents the VPP binary API message 'tap_modify_reply'.
128 // Generated from 'bin_api/tap.api.json', line 43:
130 // ["tap_modify_reply",
131 // ["u16", "_vl_msg_id"],
132 // ["u32", "context"],
133 // ["i32", "retval"],
134 // ["u32", "sw_if_index"],
135 // {"crc" : "0x00aaf940"}
138 type TapModifyReply struct {
143 func (*TapModifyReply) GetMessageName() string {
144 return "tap_modify_reply"
146 func (*TapModifyReply) GetMessageType() api.MessageType {
147 return api.ReplyMessage
149 func (*TapModifyReply) GetCrcString() string {
152 func NewTapModifyReply() api.Message {
153 return &TapModifyReply{}
156 // TapDelete represents the VPP binary API message 'tap_delete'.
157 // Generated from 'bin_api/tap.api.json', line 50:
160 // ["u16", "_vl_msg_id"],
161 // ["u32", "client_index"],
162 // ["u32", "context"],
163 // ["u32", "sw_if_index"],
164 // {"crc" : "0xe99d41c1"}
167 type TapDelete struct {
171 func (*TapDelete) GetMessageName() string {
174 func (*TapDelete) GetMessageType() api.MessageType {
175 return api.RequestMessage
177 func (*TapDelete) GetCrcString() string {
180 func NewTapDelete() api.Message {
184 // TapDeleteReply represents the VPP binary API message 'tap_delete_reply'.
185 // Generated from 'bin_api/tap.api.json', line 57:
187 // ["tap_delete_reply",
188 // ["u16", "_vl_msg_id"],
189 // ["u32", "context"],
190 // ["i32", "retval"],
191 // {"crc" : "0x0e47d140"}
194 type TapDeleteReply struct {
198 func (*TapDeleteReply) GetMessageName() string {
199 return "tap_delete_reply"
201 func (*TapDeleteReply) GetMessageType() api.MessageType {
202 return api.ReplyMessage
204 func (*TapDeleteReply) GetCrcString() string {
207 func NewTapDeleteReply() api.Message {
208 return &TapDeleteReply{}
211 // SwInterfaceTapDump represents the VPP binary API message 'sw_interface_tap_dump'.
212 // Generated from 'bin_api/tap.api.json', line 63:
214 // ["sw_interface_tap_dump",
215 // ["u16", "_vl_msg_id"],
216 // ["u32", "client_index"],
217 // ["u32", "context"],
218 // {"crc" : "0xbc6ddbe2"}
221 type SwInterfaceTapDump struct {
224 func (*SwInterfaceTapDump) GetMessageName() string {
225 return "sw_interface_tap_dump"
227 func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
228 return api.RequestMessage
230 func (*SwInterfaceTapDump) GetCrcString() string {
233 func NewSwInterfaceTapDump() api.Message {
234 return &SwInterfaceTapDump{}
237 // SwInterfaceTapDetails represents the VPP binary API message 'sw_interface_tap_details'.
238 // Generated from 'bin_api/tap.api.json', line 69:
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"}
248 type SwInterfaceTapDetails struct {
250 DevName []byte `struc:"[64]byte"`
253 func (*SwInterfaceTapDetails) GetMessageName() string {
254 return "sw_interface_tap_details"
256 func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
257 return api.ReplyMessage
259 func (*SwInterfaceTapDetails) GetCrcString() string {
262 func NewSwInterfaceTapDetails() api.Message {
263 return &SwInterfaceTapDetails{}