1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.6.0-dev
5 // source: /usr/share/vpp/api/plugins/acl.api.json
7 // Package acl contains generated bindings for API file acl.api.
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"
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
32 VersionCrc = 0x5133bba0
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"`
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
50 func (m *ACLAddReplace) Size() (size int) {
54 size += 4 // m.ACLIndex
57 for j1 := 0; j1 < len(m.R); j1++ {
58 var s1 acl_types.ACLRule
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
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
80 func (m *ACLAddReplace) Marshal(b []byte) ([]byte, error) {
82 b = make([]byte, m.Size())
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
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)
108 return buf.Bytes(), nil
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()
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"`
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
148 func (m *ACLAddReplaceReply) Size() (size int) {
152 size += 4 // m.ACLIndex
153 size += 4 // m.Retval
156 func (m *ACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
158 b = make([]byte, m.Size())
160 buf := codec.NewBuffer(b)
161 buf.EncodeUint32(m.ACLIndex)
162 buf.EncodeInt32(m.Retval)
163 return buf.Bytes(), nil
165 func (m *ACLAddReplaceReply) Unmarshal(b []byte) error {
166 buf := codec.NewBuffer(b)
167 m.ACLIndex = buf.DecodeUint32()
168 m.Retval = buf.DecodeInt32()
172 // ACLDel defines message 'acl_del'.
174 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
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
184 func (m *ACLDel) Size() (size int) {
188 size += 4 // m.ACLIndex
191 func (m *ACLDel) Marshal(b []byte) ([]byte, error) {
193 b = make([]byte, m.Size())
195 buf := codec.NewBuffer(b)
196 buf.EncodeUint32(m.ACLIndex)
197 return buf.Bytes(), nil
199 func (m *ACLDel) Unmarshal(b []byte) error {
200 buf := codec.NewBuffer(b)
201 m.ACLIndex = buf.DecodeUint32()
205 // ACLDelReply defines message 'acl_del_reply'.
206 type ACLDelReply struct {
207 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
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
217 func (m *ACLDelReply) Size() (size int) {
221 size += 4 // m.Retval
224 func (m *ACLDelReply) Marshal(b []byte) ([]byte, error) {
226 b = make([]byte, m.Size())
228 buf := codec.NewBuffer(b)
229 buf.EncodeInt32(m.Retval)
230 return buf.Bytes(), nil
232 func (m *ACLDelReply) Unmarshal(b []byte) error {
233 buf := codec.NewBuffer(b)
234 m.Retval = buf.DecodeInt32()
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"`
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
253 func (m *ACLDetails) Size() (size int) {
257 size += 4 // m.ACLIndex
260 for j1 := 0; j1 < len(m.R); j1++ {
261 var s1 acl_types.ACLRule
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
283 func (m *ACLDetails) Marshal(b []byte) ([]byte, error) {
285 b = make([]byte, m.Size())
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
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)
311 return buf.Bytes(), nil
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()
338 // ACLDump defines message 'acl_dump'.
339 type ACLDump struct {
340 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
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
350 func (m *ACLDump) Size() (size int) {
354 size += 4 // m.ACLIndex
357 func (m *ACLDump) Marshal(b []byte) ([]byte, error) {
359 b = make([]byte, m.Size())
361 buf := codec.NewBuffer(b)
362 buf.EncodeUint32(m.ACLIndex)
363 return buf.Bytes(), nil
365 func (m *ACLDump) Unmarshal(b []byte) error {
366 buf := codec.NewBuffer(b)
367 m.ACLIndex = buf.DecodeUint32()
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"`
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
386 func (m *ACLInterfaceAddDel) Size() (size int) {
391 size += 1 // m.IsInput
392 size += 4 // m.SwIfIndex
393 size += 4 // m.ACLIndex
396 func (m *ACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
398 b = make([]byte, m.Size())
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
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()
416 // ACLInterfaceAddDelReply defines message 'acl_interface_add_del_reply'.
417 type ACLInterfaceAddDelReply struct {
418 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
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
428 func (m *ACLInterfaceAddDelReply) Size() (size int) {
432 size += 4 // m.Retval
435 func (m *ACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
437 b = make([]byte, m.Size())
439 buf := codec.NewBuffer(b)
440 buf.EncodeInt32(m.Retval)
441 return buf.Bytes(), nil
443 func (m *ACLInterfaceAddDelReply) Unmarshal(b []byte) error {
444 buf := codec.NewBuffer(b)
445 m.Retval = buf.DecodeInt32()
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"`
457 func (m *ACLInterfaceEtypeWhitelistDetails) Reset() { *m = ACLInterfaceEtypeWhitelistDetails{} }
458 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string {
459 return "acl_interface_etype_whitelist_details"
461 func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string { return "cc2bfded" }
462 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType {
463 return api.ReplyMessage
466 func (m *ACLInterfaceEtypeWhitelistDetails) Size() (size int) {
470 size += 4 // m.SwIfIndex
472 size += 1 // m.NInput
473 size += 2 * len(m.Whitelist) // m.Whitelist
476 func (m *ACLInterfaceEtypeWhitelistDetails) Marshal(b []byte) ([]byte, error) {
478 b = make([]byte, m.Size())
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++ {
486 if i < len(m.Whitelist) {
487 x = uint16(m.Whitelist[i])
491 return buf.Bytes(), nil
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()
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"`
510 func (m *ACLInterfaceEtypeWhitelistDump) Reset() { *m = ACLInterfaceEtypeWhitelistDump{} }
511 func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string {
512 return "acl_interface_etype_whitelist_dump"
514 func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string { return "f9e6675e" }
515 func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType {
516 return api.RequestMessage
519 func (m *ACLInterfaceEtypeWhitelistDump) Size() (size int) {
523 size += 4 // m.SwIfIndex
526 func (m *ACLInterfaceEtypeWhitelistDump) Marshal(b []byte) ([]byte, error) {
528 b = make([]byte, m.Size())
530 buf := codec.NewBuffer(b)
531 buf.EncodeUint32(uint32(m.SwIfIndex))
532 return buf.Bytes(), nil
534 func (m *ACLInterfaceEtypeWhitelistDump) Unmarshal(b []byte) error {
535 buf := codec.NewBuffer(b)
536 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
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"`
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
555 func (m *ACLInterfaceListDetails) Size() (size int) {
559 size += 4 // m.SwIfIndex
561 size += 1 // m.NInput
562 size += 4 * len(m.Acls) // m.Acls
565 func (m *ACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
567 b = make([]byte, m.Size())
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++ {
576 x = uint32(m.Acls[i])
580 return buf.Bytes(), nil
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()
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"`
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
606 func (m *ACLInterfaceListDump) Size() (size int) {
610 size += 4 // m.SwIfIndex
613 func (m *ACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
615 b = make([]byte, m.Size())
617 buf := codec.NewBuffer(b)
618 buf.EncodeUint32(uint32(m.SwIfIndex))
619 return buf.Bytes(), nil
621 func (m *ACLInterfaceListDump) Unmarshal(b []byte) error {
622 buf := codec.NewBuffer(b)
623 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
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"`
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
642 func (m *ACLInterfaceSetACLList) Size() (size int) {
646 size += 4 // m.SwIfIndex
648 size += 1 // m.NInput
649 size += 4 * len(m.Acls) // m.Acls
652 func (m *ACLInterfaceSetACLList) Marshal(b []byte) ([]byte, error) {
654 b = make([]byte, m.Size())
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++ {
663 x = uint32(m.Acls[i])
667 return buf.Bytes(), nil
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()
681 // ACLInterfaceSetACLListReply defines message 'acl_interface_set_acl_list_reply'.
682 type ACLInterfaceSetACLListReply struct {
683 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
686 func (m *ACLInterfaceSetACLListReply) Reset() { *m = ACLInterfaceSetACLListReply{} }
687 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
688 return "acl_interface_set_acl_list_reply"
690 func (*ACLInterfaceSetACLListReply) GetCrcString() string { return "e8d4e804" }
691 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType {
692 return api.ReplyMessage
695 func (m *ACLInterfaceSetACLListReply) Size() (size int) {
699 size += 4 // m.Retval
702 func (m *ACLInterfaceSetACLListReply) Marshal(b []byte) ([]byte, error) {
704 b = make([]byte, m.Size())
706 buf := codec.NewBuffer(b)
707 buf.EncodeInt32(m.Retval)
708 return buf.Bytes(), nil
710 func (m *ACLInterfaceSetACLListReply) Unmarshal(b []byte) error {
711 buf := codec.NewBuffer(b)
712 m.Retval = buf.DecodeInt32()
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"`
724 func (m *ACLInterfaceSetEtypeWhitelist) Reset() { *m = ACLInterfaceSetEtypeWhitelist{} }
725 func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string {
726 return "acl_interface_set_etype_whitelist"
728 func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string { return "3f5c2d2d" }
729 func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType {
730 return api.RequestMessage
733 func (m *ACLInterfaceSetEtypeWhitelist) Size() (size int) {
737 size += 4 // m.SwIfIndex
739 size += 1 // m.NInput
740 size += 2 * len(m.Whitelist) // m.Whitelist
743 func (m *ACLInterfaceSetEtypeWhitelist) Marshal(b []byte) ([]byte, error) {
745 b = make([]byte, m.Size())
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++ {
753 if i < len(m.Whitelist) {
754 x = uint16(m.Whitelist[i])
758 return buf.Bytes(), nil
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()
772 // ACLInterfaceSetEtypeWhitelistReply defines message 'acl_interface_set_etype_whitelist_reply'.
773 type ACLInterfaceSetEtypeWhitelistReply struct {
774 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
777 func (m *ACLInterfaceSetEtypeWhitelistReply) Reset() { *m = ACLInterfaceSetEtypeWhitelistReply{} }
778 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string {
779 return "acl_interface_set_etype_whitelist_reply"
781 func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string { return "e8d4e804" }
782 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType {
783 return api.ReplyMessage
786 func (m *ACLInterfaceSetEtypeWhitelistReply) Size() (size int) {
790 size += 4 // m.Retval
793 func (m *ACLInterfaceSetEtypeWhitelistReply) Marshal(b []byte) ([]byte, error) {
795 b = make([]byte, m.Size())
797 buf := codec.NewBuffer(b)
798 buf.EncodeInt32(m.Retval)
799 return buf.Bytes(), nil
801 func (m *ACLInterfaceSetEtypeWhitelistReply) Unmarshal(b []byte) error {
802 buf := codec.NewBuffer(b)
803 m.Retval = buf.DecodeInt32()
807 // ACLPluginControlPing defines message 'acl_plugin_control_ping'.
808 type ACLPluginControlPing struct{}
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
817 func (m *ACLPluginControlPing) Size() (size int) {
823 func (m *ACLPluginControlPing) Marshal(b []byte) ([]byte, error) {
825 b = make([]byte, m.Size())
827 buf := codec.NewBuffer(b)
828 return buf.Bytes(), nil
830 func (m *ACLPluginControlPing) Unmarshal(b []byte) error {
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"`
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
848 func (m *ACLPluginControlPingReply) Size() (size int) {
852 size += 4 // m.Retval
853 size += 4 // m.ClientIndex
854 size += 4 // m.VpePID
857 func (m *ACLPluginControlPingReply) Marshal(b []byte) ([]byte, error) {
859 b = make([]byte, m.Size())
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
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()
875 // ACLPluginGetConnTableMaxEntries defines message 'acl_plugin_get_conn_table_max_entries'.
876 type ACLPluginGetConnTableMaxEntries struct{}
878 func (m *ACLPluginGetConnTableMaxEntries) Reset() { *m = ACLPluginGetConnTableMaxEntries{} }
879 func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string {
880 return "acl_plugin_get_conn_table_max_entries"
882 func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string { return "51077d14" }
883 func (*ACLPluginGetConnTableMaxEntries) GetMessageType() api.MessageType {
884 return api.RequestMessage
887 func (m *ACLPluginGetConnTableMaxEntries) Size() (size int) {
893 func (m *ACLPluginGetConnTableMaxEntries) Marshal(b []byte) ([]byte, error) {
895 b = make([]byte, m.Size())
897 buf := codec.NewBuffer(b)
898 return buf.Bytes(), nil
900 func (m *ACLPluginGetConnTableMaxEntries) Unmarshal(b []byte) error {
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"`
909 func (m *ACLPluginGetConnTableMaxEntriesReply) Reset() { *m = ACLPluginGetConnTableMaxEntriesReply{} }
910 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string {
911 return "acl_plugin_get_conn_table_max_entries_reply"
913 func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString() string { return "7a096d3d" }
914 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType() api.MessageType {
915 return api.ReplyMessage
918 func (m *ACLPluginGetConnTableMaxEntriesReply) Size() (size int) {
922 size += 8 // m.ConnTableMaxEntries
925 func (m *ACLPluginGetConnTableMaxEntriesReply) Marshal(b []byte) ([]byte, error) {
927 b = make([]byte, m.Size())
929 buf := codec.NewBuffer(b)
930 buf.EncodeUint64(m.ConnTableMaxEntries)
931 return buf.Bytes(), nil
933 func (m *ACLPluginGetConnTableMaxEntriesReply) Unmarshal(b []byte) error {
934 buf := codec.NewBuffer(b)
935 m.ConnTableMaxEntries = buf.DecodeUint64()
939 // ACLPluginGetVersion defines message 'acl_plugin_get_version'.
940 type ACLPluginGetVersion struct{}
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
949 func (m *ACLPluginGetVersion) Size() (size int) {
955 func (m *ACLPluginGetVersion) Marshal(b []byte) ([]byte, error) {
957 b = make([]byte, m.Size())
959 buf := codec.NewBuffer(b)
960 return buf.Bytes(), nil
962 func (m *ACLPluginGetVersion) Unmarshal(b []byte) error {
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"`
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
979 func (m *ACLPluginGetVersionReply) Size() (size int) {
987 func (m *ACLPluginGetVersionReply) Marshal(b []byte) ([]byte, error) {
989 b = make([]byte, m.Size())
991 buf := codec.NewBuffer(b)
992 buf.EncodeUint32(m.Major)
993 buf.EncodeUint32(m.Minor)
994 return buf.Bytes(), nil
996 func (m *ACLPluginGetVersionReply) Unmarshal(b []byte) error {
997 buf := codec.NewBuffer(b)
998 m.Major = buf.DecodeUint32()
999 m.Minor = buf.DecodeUint32()
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{}
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
1014 func (m *ACLPluginUseHashLookupGet) Size() (size int) {
1020 func (m *ACLPluginUseHashLookupGet) Marshal(b []byte) ([]byte, error) {
1022 b = make([]byte, m.Size())
1024 buf := codec.NewBuffer(b)
1025 return buf.Bytes(), nil
1027 func (m *ACLPluginUseHashLookupGet) Unmarshal(b []byte) error {
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"`
1037 func (m *ACLPluginUseHashLookupGetReply) Reset() { *m = ACLPluginUseHashLookupGetReply{} }
1038 func (*ACLPluginUseHashLookupGetReply) GetMessageName() string {
1039 return "acl_plugin_use_hash_lookup_get_reply"
1041 func (*ACLPluginUseHashLookupGetReply) GetCrcString() string { return "5392ad31" }
1042 func (*ACLPluginUseHashLookupGetReply) GetMessageType() api.MessageType {
1043 return api.ReplyMessage
1046 func (m *ACLPluginUseHashLookupGetReply) Size() (size int) {
1050 size += 1 // m.Enable
1053 func (m *ACLPluginUseHashLookupGetReply) Marshal(b []byte) ([]byte, error) {
1055 b = make([]byte, m.Size())
1057 buf := codec.NewBuffer(b)
1058 buf.EncodeBool(m.Enable)
1059 return buf.Bytes(), nil
1061 func (m *ACLPluginUseHashLookupGetReply) Unmarshal(b []byte) error {
1062 buf := codec.NewBuffer(b)
1063 m.Enable = buf.DecodeBool()
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"`
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
1080 func (m *ACLPluginUseHashLookupSet) Size() (size int) {
1084 size += 1 // m.Enable
1087 func (m *ACLPluginUseHashLookupSet) Marshal(b []byte) ([]byte, error) {
1089 b = make([]byte, m.Size())
1091 buf := codec.NewBuffer(b)
1092 buf.EncodeBool(m.Enable)
1093 return buf.Bytes(), nil
1095 func (m *ACLPluginUseHashLookupSet) Unmarshal(b []byte) error {
1096 buf := codec.NewBuffer(b)
1097 m.Enable = buf.DecodeBool()
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"`
1107 func (m *ACLPluginUseHashLookupSetReply) Reset() { *m = ACLPluginUseHashLookupSetReply{} }
1108 func (*ACLPluginUseHashLookupSetReply) GetMessageName() string {
1109 return "acl_plugin_use_hash_lookup_set_reply"
1111 func (*ACLPluginUseHashLookupSetReply) GetCrcString() string { return "e8d4e804" }
1112 func (*ACLPluginUseHashLookupSetReply) GetMessageType() api.MessageType {
1113 return api.ReplyMessage
1116 func (m *ACLPluginUseHashLookupSetReply) Size() (size int) {
1120 size += 4 // m.Retval
1123 func (m *ACLPluginUseHashLookupSetReply) Marshal(b []byte) ([]byte, error) {
1125 b = make([]byte, m.Size())
1127 buf := codec.NewBuffer(b)
1128 buf.EncodeInt32(m.Retval)
1129 return buf.Bytes(), nil
1131 func (m *ACLPluginUseHashLookupSetReply) Unmarshal(b []byte) error {
1132 buf := codec.NewBuffer(b)
1133 m.Retval = buf.DecodeInt32()
1137 // ACLStatsIntfCountersEnable defines message 'acl_stats_intf_counters_enable'.
1138 type ACLStatsIntfCountersEnable struct {
1139 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
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
1149 func (m *ACLStatsIntfCountersEnable) Size() (size int) {
1153 size += 1 // m.Enable
1156 func (m *ACLStatsIntfCountersEnable) Marshal(b []byte) ([]byte, error) {
1158 b = make([]byte, m.Size())
1160 buf := codec.NewBuffer(b)
1161 buf.EncodeBool(m.Enable)
1162 return buf.Bytes(), nil
1164 func (m *ACLStatsIntfCountersEnable) Unmarshal(b []byte) error {
1165 buf := codec.NewBuffer(b)
1166 m.Enable = buf.DecodeBool()
1170 // ACLStatsIntfCountersEnableReply defines message 'acl_stats_intf_counters_enable_reply'.
1171 type ACLStatsIntfCountersEnableReply struct {
1172 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1175 func (m *ACLStatsIntfCountersEnableReply) Reset() { *m = ACLStatsIntfCountersEnableReply{} }
1176 func (*ACLStatsIntfCountersEnableReply) GetMessageName() string {
1177 return "acl_stats_intf_counters_enable_reply"
1179 func (*ACLStatsIntfCountersEnableReply) GetCrcString() string { return "e8d4e804" }
1180 func (*ACLStatsIntfCountersEnableReply) GetMessageType() api.MessageType {
1181 return api.ReplyMessage
1184 func (m *ACLStatsIntfCountersEnableReply) Size() (size int) {
1188 size += 4 // m.Retval
1191 func (m *ACLStatsIntfCountersEnableReply) Marshal(b []byte) ([]byte, error) {
1193 b = make([]byte, m.Size())
1195 buf := codec.NewBuffer(b)
1196 buf.EncodeInt32(m.Retval)
1197 return buf.Bytes(), nil
1199 func (m *ACLStatsIntfCountersEnableReply) Unmarshal(b []byte) error {
1200 buf := codec.NewBuffer(b)
1201 m.Retval = buf.DecodeInt32()
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"`
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
1219 func (m *MacipACLAdd) Size() (size int) {
1224 size += 4 // m.Count
1225 for j1 := 0; j1 < len(m.R); j1++ {
1226 var s1 acl_types.MacipACLRule
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
1240 func (m *MacipACLAdd) Marshal(b []byte) ([]byte, error) {
1242 b = make([]byte, m.Size())
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
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)
1259 return buf.Bytes(), nil
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()
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"`
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
1292 func (m *MacipACLAddReplace) Size() (size int) {
1296 size += 4 // m.ACLIndex
1298 size += 4 // m.Count
1299 for j1 := 0; j1 < len(m.R); j1++ {
1300 var s1 acl_types.MacipACLRule
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
1314 func (m *MacipACLAddReplace) Marshal(b []byte) ([]byte, error) {
1316 b = make([]byte, m.Size())
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
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)
1334 return buf.Bytes(), nil
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()
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"`
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
1366 func (m *MacipACLAddReplaceReply) Size() (size int) {
1370 size += 4 // m.ACLIndex
1371 size += 4 // m.Retval
1374 func (m *MacipACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
1376 b = make([]byte, m.Size())
1378 buf := codec.NewBuffer(b)
1379 buf.EncodeUint32(m.ACLIndex)
1380 buf.EncodeInt32(m.Retval)
1381 return buf.Bytes(), nil
1383 func (m *MacipACLAddReplaceReply) Unmarshal(b []byte) error {
1384 buf := codec.NewBuffer(b)
1385 m.ACLIndex = buf.DecodeUint32()
1386 m.Retval = buf.DecodeInt32()
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"`
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
1403 func (m *MacipACLAddReply) Size() (size int) {
1407 size += 4 // m.ACLIndex
1408 size += 4 // m.Retval
1411 func (m *MacipACLAddReply) Marshal(b []byte) ([]byte, error) {
1413 b = make([]byte, m.Size())
1415 buf := codec.NewBuffer(b)
1416 buf.EncodeUint32(m.ACLIndex)
1417 buf.EncodeInt32(m.Retval)
1418 return buf.Bytes(), nil
1420 func (m *MacipACLAddReply) Unmarshal(b []byte) error {
1421 buf := codec.NewBuffer(b)
1422 m.ACLIndex = buf.DecodeUint32()
1423 m.Retval = buf.DecodeInt32()
1427 // MacipACLDel defines message 'macip_acl_del'.
1428 type MacipACLDel struct {
1429 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
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
1439 func (m *MacipACLDel) Size() (size int) {
1443 size += 4 // m.ACLIndex
1446 func (m *MacipACLDel) Marshal(b []byte) ([]byte, error) {
1448 b = make([]byte, m.Size())
1450 buf := codec.NewBuffer(b)
1451 buf.EncodeUint32(m.ACLIndex)
1452 return buf.Bytes(), nil
1454 func (m *MacipACLDel) Unmarshal(b []byte) error {
1455 buf := codec.NewBuffer(b)
1456 m.ACLIndex = buf.DecodeUint32()
1460 // MacipACLDelReply defines message 'macip_acl_del_reply'.
1461 type MacipACLDelReply struct {
1462 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
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
1472 func (m *MacipACLDelReply) Size() (size int) {
1476 size += 4 // m.Retval
1479 func (m *MacipACLDelReply) Marshal(b []byte) ([]byte, error) {
1481 b = make([]byte, m.Size())
1483 buf := codec.NewBuffer(b)
1484 buf.EncodeInt32(m.Retval)
1485 return buf.Bytes(), nil
1487 func (m *MacipACLDelReply) Unmarshal(b []byte) error {
1488 buf := codec.NewBuffer(b)
1489 m.Retval = buf.DecodeInt32()
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"`
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
1508 func (m *MacipACLDetails) Size() (size int) {
1512 size += 4 // m.ACLIndex
1514 size += 4 // m.Count
1515 for j1 := 0; j1 < len(m.R); j1++ {
1516 var s1 acl_types.MacipACLRule
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
1530 func (m *MacipACLDetails) Marshal(b []byte) ([]byte, error) {
1532 b = make([]byte, m.Size())
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
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)
1550 return buf.Bytes(), nil
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()
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"`
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
1581 func (m *MacipACLDump) Size() (size int) {
1585 size += 4 // m.ACLIndex
1588 func (m *MacipACLDump) Marshal(b []byte) ([]byte, error) {
1590 b = make([]byte, m.Size())
1592 buf := codec.NewBuffer(b)
1593 buf.EncodeUint32(m.ACLIndex)
1594 return buf.Bytes(), nil
1596 func (m *MacipACLDump) Unmarshal(b []byte) error {
1597 buf := codec.NewBuffer(b)
1598 m.ACLIndex = buf.DecodeUint32()
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"`
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
1616 func (m *MacipACLInterfaceAddDel) Size() (size int) {
1620 size += 1 // m.IsAdd
1621 size += 4 // m.SwIfIndex
1622 size += 4 // m.ACLIndex
1625 func (m *MacipACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
1627 b = make([]byte, m.Size())
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
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()
1643 // MacipACLInterfaceAddDelReply defines message 'macip_acl_interface_add_del_reply'.
1644 type MacipACLInterfaceAddDelReply struct {
1645 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1648 func (m *MacipACLInterfaceAddDelReply) Reset() { *m = MacipACLInterfaceAddDelReply{} }
1649 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
1650 return "macip_acl_interface_add_del_reply"
1652 func (*MacipACLInterfaceAddDelReply) GetCrcString() string { return "e8d4e804" }
1653 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType {
1654 return api.ReplyMessage
1657 func (m *MacipACLInterfaceAddDelReply) Size() (size int) {
1661 size += 4 // m.Retval
1664 func (m *MacipACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
1666 b = make([]byte, m.Size())
1668 buf := codec.NewBuffer(b)
1669 buf.EncodeInt32(m.Retval)
1670 return buf.Bytes(), nil
1672 func (m *MacipACLInterfaceAddDelReply) Unmarshal(b []byte) error {
1673 buf := codec.NewBuffer(b)
1674 m.Retval = buf.DecodeInt32()
1678 // MacipACLInterfaceGet defines message 'macip_acl_interface_get'.
1679 type MacipACLInterfaceGet struct{}
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
1688 func (m *MacipACLInterfaceGet) Size() (size int) {
1694 func (m *MacipACLInterfaceGet) Marshal(b []byte) ([]byte, error) {
1696 b = make([]byte, m.Size())
1698 buf := codec.NewBuffer(b)
1699 return buf.Bytes(), nil
1701 func (m *MacipACLInterfaceGet) Unmarshal(b []byte) error {
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"`
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
1718 func (m *MacipACLInterfaceGetReply) Size() (size int) {
1722 size += 4 // m.Count
1723 size += 4 * len(m.Acls) // m.Acls
1726 func (m *MacipACLInterfaceGetReply) Marshal(b []byte) ([]byte, error) {
1728 b = make([]byte, m.Size())
1730 buf := codec.NewBuffer(b)
1731 buf.EncodeUint32(uint32(len(m.Acls)))
1732 for i := 0; i < len(m.Acls); i++ {
1734 if i < len(m.Acls) {
1735 x = uint32(m.Acls[i])
1739 return buf.Bytes(), nil
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()
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"`
1758 func (m *MacipACLInterfaceListDetails) Reset() { *m = MacipACLInterfaceListDetails{} }
1759 func (*MacipACLInterfaceListDetails) GetMessageName() string {
1760 return "macip_acl_interface_list_details"
1762 func (*MacipACLInterfaceListDetails) GetCrcString() string { return "a0c5d56d" }
1763 func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType {
1764 return api.ReplyMessage
1767 func (m *MacipACLInterfaceListDetails) Size() (size int) {
1771 size += 4 // m.SwIfIndex
1772 size += 1 // m.Count
1773 size += 4 * len(m.Acls) // m.Acls
1776 func (m *MacipACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
1778 b = make([]byte, m.Size())
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++ {
1785 if i < len(m.Acls) {
1786 x = uint32(m.Acls[i])
1790 return buf.Bytes(), nil
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()
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"`
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
1815 func (m *MacipACLInterfaceListDump) Size() (size int) {
1819 size += 4 // m.SwIfIndex
1822 func (m *MacipACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
1824 b = make([]byte, m.Size())
1826 buf := codec.NewBuffer(b)
1827 buf.EncodeUint32(uint32(m.SwIfIndex))
1828 return buf.Bytes(), nil
1830 func (m *MacipACLInterfaceListDump) Unmarshal(b []byte) error {
1831 buf := codec.NewBuffer(b)
1832 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
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")
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),
1888 (*ACLDelReply)(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),