Change module name to go.fd.io/govpp
[govpp.git] / binapi / acl / acl.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // versions:
3 //  binapi-generator: v0.6.0-dev
4 //  VPP:              22.02-release
5 // source: /usr/share/vpp/api/plugins/acl.api.json
6
7 // Package acl contains generated bindings for API file acl.api.
8 //
9 // Contents:
10 //  42 messages
11 //
12 package acl
13
14 import (
15         api "go.fd.io/govpp/api"
16         acl_types "go.fd.io/govpp/binapi/acl_types"
17         _ "go.fd.io/govpp/binapi/ethernet_types"
18         interface_types "go.fd.io/govpp/binapi/interface_types"
19         ip_types "go.fd.io/govpp/binapi/ip_types"
20         codec "go.fd.io/govpp/codec"
21 )
22
23 // This is a compile-time assertion to ensure that this generated file
24 // is compatible with the GoVPP api package it is being compiled against.
25 // A compilation error at this line likely means your copy of the
26 // GoVPP api package needs to be updated.
27 const _ = api.GoVppAPIPackageIsVersion2
28
29 const (
30         APIFile    = "acl"
31         APIVersion = "2.0.1"
32         VersionCrc = 0x5133bba0
33 )
34
35 // ACLAddReplace defines message 'acl_add_replace'.
36 type ACLAddReplace struct {
37         ACLIndex uint32              `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
38         Tag      string              `binapi:"string[64],name=tag" json:"tag,omitempty"`
39         Count    uint32              `binapi:"u32,name=count" json:"-"`
40         R        []acl_types.ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
41 }
42
43 func (m *ACLAddReplace) Reset()               { *m = ACLAddReplace{} }
44 func (*ACLAddReplace) GetMessageName() string { return "acl_add_replace" }
45 func (*ACLAddReplace) GetCrcString() string   { return "ee5c2f18" }
46 func (*ACLAddReplace) GetMessageType() api.MessageType {
47         return api.RequestMessage
48 }
49
50 func (m *ACLAddReplace) Size() (size int) {
51         if m == nil {
52                 return 0
53         }
54         size += 4  // m.ACLIndex
55         size += 64 // m.Tag
56         size += 4  // m.Count
57         for j1 := 0; j1 < len(m.R); j1++ {
58                 var s1 acl_types.ACLRule
59                 _ = s1
60                 if j1 < len(m.R) {
61                         s1 = m.R[j1]
62                 }
63                 size += 1      // s1.IsPermit
64                 size += 1      // s1.SrcPrefix.Address.Af
65                 size += 1 * 16 // s1.SrcPrefix.Address.Un
66                 size += 1      // s1.SrcPrefix.Len
67                 size += 1      // s1.DstPrefix.Address.Af
68                 size += 1 * 16 // s1.DstPrefix.Address.Un
69                 size += 1      // s1.DstPrefix.Len
70                 size += 1      // s1.Proto
71                 size += 2      // s1.SrcportOrIcmptypeFirst
72                 size += 2      // s1.SrcportOrIcmptypeLast
73                 size += 2      // s1.DstportOrIcmpcodeFirst
74                 size += 2      // s1.DstportOrIcmpcodeLast
75                 size += 1      // s1.TCPFlagsMask
76                 size += 1      // s1.TCPFlagsValue
77         }
78         return size
79 }
80 func (m *ACLAddReplace) Marshal(b []byte) ([]byte, error) {
81         if b == nil {
82                 b = make([]byte, m.Size())
83         }
84         buf := codec.NewBuffer(b)
85         buf.EncodeUint32(m.ACLIndex)
86         buf.EncodeString(m.Tag, 64)
87         buf.EncodeUint32(uint32(len(m.R)))
88         for j0 := 0; j0 < len(m.R); j0++ {
89                 var v0 acl_types.ACLRule // R
90                 if j0 < len(m.R) {
91                         v0 = m.R[j0]
92                 }
93                 buf.EncodeUint8(uint8(v0.IsPermit))
94                 buf.EncodeUint8(uint8(v0.SrcPrefix.Address.Af))
95                 buf.EncodeBytes(v0.SrcPrefix.Address.Un.XXX_UnionData[:], 16)
96                 buf.EncodeUint8(v0.SrcPrefix.Len)
97                 buf.EncodeUint8(uint8(v0.DstPrefix.Address.Af))
98                 buf.EncodeBytes(v0.DstPrefix.Address.Un.XXX_UnionData[:], 16)
99                 buf.EncodeUint8(v0.DstPrefix.Len)
100                 buf.EncodeUint8(uint8(v0.Proto))
101                 buf.EncodeUint16(v0.SrcportOrIcmptypeFirst)
102                 buf.EncodeUint16(v0.SrcportOrIcmptypeLast)
103                 buf.EncodeUint16(v0.DstportOrIcmpcodeFirst)
104                 buf.EncodeUint16(v0.DstportOrIcmpcodeLast)
105                 buf.EncodeUint8(v0.TCPFlagsMask)
106                 buf.EncodeUint8(v0.TCPFlagsValue)
107         }
108         return buf.Bytes(), nil
109 }
110 func (m *ACLAddReplace) Unmarshal(b []byte) error {
111         buf := codec.NewBuffer(b)
112         m.ACLIndex = buf.DecodeUint32()
113         m.Tag = buf.DecodeString(64)
114         m.Count = buf.DecodeUint32()
115         m.R = make([]acl_types.ACLRule, m.Count)
116         for j0 := 0; j0 < len(m.R); j0++ {
117                 m.R[j0].IsPermit = acl_types.ACLAction(buf.DecodeUint8())
118                 m.R[j0].SrcPrefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
119                 copy(m.R[j0].SrcPrefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
120                 m.R[j0].SrcPrefix.Len = buf.DecodeUint8()
121                 m.R[j0].DstPrefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
122                 copy(m.R[j0].DstPrefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
123                 m.R[j0].DstPrefix.Len = buf.DecodeUint8()
124                 m.R[j0].Proto = ip_types.IPProto(buf.DecodeUint8())
125                 m.R[j0].SrcportOrIcmptypeFirst = buf.DecodeUint16()
126                 m.R[j0].SrcportOrIcmptypeLast = buf.DecodeUint16()
127                 m.R[j0].DstportOrIcmpcodeFirst = buf.DecodeUint16()
128                 m.R[j0].DstportOrIcmpcodeLast = buf.DecodeUint16()
129                 m.R[j0].TCPFlagsMask = buf.DecodeUint8()
130                 m.R[j0].TCPFlagsValue = buf.DecodeUint8()
131         }
132         return nil
133 }
134
135 // ACLAddReplaceReply defines message 'acl_add_replace_reply'.
136 type ACLAddReplaceReply struct {
137         ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
138         Retval   int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
139 }
140
141 func (m *ACLAddReplaceReply) Reset()               { *m = ACLAddReplaceReply{} }
142 func (*ACLAddReplaceReply) GetMessageName() string { return "acl_add_replace_reply" }
143 func (*ACLAddReplaceReply) GetCrcString() string   { return "ac407b0c" }
144 func (*ACLAddReplaceReply) GetMessageType() api.MessageType {
145         return api.ReplyMessage
146 }
147
148 func (m *ACLAddReplaceReply) Size() (size int) {
149         if m == nil {
150                 return 0
151         }
152         size += 4 // m.ACLIndex
153         size += 4 // m.Retval
154         return size
155 }
156 func (m *ACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
157         if b == nil {
158                 b = make([]byte, m.Size())
159         }
160         buf := codec.NewBuffer(b)
161         buf.EncodeUint32(m.ACLIndex)
162         buf.EncodeInt32(m.Retval)
163         return buf.Bytes(), nil
164 }
165 func (m *ACLAddReplaceReply) Unmarshal(b []byte) error {
166         buf := codec.NewBuffer(b)
167         m.ACLIndex = buf.DecodeUint32()
168         m.Retval = buf.DecodeInt32()
169         return nil
170 }
171
172 // ACLDel defines message 'acl_del'.
173 type ACLDel struct {
174         ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
175 }
176
177 func (m *ACLDel) Reset()               { *m = ACLDel{} }
178 func (*ACLDel) GetMessageName() string { return "acl_del" }
179 func (*ACLDel) GetCrcString() string   { return "ef34fea4" }
180 func (*ACLDel) GetMessageType() api.MessageType {
181         return api.RequestMessage
182 }
183
184 func (m *ACLDel) Size() (size int) {
185         if m == nil {
186                 return 0
187         }
188         size += 4 // m.ACLIndex
189         return size
190 }
191 func (m *ACLDel) Marshal(b []byte) ([]byte, error) {
192         if b == nil {
193                 b = make([]byte, m.Size())
194         }
195         buf := codec.NewBuffer(b)
196         buf.EncodeUint32(m.ACLIndex)
197         return buf.Bytes(), nil
198 }
199 func (m *ACLDel) Unmarshal(b []byte) error {
200         buf := codec.NewBuffer(b)
201         m.ACLIndex = buf.DecodeUint32()
202         return nil
203 }
204
205 // ACLDelReply defines message 'acl_del_reply'.
206 type ACLDelReply struct {
207         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
208 }
209
210 func (m *ACLDelReply) Reset()               { *m = ACLDelReply{} }
211 func (*ACLDelReply) GetMessageName() string { return "acl_del_reply" }
212 func (*ACLDelReply) GetCrcString() string   { return "e8d4e804" }
213 func (*ACLDelReply) GetMessageType() api.MessageType {
214         return api.ReplyMessage
215 }
216
217 func (m *ACLDelReply) Size() (size int) {
218         if m == nil {
219                 return 0
220         }
221         size += 4 // m.Retval
222         return size
223 }
224 func (m *ACLDelReply) Marshal(b []byte) ([]byte, error) {
225         if b == nil {
226                 b = make([]byte, m.Size())
227         }
228         buf := codec.NewBuffer(b)
229         buf.EncodeInt32(m.Retval)
230         return buf.Bytes(), nil
231 }
232 func (m *ACLDelReply) Unmarshal(b []byte) error {
233         buf := codec.NewBuffer(b)
234         m.Retval = buf.DecodeInt32()
235         return nil
236 }
237
238 // ACLDetails defines message 'acl_details'.
239 type ACLDetails struct {
240         ACLIndex uint32              `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
241         Tag      string              `binapi:"string[64],name=tag" json:"tag,omitempty"`
242         Count    uint32              `binapi:"u32,name=count" json:"-"`
243         R        []acl_types.ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
244 }
245
246 func (m *ACLDetails) Reset()               { *m = ACLDetails{} }
247 func (*ACLDetails) GetMessageName() string { return "acl_details" }
248 func (*ACLDetails) GetCrcString() string   { return "95babae0" }
249 func (*ACLDetails) GetMessageType() api.MessageType {
250         return api.ReplyMessage
251 }
252
253 func (m *ACLDetails) Size() (size int) {
254         if m == nil {
255                 return 0
256         }
257         size += 4  // m.ACLIndex
258         size += 64 // m.Tag
259         size += 4  // m.Count
260         for j1 := 0; j1 < len(m.R); j1++ {
261                 var s1 acl_types.ACLRule
262                 _ = s1
263                 if j1 < len(m.R) {
264                         s1 = m.R[j1]
265                 }
266                 size += 1      // s1.IsPermit
267                 size += 1      // s1.SrcPrefix.Address.Af
268                 size += 1 * 16 // s1.SrcPrefix.Address.Un
269                 size += 1      // s1.SrcPrefix.Len
270                 size += 1      // s1.DstPrefix.Address.Af
271                 size += 1 * 16 // s1.DstPrefix.Address.Un
272                 size += 1      // s1.DstPrefix.Len
273                 size += 1      // s1.Proto
274                 size += 2      // s1.SrcportOrIcmptypeFirst
275                 size += 2      // s1.SrcportOrIcmptypeLast
276                 size += 2      // s1.DstportOrIcmpcodeFirst
277                 size += 2      // s1.DstportOrIcmpcodeLast
278                 size += 1      // s1.TCPFlagsMask
279                 size += 1      // s1.TCPFlagsValue
280         }
281         return size
282 }
283 func (m *ACLDetails) Marshal(b []byte) ([]byte, error) {
284         if b == nil {
285                 b = make([]byte, m.Size())
286         }
287         buf := codec.NewBuffer(b)
288         buf.EncodeUint32(m.ACLIndex)
289         buf.EncodeString(m.Tag, 64)
290         buf.EncodeUint32(uint32(len(m.R)))
291         for j0 := 0; j0 < len(m.R); j0++ {
292                 var v0 acl_types.ACLRule // R
293                 if j0 < len(m.R) {
294                         v0 = m.R[j0]
295                 }
296                 buf.EncodeUint8(uint8(v0.IsPermit))
297                 buf.EncodeUint8(uint8(v0.SrcPrefix.Address.Af))
298                 buf.EncodeBytes(v0.SrcPrefix.Address.Un.XXX_UnionData[:], 16)
299                 buf.EncodeUint8(v0.SrcPrefix.Len)
300                 buf.EncodeUint8(uint8(v0.DstPrefix.Address.Af))
301                 buf.EncodeBytes(v0.DstPrefix.Address.Un.XXX_UnionData[:], 16)
302                 buf.EncodeUint8(v0.DstPrefix.Len)
303                 buf.EncodeUint8(uint8(v0.Proto))
304                 buf.EncodeUint16(v0.SrcportOrIcmptypeFirst)
305                 buf.EncodeUint16(v0.SrcportOrIcmptypeLast)
306                 buf.EncodeUint16(v0.DstportOrIcmpcodeFirst)
307                 buf.EncodeUint16(v0.DstportOrIcmpcodeLast)
308                 buf.EncodeUint8(v0.TCPFlagsMask)
309                 buf.EncodeUint8(v0.TCPFlagsValue)
310         }
311         return buf.Bytes(), nil
312 }
313 func (m *ACLDetails) Unmarshal(b []byte) error {
314         buf := codec.NewBuffer(b)
315         m.ACLIndex = buf.DecodeUint32()
316         m.Tag = buf.DecodeString(64)
317         m.Count = buf.DecodeUint32()
318         m.R = make([]acl_types.ACLRule, m.Count)
319         for j0 := 0; j0 < len(m.R); j0++ {
320                 m.R[j0].IsPermit = acl_types.ACLAction(buf.DecodeUint8())
321                 m.R[j0].SrcPrefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
322                 copy(m.R[j0].SrcPrefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
323                 m.R[j0].SrcPrefix.Len = buf.DecodeUint8()
324                 m.R[j0].DstPrefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
325                 copy(m.R[j0].DstPrefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
326                 m.R[j0].DstPrefix.Len = buf.DecodeUint8()
327                 m.R[j0].Proto = ip_types.IPProto(buf.DecodeUint8())
328                 m.R[j0].SrcportOrIcmptypeFirst = buf.DecodeUint16()
329                 m.R[j0].SrcportOrIcmptypeLast = buf.DecodeUint16()
330                 m.R[j0].DstportOrIcmpcodeFirst = buf.DecodeUint16()
331                 m.R[j0].DstportOrIcmpcodeLast = buf.DecodeUint16()
332                 m.R[j0].TCPFlagsMask = buf.DecodeUint8()
333                 m.R[j0].TCPFlagsValue = buf.DecodeUint8()
334         }
335         return nil
336 }
337
338 // ACLDump defines message 'acl_dump'.
339 type ACLDump struct {
340         ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
341 }
342
343 func (m *ACLDump) Reset()               { *m = ACLDump{} }
344 func (*ACLDump) GetMessageName() string { return "acl_dump" }
345 func (*ACLDump) GetCrcString() string   { return "ef34fea4" }
346 func (*ACLDump) GetMessageType() api.MessageType {
347         return api.RequestMessage
348 }
349
350 func (m *ACLDump) Size() (size int) {
351         if m == nil {
352                 return 0
353         }
354         size += 4 // m.ACLIndex
355         return size
356 }
357 func (m *ACLDump) Marshal(b []byte) ([]byte, error) {
358         if b == nil {
359                 b = make([]byte, m.Size())
360         }
361         buf := codec.NewBuffer(b)
362         buf.EncodeUint32(m.ACLIndex)
363         return buf.Bytes(), nil
364 }
365 func (m *ACLDump) Unmarshal(b []byte) error {
366         buf := codec.NewBuffer(b)
367         m.ACLIndex = buf.DecodeUint32()
368         return nil
369 }
370
371 // ACLInterfaceAddDel defines message 'acl_interface_add_del'.
372 type ACLInterfaceAddDel struct {
373         IsAdd     bool                           `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
374         IsInput   bool                           `binapi:"bool,name=is_input" json:"is_input,omitempty"`
375         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
376         ACLIndex  uint32                         `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
377 }
378
379 func (m *ACLInterfaceAddDel) Reset()               { *m = ACLInterfaceAddDel{} }
380 func (*ACLInterfaceAddDel) GetMessageName() string { return "acl_interface_add_del" }
381 func (*ACLInterfaceAddDel) GetCrcString() string   { return "4b54bebd" }
382 func (*ACLInterfaceAddDel) GetMessageType() api.MessageType {
383         return api.RequestMessage
384 }
385
386 func (m *ACLInterfaceAddDel) Size() (size int) {
387         if m == nil {
388                 return 0
389         }
390         size += 1 // m.IsAdd
391         size += 1 // m.IsInput
392         size += 4 // m.SwIfIndex
393         size += 4 // m.ACLIndex
394         return size
395 }
396 func (m *ACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
397         if b == nil {
398                 b = make([]byte, m.Size())
399         }
400         buf := codec.NewBuffer(b)
401         buf.EncodeBool(m.IsAdd)
402         buf.EncodeBool(m.IsInput)
403         buf.EncodeUint32(uint32(m.SwIfIndex))
404         buf.EncodeUint32(m.ACLIndex)
405         return buf.Bytes(), nil
406 }
407 func (m *ACLInterfaceAddDel) Unmarshal(b []byte) error {
408         buf := codec.NewBuffer(b)
409         m.IsAdd = buf.DecodeBool()
410         m.IsInput = buf.DecodeBool()
411         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
412         m.ACLIndex = buf.DecodeUint32()
413         return nil
414 }
415
416 // ACLInterfaceAddDelReply defines message 'acl_interface_add_del_reply'.
417 type ACLInterfaceAddDelReply struct {
418         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
419 }
420
421 func (m *ACLInterfaceAddDelReply) Reset()               { *m = ACLInterfaceAddDelReply{} }
422 func (*ACLInterfaceAddDelReply) GetMessageName() string { return "acl_interface_add_del_reply" }
423 func (*ACLInterfaceAddDelReply) GetCrcString() string   { return "e8d4e804" }
424 func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType {
425         return api.ReplyMessage
426 }
427
428 func (m *ACLInterfaceAddDelReply) Size() (size int) {
429         if m == nil {
430                 return 0
431         }
432         size += 4 // m.Retval
433         return size
434 }
435 func (m *ACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
436         if b == nil {
437                 b = make([]byte, m.Size())
438         }
439         buf := codec.NewBuffer(b)
440         buf.EncodeInt32(m.Retval)
441         return buf.Bytes(), nil
442 }
443 func (m *ACLInterfaceAddDelReply) Unmarshal(b []byte) error {
444         buf := codec.NewBuffer(b)
445         m.Retval = buf.DecodeInt32()
446         return nil
447 }
448
449 // ACLInterfaceEtypeWhitelistDetails defines message 'acl_interface_etype_whitelist_details'.
450 type ACLInterfaceEtypeWhitelistDetails struct {
451         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
452         Count     uint8                          `binapi:"u8,name=count" json:"-"`
453         NInput    uint8                          `binapi:"u8,name=n_input" json:"n_input,omitempty"`
454         Whitelist []uint16                       `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
455 }
456
457 func (m *ACLInterfaceEtypeWhitelistDetails) Reset() { *m = ACLInterfaceEtypeWhitelistDetails{} }
458 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string {
459         return "acl_interface_etype_whitelist_details"
460 }
461 func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string { return "cc2bfded" }
462 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType {
463         return api.ReplyMessage
464 }
465
466 func (m *ACLInterfaceEtypeWhitelistDetails) Size() (size int) {
467         if m == nil {
468                 return 0
469         }
470         size += 4                    // m.SwIfIndex
471         size += 1                    // m.Count
472         size += 1                    // m.NInput
473         size += 2 * len(m.Whitelist) // m.Whitelist
474         return size
475 }
476 func (m *ACLInterfaceEtypeWhitelistDetails) Marshal(b []byte) ([]byte, error) {
477         if b == nil {
478                 b = make([]byte, m.Size())
479         }
480         buf := codec.NewBuffer(b)
481         buf.EncodeUint32(uint32(m.SwIfIndex))
482         buf.EncodeUint8(uint8(len(m.Whitelist)))
483         buf.EncodeUint8(m.NInput)
484         for i := 0; i < len(m.Whitelist); i++ {
485                 var x uint16
486                 if i < len(m.Whitelist) {
487                         x = uint16(m.Whitelist[i])
488                 }
489                 buf.EncodeUint16(x)
490         }
491         return buf.Bytes(), nil
492 }
493 func (m *ACLInterfaceEtypeWhitelistDetails) Unmarshal(b []byte) error {
494         buf := codec.NewBuffer(b)
495         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
496         m.Count = buf.DecodeUint8()
497         m.NInput = buf.DecodeUint8()
498         m.Whitelist = make([]uint16, m.Count)
499         for i := 0; i < len(m.Whitelist); i++ {
500                 m.Whitelist[i] = buf.DecodeUint16()
501         }
502         return nil
503 }
504
505 // ACLInterfaceEtypeWhitelistDump defines message 'acl_interface_etype_whitelist_dump'.
506 type ACLInterfaceEtypeWhitelistDump struct {
507         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
508 }
509
510 func (m *ACLInterfaceEtypeWhitelistDump) Reset() { *m = ACLInterfaceEtypeWhitelistDump{} }
511 func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string {
512         return "acl_interface_etype_whitelist_dump"
513 }
514 func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string { return "f9e6675e" }
515 func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType {
516         return api.RequestMessage
517 }
518
519 func (m *ACLInterfaceEtypeWhitelistDump) Size() (size int) {
520         if m == nil {
521                 return 0
522         }
523         size += 4 // m.SwIfIndex
524         return size
525 }
526 func (m *ACLInterfaceEtypeWhitelistDump) Marshal(b []byte) ([]byte, error) {
527         if b == nil {
528                 b = make([]byte, m.Size())
529         }
530         buf := codec.NewBuffer(b)
531         buf.EncodeUint32(uint32(m.SwIfIndex))
532         return buf.Bytes(), nil
533 }
534 func (m *ACLInterfaceEtypeWhitelistDump) Unmarshal(b []byte) error {
535         buf := codec.NewBuffer(b)
536         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
537         return nil
538 }
539
540 // ACLInterfaceListDetails defines message 'acl_interface_list_details'.
541 type ACLInterfaceListDetails struct {
542         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
543         Count     uint8                          `binapi:"u8,name=count" json:"-"`
544         NInput    uint8                          `binapi:"u8,name=n_input" json:"n_input,omitempty"`
545         Acls      []uint32                       `binapi:"u32[count],name=acls" json:"acls,omitempty"`
546 }
547
548 func (m *ACLInterfaceListDetails) Reset()               { *m = ACLInterfaceListDetails{} }
549 func (*ACLInterfaceListDetails) GetMessageName() string { return "acl_interface_list_details" }
550 func (*ACLInterfaceListDetails) GetCrcString() string   { return "e695d256" }
551 func (*ACLInterfaceListDetails) GetMessageType() api.MessageType {
552         return api.ReplyMessage
553 }
554
555 func (m *ACLInterfaceListDetails) Size() (size int) {
556         if m == nil {
557                 return 0
558         }
559         size += 4               // m.SwIfIndex
560         size += 1               // m.Count
561         size += 1               // m.NInput
562         size += 4 * len(m.Acls) // m.Acls
563         return size
564 }
565 func (m *ACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
566         if b == nil {
567                 b = make([]byte, m.Size())
568         }
569         buf := codec.NewBuffer(b)
570         buf.EncodeUint32(uint32(m.SwIfIndex))
571         buf.EncodeUint8(uint8(len(m.Acls)))
572         buf.EncodeUint8(m.NInput)
573         for i := 0; i < len(m.Acls); i++ {
574                 var x uint32
575                 if i < len(m.Acls) {
576                         x = uint32(m.Acls[i])
577                 }
578                 buf.EncodeUint32(x)
579         }
580         return buf.Bytes(), nil
581 }
582 func (m *ACLInterfaceListDetails) Unmarshal(b []byte) error {
583         buf := codec.NewBuffer(b)
584         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
585         m.Count = buf.DecodeUint8()
586         m.NInput = buf.DecodeUint8()
587         m.Acls = make([]uint32, m.Count)
588         for i := 0; i < len(m.Acls); i++ {
589                 m.Acls[i] = buf.DecodeUint32()
590         }
591         return nil
592 }
593
594 // ACLInterfaceListDump defines message 'acl_interface_list_dump'.
595 type ACLInterfaceListDump struct {
596         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
597 }
598
599 func (m *ACLInterfaceListDump) Reset()               { *m = ACLInterfaceListDump{} }
600 func (*ACLInterfaceListDump) GetMessageName() string { return "acl_interface_list_dump" }
601 func (*ACLInterfaceListDump) GetCrcString() string   { return "f9e6675e" }
602 func (*ACLInterfaceListDump) GetMessageType() api.MessageType {
603         return api.RequestMessage
604 }
605
606 func (m *ACLInterfaceListDump) Size() (size int) {
607         if m == nil {
608                 return 0
609         }
610         size += 4 // m.SwIfIndex
611         return size
612 }
613 func (m *ACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
614         if b == nil {
615                 b = make([]byte, m.Size())
616         }
617         buf := codec.NewBuffer(b)
618         buf.EncodeUint32(uint32(m.SwIfIndex))
619         return buf.Bytes(), nil
620 }
621 func (m *ACLInterfaceListDump) Unmarshal(b []byte) error {
622         buf := codec.NewBuffer(b)
623         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
624         return nil
625 }
626
627 // ACLInterfaceSetACLList defines message 'acl_interface_set_acl_list'.
628 type ACLInterfaceSetACLList struct {
629         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
630         Count     uint8                          `binapi:"u8,name=count" json:"-"`
631         NInput    uint8                          `binapi:"u8,name=n_input" json:"n_input,omitempty"`
632         Acls      []uint32                       `binapi:"u32[count],name=acls" json:"acls,omitempty"`
633 }
634
635 func (m *ACLInterfaceSetACLList) Reset()               { *m = ACLInterfaceSetACLList{} }
636 func (*ACLInterfaceSetACLList) GetMessageName() string { return "acl_interface_set_acl_list" }
637 func (*ACLInterfaceSetACLList) GetCrcString() string   { return "473982bd" }
638 func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType {
639         return api.RequestMessage
640 }
641
642 func (m *ACLInterfaceSetACLList) Size() (size int) {
643         if m == nil {
644                 return 0
645         }
646         size += 4               // m.SwIfIndex
647         size += 1               // m.Count
648         size += 1               // m.NInput
649         size += 4 * len(m.Acls) // m.Acls
650         return size
651 }
652 func (m *ACLInterfaceSetACLList) Marshal(b []byte) ([]byte, error) {
653         if b == nil {
654                 b = make([]byte, m.Size())
655         }
656         buf := codec.NewBuffer(b)
657         buf.EncodeUint32(uint32(m.SwIfIndex))
658         buf.EncodeUint8(uint8(len(m.Acls)))
659         buf.EncodeUint8(m.NInput)
660         for i := 0; i < len(m.Acls); i++ {
661                 var x uint32
662                 if i < len(m.Acls) {
663                         x = uint32(m.Acls[i])
664                 }
665                 buf.EncodeUint32(x)
666         }
667         return buf.Bytes(), nil
668 }
669 func (m *ACLInterfaceSetACLList) Unmarshal(b []byte) error {
670         buf := codec.NewBuffer(b)
671         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
672         m.Count = buf.DecodeUint8()
673         m.NInput = buf.DecodeUint8()
674         m.Acls = make([]uint32, m.Count)
675         for i := 0; i < len(m.Acls); i++ {
676                 m.Acls[i] = buf.DecodeUint32()
677         }
678         return nil
679 }
680
681 // ACLInterfaceSetACLListReply defines message 'acl_interface_set_acl_list_reply'.
682 type ACLInterfaceSetACLListReply struct {
683         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
684 }
685
686 func (m *ACLInterfaceSetACLListReply) Reset() { *m = ACLInterfaceSetACLListReply{} }
687 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
688         return "acl_interface_set_acl_list_reply"
689 }
690 func (*ACLInterfaceSetACLListReply) GetCrcString() string { return "e8d4e804" }
691 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType {
692         return api.ReplyMessage
693 }
694
695 func (m *ACLInterfaceSetACLListReply) Size() (size int) {
696         if m == nil {
697                 return 0
698         }
699         size += 4 // m.Retval
700         return size
701 }
702 func (m *ACLInterfaceSetACLListReply) Marshal(b []byte) ([]byte, error) {
703         if b == nil {
704                 b = make([]byte, m.Size())
705         }
706         buf := codec.NewBuffer(b)
707         buf.EncodeInt32(m.Retval)
708         return buf.Bytes(), nil
709 }
710 func (m *ACLInterfaceSetACLListReply) Unmarshal(b []byte) error {
711         buf := codec.NewBuffer(b)
712         m.Retval = buf.DecodeInt32()
713         return nil
714 }
715
716 // ACLInterfaceSetEtypeWhitelist defines message 'acl_interface_set_etype_whitelist'.
717 type ACLInterfaceSetEtypeWhitelist struct {
718         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
719         Count     uint8                          `binapi:"u8,name=count" json:"-"`
720         NInput    uint8                          `binapi:"u8,name=n_input" json:"n_input,omitempty"`
721         Whitelist []uint16                       `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
722 }
723
724 func (m *ACLInterfaceSetEtypeWhitelist) Reset() { *m = ACLInterfaceSetEtypeWhitelist{} }
725 func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string {
726         return "acl_interface_set_etype_whitelist"
727 }
728 func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string { return "3f5c2d2d" }
729 func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType {
730         return api.RequestMessage
731 }
732
733 func (m *ACLInterfaceSetEtypeWhitelist) Size() (size int) {
734         if m == nil {
735                 return 0
736         }
737         size += 4                    // m.SwIfIndex
738         size += 1                    // m.Count
739         size += 1                    // m.NInput
740         size += 2 * len(m.Whitelist) // m.Whitelist
741         return size
742 }
743 func (m *ACLInterfaceSetEtypeWhitelist) Marshal(b []byte) ([]byte, error) {
744         if b == nil {
745                 b = make([]byte, m.Size())
746         }
747         buf := codec.NewBuffer(b)
748         buf.EncodeUint32(uint32(m.SwIfIndex))
749         buf.EncodeUint8(uint8(len(m.Whitelist)))
750         buf.EncodeUint8(m.NInput)
751         for i := 0; i < len(m.Whitelist); i++ {
752                 var x uint16
753                 if i < len(m.Whitelist) {
754                         x = uint16(m.Whitelist[i])
755                 }
756                 buf.EncodeUint16(x)
757         }
758         return buf.Bytes(), nil
759 }
760 func (m *ACLInterfaceSetEtypeWhitelist) Unmarshal(b []byte) error {
761         buf := codec.NewBuffer(b)
762         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
763         m.Count = buf.DecodeUint8()
764         m.NInput = buf.DecodeUint8()
765         m.Whitelist = make([]uint16, m.Count)
766         for i := 0; i < len(m.Whitelist); i++ {
767                 m.Whitelist[i] = buf.DecodeUint16()
768         }
769         return nil
770 }
771
772 // ACLInterfaceSetEtypeWhitelistReply defines message 'acl_interface_set_etype_whitelist_reply'.
773 type ACLInterfaceSetEtypeWhitelistReply struct {
774         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
775 }
776
777 func (m *ACLInterfaceSetEtypeWhitelistReply) Reset() { *m = ACLInterfaceSetEtypeWhitelistReply{} }
778 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string {
779         return "acl_interface_set_etype_whitelist_reply"
780 }
781 func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string { return "e8d4e804" }
782 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType {
783         return api.ReplyMessage
784 }
785
786 func (m *ACLInterfaceSetEtypeWhitelistReply) Size() (size int) {
787         if m == nil {
788                 return 0
789         }
790         size += 4 // m.Retval
791         return size
792 }
793 func (m *ACLInterfaceSetEtypeWhitelistReply) Marshal(b []byte) ([]byte, error) {
794         if b == nil {
795                 b = make([]byte, m.Size())
796         }
797         buf := codec.NewBuffer(b)
798         buf.EncodeInt32(m.Retval)
799         return buf.Bytes(), nil
800 }
801 func (m *ACLInterfaceSetEtypeWhitelistReply) Unmarshal(b []byte) error {
802         buf := codec.NewBuffer(b)
803         m.Retval = buf.DecodeInt32()
804         return nil
805 }
806
807 // ACLPluginControlPing defines message 'acl_plugin_control_ping'.
808 type ACLPluginControlPing struct{}
809
810 func (m *ACLPluginControlPing) Reset()               { *m = ACLPluginControlPing{} }
811 func (*ACLPluginControlPing) GetMessageName() string { return "acl_plugin_control_ping" }
812 func (*ACLPluginControlPing) GetCrcString() string   { return "51077d14" }
813 func (*ACLPluginControlPing) GetMessageType() api.MessageType {
814         return api.RequestMessage
815 }
816
817 func (m *ACLPluginControlPing) Size() (size int) {
818         if m == nil {
819                 return 0
820         }
821         return size
822 }
823 func (m *ACLPluginControlPing) Marshal(b []byte) ([]byte, error) {
824         if b == nil {
825                 b = make([]byte, m.Size())
826         }
827         buf := codec.NewBuffer(b)
828         return buf.Bytes(), nil
829 }
830 func (m *ACLPluginControlPing) Unmarshal(b []byte) error {
831         return nil
832 }
833
834 // ACLPluginControlPingReply defines message 'acl_plugin_control_ping_reply'.
835 type ACLPluginControlPingReply struct {
836         Retval      int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
837         ClientIndex uint32 `binapi:"u32,name=client_index" json:"client_index,omitempty"`
838         VpePID      uint32 `binapi:"u32,name=vpe_pid" json:"vpe_pid,omitempty"`
839 }
840
841 func (m *ACLPluginControlPingReply) Reset()               { *m = ACLPluginControlPingReply{} }
842 func (*ACLPluginControlPingReply) GetMessageName() string { return "acl_plugin_control_ping_reply" }
843 func (*ACLPluginControlPingReply) GetCrcString() string   { return "f6b0b8ca" }
844 func (*ACLPluginControlPingReply) GetMessageType() api.MessageType {
845         return api.ReplyMessage
846 }
847
848 func (m *ACLPluginControlPingReply) Size() (size int) {
849         if m == nil {
850                 return 0
851         }
852         size += 4 // m.Retval
853         size += 4 // m.ClientIndex
854         size += 4 // m.VpePID
855         return size
856 }
857 func (m *ACLPluginControlPingReply) Marshal(b []byte) ([]byte, error) {
858         if b == nil {
859                 b = make([]byte, m.Size())
860         }
861         buf := codec.NewBuffer(b)
862         buf.EncodeInt32(m.Retval)
863         buf.EncodeUint32(m.ClientIndex)
864         buf.EncodeUint32(m.VpePID)
865         return buf.Bytes(), nil
866 }
867 func (m *ACLPluginControlPingReply) Unmarshal(b []byte) error {
868         buf := codec.NewBuffer(b)
869         m.Retval = buf.DecodeInt32()
870         m.ClientIndex = buf.DecodeUint32()
871         m.VpePID = buf.DecodeUint32()
872         return nil
873 }
874
875 // ACLPluginGetConnTableMaxEntries defines message 'acl_plugin_get_conn_table_max_entries'.
876 type ACLPluginGetConnTableMaxEntries struct{}
877
878 func (m *ACLPluginGetConnTableMaxEntries) Reset() { *m = ACLPluginGetConnTableMaxEntries{} }
879 func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string {
880         return "acl_plugin_get_conn_table_max_entries"
881 }
882 func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string { return "51077d14" }
883 func (*ACLPluginGetConnTableMaxEntries) GetMessageType() api.MessageType {
884         return api.RequestMessage
885 }
886
887 func (m *ACLPluginGetConnTableMaxEntries) Size() (size int) {
888         if m == nil {
889                 return 0
890         }
891         return size
892 }
893 func (m *ACLPluginGetConnTableMaxEntries) Marshal(b []byte) ([]byte, error) {
894         if b == nil {
895                 b = make([]byte, m.Size())
896         }
897         buf := codec.NewBuffer(b)
898         return buf.Bytes(), nil
899 }
900 func (m *ACLPluginGetConnTableMaxEntries) Unmarshal(b []byte) error {
901         return nil
902 }
903
904 // ACLPluginGetConnTableMaxEntriesReply defines message 'acl_plugin_get_conn_table_max_entries_reply'.
905 type ACLPluginGetConnTableMaxEntriesReply struct {
906         ConnTableMaxEntries uint64 `binapi:"u64,name=conn_table_max_entries" json:"conn_table_max_entries,omitempty"`
907 }
908
909 func (m *ACLPluginGetConnTableMaxEntriesReply) Reset() { *m = ACLPluginGetConnTableMaxEntriesReply{} }
910 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string {
911         return "acl_plugin_get_conn_table_max_entries_reply"
912 }
913 func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString() string { return "7a096d3d" }
914 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType() api.MessageType {
915         return api.ReplyMessage
916 }
917
918 func (m *ACLPluginGetConnTableMaxEntriesReply) Size() (size int) {
919         if m == nil {
920                 return 0
921         }
922         size += 8 // m.ConnTableMaxEntries
923         return size
924 }
925 func (m *ACLPluginGetConnTableMaxEntriesReply) Marshal(b []byte) ([]byte, error) {
926         if b == nil {
927                 b = make([]byte, m.Size())
928         }
929         buf := codec.NewBuffer(b)
930         buf.EncodeUint64(m.ConnTableMaxEntries)
931         return buf.Bytes(), nil
932 }
933 func (m *ACLPluginGetConnTableMaxEntriesReply) Unmarshal(b []byte) error {
934         buf := codec.NewBuffer(b)
935         m.ConnTableMaxEntries = buf.DecodeUint64()
936         return nil
937 }
938
939 // ACLPluginGetVersion defines message 'acl_plugin_get_version'.
940 type ACLPluginGetVersion struct{}
941
942 func (m *ACLPluginGetVersion) Reset()               { *m = ACLPluginGetVersion{} }
943 func (*ACLPluginGetVersion) GetMessageName() string { return "acl_plugin_get_version" }
944 func (*ACLPluginGetVersion) GetCrcString() string   { return "51077d14" }
945 func (*ACLPluginGetVersion) GetMessageType() api.MessageType {
946         return api.RequestMessage
947 }
948
949 func (m *ACLPluginGetVersion) Size() (size int) {
950         if m == nil {
951                 return 0
952         }
953         return size
954 }
955 func (m *ACLPluginGetVersion) Marshal(b []byte) ([]byte, error) {
956         if b == nil {
957                 b = make([]byte, m.Size())
958         }
959         buf := codec.NewBuffer(b)
960         return buf.Bytes(), nil
961 }
962 func (m *ACLPluginGetVersion) Unmarshal(b []byte) error {
963         return nil
964 }
965
966 // ACLPluginGetVersionReply defines message 'acl_plugin_get_version_reply'.
967 type ACLPluginGetVersionReply struct {
968         Major uint32 `binapi:"u32,name=major" json:"major,omitempty"`
969         Minor uint32 `binapi:"u32,name=minor" json:"minor,omitempty"`
970 }
971
972 func (m *ACLPluginGetVersionReply) Reset()               { *m = ACLPluginGetVersionReply{} }
973 func (*ACLPluginGetVersionReply) GetMessageName() string { return "acl_plugin_get_version_reply" }
974 func (*ACLPluginGetVersionReply) GetCrcString() string   { return "9b32cf86" }
975 func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType {
976         return api.ReplyMessage
977 }
978
979 func (m *ACLPluginGetVersionReply) Size() (size int) {
980         if m == nil {
981                 return 0
982         }
983         size += 4 // m.Major
984         size += 4 // m.Minor
985         return size
986 }
987 func (m *ACLPluginGetVersionReply) Marshal(b []byte) ([]byte, error) {
988         if b == nil {
989                 b = make([]byte, m.Size())
990         }
991         buf := codec.NewBuffer(b)
992         buf.EncodeUint32(m.Major)
993         buf.EncodeUint32(m.Minor)
994         return buf.Bytes(), nil
995 }
996 func (m *ACLPluginGetVersionReply) Unmarshal(b []byte) error {
997         buf := codec.NewBuffer(b)
998         m.Major = buf.DecodeUint32()
999         m.Minor = buf.DecodeUint32()
1000         return nil
1001 }
1002
1003 // ACLPluginUseHashLookupGet defines message 'acl_plugin_use_hash_lookup_get'.
1004 // InProgress: the message form may change in the future versions
1005 type ACLPluginUseHashLookupGet struct{}
1006
1007 func (m *ACLPluginUseHashLookupGet) Reset()               { *m = ACLPluginUseHashLookupGet{} }
1008 func (*ACLPluginUseHashLookupGet) GetMessageName() string { return "acl_plugin_use_hash_lookup_get" }
1009 func (*ACLPluginUseHashLookupGet) GetCrcString() string   { return "51077d14" }
1010 func (*ACLPluginUseHashLookupGet) GetMessageType() api.MessageType {
1011         return api.RequestMessage
1012 }
1013
1014 func (m *ACLPluginUseHashLookupGet) Size() (size int) {
1015         if m == nil {
1016                 return 0
1017         }
1018         return size
1019 }
1020 func (m *ACLPluginUseHashLookupGet) Marshal(b []byte) ([]byte, error) {
1021         if b == nil {
1022                 b = make([]byte, m.Size())
1023         }
1024         buf := codec.NewBuffer(b)
1025         return buf.Bytes(), nil
1026 }
1027 func (m *ACLPluginUseHashLookupGet) Unmarshal(b []byte) error {
1028         return nil
1029 }
1030
1031 // ACLPluginUseHashLookupGetReply defines message 'acl_plugin_use_hash_lookup_get_reply'.
1032 // InProgress: the message form may change in the future versions
1033 type ACLPluginUseHashLookupGetReply struct {
1034         Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1035 }
1036
1037 func (m *ACLPluginUseHashLookupGetReply) Reset() { *m = ACLPluginUseHashLookupGetReply{} }
1038 func (*ACLPluginUseHashLookupGetReply) GetMessageName() string {
1039         return "acl_plugin_use_hash_lookup_get_reply"
1040 }
1041 func (*ACLPluginUseHashLookupGetReply) GetCrcString() string { return "5392ad31" }
1042 func (*ACLPluginUseHashLookupGetReply) GetMessageType() api.MessageType {
1043         return api.ReplyMessage
1044 }
1045
1046 func (m *ACLPluginUseHashLookupGetReply) Size() (size int) {
1047         if m == nil {
1048                 return 0
1049         }
1050         size += 1 // m.Enable
1051         return size
1052 }
1053 func (m *ACLPluginUseHashLookupGetReply) Marshal(b []byte) ([]byte, error) {
1054         if b == nil {
1055                 b = make([]byte, m.Size())
1056         }
1057         buf := codec.NewBuffer(b)
1058         buf.EncodeBool(m.Enable)
1059         return buf.Bytes(), nil
1060 }
1061 func (m *ACLPluginUseHashLookupGetReply) Unmarshal(b []byte) error {
1062         buf := codec.NewBuffer(b)
1063         m.Enable = buf.DecodeBool()
1064         return nil
1065 }
1066
1067 // ACLPluginUseHashLookupSet defines message 'acl_plugin_use_hash_lookup_set'.
1068 // InProgress: the message form may change in the future versions
1069 type ACLPluginUseHashLookupSet struct {
1070         Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1071 }
1072
1073 func (m *ACLPluginUseHashLookupSet) Reset()               { *m = ACLPluginUseHashLookupSet{} }
1074 func (*ACLPluginUseHashLookupSet) GetMessageName() string { return "acl_plugin_use_hash_lookup_set" }
1075 func (*ACLPluginUseHashLookupSet) GetCrcString() string   { return "b3e225d2" }
1076 func (*ACLPluginUseHashLookupSet) GetMessageType() api.MessageType {
1077         return api.RequestMessage
1078 }
1079
1080 func (m *ACLPluginUseHashLookupSet) Size() (size int) {
1081         if m == nil {
1082                 return 0
1083         }
1084         size += 1 // m.Enable
1085         return size
1086 }
1087 func (m *ACLPluginUseHashLookupSet) Marshal(b []byte) ([]byte, error) {
1088         if b == nil {
1089                 b = make([]byte, m.Size())
1090         }
1091         buf := codec.NewBuffer(b)
1092         buf.EncodeBool(m.Enable)
1093         return buf.Bytes(), nil
1094 }
1095 func (m *ACLPluginUseHashLookupSet) Unmarshal(b []byte) error {
1096         buf := codec.NewBuffer(b)
1097         m.Enable = buf.DecodeBool()
1098         return nil
1099 }
1100
1101 // ACLPluginUseHashLookupSetReply defines message 'acl_plugin_use_hash_lookup_set_reply'.
1102 // InProgress: the message form may change in the future versions
1103 type ACLPluginUseHashLookupSetReply struct {
1104         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1105 }
1106
1107 func (m *ACLPluginUseHashLookupSetReply) Reset() { *m = ACLPluginUseHashLookupSetReply{} }
1108 func (*ACLPluginUseHashLookupSetReply) GetMessageName() string {
1109         return "acl_plugin_use_hash_lookup_set_reply"
1110 }
1111 func (*ACLPluginUseHashLookupSetReply) GetCrcString() string { return "e8d4e804" }
1112 func (*ACLPluginUseHashLookupSetReply) GetMessageType() api.MessageType {
1113         return api.ReplyMessage
1114 }
1115
1116 func (m *ACLPluginUseHashLookupSetReply) Size() (size int) {
1117         if m == nil {
1118                 return 0
1119         }
1120         size += 4 // m.Retval
1121         return size
1122 }
1123 func (m *ACLPluginUseHashLookupSetReply) Marshal(b []byte) ([]byte, error) {
1124         if b == nil {
1125                 b = make([]byte, m.Size())
1126         }
1127         buf := codec.NewBuffer(b)
1128         buf.EncodeInt32(m.Retval)
1129         return buf.Bytes(), nil
1130 }
1131 func (m *ACLPluginUseHashLookupSetReply) Unmarshal(b []byte) error {
1132         buf := codec.NewBuffer(b)
1133         m.Retval = buf.DecodeInt32()
1134         return nil
1135 }
1136
1137 // ACLStatsIntfCountersEnable defines message 'acl_stats_intf_counters_enable'.
1138 type ACLStatsIntfCountersEnable struct {
1139         Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1140 }
1141
1142 func (m *ACLStatsIntfCountersEnable) Reset()               { *m = ACLStatsIntfCountersEnable{} }
1143 func (*ACLStatsIntfCountersEnable) GetMessageName() string { return "acl_stats_intf_counters_enable" }
1144 func (*ACLStatsIntfCountersEnable) GetCrcString() string   { return "b3e225d2" }
1145 func (*ACLStatsIntfCountersEnable) GetMessageType() api.MessageType {
1146         return api.RequestMessage
1147 }
1148
1149 func (m *ACLStatsIntfCountersEnable) Size() (size int) {
1150         if m == nil {
1151                 return 0
1152         }
1153         size += 1 // m.Enable
1154         return size
1155 }
1156 func (m *ACLStatsIntfCountersEnable) Marshal(b []byte) ([]byte, error) {
1157         if b == nil {
1158                 b = make([]byte, m.Size())
1159         }
1160         buf := codec.NewBuffer(b)
1161         buf.EncodeBool(m.Enable)
1162         return buf.Bytes(), nil
1163 }
1164 func (m *ACLStatsIntfCountersEnable) Unmarshal(b []byte) error {
1165         buf := codec.NewBuffer(b)
1166         m.Enable = buf.DecodeBool()
1167         return nil
1168 }
1169
1170 // ACLStatsIntfCountersEnableReply defines message 'acl_stats_intf_counters_enable_reply'.
1171 type ACLStatsIntfCountersEnableReply struct {
1172         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1173 }
1174
1175 func (m *ACLStatsIntfCountersEnableReply) Reset() { *m = ACLStatsIntfCountersEnableReply{} }
1176 func (*ACLStatsIntfCountersEnableReply) GetMessageName() string {
1177         return "acl_stats_intf_counters_enable_reply"
1178 }
1179 func (*ACLStatsIntfCountersEnableReply) GetCrcString() string { return "e8d4e804" }
1180 func (*ACLStatsIntfCountersEnableReply) GetMessageType() api.MessageType {
1181         return api.ReplyMessage
1182 }
1183
1184 func (m *ACLStatsIntfCountersEnableReply) Size() (size int) {
1185         if m == nil {
1186                 return 0
1187         }
1188         size += 4 // m.Retval
1189         return size
1190 }
1191 func (m *ACLStatsIntfCountersEnableReply) Marshal(b []byte) ([]byte, error) {
1192         if b == nil {
1193                 b = make([]byte, m.Size())
1194         }
1195         buf := codec.NewBuffer(b)
1196         buf.EncodeInt32(m.Retval)
1197         return buf.Bytes(), nil
1198 }
1199 func (m *ACLStatsIntfCountersEnableReply) Unmarshal(b []byte) error {
1200         buf := codec.NewBuffer(b)
1201         m.Retval = buf.DecodeInt32()
1202         return nil
1203 }
1204
1205 // MacipACLAdd defines message 'macip_acl_add'.
1206 type MacipACLAdd struct {
1207         Tag   string                   `binapi:"string[64],name=tag" json:"tag,omitempty"`
1208         Count uint32                   `binapi:"u32,name=count" json:"-"`
1209         R     []acl_types.MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
1210 }
1211
1212 func (m *MacipACLAdd) Reset()               { *m = MacipACLAdd{} }
1213 func (*MacipACLAdd) GetMessageName() string { return "macip_acl_add" }
1214 func (*MacipACLAdd) GetCrcString() string   { return "ce6fbad0" }
1215 func (*MacipACLAdd) GetMessageType() api.MessageType {
1216         return api.RequestMessage
1217 }
1218
1219 func (m *MacipACLAdd) Size() (size int) {
1220         if m == nil {
1221                 return 0
1222         }
1223         size += 64 // m.Tag
1224         size += 4  // m.Count
1225         for j1 := 0; j1 < len(m.R); j1++ {
1226                 var s1 acl_types.MacipACLRule
1227                 _ = s1
1228                 if j1 < len(m.R) {
1229                         s1 = m.R[j1]
1230                 }
1231                 size += 1      // s1.IsPermit
1232                 size += 1 * 6  // s1.SrcMac
1233                 size += 1 * 6  // s1.SrcMacMask
1234                 size += 1      // s1.SrcPrefix.Address.Af
1235                 size += 1 * 16 // s1.SrcPrefix.Address.Un
1236                 size += 1      // s1.SrcPrefix.Len
1237         }
1238         return size
1239 }
1240 func (m *MacipACLAdd) Marshal(b []byte) ([]byte, error) {
1241         if b == nil {
1242                 b = make([]byte, m.Size())
1243         }
1244         buf := codec.NewBuffer(b)
1245         buf.EncodeString(m.Tag, 64)
1246         buf.EncodeUint32(uint32(len(m.R)))
1247         for j0 := 0; j0 < len(m.R); j0++ {
1248                 var v0 acl_types.MacipACLRule // R
1249                 if j0 < len(m.R) {
1250                         v0 = m.R[j0]
1251                 }
1252                 buf.EncodeUint8(uint8(v0.IsPermit))
1253                 buf.EncodeBytes(v0.SrcMac[:], 6)
1254                 buf.EncodeBytes(v0.SrcMacMask[:], 6)
1255                 buf.EncodeUint8(uint8(v0.SrcPrefix.Address.Af))
1256                 buf.EncodeBytes(v0.SrcPrefix.Address.Un.XXX_UnionData[:], 16)
1257                 buf.EncodeUint8(v0.SrcPrefix.Len)
1258         }
1259         return buf.Bytes(), nil
1260 }
1261 func (m *MacipACLAdd) Unmarshal(b []byte) error {
1262         buf := codec.NewBuffer(b)
1263         m.Tag = buf.DecodeString(64)
1264         m.Count = buf.DecodeUint32()
1265         m.R = make([]acl_types.MacipACLRule, m.Count)
1266         for j0 := 0; j0 < len(m.R); j0++ {
1267                 m.R[j0].IsPermit = acl_types.ACLAction(buf.DecodeUint8())
1268                 copy(m.R[j0].SrcMac[:], buf.DecodeBytes(6))
1269                 copy(m.R[j0].SrcMacMask[:], buf.DecodeBytes(6))
1270                 m.R[j0].SrcPrefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
1271                 copy(m.R[j0].SrcPrefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1272                 m.R[j0].SrcPrefix.Len = buf.DecodeUint8()
1273         }
1274         return nil
1275 }
1276
1277 // MacipACLAddReplace defines message 'macip_acl_add_replace'.
1278 type MacipACLAddReplace struct {
1279         ACLIndex uint32                   `binapi:"u32,name=acl_index,default=4294967295" json:"acl_index,omitempty"`
1280         Tag      string                   `binapi:"string[64],name=tag" json:"tag,omitempty"`
1281         Count    uint32                   `binapi:"u32,name=count" json:"-"`
1282         R        []acl_types.MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
1283 }
1284
1285 func (m *MacipACLAddReplace) Reset()               { *m = MacipACLAddReplace{} }
1286 func (*MacipACLAddReplace) GetMessageName() string { return "macip_acl_add_replace" }
1287 func (*MacipACLAddReplace) GetCrcString() string   { return "2a461dd4" }
1288 func (*MacipACLAddReplace) GetMessageType() api.MessageType {
1289         return api.RequestMessage
1290 }
1291
1292 func (m *MacipACLAddReplace) Size() (size int) {
1293         if m == nil {
1294                 return 0
1295         }
1296         size += 4  // m.ACLIndex
1297         size += 64 // m.Tag
1298         size += 4  // m.Count
1299         for j1 := 0; j1 < len(m.R); j1++ {
1300                 var s1 acl_types.MacipACLRule
1301                 _ = s1
1302                 if j1 < len(m.R) {
1303                         s1 = m.R[j1]
1304                 }
1305                 size += 1      // s1.IsPermit
1306                 size += 1 * 6  // s1.SrcMac
1307                 size += 1 * 6  // s1.SrcMacMask
1308                 size += 1      // s1.SrcPrefix.Address.Af
1309                 size += 1 * 16 // s1.SrcPrefix.Address.Un
1310                 size += 1      // s1.SrcPrefix.Len
1311         }
1312         return size
1313 }
1314 func (m *MacipACLAddReplace) Marshal(b []byte) ([]byte, error) {
1315         if b == nil {
1316                 b = make([]byte, m.Size())
1317         }
1318         buf := codec.NewBuffer(b)
1319         buf.EncodeUint32(m.ACLIndex)
1320         buf.EncodeString(m.Tag, 64)
1321         buf.EncodeUint32(uint32(len(m.R)))
1322         for j0 := 0; j0 < len(m.R); j0++ {
1323                 var v0 acl_types.MacipACLRule // R
1324                 if j0 < len(m.R) {
1325                         v0 = m.R[j0]
1326                 }
1327                 buf.EncodeUint8(uint8(v0.IsPermit))
1328                 buf.EncodeBytes(v0.SrcMac[:], 6)
1329                 buf.EncodeBytes(v0.SrcMacMask[:], 6)
1330                 buf.EncodeUint8(uint8(v0.SrcPrefix.Address.Af))
1331                 buf.EncodeBytes(v0.SrcPrefix.Address.Un.XXX_UnionData[:], 16)
1332                 buf.EncodeUint8(v0.SrcPrefix.Len)
1333         }
1334         return buf.Bytes(), nil
1335 }
1336 func (m *MacipACLAddReplace) Unmarshal(b []byte) error {
1337         buf := codec.NewBuffer(b)
1338         m.ACLIndex = buf.DecodeUint32()
1339         m.Tag = buf.DecodeString(64)
1340         m.Count = buf.DecodeUint32()
1341         m.R = make([]acl_types.MacipACLRule, m.Count)
1342         for j0 := 0; j0 < len(m.R); j0++ {
1343                 m.R[j0].IsPermit = acl_types.ACLAction(buf.DecodeUint8())
1344                 copy(m.R[j0].SrcMac[:], buf.DecodeBytes(6))
1345                 copy(m.R[j0].SrcMacMask[:], buf.DecodeBytes(6))
1346                 m.R[j0].SrcPrefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
1347                 copy(m.R[j0].SrcPrefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1348                 m.R[j0].SrcPrefix.Len = buf.DecodeUint8()
1349         }
1350         return nil
1351 }
1352
1353 // MacipACLAddReplaceReply defines message 'macip_acl_add_replace_reply'.
1354 type MacipACLAddReplaceReply struct {
1355         ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
1356         Retval   int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
1357 }
1358
1359 func (m *MacipACLAddReplaceReply) Reset()               { *m = MacipACLAddReplaceReply{} }
1360 func (*MacipACLAddReplaceReply) GetMessageName() string { return "macip_acl_add_replace_reply" }
1361 func (*MacipACLAddReplaceReply) GetCrcString() string   { return "ac407b0c" }
1362 func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType {
1363         return api.ReplyMessage
1364 }
1365
1366 func (m *MacipACLAddReplaceReply) Size() (size int) {
1367         if m == nil {
1368                 return 0
1369         }
1370         size += 4 // m.ACLIndex
1371         size += 4 // m.Retval
1372         return size
1373 }
1374 func (m *MacipACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
1375         if b == nil {
1376                 b = make([]byte, m.Size())
1377         }
1378         buf := codec.NewBuffer(b)
1379         buf.EncodeUint32(m.ACLIndex)
1380         buf.EncodeInt32(m.Retval)
1381         return buf.Bytes(), nil
1382 }
1383 func (m *MacipACLAddReplaceReply) Unmarshal(b []byte) error {
1384         buf := codec.NewBuffer(b)
1385         m.ACLIndex = buf.DecodeUint32()
1386         m.Retval = buf.DecodeInt32()
1387         return nil
1388 }
1389
1390 // MacipACLAddReply defines message 'macip_acl_add_reply'.
1391 type MacipACLAddReply struct {
1392         ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
1393         Retval   int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
1394 }
1395
1396 func (m *MacipACLAddReply) Reset()               { *m = MacipACLAddReply{} }
1397 func (*MacipACLAddReply) GetMessageName() string { return "macip_acl_add_reply" }
1398 func (*MacipACLAddReply) GetCrcString() string   { return "ac407b0c" }
1399 func (*MacipACLAddReply) GetMessageType() api.MessageType {
1400         return api.ReplyMessage
1401 }
1402
1403 func (m *MacipACLAddReply) Size() (size int) {
1404         if m == nil {
1405                 return 0
1406         }
1407         size += 4 // m.ACLIndex
1408         size += 4 // m.Retval
1409         return size
1410 }
1411 func (m *MacipACLAddReply) Marshal(b []byte) ([]byte, error) {
1412         if b == nil {
1413                 b = make([]byte, m.Size())
1414         }
1415         buf := codec.NewBuffer(b)
1416         buf.EncodeUint32(m.ACLIndex)
1417         buf.EncodeInt32(m.Retval)
1418         return buf.Bytes(), nil
1419 }
1420 func (m *MacipACLAddReply) Unmarshal(b []byte) error {
1421         buf := codec.NewBuffer(b)
1422         m.ACLIndex = buf.DecodeUint32()
1423         m.Retval = buf.DecodeInt32()
1424         return nil
1425 }
1426
1427 // MacipACLDel defines message 'macip_acl_del'.
1428 type MacipACLDel struct {
1429         ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
1430 }
1431
1432 func (m *MacipACLDel) Reset()               { *m = MacipACLDel{} }
1433 func (*MacipACLDel) GetMessageName() string { return "macip_acl_del" }
1434 func (*MacipACLDel) GetCrcString() string   { return "ef34fea4" }
1435 func (*MacipACLDel) GetMessageType() api.MessageType {
1436         return api.RequestMessage
1437 }
1438
1439 func (m *MacipACLDel) Size() (size int) {
1440         if m == nil {
1441                 return 0
1442         }
1443         size += 4 // m.ACLIndex
1444         return size
1445 }
1446 func (m *MacipACLDel) Marshal(b []byte) ([]byte, error) {
1447         if b == nil {
1448                 b = make([]byte, m.Size())
1449         }
1450         buf := codec.NewBuffer(b)
1451         buf.EncodeUint32(m.ACLIndex)
1452         return buf.Bytes(), nil
1453 }
1454 func (m *MacipACLDel) Unmarshal(b []byte) error {
1455         buf := codec.NewBuffer(b)
1456         m.ACLIndex = buf.DecodeUint32()
1457         return nil
1458 }
1459
1460 // MacipACLDelReply defines message 'macip_acl_del_reply'.
1461 type MacipACLDelReply struct {
1462         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1463 }
1464
1465 func (m *MacipACLDelReply) Reset()               { *m = MacipACLDelReply{} }
1466 func (*MacipACLDelReply) GetMessageName() string { return "macip_acl_del_reply" }
1467 func (*MacipACLDelReply) GetCrcString() string   { return "e8d4e804" }
1468 func (*MacipACLDelReply) GetMessageType() api.MessageType {
1469         return api.ReplyMessage
1470 }
1471
1472 func (m *MacipACLDelReply) Size() (size int) {
1473         if m == nil {
1474                 return 0
1475         }
1476         size += 4 // m.Retval
1477         return size
1478 }
1479 func (m *MacipACLDelReply) Marshal(b []byte) ([]byte, error) {
1480         if b == nil {
1481                 b = make([]byte, m.Size())
1482         }
1483         buf := codec.NewBuffer(b)
1484         buf.EncodeInt32(m.Retval)
1485         return buf.Bytes(), nil
1486 }
1487 func (m *MacipACLDelReply) Unmarshal(b []byte) error {
1488         buf := codec.NewBuffer(b)
1489         m.Retval = buf.DecodeInt32()
1490         return nil
1491 }
1492
1493 // MacipACLDetails defines message 'macip_acl_details'.
1494 type MacipACLDetails struct {
1495         ACLIndex uint32                   `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
1496         Tag      string                   `binapi:"string[64],name=tag" json:"tag,omitempty"`
1497         Count    uint32                   `binapi:"u32,name=count" json:"-"`
1498         R        []acl_types.MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
1499 }
1500
1501 func (m *MacipACLDetails) Reset()               { *m = MacipACLDetails{} }
1502 func (*MacipACLDetails) GetMessageName() string { return "macip_acl_details" }
1503 func (*MacipACLDetails) GetCrcString() string   { return "27135b59" }
1504 func (*MacipACLDetails) GetMessageType() api.MessageType {
1505         return api.ReplyMessage
1506 }
1507
1508 func (m *MacipACLDetails) Size() (size int) {
1509         if m == nil {
1510                 return 0
1511         }
1512         size += 4  // m.ACLIndex
1513         size += 64 // m.Tag
1514         size += 4  // m.Count
1515         for j1 := 0; j1 < len(m.R); j1++ {
1516                 var s1 acl_types.MacipACLRule
1517                 _ = s1
1518                 if j1 < len(m.R) {
1519                         s1 = m.R[j1]
1520                 }
1521                 size += 1      // s1.IsPermit
1522                 size += 1 * 6  // s1.SrcMac
1523                 size += 1 * 6  // s1.SrcMacMask
1524                 size += 1      // s1.SrcPrefix.Address.Af
1525                 size += 1 * 16 // s1.SrcPrefix.Address.Un
1526                 size += 1      // s1.SrcPrefix.Len
1527         }
1528         return size
1529 }
1530 func (m *MacipACLDetails) Marshal(b []byte) ([]byte, error) {
1531         if b == nil {
1532                 b = make([]byte, m.Size())
1533         }
1534         buf := codec.NewBuffer(b)
1535         buf.EncodeUint32(m.ACLIndex)
1536         buf.EncodeString(m.Tag, 64)
1537         buf.EncodeUint32(uint32(len(m.R)))
1538         for j0 := 0; j0 < len(m.R); j0++ {
1539                 var v0 acl_types.MacipACLRule // R
1540                 if j0 < len(m.R) {
1541                         v0 = m.R[j0]
1542                 }
1543                 buf.EncodeUint8(uint8(v0.IsPermit))
1544                 buf.EncodeBytes(v0.SrcMac[:], 6)
1545                 buf.EncodeBytes(v0.SrcMacMask[:], 6)
1546                 buf.EncodeUint8(uint8(v0.SrcPrefix.Address.Af))
1547                 buf.EncodeBytes(v0.SrcPrefix.Address.Un.XXX_UnionData[:], 16)
1548                 buf.EncodeUint8(v0.SrcPrefix.Len)
1549         }
1550         return buf.Bytes(), nil
1551 }
1552 func (m *MacipACLDetails) Unmarshal(b []byte) error {
1553         buf := codec.NewBuffer(b)
1554         m.ACLIndex = buf.DecodeUint32()
1555         m.Tag = buf.DecodeString(64)
1556         m.Count = buf.DecodeUint32()
1557         m.R = make([]acl_types.MacipACLRule, m.Count)
1558         for j0 := 0; j0 < len(m.R); j0++ {
1559                 m.R[j0].IsPermit = acl_types.ACLAction(buf.DecodeUint8())
1560                 copy(m.R[j0].SrcMac[:], buf.DecodeBytes(6))
1561                 copy(m.R[j0].SrcMacMask[:], buf.DecodeBytes(6))
1562                 m.R[j0].SrcPrefix.Address.Af = ip_types.AddressFamily(buf.DecodeUint8())
1563                 copy(m.R[j0].SrcPrefix.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16))
1564                 m.R[j0].SrcPrefix.Len = buf.DecodeUint8()
1565         }
1566         return nil
1567 }
1568
1569 // MacipACLDump defines message 'macip_acl_dump'.
1570 type MacipACLDump struct {
1571         ACLIndex uint32 `binapi:"u32,name=acl_index,default=4294967295" json:"acl_index,omitempty"`
1572 }
1573
1574 func (m *MacipACLDump) Reset()               { *m = MacipACLDump{} }
1575 func (*MacipACLDump) GetMessageName() string { return "macip_acl_dump" }
1576 func (*MacipACLDump) GetCrcString() string   { return "ef34fea4" }
1577 func (*MacipACLDump) GetMessageType() api.MessageType {
1578         return api.RequestMessage
1579 }
1580
1581 func (m *MacipACLDump) Size() (size int) {
1582         if m == nil {
1583                 return 0
1584         }
1585         size += 4 // m.ACLIndex
1586         return size
1587 }
1588 func (m *MacipACLDump) Marshal(b []byte) ([]byte, error) {
1589         if b == nil {
1590                 b = make([]byte, m.Size())
1591         }
1592         buf := codec.NewBuffer(b)
1593         buf.EncodeUint32(m.ACLIndex)
1594         return buf.Bytes(), nil
1595 }
1596 func (m *MacipACLDump) Unmarshal(b []byte) error {
1597         buf := codec.NewBuffer(b)
1598         m.ACLIndex = buf.DecodeUint32()
1599         return nil
1600 }
1601
1602 // MacipACLInterfaceAddDel defines message 'macip_acl_interface_add_del'.
1603 type MacipACLInterfaceAddDel struct {
1604         IsAdd     bool                           `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
1605         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1606         ACLIndex  uint32                         `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
1607 }
1608
1609 func (m *MacipACLInterfaceAddDel) Reset()               { *m = MacipACLInterfaceAddDel{} }
1610 func (*MacipACLInterfaceAddDel) GetMessageName() string { return "macip_acl_interface_add_del" }
1611 func (*MacipACLInterfaceAddDel) GetCrcString() string   { return "4b8690b1" }
1612 func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType {
1613         return api.RequestMessage
1614 }
1615
1616 func (m *MacipACLInterfaceAddDel) Size() (size int) {
1617         if m == nil {
1618                 return 0
1619         }
1620         size += 1 // m.IsAdd
1621         size += 4 // m.SwIfIndex
1622         size += 4 // m.ACLIndex
1623         return size
1624 }
1625 func (m *MacipACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
1626         if b == nil {
1627                 b = make([]byte, m.Size())
1628         }
1629         buf := codec.NewBuffer(b)
1630         buf.EncodeBool(m.IsAdd)
1631         buf.EncodeUint32(uint32(m.SwIfIndex))
1632         buf.EncodeUint32(m.ACLIndex)
1633         return buf.Bytes(), nil
1634 }
1635 func (m *MacipACLInterfaceAddDel) Unmarshal(b []byte) error {
1636         buf := codec.NewBuffer(b)
1637         m.IsAdd = buf.DecodeBool()
1638         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1639         m.ACLIndex = buf.DecodeUint32()
1640         return nil
1641 }
1642
1643 // MacipACLInterfaceAddDelReply defines message 'macip_acl_interface_add_del_reply'.
1644 type MacipACLInterfaceAddDelReply struct {
1645         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1646 }
1647
1648 func (m *MacipACLInterfaceAddDelReply) Reset() { *m = MacipACLInterfaceAddDelReply{} }
1649 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
1650         return "macip_acl_interface_add_del_reply"
1651 }
1652 func (*MacipACLInterfaceAddDelReply) GetCrcString() string { return "e8d4e804" }
1653 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType {
1654         return api.ReplyMessage
1655 }
1656
1657 func (m *MacipACLInterfaceAddDelReply) Size() (size int) {
1658         if m == nil {
1659                 return 0
1660         }
1661         size += 4 // m.Retval
1662         return size
1663 }
1664 func (m *MacipACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
1665         if b == nil {
1666                 b = make([]byte, m.Size())
1667         }
1668         buf := codec.NewBuffer(b)
1669         buf.EncodeInt32(m.Retval)
1670         return buf.Bytes(), nil
1671 }
1672 func (m *MacipACLInterfaceAddDelReply) Unmarshal(b []byte) error {
1673         buf := codec.NewBuffer(b)
1674         m.Retval = buf.DecodeInt32()
1675         return nil
1676 }
1677
1678 // MacipACLInterfaceGet defines message 'macip_acl_interface_get'.
1679 type MacipACLInterfaceGet struct{}
1680
1681 func (m *MacipACLInterfaceGet) Reset()               { *m = MacipACLInterfaceGet{} }
1682 func (*MacipACLInterfaceGet) GetMessageName() string { return "macip_acl_interface_get" }
1683 func (*MacipACLInterfaceGet) GetCrcString() string   { return "51077d14" }
1684 func (*MacipACLInterfaceGet) GetMessageType() api.MessageType {
1685         return api.RequestMessage
1686 }
1687
1688 func (m *MacipACLInterfaceGet) Size() (size int) {
1689         if m == nil {
1690                 return 0
1691         }
1692         return size
1693 }
1694 func (m *MacipACLInterfaceGet) Marshal(b []byte) ([]byte, error) {
1695         if b == nil {
1696                 b = make([]byte, m.Size())
1697         }
1698         buf := codec.NewBuffer(b)
1699         return buf.Bytes(), nil
1700 }
1701 func (m *MacipACLInterfaceGet) Unmarshal(b []byte) error {
1702         return nil
1703 }
1704
1705 // MacipACLInterfaceGetReply defines message 'macip_acl_interface_get_reply'.
1706 type MacipACLInterfaceGetReply struct {
1707         Count uint32   `binapi:"u32,name=count" json:"-"`
1708         Acls  []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
1709 }
1710
1711 func (m *MacipACLInterfaceGetReply) Reset()               { *m = MacipACLInterfaceGetReply{} }
1712 func (*MacipACLInterfaceGetReply) GetMessageName() string { return "macip_acl_interface_get_reply" }
1713 func (*MacipACLInterfaceGetReply) GetCrcString() string   { return "accf9b05" }
1714 func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType {
1715         return api.ReplyMessage
1716 }
1717
1718 func (m *MacipACLInterfaceGetReply) Size() (size int) {
1719         if m == nil {
1720                 return 0
1721         }
1722         size += 4               // m.Count
1723         size += 4 * len(m.Acls) // m.Acls
1724         return size
1725 }
1726 func (m *MacipACLInterfaceGetReply) Marshal(b []byte) ([]byte, error) {
1727         if b == nil {
1728                 b = make([]byte, m.Size())
1729         }
1730         buf := codec.NewBuffer(b)
1731         buf.EncodeUint32(uint32(len(m.Acls)))
1732         for i := 0; i < len(m.Acls); i++ {
1733                 var x uint32
1734                 if i < len(m.Acls) {
1735                         x = uint32(m.Acls[i])
1736                 }
1737                 buf.EncodeUint32(x)
1738         }
1739         return buf.Bytes(), nil
1740 }
1741 func (m *MacipACLInterfaceGetReply) Unmarshal(b []byte) error {
1742         buf := codec.NewBuffer(b)
1743         m.Count = buf.DecodeUint32()
1744         m.Acls = make([]uint32, m.Count)
1745         for i := 0; i < len(m.Acls); i++ {
1746                 m.Acls[i] = buf.DecodeUint32()
1747         }
1748         return nil
1749 }
1750
1751 // MacipACLInterfaceListDetails defines message 'macip_acl_interface_list_details'.
1752 type MacipACLInterfaceListDetails struct {
1753         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1754         Count     uint8                          `binapi:"u8,name=count" json:"-"`
1755         Acls      []uint32                       `binapi:"u32[count],name=acls" json:"acls,omitempty"`
1756 }
1757
1758 func (m *MacipACLInterfaceListDetails) Reset() { *m = MacipACLInterfaceListDetails{} }
1759 func (*MacipACLInterfaceListDetails) GetMessageName() string {
1760         return "macip_acl_interface_list_details"
1761 }
1762 func (*MacipACLInterfaceListDetails) GetCrcString() string { return "a0c5d56d" }
1763 func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType {
1764         return api.ReplyMessage
1765 }
1766
1767 func (m *MacipACLInterfaceListDetails) Size() (size int) {
1768         if m == nil {
1769                 return 0
1770         }
1771         size += 4               // m.SwIfIndex
1772         size += 1               // m.Count
1773         size += 4 * len(m.Acls) // m.Acls
1774         return size
1775 }
1776 func (m *MacipACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
1777         if b == nil {
1778                 b = make([]byte, m.Size())
1779         }
1780         buf := codec.NewBuffer(b)
1781         buf.EncodeUint32(uint32(m.SwIfIndex))
1782         buf.EncodeUint8(uint8(len(m.Acls)))
1783         for i := 0; i < len(m.Acls); i++ {
1784                 var x uint32
1785                 if i < len(m.Acls) {
1786                         x = uint32(m.Acls[i])
1787                 }
1788                 buf.EncodeUint32(x)
1789         }
1790         return buf.Bytes(), nil
1791 }
1792 func (m *MacipACLInterfaceListDetails) Unmarshal(b []byte) error {
1793         buf := codec.NewBuffer(b)
1794         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1795         m.Count = buf.DecodeUint8()
1796         m.Acls = make([]uint32, m.Count)
1797         for i := 0; i < len(m.Acls); i++ {
1798                 m.Acls[i] = buf.DecodeUint32()
1799         }
1800         return nil
1801 }
1802
1803 // MacipACLInterfaceListDump defines message 'macip_acl_interface_list_dump'.
1804 type MacipACLInterfaceListDump struct {
1805         SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1806 }
1807
1808 func (m *MacipACLInterfaceListDump) Reset()               { *m = MacipACLInterfaceListDump{} }
1809 func (*MacipACLInterfaceListDump) GetMessageName() string { return "macip_acl_interface_list_dump" }
1810 func (*MacipACLInterfaceListDump) GetCrcString() string   { return "f9e6675e" }
1811 func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType {
1812         return api.RequestMessage
1813 }
1814
1815 func (m *MacipACLInterfaceListDump) Size() (size int) {
1816         if m == nil {
1817                 return 0
1818         }
1819         size += 4 // m.SwIfIndex
1820         return size
1821 }
1822 func (m *MacipACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
1823         if b == nil {
1824                 b = make([]byte, m.Size())
1825         }
1826         buf := codec.NewBuffer(b)
1827         buf.EncodeUint32(uint32(m.SwIfIndex))
1828         return buf.Bytes(), nil
1829 }
1830 func (m *MacipACLInterfaceListDump) Unmarshal(b []byte) error {
1831         buf := codec.NewBuffer(b)
1832         m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1833         return nil
1834 }
1835
1836 func init() { file_acl_binapi_init() }
1837 func file_acl_binapi_init() {
1838         api.RegisterMessage((*ACLAddReplace)(nil), "acl_add_replace_ee5c2f18")
1839         api.RegisterMessage((*ACLAddReplaceReply)(nil), "acl_add_replace_reply_ac407b0c")
1840         api.RegisterMessage((*ACLDel)(nil), "acl_del_ef34fea4")
1841         api.RegisterMessage((*ACLDelReply)(nil), "acl_del_reply_e8d4e804")
1842         api.RegisterMessage((*ACLDetails)(nil), "acl_details_95babae0")
1843         api.RegisterMessage((*ACLDump)(nil), "acl_dump_ef34fea4")
1844         api.RegisterMessage((*ACLInterfaceAddDel)(nil), "acl_interface_add_del_4b54bebd")
1845         api.RegisterMessage((*ACLInterfaceAddDelReply)(nil), "acl_interface_add_del_reply_e8d4e804")
1846         api.RegisterMessage((*ACLInterfaceEtypeWhitelistDetails)(nil), "acl_interface_etype_whitelist_details_cc2bfded")
1847         api.RegisterMessage((*ACLInterfaceEtypeWhitelistDump)(nil), "acl_interface_etype_whitelist_dump_f9e6675e")
1848         api.RegisterMessage((*ACLInterfaceListDetails)(nil), "acl_interface_list_details_e695d256")
1849         api.RegisterMessage((*ACLInterfaceListDump)(nil), "acl_interface_list_dump_f9e6675e")
1850         api.RegisterMessage((*ACLInterfaceSetACLList)(nil), "acl_interface_set_acl_list_473982bd")
1851         api.RegisterMessage((*ACLInterfaceSetACLListReply)(nil), "acl_interface_set_acl_list_reply_e8d4e804")
1852         api.RegisterMessage((*ACLInterfaceSetEtypeWhitelist)(nil), "acl_interface_set_etype_whitelist_3f5c2d2d")
1853         api.RegisterMessage((*ACLInterfaceSetEtypeWhitelistReply)(nil), "acl_interface_set_etype_whitelist_reply_e8d4e804")
1854         api.RegisterMessage((*ACLPluginControlPing)(nil), "acl_plugin_control_ping_51077d14")
1855         api.RegisterMessage((*ACLPluginControlPingReply)(nil), "acl_plugin_control_ping_reply_f6b0b8ca")
1856         api.RegisterMessage((*ACLPluginGetConnTableMaxEntries)(nil), "acl_plugin_get_conn_table_max_entries_51077d14")
1857         api.RegisterMessage((*ACLPluginGetConnTableMaxEntriesReply)(nil), "acl_plugin_get_conn_table_max_entries_reply_7a096d3d")
1858         api.RegisterMessage((*ACLPluginGetVersion)(nil), "acl_plugin_get_version_51077d14")
1859         api.RegisterMessage((*ACLPluginGetVersionReply)(nil), "acl_plugin_get_version_reply_9b32cf86")
1860         api.RegisterMessage((*ACLPluginUseHashLookupGet)(nil), "acl_plugin_use_hash_lookup_get_51077d14")
1861         api.RegisterMessage((*ACLPluginUseHashLookupGetReply)(nil), "acl_plugin_use_hash_lookup_get_reply_5392ad31")
1862         api.RegisterMessage((*ACLPluginUseHashLookupSet)(nil), "acl_plugin_use_hash_lookup_set_b3e225d2")
1863         api.RegisterMessage((*ACLPluginUseHashLookupSetReply)(nil), "acl_plugin_use_hash_lookup_set_reply_e8d4e804")
1864         api.RegisterMessage((*ACLStatsIntfCountersEnable)(nil), "acl_stats_intf_counters_enable_b3e225d2")
1865         api.RegisterMessage((*ACLStatsIntfCountersEnableReply)(nil), "acl_stats_intf_counters_enable_reply_e8d4e804")
1866         api.RegisterMessage((*MacipACLAdd)(nil), "macip_acl_add_ce6fbad0")
1867         api.RegisterMessage((*MacipACLAddReplace)(nil), "macip_acl_add_replace_2a461dd4")
1868         api.RegisterMessage((*MacipACLAddReplaceReply)(nil), "macip_acl_add_replace_reply_ac407b0c")
1869         api.RegisterMessage((*MacipACLAddReply)(nil), "macip_acl_add_reply_ac407b0c")
1870         api.RegisterMessage((*MacipACLDel)(nil), "macip_acl_del_ef34fea4")
1871         api.RegisterMessage((*MacipACLDelReply)(nil), "macip_acl_del_reply_e8d4e804")
1872         api.RegisterMessage((*MacipACLDetails)(nil), "macip_acl_details_27135b59")
1873         api.RegisterMessage((*MacipACLDump)(nil), "macip_acl_dump_ef34fea4")
1874         api.RegisterMessage((*MacipACLInterfaceAddDel)(nil), "macip_acl_interface_add_del_4b8690b1")
1875         api.RegisterMessage((*MacipACLInterfaceAddDelReply)(nil), "macip_acl_interface_add_del_reply_e8d4e804")
1876         api.RegisterMessage((*MacipACLInterfaceGet)(nil), "macip_acl_interface_get_51077d14")
1877         api.RegisterMessage((*MacipACLInterfaceGetReply)(nil), "macip_acl_interface_get_reply_accf9b05")
1878         api.RegisterMessage((*MacipACLInterfaceListDetails)(nil), "macip_acl_interface_list_details_a0c5d56d")
1879         api.RegisterMessage((*MacipACLInterfaceListDump)(nil), "macip_acl_interface_list_dump_f9e6675e")
1880 }
1881
1882 // Messages returns list of all messages in this module.
1883 func AllMessages() []api.Message {
1884         return []api.Message{
1885                 (*ACLAddReplace)(nil),
1886                 (*ACLAddReplaceReply)(nil),
1887                 (*ACLDel)(nil),
1888                 (*ACLDelReply)(nil),
1889                 (*ACLDetails)(nil),
1890                 (*ACLDump)(nil),
1891                 (*ACLInterfaceAddDel)(nil),
1892                 (*ACLInterfaceAddDelReply)(nil),
1893                 (*ACLInterfaceEtypeWhitelistDetails)(nil),
1894                 (*ACLInterfaceEtypeWhitelistDump)(nil),
1895                 (*ACLInterfaceListDetails)(nil),
1896                 (*ACLInterfaceListDump)(nil),
1897                 (*ACLInterfaceSetACLList)(nil),
1898                 (*ACLInterfaceSetACLListReply)(nil),
1899                 (*ACLInterfaceSetEtypeWhitelist)(nil),
1900                 (*ACLInterfaceSetEtypeWhitelistReply)(nil),
1901                 (*ACLPluginControlPing)(nil),
1902                 (*ACLPluginControlPingReply)(nil),
1903                 (*ACLPluginGetConnTableMaxEntries)(nil),
1904                 (*ACLPluginGetConnTableMaxEntriesReply)(nil),
1905                 (*ACLPluginGetVersion)(nil),
1906                 (*ACLPluginGetVersionReply)(nil),
1907                 (*ACLPluginUseHashLookupGet)(nil),
1908                 (*ACLPluginUseHashLookupGetReply)(nil),
1909                 (*ACLPluginUseHashLookupSet)(nil),
1910                 (*ACLPluginUseHashLookupSetReply)(nil),
1911                 (*ACLStatsIntfCountersEnable)(nil),
1912                 (*ACLStatsIntfCountersEnableReply)(nil),
1913                 (*MacipACLAdd)(nil),
1914                 (*MacipACLAddReplace)(nil),
1915                 (*MacipACLAddReplaceReply)(nil),
1916                 (*MacipACLAddReply)(nil),
1917                 (*MacipACLDel)(nil),
1918                 (*MacipACLDelReply)(nil),
1919                 (*MacipACLDetails)(nil),
1920                 (*MacipACLDump)(nil),
1921                 (*MacipACLInterfaceAddDel)(nil),
1922                 (*MacipACLInterfaceAddDelReply)(nil),
1923                 (*MacipACLInterfaceGet)(nil),
1924                 (*MacipACLInterfaceGetReply)(nil),
1925                 (*MacipACLInterfaceListDetails)(nil),
1926                 (*MacipACLInterfaceListDump)(nil),
1927         }
1928 }