1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-dev
5 // source: /usr/share/vpp/api/plugins/acl.api.json
8 Package acl contains generated code for VPP API file acl.api (2.0.0).
30 api "git.fd.io/govpp.git/api"
31 codec "git.fd.io/govpp.git/codec"
32 struc "github.com/lunixbochs/struc"
34 interface_types "git.fd.io/govpp.git/examples/binapi/interface_types"
35 ip_types "git.fd.io/govpp.git/examples/binapi/ip_types"
38 // This is a compile-time assertion to ensure that this generated file
39 // is compatible with the GoVPP api package it is being compiled against.
40 // A compilation error at this line likely means your copy of the
41 // GoVPP api package needs to be updated.
42 const _ = api.GoVppAPIPackageIsVersion2 // please upgrade the GoVPP api package
45 // ModuleName is the name of this module.
47 // APIVersion is the API version of this module.
49 // VersionCrc is the CRC of this module.
50 VersionCrc = 0x68c4cb37
53 // ACLAction represents VPP binary API enum 'acl_action'.
57 ACL_ACTION_API_DENY ACLAction = 0
58 ACL_ACTION_API_PERMIT ACLAction = 1
59 ACL_ACTION_API_PERMIT_REFLECT ACLAction = 2
63 ACLAction_name = map[uint8]string{
64 0: "ACL_ACTION_API_DENY",
65 1: "ACL_ACTION_API_PERMIT",
66 2: "ACL_ACTION_API_PERMIT_REFLECT",
68 ACLAction_value = map[string]uint8{
69 "ACL_ACTION_API_DENY": 0,
70 "ACL_ACTION_API_PERMIT": 1,
71 "ACL_ACTION_API_PERMIT_REFLECT": 2,
75 func (x ACLAction) String() string {
76 s, ok := ACLAction_name[uint8(x)]
80 return "ACLAction(" + strconv.Itoa(int(x)) + ")"
83 // MacAddress represents VPP binary API alias 'mac_address'.
84 type MacAddress [6]uint8
86 func ParseMAC(mac string) (parsed MacAddress, err error) {
87 var hw net.HardwareAddr
88 if hw, err = net.ParseMAC(mac); err != nil {
91 copy(parsed[:], hw[:])
95 func (m *MacAddress) ToString() string {
96 return net.HardwareAddr(m[:]).String()
99 // ACLRule represents VPP binary API type 'acl_rule'.
100 type ACLRule struct {
101 IsPermit ACLAction `binapi:"acl_action,name=is_permit" json:"is_permit,omitempty"`
102 SrcPrefix ip_types.Prefix `binapi:"prefix,name=src_prefix" json:"src_prefix,omitempty"`
103 DstPrefix ip_types.Prefix `binapi:"prefix,name=dst_prefix" json:"dst_prefix,omitempty"`
104 Proto ip_types.IPProto `binapi:"ip_proto,name=proto" json:"proto,omitempty"`
105 SrcportOrIcmptypeFirst uint16 `binapi:"u16,name=srcport_or_icmptype_first" json:"srcport_or_icmptype_first,omitempty"`
106 SrcportOrIcmptypeLast uint16 `binapi:"u16,name=srcport_or_icmptype_last" json:"srcport_or_icmptype_last,omitempty"`
107 DstportOrIcmpcodeFirst uint16 `binapi:"u16,name=dstport_or_icmpcode_first" json:"dstport_or_icmpcode_first,omitempty"`
108 DstportOrIcmpcodeLast uint16 `binapi:"u16,name=dstport_or_icmpcode_last" json:"dstport_or_icmpcode_last,omitempty"`
109 TCPFlagsMask uint8 `binapi:"u8,name=tcp_flags_mask" json:"tcp_flags_mask,omitempty"`
110 TCPFlagsValue uint8 `binapi:"u8,name=tcp_flags_value" json:"tcp_flags_value,omitempty"`
113 func (*ACLRule) GetTypeName() string { return "acl_rule" }
115 // MacipACLRule represents VPP binary API type 'macip_acl_rule'.
116 type MacipACLRule struct {
117 IsPermit ACLAction `binapi:"acl_action,name=is_permit" json:"is_permit,omitempty"`
118 SrcMac MacAddress `binapi:"mac_address,name=src_mac" json:"src_mac,omitempty"`
119 SrcMacMask MacAddress `binapi:"mac_address,name=src_mac_mask" json:"src_mac_mask,omitempty"`
120 SrcPrefix ip_types.Prefix `binapi:"prefix,name=src_prefix" json:"src_prefix,omitempty"`
123 func (*MacipACLRule) GetTypeName() string { return "macip_acl_rule" }
125 // ACLAddReplace represents VPP binary API message 'acl_add_replace'.
126 type ACLAddReplace struct {
127 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
128 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
129 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
130 R []ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
133 func (m *ACLAddReplace) Reset() { *m = ACLAddReplace{} }
134 func (*ACLAddReplace) GetMessageName() string { return "acl_add_replace" }
135 func (*ACLAddReplace) GetCrcString() string { return "1cabdeab" }
136 func (*ACLAddReplace) GetMessageType() api.MessageType { return api.RequestMessage }
138 func (m *ACLAddReplace) Size() int {
143 // field[1] m.ACLIndex
150 for j1 := 0; j1 < len(m.R); j1++ {
156 // field[2] s1.IsPermit
158 // field[2] s1.SrcPrefix
159 // field[3] s1.SrcPrefix.Address
160 // field[4] s1.SrcPrefix.Address.Af
162 // field[4] s1.SrcPrefix.Address.Un
164 // field[3] s1.SrcPrefix.Len
166 // field[2] s1.DstPrefix
167 // field[3] s1.DstPrefix.Address
168 // field[4] s1.DstPrefix.Address.Af
170 // field[4] s1.DstPrefix.Address.Un
172 // field[3] s1.DstPrefix.Len
176 // field[2] s1.SrcportOrIcmptypeFirst
178 // field[2] s1.SrcportOrIcmptypeLast
180 // field[2] s1.DstportOrIcmpcodeFirst
182 // field[2] s1.DstportOrIcmpcodeLast
184 // field[2] s1.TCPFlagsMask
186 // field[2] s1.TCPFlagsValue
191 func (m *ACLAddReplace) Marshal(b []byte) ([]byte, error) {
192 o := binary.BigEndian
198 buf = make([]byte, m.Size())
202 // field[1] m.ACLIndex
203 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
206 copy(buf[pos:pos+64], m.Tag)
209 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
212 for j1 := 0; j1 < len(m.R); j1++ {
217 // field[2] v1.IsPermit
218 buf[pos] = uint8(v1.IsPermit)
220 // field[2] v1.SrcPrefix
221 // field[3] v1.SrcPrefix.Address
222 // field[4] v1.SrcPrefix.Address.Af
223 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
225 // field[4] v1.SrcPrefix.Address.Un
226 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
228 // field[3] v1.SrcPrefix.Len
229 buf[pos] = uint8(v1.SrcPrefix.Len)
231 // field[2] v1.DstPrefix
232 // field[3] v1.DstPrefix.Address
233 // field[4] v1.DstPrefix.Address.Af
234 buf[pos] = uint8(v1.DstPrefix.Address.Af)
236 // field[4] v1.DstPrefix.Address.Un
237 copy(buf[pos:pos+16], v1.DstPrefix.Address.Un.XXX_UnionData[:])
239 // field[3] v1.DstPrefix.Len
240 buf[pos] = uint8(v1.DstPrefix.Len)
243 buf[pos] = uint8(v1.Proto)
245 // field[2] v1.SrcportOrIcmptypeFirst
246 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeFirst))
248 // field[2] v1.SrcportOrIcmptypeLast
249 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeLast))
251 // field[2] v1.DstportOrIcmpcodeFirst
252 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeFirst))
254 // field[2] v1.DstportOrIcmpcodeLast
255 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeLast))
257 // field[2] v1.TCPFlagsMask
258 buf[pos] = uint8(v1.TCPFlagsMask)
260 // field[2] v1.TCPFlagsValue
261 buf[pos] = uint8(v1.TCPFlagsValue)
266 func (m *ACLAddReplace) Unmarshal(tmp []byte) error {
267 o := binary.BigEndian
271 // field[1] m.ACLIndex
272 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
276 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
277 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
281 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
284 m.R = make([]ACLRule, int(m.Count))
285 for j1 := 0; j1 < int(m.Count); j1++ {
286 // field[2] m.R[j1].IsPermit
287 m.R[j1].IsPermit = ACLAction(tmp[pos])
289 // field[2] m.R[j1].SrcPrefix
290 // field[3] m.R[j1].SrcPrefix.Address
291 // field[4] m.R[j1].SrcPrefix.Address.Af
292 m.R[j1].SrcPrefix.Address.Af = ip_types.AddressFamily(tmp[pos])
294 // field[4] m.R[j1].SrcPrefix.Address.Un
295 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
297 // field[3] m.R[j1].SrcPrefix.Len
298 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
300 // field[2] m.R[j1].DstPrefix
301 // field[3] m.R[j1].DstPrefix.Address
302 // field[4] m.R[j1].DstPrefix.Address.Af
303 m.R[j1].DstPrefix.Address.Af = ip_types.AddressFamily(tmp[pos])
305 // field[4] m.R[j1].DstPrefix.Address.Un
306 copy(m.R[j1].DstPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
308 // field[3] m.R[j1].DstPrefix.Len
309 m.R[j1].DstPrefix.Len = uint8(tmp[pos])
311 // field[2] m.R[j1].Proto
312 m.R[j1].Proto = ip_types.IPProto(tmp[pos])
314 // field[2] m.R[j1].SrcportOrIcmptypeFirst
315 m.R[j1].SrcportOrIcmptypeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
317 // field[2] m.R[j1].SrcportOrIcmptypeLast
318 m.R[j1].SrcportOrIcmptypeLast = uint16(o.Uint16(tmp[pos : pos+2]))
320 // field[2] m.R[j1].DstportOrIcmpcodeFirst
321 m.R[j1].DstportOrIcmpcodeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
323 // field[2] m.R[j1].DstportOrIcmpcodeLast
324 m.R[j1].DstportOrIcmpcodeLast = uint16(o.Uint16(tmp[pos : pos+2]))
326 // field[2] m.R[j1].TCPFlagsMask
327 m.R[j1].TCPFlagsMask = uint8(tmp[pos])
329 // field[2] m.R[j1].TCPFlagsValue
330 m.R[j1].TCPFlagsValue = uint8(tmp[pos])
336 // ACLAddReplaceReply represents VPP binary API message 'acl_add_replace_reply'.
337 type ACLAddReplaceReply struct {
338 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
339 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
342 func (m *ACLAddReplaceReply) Reset() { *m = ACLAddReplaceReply{} }
343 func (*ACLAddReplaceReply) GetMessageName() string { return "acl_add_replace_reply" }
344 func (*ACLAddReplaceReply) GetCrcString() string { return "ac407b0c" }
345 func (*ACLAddReplaceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
347 func (m *ACLAddReplaceReply) Size() int {
352 // field[1] m.ACLIndex
358 func (m *ACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
359 o := binary.BigEndian
365 buf = make([]byte, m.Size())
369 // field[1] m.ACLIndex
370 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
373 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
377 func (m *ACLAddReplaceReply) Unmarshal(tmp []byte) error {
378 o := binary.BigEndian
382 // field[1] m.ACLIndex
383 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
386 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
391 // ACLDel represents VPP binary API message 'acl_del'.
393 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
396 func (m *ACLDel) Reset() { *m = ACLDel{} }
397 func (*ACLDel) GetMessageName() string { return "acl_del" }
398 func (*ACLDel) GetCrcString() string { return "ef34fea4" }
399 func (*ACLDel) GetMessageType() api.MessageType { return api.RequestMessage }
401 func (m *ACLDel) Size() int {
406 // field[1] m.ACLIndex
410 func (m *ACLDel) Marshal(b []byte) ([]byte, error) {
411 o := binary.BigEndian
417 buf = make([]byte, m.Size())
421 // field[1] m.ACLIndex
422 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
426 func (m *ACLDel) Unmarshal(tmp []byte) error {
427 o := binary.BigEndian
431 // field[1] m.ACLIndex
432 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
437 // ACLDelReply represents VPP binary API message 'acl_del_reply'.
438 type ACLDelReply struct {
439 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
442 func (m *ACLDelReply) Reset() { *m = ACLDelReply{} }
443 func (*ACLDelReply) GetMessageName() string { return "acl_del_reply" }
444 func (*ACLDelReply) GetCrcString() string { return "e8d4e804" }
445 func (*ACLDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
447 func (m *ACLDelReply) Size() int {
456 func (m *ACLDelReply) Marshal(b []byte) ([]byte, error) {
457 o := binary.BigEndian
463 buf = make([]byte, m.Size())
468 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
472 func (m *ACLDelReply) Unmarshal(tmp []byte) error {
473 o := binary.BigEndian
478 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
483 // ACLDetails represents VPP binary API message 'acl_details'.
484 type ACLDetails struct {
485 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
486 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
487 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
488 R []ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
491 func (m *ACLDetails) Reset() { *m = ACLDetails{} }
492 func (*ACLDetails) GetMessageName() string { return "acl_details" }
493 func (*ACLDetails) GetCrcString() string { return "7a97f21c" }
494 func (*ACLDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
496 func (m *ACLDetails) Size() int {
501 // field[1] m.ACLIndex
508 for j1 := 0; j1 < len(m.R); j1++ {
514 // field[2] s1.IsPermit
516 // field[2] s1.SrcPrefix
517 // field[3] s1.SrcPrefix.Address
518 // field[4] s1.SrcPrefix.Address.Af
520 // field[4] s1.SrcPrefix.Address.Un
522 // field[3] s1.SrcPrefix.Len
524 // field[2] s1.DstPrefix
525 // field[3] s1.DstPrefix.Address
526 // field[4] s1.DstPrefix.Address.Af
528 // field[4] s1.DstPrefix.Address.Un
530 // field[3] s1.DstPrefix.Len
534 // field[2] s1.SrcportOrIcmptypeFirst
536 // field[2] s1.SrcportOrIcmptypeLast
538 // field[2] s1.DstportOrIcmpcodeFirst
540 // field[2] s1.DstportOrIcmpcodeLast
542 // field[2] s1.TCPFlagsMask
544 // field[2] s1.TCPFlagsValue
549 func (m *ACLDetails) Marshal(b []byte) ([]byte, error) {
550 o := binary.BigEndian
556 buf = make([]byte, m.Size())
560 // field[1] m.ACLIndex
561 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
564 copy(buf[pos:pos+64], m.Tag)
567 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
570 for j1 := 0; j1 < len(m.R); j1++ {
575 // field[2] v1.IsPermit
576 buf[pos] = uint8(v1.IsPermit)
578 // field[2] v1.SrcPrefix
579 // field[3] v1.SrcPrefix.Address
580 // field[4] v1.SrcPrefix.Address.Af
581 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
583 // field[4] v1.SrcPrefix.Address.Un
584 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
586 // field[3] v1.SrcPrefix.Len
587 buf[pos] = uint8(v1.SrcPrefix.Len)
589 // field[2] v1.DstPrefix
590 // field[3] v1.DstPrefix.Address
591 // field[4] v1.DstPrefix.Address.Af
592 buf[pos] = uint8(v1.DstPrefix.Address.Af)
594 // field[4] v1.DstPrefix.Address.Un
595 copy(buf[pos:pos+16], v1.DstPrefix.Address.Un.XXX_UnionData[:])
597 // field[3] v1.DstPrefix.Len
598 buf[pos] = uint8(v1.DstPrefix.Len)
601 buf[pos] = uint8(v1.Proto)
603 // field[2] v1.SrcportOrIcmptypeFirst
604 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeFirst))
606 // field[2] v1.SrcportOrIcmptypeLast
607 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeLast))
609 // field[2] v1.DstportOrIcmpcodeFirst
610 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeFirst))
612 // field[2] v1.DstportOrIcmpcodeLast
613 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeLast))
615 // field[2] v1.TCPFlagsMask
616 buf[pos] = uint8(v1.TCPFlagsMask)
618 // field[2] v1.TCPFlagsValue
619 buf[pos] = uint8(v1.TCPFlagsValue)
624 func (m *ACLDetails) Unmarshal(tmp []byte) error {
625 o := binary.BigEndian
629 // field[1] m.ACLIndex
630 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
634 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
635 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
639 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
642 m.R = make([]ACLRule, int(m.Count))
643 for j1 := 0; j1 < int(m.Count); j1++ {
644 // field[2] m.R[j1].IsPermit
645 m.R[j1].IsPermit = ACLAction(tmp[pos])
647 // field[2] m.R[j1].SrcPrefix
648 // field[3] m.R[j1].SrcPrefix.Address
649 // field[4] m.R[j1].SrcPrefix.Address.Af
650 m.R[j1].SrcPrefix.Address.Af = ip_types.AddressFamily(tmp[pos])
652 // field[4] m.R[j1].SrcPrefix.Address.Un
653 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
655 // field[3] m.R[j1].SrcPrefix.Len
656 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
658 // field[2] m.R[j1].DstPrefix
659 // field[3] m.R[j1].DstPrefix.Address
660 // field[4] m.R[j1].DstPrefix.Address.Af
661 m.R[j1].DstPrefix.Address.Af = ip_types.AddressFamily(tmp[pos])
663 // field[4] m.R[j1].DstPrefix.Address.Un
664 copy(m.R[j1].DstPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
666 // field[3] m.R[j1].DstPrefix.Len
667 m.R[j1].DstPrefix.Len = uint8(tmp[pos])
669 // field[2] m.R[j1].Proto
670 m.R[j1].Proto = ip_types.IPProto(tmp[pos])
672 // field[2] m.R[j1].SrcportOrIcmptypeFirst
673 m.R[j1].SrcportOrIcmptypeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
675 // field[2] m.R[j1].SrcportOrIcmptypeLast
676 m.R[j1].SrcportOrIcmptypeLast = uint16(o.Uint16(tmp[pos : pos+2]))
678 // field[2] m.R[j1].DstportOrIcmpcodeFirst
679 m.R[j1].DstportOrIcmpcodeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
681 // field[2] m.R[j1].DstportOrIcmpcodeLast
682 m.R[j1].DstportOrIcmpcodeLast = uint16(o.Uint16(tmp[pos : pos+2]))
684 // field[2] m.R[j1].TCPFlagsMask
685 m.R[j1].TCPFlagsMask = uint8(tmp[pos])
687 // field[2] m.R[j1].TCPFlagsValue
688 m.R[j1].TCPFlagsValue = uint8(tmp[pos])
694 // ACLDump represents VPP binary API message 'acl_dump'.
695 type ACLDump struct {
696 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
699 func (m *ACLDump) Reset() { *m = ACLDump{} }
700 func (*ACLDump) GetMessageName() string { return "acl_dump" }
701 func (*ACLDump) GetCrcString() string { return "ef34fea4" }
702 func (*ACLDump) GetMessageType() api.MessageType { return api.RequestMessage }
704 func (m *ACLDump) Size() int {
709 // field[1] m.ACLIndex
713 func (m *ACLDump) Marshal(b []byte) ([]byte, error) {
714 o := binary.BigEndian
720 buf = make([]byte, m.Size())
724 // field[1] m.ACLIndex
725 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
729 func (m *ACLDump) Unmarshal(tmp []byte) error {
730 o := binary.BigEndian
734 // field[1] m.ACLIndex
735 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
740 // ACLInterfaceAddDel represents VPP binary API message 'acl_interface_add_del'.
741 type ACLInterfaceAddDel struct {
742 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
743 IsInput bool `binapi:"bool,name=is_input" json:"is_input,omitempty"`
744 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
745 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
748 func (m *ACLInterfaceAddDel) Reset() { *m = ACLInterfaceAddDel{} }
749 func (*ACLInterfaceAddDel) GetMessageName() string { return "acl_interface_add_del" }
750 func (*ACLInterfaceAddDel) GetCrcString() string { return "4b54bebd" }
751 func (*ACLInterfaceAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
753 func (m *ACLInterfaceAddDel) Size() int {
760 // field[1] m.IsInput
762 // field[1] m.SwIfIndex
764 // field[1] m.ACLIndex
768 func (m *ACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
769 o := binary.BigEndian
775 buf = make([]byte, m.Size())
784 // field[1] m.IsInput
789 // field[1] m.SwIfIndex
790 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
792 // field[1] m.ACLIndex
793 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
797 func (m *ACLInterfaceAddDel) Unmarshal(tmp []byte) error {
798 o := binary.BigEndian
803 m.IsAdd = tmp[pos] != 0
805 // field[1] m.IsInput
806 m.IsInput = tmp[pos] != 0
808 // field[1] m.SwIfIndex
809 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
811 // field[1] m.ACLIndex
812 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
817 // ACLInterfaceAddDelReply represents VPP binary API message 'acl_interface_add_del_reply'.
818 type ACLInterfaceAddDelReply struct {
819 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
822 func (m *ACLInterfaceAddDelReply) Reset() { *m = ACLInterfaceAddDelReply{} }
823 func (*ACLInterfaceAddDelReply) GetMessageName() string { return "acl_interface_add_del_reply" }
824 func (*ACLInterfaceAddDelReply) GetCrcString() string { return "e8d4e804" }
825 func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
827 func (m *ACLInterfaceAddDelReply) Size() int {
836 func (m *ACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
837 o := binary.BigEndian
843 buf = make([]byte, m.Size())
848 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
852 func (m *ACLInterfaceAddDelReply) Unmarshal(tmp []byte) error {
853 o := binary.BigEndian
858 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
863 // ACLInterfaceEtypeWhitelistDetails represents VPP binary API message 'acl_interface_etype_whitelist_details'.
864 type ACLInterfaceEtypeWhitelistDetails struct {
865 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
866 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Whitelist"`
867 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
868 Whitelist []uint16 `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
871 func (m *ACLInterfaceEtypeWhitelistDetails) Reset() { *m = ACLInterfaceEtypeWhitelistDetails{} }
872 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string {
873 return "acl_interface_etype_whitelist_details"
875 func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string { return "cc2bfded" }
876 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
878 func (m *ACLInterfaceEtypeWhitelistDetails) Size() int {
883 // field[1] m.SwIfIndex
889 // field[1] m.Whitelist
890 size += 2 * len(m.Whitelist)
893 func (m *ACLInterfaceEtypeWhitelistDetails) Marshal(b []byte) ([]byte, error) {
894 o := binary.BigEndian
900 buf = make([]byte, m.Size())
904 // field[1] m.SwIfIndex
905 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
908 buf[pos] = uint8(len(m.Whitelist))
911 buf[pos] = uint8(m.NInput)
913 // field[1] m.Whitelist
914 for i := 0; i < len(m.Whitelist); i++ {
916 if i < len(m.Whitelist) {
917 x = uint16(m.Whitelist[i])
919 o.PutUint16(buf[pos:pos+2], uint16(x))
924 func (m *ACLInterfaceEtypeWhitelistDetails) Unmarshal(tmp []byte) error {
925 o := binary.BigEndian
929 // field[1] m.SwIfIndex
930 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
933 m.Count = uint8(tmp[pos])
936 m.NInput = uint8(tmp[pos])
938 // field[1] m.Whitelist
939 m.Whitelist = make([]uint16, m.Count)
940 for i := 0; i < len(m.Whitelist); i++ {
941 m.Whitelist[i] = uint16(o.Uint16(tmp[pos : pos+2]))
947 // ACLInterfaceEtypeWhitelistDump represents VPP binary API message 'acl_interface_etype_whitelist_dump'.
948 type ACLInterfaceEtypeWhitelistDump struct {
949 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
952 func (m *ACLInterfaceEtypeWhitelistDump) Reset() { *m = ACLInterfaceEtypeWhitelistDump{} }
953 func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string {
954 return "acl_interface_etype_whitelist_dump"
956 func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string { return "f9e6675e" }
957 func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType { return api.RequestMessage }
959 func (m *ACLInterfaceEtypeWhitelistDump) Size() int {
964 // field[1] m.SwIfIndex
968 func (m *ACLInterfaceEtypeWhitelistDump) Marshal(b []byte) ([]byte, error) {
969 o := binary.BigEndian
975 buf = make([]byte, m.Size())
979 // field[1] m.SwIfIndex
980 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
984 func (m *ACLInterfaceEtypeWhitelistDump) Unmarshal(tmp []byte) error {
985 o := binary.BigEndian
989 // field[1] m.SwIfIndex
990 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
995 // ACLInterfaceListDetails represents VPP binary API message 'acl_interface_list_details'.
996 type ACLInterfaceListDetails struct {
997 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
998 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
999 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
1000 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
1003 func (m *ACLInterfaceListDetails) Reset() { *m = ACLInterfaceListDetails{} }
1004 func (*ACLInterfaceListDetails) GetMessageName() string { return "acl_interface_list_details" }
1005 func (*ACLInterfaceListDetails) GetCrcString() string { return "e695d256" }
1006 func (*ACLInterfaceListDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
1008 func (m *ACLInterfaceListDetails) Size() int {
1013 // field[1] m.SwIfIndex
1017 // field[1] m.NInput
1020 size += 4 * len(m.Acls)
1023 func (m *ACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
1024 o := binary.BigEndian
1030 buf = make([]byte, m.Size())
1034 // field[1] m.SwIfIndex
1035 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1038 buf[pos] = uint8(len(m.Acls))
1040 // field[1] m.NInput
1041 buf[pos] = uint8(m.NInput)
1044 for i := 0; i < len(m.Acls); i++ {
1046 if i < len(m.Acls) {
1047 x = uint32(m.Acls[i])
1049 o.PutUint32(buf[pos:pos+4], uint32(x))
1054 func (m *ACLInterfaceListDetails) Unmarshal(tmp []byte) error {
1055 o := binary.BigEndian
1059 // field[1] m.SwIfIndex
1060 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1063 m.Count = uint8(tmp[pos])
1065 // field[1] m.NInput
1066 m.NInput = uint8(tmp[pos])
1069 m.Acls = make([]uint32, m.Count)
1070 for i := 0; i < len(m.Acls); i++ {
1071 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
1077 // ACLInterfaceListDump represents VPP binary API message 'acl_interface_list_dump'.
1078 type ACLInterfaceListDump struct {
1079 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4.294967295e+09" json:"sw_if_index,omitempty"`
1082 func (m *ACLInterfaceListDump) Reset() { *m = ACLInterfaceListDump{} }
1083 func (*ACLInterfaceListDump) GetMessageName() string { return "acl_interface_list_dump" }
1084 func (*ACLInterfaceListDump) GetCrcString() string { return "f9e6675e" }
1085 func (*ACLInterfaceListDump) GetMessageType() api.MessageType { return api.RequestMessage }
1087 func (m *ACLInterfaceListDump) Size() int {
1092 // field[1] m.SwIfIndex
1096 func (m *ACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
1097 o := binary.BigEndian
1103 buf = make([]byte, m.Size())
1107 // field[1] m.SwIfIndex
1108 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1112 func (m *ACLInterfaceListDump) Unmarshal(tmp []byte) error {
1113 o := binary.BigEndian
1117 // field[1] m.SwIfIndex
1118 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1123 // ACLInterfaceSetACLList represents VPP binary API message 'acl_interface_set_acl_list'.
1124 type ACLInterfaceSetACLList struct {
1125 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1126 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
1127 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
1128 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
1131 func (m *ACLInterfaceSetACLList) Reset() { *m = ACLInterfaceSetACLList{} }
1132 func (*ACLInterfaceSetACLList) GetMessageName() string { return "acl_interface_set_acl_list" }
1133 func (*ACLInterfaceSetACLList) GetCrcString() string { return "473982bd" }
1134 func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType { return api.RequestMessage }
1136 func (m *ACLInterfaceSetACLList) Size() int {
1141 // field[1] m.SwIfIndex
1145 // field[1] m.NInput
1148 size += 4 * len(m.Acls)
1151 func (m *ACLInterfaceSetACLList) Marshal(b []byte) ([]byte, error) {
1152 o := binary.BigEndian
1158 buf = make([]byte, m.Size())
1162 // field[1] m.SwIfIndex
1163 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1166 buf[pos] = uint8(len(m.Acls))
1168 // field[1] m.NInput
1169 buf[pos] = uint8(m.NInput)
1172 for i := 0; i < len(m.Acls); i++ {
1174 if i < len(m.Acls) {
1175 x = uint32(m.Acls[i])
1177 o.PutUint32(buf[pos:pos+4], uint32(x))
1182 func (m *ACLInterfaceSetACLList) Unmarshal(tmp []byte) error {
1183 o := binary.BigEndian
1187 // field[1] m.SwIfIndex
1188 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1191 m.Count = uint8(tmp[pos])
1193 // field[1] m.NInput
1194 m.NInput = uint8(tmp[pos])
1197 m.Acls = make([]uint32, m.Count)
1198 for i := 0; i < len(m.Acls); i++ {
1199 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
1205 // ACLInterfaceSetACLListReply represents VPP binary API message 'acl_interface_set_acl_list_reply'.
1206 type ACLInterfaceSetACLListReply struct {
1207 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1210 func (m *ACLInterfaceSetACLListReply) Reset() { *m = ACLInterfaceSetACLListReply{} }
1211 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
1212 return "acl_interface_set_acl_list_reply"
1214 func (*ACLInterfaceSetACLListReply) GetCrcString() string { return "e8d4e804" }
1215 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1217 func (m *ACLInterfaceSetACLListReply) Size() int {
1222 // field[1] m.Retval
1226 func (m *ACLInterfaceSetACLListReply) Marshal(b []byte) ([]byte, error) {
1227 o := binary.BigEndian
1233 buf = make([]byte, m.Size())
1237 // field[1] m.Retval
1238 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1242 func (m *ACLInterfaceSetACLListReply) Unmarshal(tmp []byte) error {
1243 o := binary.BigEndian
1247 // field[1] m.Retval
1248 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1253 // ACLInterfaceSetEtypeWhitelist represents VPP binary API message 'acl_interface_set_etype_whitelist'.
1254 type ACLInterfaceSetEtypeWhitelist struct {
1255 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1256 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Whitelist"`
1257 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
1258 Whitelist []uint16 `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
1261 func (m *ACLInterfaceSetEtypeWhitelist) Reset() { *m = ACLInterfaceSetEtypeWhitelist{} }
1262 func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string {
1263 return "acl_interface_set_etype_whitelist"
1265 func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string { return "3f5c2d2d" }
1266 func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType { return api.RequestMessage }
1268 func (m *ACLInterfaceSetEtypeWhitelist) Size() int {
1273 // field[1] m.SwIfIndex
1277 // field[1] m.NInput
1279 // field[1] m.Whitelist
1280 size += 2 * len(m.Whitelist)
1283 func (m *ACLInterfaceSetEtypeWhitelist) Marshal(b []byte) ([]byte, error) {
1284 o := binary.BigEndian
1290 buf = make([]byte, m.Size())
1294 // field[1] m.SwIfIndex
1295 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1298 buf[pos] = uint8(len(m.Whitelist))
1300 // field[1] m.NInput
1301 buf[pos] = uint8(m.NInput)
1303 // field[1] m.Whitelist
1304 for i := 0; i < len(m.Whitelist); i++ {
1306 if i < len(m.Whitelist) {
1307 x = uint16(m.Whitelist[i])
1309 o.PutUint16(buf[pos:pos+2], uint16(x))
1314 func (m *ACLInterfaceSetEtypeWhitelist) Unmarshal(tmp []byte) error {
1315 o := binary.BigEndian
1319 // field[1] m.SwIfIndex
1320 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1323 m.Count = uint8(tmp[pos])
1325 // field[1] m.NInput
1326 m.NInput = uint8(tmp[pos])
1328 // field[1] m.Whitelist
1329 m.Whitelist = make([]uint16, m.Count)
1330 for i := 0; i < len(m.Whitelist); i++ {
1331 m.Whitelist[i] = uint16(o.Uint16(tmp[pos : pos+2]))
1337 // ACLInterfaceSetEtypeWhitelistReply represents VPP binary API message 'acl_interface_set_etype_whitelist_reply'.
1338 type ACLInterfaceSetEtypeWhitelistReply struct {
1339 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1342 func (m *ACLInterfaceSetEtypeWhitelistReply) Reset() { *m = ACLInterfaceSetEtypeWhitelistReply{} }
1343 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string {
1344 return "acl_interface_set_etype_whitelist_reply"
1346 func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string { return "e8d4e804" }
1347 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1349 func (m *ACLInterfaceSetEtypeWhitelistReply) Size() int {
1354 // field[1] m.Retval
1358 func (m *ACLInterfaceSetEtypeWhitelistReply) Marshal(b []byte) ([]byte, error) {
1359 o := binary.BigEndian
1365 buf = make([]byte, m.Size())
1369 // field[1] m.Retval
1370 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1374 func (m *ACLInterfaceSetEtypeWhitelistReply) Unmarshal(tmp []byte) error {
1375 o := binary.BigEndian
1379 // field[1] m.Retval
1380 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1385 // ACLPluginControlPing represents VPP binary API message 'acl_plugin_control_ping'.
1386 type ACLPluginControlPing struct{}
1388 func (m *ACLPluginControlPing) Reset() { *m = ACLPluginControlPing{} }
1389 func (*ACLPluginControlPing) GetMessageName() string { return "acl_plugin_control_ping" }
1390 func (*ACLPluginControlPing) GetCrcString() string { return "51077d14" }
1391 func (*ACLPluginControlPing) GetMessageType() api.MessageType { return api.RequestMessage }
1393 func (m *ACLPluginControlPing) Size() int {
1400 func (m *ACLPluginControlPing) Marshal(b []byte) ([]byte, error) {
1401 o := binary.BigEndian
1407 buf = make([]byte, m.Size())
1413 func (m *ACLPluginControlPing) Unmarshal(tmp []byte) error {
1414 o := binary.BigEndian
1421 // ACLPluginControlPingReply represents VPP binary API message 'acl_plugin_control_ping_reply'.
1422 type ACLPluginControlPingReply struct {
1423 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1424 ClientIndex uint32 `binapi:"u32,name=client_index" json:"client_index,omitempty"`
1425 VpePID uint32 `binapi:"u32,name=vpe_pid" json:"vpe_pid,omitempty"`
1428 func (m *ACLPluginControlPingReply) Reset() { *m = ACLPluginControlPingReply{} }
1429 func (*ACLPluginControlPingReply) GetMessageName() string { return "acl_plugin_control_ping_reply" }
1430 func (*ACLPluginControlPingReply) GetCrcString() string { return "f6b0b8ca" }
1431 func (*ACLPluginControlPingReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1433 func (m *ACLPluginControlPingReply) Size() int {
1438 // field[1] m.Retval
1440 // field[1] m.ClientIndex
1442 // field[1] m.VpePID
1446 func (m *ACLPluginControlPingReply) Marshal(b []byte) ([]byte, error) {
1447 o := binary.BigEndian
1453 buf = make([]byte, m.Size())
1457 // field[1] m.Retval
1458 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1460 // field[1] m.ClientIndex
1461 o.PutUint32(buf[pos:pos+4], uint32(m.ClientIndex))
1463 // field[1] m.VpePID
1464 o.PutUint32(buf[pos:pos+4], uint32(m.VpePID))
1468 func (m *ACLPluginControlPingReply) Unmarshal(tmp []byte) error {
1469 o := binary.BigEndian
1473 // field[1] m.Retval
1474 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1476 // field[1] m.ClientIndex
1477 m.ClientIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1479 // field[1] m.VpePID
1480 m.VpePID = uint32(o.Uint32(tmp[pos : pos+4]))
1485 // ACLPluginGetConnTableMaxEntries represents VPP binary API message 'acl_plugin_get_conn_table_max_entries'.
1486 type ACLPluginGetConnTableMaxEntries struct{}
1488 func (m *ACLPluginGetConnTableMaxEntries) Reset() { *m = ACLPluginGetConnTableMaxEntries{} }
1489 func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string {
1490 return "acl_plugin_get_conn_table_max_entries"
1492 func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string { return "51077d14" }
1493 func (*ACLPluginGetConnTableMaxEntries) GetMessageType() api.MessageType { return api.RequestMessage }
1495 func (m *ACLPluginGetConnTableMaxEntries) Size() int {
1502 func (m *ACLPluginGetConnTableMaxEntries) Marshal(b []byte) ([]byte, error) {
1503 o := binary.BigEndian
1509 buf = make([]byte, m.Size())
1515 func (m *ACLPluginGetConnTableMaxEntries) Unmarshal(tmp []byte) error {
1516 o := binary.BigEndian
1523 // ACLPluginGetConnTableMaxEntriesReply represents VPP binary API message 'acl_plugin_get_conn_table_max_entries_reply'.
1524 type ACLPluginGetConnTableMaxEntriesReply struct {
1525 ConnTableMaxEntries uint64 `binapi:"u64,name=conn_table_max_entries" json:"conn_table_max_entries,omitempty"`
1528 func (m *ACLPluginGetConnTableMaxEntriesReply) Reset() { *m = ACLPluginGetConnTableMaxEntriesReply{} }
1529 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string {
1530 return "acl_plugin_get_conn_table_max_entries_reply"
1532 func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString() string { return "7a096d3d" }
1533 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType() api.MessageType {
1534 return api.ReplyMessage
1537 func (m *ACLPluginGetConnTableMaxEntriesReply) Size() int {
1542 // field[1] m.ConnTableMaxEntries
1546 func (m *ACLPluginGetConnTableMaxEntriesReply) Marshal(b []byte) ([]byte, error) {
1547 o := binary.BigEndian
1553 buf = make([]byte, m.Size())
1557 // field[1] m.ConnTableMaxEntries
1558 o.PutUint64(buf[pos:pos+8], uint64(m.ConnTableMaxEntries))
1562 func (m *ACLPluginGetConnTableMaxEntriesReply) Unmarshal(tmp []byte) error {
1563 o := binary.BigEndian
1567 // field[1] m.ConnTableMaxEntries
1568 m.ConnTableMaxEntries = uint64(o.Uint64(tmp[pos : pos+8]))
1573 // ACLPluginGetVersion represents VPP binary API message 'acl_plugin_get_version'.
1574 type ACLPluginGetVersion struct{}
1576 func (m *ACLPluginGetVersion) Reset() { *m = ACLPluginGetVersion{} }
1577 func (*ACLPluginGetVersion) GetMessageName() string { return "acl_plugin_get_version" }
1578 func (*ACLPluginGetVersion) GetCrcString() string { return "51077d14" }
1579 func (*ACLPluginGetVersion) GetMessageType() api.MessageType { return api.RequestMessage }
1581 func (m *ACLPluginGetVersion) Size() int {
1588 func (m *ACLPluginGetVersion) Marshal(b []byte) ([]byte, error) {
1589 o := binary.BigEndian
1595 buf = make([]byte, m.Size())
1601 func (m *ACLPluginGetVersion) Unmarshal(tmp []byte) error {
1602 o := binary.BigEndian
1609 // ACLPluginGetVersionReply represents VPP binary API message 'acl_plugin_get_version_reply'.
1610 type ACLPluginGetVersionReply struct {
1611 Major uint32 `binapi:"u32,name=major" json:"major,omitempty"`
1612 Minor uint32 `binapi:"u32,name=minor" json:"minor,omitempty"`
1615 func (m *ACLPluginGetVersionReply) Reset() { *m = ACLPluginGetVersionReply{} }
1616 func (*ACLPluginGetVersionReply) GetMessageName() string { return "acl_plugin_get_version_reply" }
1617 func (*ACLPluginGetVersionReply) GetCrcString() string { return "9b32cf86" }
1618 func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1620 func (m *ACLPluginGetVersionReply) Size() int {
1631 func (m *ACLPluginGetVersionReply) Marshal(b []byte) ([]byte, error) {
1632 o := binary.BigEndian
1638 buf = make([]byte, m.Size())
1643 o.PutUint32(buf[pos:pos+4], uint32(m.Major))
1646 o.PutUint32(buf[pos:pos+4], uint32(m.Minor))
1650 func (m *ACLPluginGetVersionReply) Unmarshal(tmp []byte) error {
1651 o := binary.BigEndian
1656 m.Major = uint32(o.Uint32(tmp[pos : pos+4]))
1659 m.Minor = uint32(o.Uint32(tmp[pos : pos+4]))
1664 // ACLStatsIntfCountersEnable represents VPP binary API message 'acl_stats_intf_counters_enable'.
1665 type ACLStatsIntfCountersEnable struct {
1666 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1669 func (m *ACLStatsIntfCountersEnable) Reset() { *m = ACLStatsIntfCountersEnable{} }
1670 func (*ACLStatsIntfCountersEnable) GetMessageName() string { return "acl_stats_intf_counters_enable" }
1671 func (*ACLStatsIntfCountersEnable) GetCrcString() string { return "b3e225d2" }
1672 func (*ACLStatsIntfCountersEnable) GetMessageType() api.MessageType { return api.RequestMessage }
1674 func (m *ACLStatsIntfCountersEnable) Size() int {
1679 // field[1] m.Enable
1683 func (m *ACLStatsIntfCountersEnable) Marshal(b []byte) ([]byte, error) {
1684 o := binary.BigEndian
1690 buf = make([]byte, m.Size())
1694 // field[1] m.Enable
1701 func (m *ACLStatsIntfCountersEnable) Unmarshal(tmp []byte) error {
1702 o := binary.BigEndian
1706 // field[1] m.Enable
1707 m.Enable = tmp[pos] != 0
1712 // ACLStatsIntfCountersEnableReply represents VPP binary API message 'acl_stats_intf_counters_enable_reply'.
1713 type ACLStatsIntfCountersEnableReply struct {
1714 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1717 func (m *ACLStatsIntfCountersEnableReply) Reset() { *m = ACLStatsIntfCountersEnableReply{} }
1718 func (*ACLStatsIntfCountersEnableReply) GetMessageName() string {
1719 return "acl_stats_intf_counters_enable_reply"
1721 func (*ACLStatsIntfCountersEnableReply) GetCrcString() string { return "e8d4e804" }
1722 func (*ACLStatsIntfCountersEnableReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1724 func (m *ACLStatsIntfCountersEnableReply) Size() int {
1729 // field[1] m.Retval
1733 func (m *ACLStatsIntfCountersEnableReply) Marshal(b []byte) ([]byte, error) {
1734 o := binary.BigEndian
1740 buf = make([]byte, m.Size())
1744 // field[1] m.Retval
1745 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1749 func (m *ACLStatsIntfCountersEnableReply) Unmarshal(tmp []byte) error {
1750 o := binary.BigEndian
1754 // field[1] m.Retval
1755 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1760 // MacipACLAdd represents VPP binary API message 'macip_acl_add'.
1761 type MacipACLAdd struct {
1762 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
1763 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
1764 R []MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
1767 func (m *MacipACLAdd) Reset() { *m = MacipACLAdd{} }
1768 func (*MacipACLAdd) GetMessageName() string { return "macip_acl_add" }
1769 func (*MacipACLAdd) GetCrcString() string { return "d648fd0a" }
1770 func (*MacipACLAdd) GetMessageType() api.MessageType { return api.RequestMessage }
1772 func (m *MacipACLAdd) Size() int {
1782 for j1 := 0; j1 < len(m.R); j1++ {
1788 // field[2] s1.IsPermit
1790 // field[2] s1.SrcMac
1792 // field[2] s1.SrcMacMask
1794 // field[2] s1.SrcPrefix
1795 // field[3] s1.SrcPrefix.Address
1796 // field[4] s1.SrcPrefix.Address.Af
1798 // field[4] s1.SrcPrefix.Address.Un
1800 // field[3] s1.SrcPrefix.Len
1805 func (m *MacipACLAdd) Marshal(b []byte) ([]byte, error) {
1806 o := binary.BigEndian
1812 buf = make([]byte, m.Size())
1817 copy(buf[pos:pos+64], m.Tag)
1820 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
1823 for j1 := 0; j1 < len(m.R); j1++ {
1828 // field[2] v1.IsPermit
1829 buf[pos] = uint8(v1.IsPermit)
1831 // field[2] v1.SrcMac
1832 for i := 0; i < 6; i++ {
1834 if i < len(v1.SrcMac) {
1835 x = uint8(v1.SrcMac[i])
1840 // field[2] v1.SrcMacMask
1841 for i := 0; i < 6; i++ {
1843 if i < len(v1.SrcMacMask) {
1844 x = uint8(v1.SrcMacMask[i])
1849 // field[2] v1.SrcPrefix
1850 // field[3] v1.SrcPrefix.Address
1851 // field[4] v1.SrcPrefix.Address.Af
1852 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
1854 // field[4] v1.SrcPrefix.Address.Un
1855 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
1857 // field[3] v1.SrcPrefix.Len
1858 buf[pos] = uint8(v1.SrcPrefix.Len)
1863 func (m *MacipACLAdd) Unmarshal(tmp []byte) error {
1864 o := binary.BigEndian
1870 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
1871 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
1875 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
1878 m.R = make([]MacipACLRule, int(m.Count))
1879 for j1 := 0; j1 < int(m.Count); j1++ {
1880 // field[2] m.R[j1].IsPermit
1881 m.R[j1].IsPermit = ACLAction(tmp[pos])
1883 // field[2] m.R[j1].SrcMac
1884 for i := 0; i < len(m.R[j1].SrcMac); i++ {
1885 m.R[j1].SrcMac[i] = uint8(tmp[pos])
1888 // field[2] m.R[j1].SrcMacMask
1889 for i := 0; i < len(m.R[j1].SrcMacMask); i++ {
1890 m.R[j1].SrcMacMask[i] = uint8(tmp[pos])
1893 // field[2] m.R[j1].SrcPrefix
1894 // field[3] m.R[j1].SrcPrefix.Address
1895 // field[4] m.R[j1].SrcPrefix.Address.Af
1896 m.R[j1].SrcPrefix.Address.Af = ip_types.AddressFamily(tmp[pos])
1898 // field[4] m.R[j1].SrcPrefix.Address.Un
1899 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
1901 // field[3] m.R[j1].SrcPrefix.Len
1902 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
1908 // MacipACLAddReplace represents VPP binary API message 'macip_acl_add_replace'.
1909 type MacipACLAddReplace struct {
1910 ACLIndex uint32 `binapi:"u32,name=acl_index,default=4.294967295e+09" json:"acl_index,omitempty"`
1911 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
1912 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
1913 R []MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
1916 func (m *MacipACLAddReplace) Reset() { *m = MacipACLAddReplace{} }
1917 func (*MacipACLAddReplace) GetMessageName() string { return "macip_acl_add_replace" }
1918 func (*MacipACLAddReplace) GetCrcString() string { return "e34402a7" }
1919 func (*MacipACLAddReplace) GetMessageType() api.MessageType { return api.RequestMessage }
1921 func (m *MacipACLAddReplace) Size() int {
1926 // field[1] m.ACLIndex
1933 for j1 := 0; j1 < len(m.R); j1++ {
1939 // field[2] s1.IsPermit
1941 // field[2] s1.SrcMac
1943 // field[2] s1.SrcMacMask
1945 // field[2] s1.SrcPrefix
1946 // field[3] s1.SrcPrefix.Address
1947 // field[4] s1.SrcPrefix.Address.Af
1949 // field[4] s1.SrcPrefix.Address.Un
1951 // field[3] s1.SrcPrefix.Len
1956 func (m *MacipACLAddReplace) Marshal(b []byte) ([]byte, error) {
1957 o := binary.BigEndian
1963 buf = make([]byte, m.Size())
1967 // field[1] m.ACLIndex
1968 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
1971 copy(buf[pos:pos+64], m.Tag)
1974 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
1977 for j1 := 0; j1 < len(m.R); j1++ {
1982 // field[2] v1.IsPermit
1983 buf[pos] = uint8(v1.IsPermit)
1985 // field[2] v1.SrcMac
1986 for i := 0; i < 6; i++ {
1988 if i < len(v1.SrcMac) {
1989 x = uint8(v1.SrcMac[i])
1994 // field[2] v1.SrcMacMask
1995 for i := 0; i < 6; i++ {
1997 if i < len(v1.SrcMacMask) {
1998 x = uint8(v1.SrcMacMask[i])
2003 // field[2] v1.SrcPrefix
2004 // field[3] v1.SrcPrefix.Address
2005 // field[4] v1.SrcPrefix.Address.Af
2006 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
2008 // field[4] v1.SrcPrefix.Address.Un
2009 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
2011 // field[3] v1.SrcPrefix.Len
2012 buf[pos] = uint8(v1.SrcPrefix.Len)
2017 func (m *MacipACLAddReplace) Unmarshal(tmp []byte) error {
2018 o := binary.BigEndian
2022 // field[1] m.ACLIndex
2023 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2027 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
2028 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
2032 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
2035 m.R = make([]MacipACLRule, int(m.Count))
2036 for j1 := 0; j1 < int(m.Count); j1++ {
2037 // field[2] m.R[j1].IsPermit
2038 m.R[j1].IsPermit = ACLAction(tmp[pos])
2040 // field[2] m.R[j1].SrcMac
2041 for i := 0; i < len(m.R[j1].SrcMac); i++ {
2042 m.R[j1].SrcMac[i] = uint8(tmp[pos])
2045 // field[2] m.R[j1].SrcMacMask
2046 for i := 0; i < len(m.R[j1].SrcMacMask); i++ {
2047 m.R[j1].SrcMacMask[i] = uint8(tmp[pos])
2050 // field[2] m.R[j1].SrcPrefix
2051 // field[3] m.R[j1].SrcPrefix.Address
2052 // field[4] m.R[j1].SrcPrefix.Address.Af
2053 m.R[j1].SrcPrefix.Address.Af = ip_types.AddressFamily(tmp[pos])
2055 // field[4] m.R[j1].SrcPrefix.Address.Un
2056 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
2058 // field[3] m.R[j1].SrcPrefix.Len
2059 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
2065 // MacipACLAddReplaceReply represents VPP binary API message 'macip_acl_add_replace_reply'.
2066 type MacipACLAddReplaceReply struct {
2067 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2068 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2071 func (m *MacipACLAddReplaceReply) Reset() { *m = MacipACLAddReplaceReply{} }
2072 func (*MacipACLAddReplaceReply) GetMessageName() string { return "macip_acl_add_replace_reply" }
2073 func (*MacipACLAddReplaceReply) GetCrcString() string { return "ac407b0c" }
2074 func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2076 func (m *MacipACLAddReplaceReply) Size() int {
2081 // field[1] m.ACLIndex
2083 // field[1] m.Retval
2087 func (m *MacipACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
2088 o := binary.BigEndian
2094 buf = make([]byte, m.Size())
2098 // field[1] m.ACLIndex
2099 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2101 // field[1] m.Retval
2102 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2106 func (m *MacipACLAddReplaceReply) Unmarshal(tmp []byte) error {
2107 o := binary.BigEndian
2111 // field[1] m.ACLIndex
2112 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2114 // field[1] m.Retval
2115 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2120 // MacipACLAddReply represents VPP binary API message 'macip_acl_add_reply'.
2121 type MacipACLAddReply struct {
2122 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2123 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2126 func (m *MacipACLAddReply) Reset() { *m = MacipACLAddReply{} }
2127 func (*MacipACLAddReply) GetMessageName() string { return "macip_acl_add_reply" }
2128 func (*MacipACLAddReply) GetCrcString() string { return "ac407b0c" }
2129 func (*MacipACLAddReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2131 func (m *MacipACLAddReply) Size() int {
2136 // field[1] m.ACLIndex
2138 // field[1] m.Retval
2142 func (m *MacipACLAddReply) Marshal(b []byte) ([]byte, error) {
2143 o := binary.BigEndian
2149 buf = make([]byte, m.Size())
2153 // field[1] m.ACLIndex
2154 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2156 // field[1] m.Retval
2157 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2161 func (m *MacipACLAddReply) Unmarshal(tmp []byte) error {
2162 o := binary.BigEndian
2166 // field[1] m.ACLIndex
2167 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2169 // field[1] m.Retval
2170 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2175 // MacipACLDel represents VPP binary API message 'macip_acl_del'.
2176 type MacipACLDel struct {
2177 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2180 func (m *MacipACLDel) Reset() { *m = MacipACLDel{} }
2181 func (*MacipACLDel) GetMessageName() string { return "macip_acl_del" }
2182 func (*MacipACLDel) GetCrcString() string { return "ef34fea4" }
2183 func (*MacipACLDel) GetMessageType() api.MessageType { return api.RequestMessage }
2185 func (m *MacipACLDel) Size() int {
2190 // field[1] m.ACLIndex
2194 func (m *MacipACLDel) Marshal(b []byte) ([]byte, error) {
2195 o := binary.BigEndian
2201 buf = make([]byte, m.Size())
2205 // field[1] m.ACLIndex
2206 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2210 func (m *MacipACLDel) Unmarshal(tmp []byte) error {
2211 o := binary.BigEndian
2215 // field[1] m.ACLIndex
2216 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2221 // MacipACLDelReply represents VPP binary API message 'macip_acl_del_reply'.
2222 type MacipACLDelReply struct {
2223 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2226 func (m *MacipACLDelReply) Reset() { *m = MacipACLDelReply{} }
2227 func (*MacipACLDelReply) GetMessageName() string { return "macip_acl_del_reply" }
2228 func (*MacipACLDelReply) GetCrcString() string { return "e8d4e804" }
2229 func (*MacipACLDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2231 func (m *MacipACLDelReply) Size() int {
2236 // field[1] m.Retval
2240 func (m *MacipACLDelReply) Marshal(b []byte) ([]byte, error) {
2241 o := binary.BigEndian
2247 buf = make([]byte, m.Size())
2251 // field[1] m.Retval
2252 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2256 func (m *MacipACLDelReply) Unmarshal(tmp []byte) error {
2257 o := binary.BigEndian
2261 // field[1] m.Retval
2262 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2267 // MacipACLDetails represents VPP binary API message 'macip_acl_details'.
2268 type MacipACLDetails struct {
2269 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2270 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
2271 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
2272 R []MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
2275 func (m *MacipACLDetails) Reset() { *m = MacipACLDetails{} }
2276 func (*MacipACLDetails) GetMessageName() string { return "macip_acl_details" }
2277 func (*MacipACLDetails) GetCrcString() string { return "57c7482f" }
2278 func (*MacipACLDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
2280 func (m *MacipACLDetails) Size() int {
2285 // field[1] m.ACLIndex
2292 for j1 := 0; j1 < len(m.R); j1++ {
2298 // field[2] s1.IsPermit
2300 // field[2] s1.SrcMac
2302 // field[2] s1.SrcMacMask
2304 // field[2] s1.SrcPrefix
2305 // field[3] s1.SrcPrefix.Address
2306 // field[4] s1.SrcPrefix.Address.Af
2308 // field[4] s1.SrcPrefix.Address.Un
2310 // field[3] s1.SrcPrefix.Len
2315 func (m *MacipACLDetails) Marshal(b []byte) ([]byte, error) {
2316 o := binary.BigEndian
2322 buf = make([]byte, m.Size())
2326 // field[1] m.ACLIndex
2327 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2330 copy(buf[pos:pos+64], m.Tag)
2333 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
2336 for j1 := 0; j1 < len(m.R); j1++ {
2341 // field[2] v1.IsPermit
2342 buf[pos] = uint8(v1.IsPermit)
2344 // field[2] v1.SrcMac
2345 for i := 0; i < 6; i++ {
2347 if i < len(v1.SrcMac) {
2348 x = uint8(v1.SrcMac[i])
2353 // field[2] v1.SrcMacMask
2354 for i := 0; i < 6; i++ {
2356 if i < len(v1.SrcMacMask) {
2357 x = uint8(v1.SrcMacMask[i])
2362 // field[2] v1.SrcPrefix
2363 // field[3] v1.SrcPrefix.Address
2364 // field[4] v1.SrcPrefix.Address.Af
2365 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
2367 // field[4] v1.SrcPrefix.Address.Un
2368 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
2370 // field[3] v1.SrcPrefix.Len
2371 buf[pos] = uint8(v1.SrcPrefix.Len)
2376 func (m *MacipACLDetails) Unmarshal(tmp []byte) error {
2377 o := binary.BigEndian
2381 // field[1] m.ACLIndex
2382 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2386 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
2387 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
2391 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
2394 m.R = make([]MacipACLRule, int(m.Count))
2395 for j1 := 0; j1 < int(m.Count); j1++ {
2396 // field[2] m.R[j1].IsPermit
2397 m.R[j1].IsPermit = ACLAction(tmp[pos])
2399 // field[2] m.R[j1].SrcMac
2400 for i := 0; i < len(m.R[j1].SrcMac); i++ {
2401 m.R[j1].SrcMac[i] = uint8(tmp[pos])
2404 // field[2] m.R[j1].SrcMacMask
2405 for i := 0; i < len(m.R[j1].SrcMacMask); i++ {
2406 m.R[j1].SrcMacMask[i] = uint8(tmp[pos])
2409 // field[2] m.R[j1].SrcPrefix
2410 // field[3] m.R[j1].SrcPrefix.Address
2411 // field[4] m.R[j1].SrcPrefix.Address.Af
2412 m.R[j1].SrcPrefix.Address.Af = ip_types.AddressFamily(tmp[pos])
2414 // field[4] m.R[j1].SrcPrefix.Address.Un
2415 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
2417 // field[3] m.R[j1].SrcPrefix.Len
2418 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
2424 // MacipACLDump represents VPP binary API message 'macip_acl_dump'.
2425 type MacipACLDump struct {
2426 ACLIndex uint32 `binapi:"u32,name=acl_index,default=4.294967295e+09" json:"acl_index,omitempty"`
2429 func (m *MacipACLDump) Reset() { *m = MacipACLDump{} }
2430 func (*MacipACLDump) GetMessageName() string { return "macip_acl_dump" }
2431 func (*MacipACLDump) GetCrcString() string { return "ef34fea4" }
2432 func (*MacipACLDump) GetMessageType() api.MessageType { return api.RequestMessage }
2434 func (m *MacipACLDump) Size() int {
2439 // field[1] m.ACLIndex
2443 func (m *MacipACLDump) Marshal(b []byte) ([]byte, error) {
2444 o := binary.BigEndian
2450 buf = make([]byte, m.Size())
2454 // field[1] m.ACLIndex
2455 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2459 func (m *MacipACLDump) Unmarshal(tmp []byte) error {
2460 o := binary.BigEndian
2464 // field[1] m.ACLIndex
2465 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2470 // MacipACLInterfaceAddDel represents VPP binary API message 'macip_acl_interface_add_del'.
2471 type MacipACLInterfaceAddDel struct {
2472 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
2473 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2474 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2477 func (m *MacipACLInterfaceAddDel) Reset() { *m = MacipACLInterfaceAddDel{} }
2478 func (*MacipACLInterfaceAddDel) GetMessageName() string { return "macip_acl_interface_add_del" }
2479 func (*MacipACLInterfaceAddDel) GetCrcString() string { return "4b8690b1" }
2480 func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
2482 func (m *MacipACLInterfaceAddDel) Size() int {
2489 // field[1] m.SwIfIndex
2491 // field[1] m.ACLIndex
2495 func (m *MacipACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
2496 o := binary.BigEndian
2502 buf = make([]byte, m.Size())
2511 // field[1] m.SwIfIndex
2512 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2514 // field[1] m.ACLIndex
2515 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2519 func (m *MacipACLInterfaceAddDel) Unmarshal(tmp []byte) error {
2520 o := binary.BigEndian
2525 m.IsAdd = tmp[pos] != 0
2527 // field[1] m.SwIfIndex
2528 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2530 // field[1] m.ACLIndex
2531 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2536 // MacipACLInterfaceAddDelReply represents VPP binary API message 'macip_acl_interface_add_del_reply'.
2537 type MacipACLInterfaceAddDelReply struct {
2538 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2541 func (m *MacipACLInterfaceAddDelReply) Reset() { *m = MacipACLInterfaceAddDelReply{} }
2542 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
2543 return "macip_acl_interface_add_del_reply"
2545 func (*MacipACLInterfaceAddDelReply) GetCrcString() string { return "e8d4e804" }
2546 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2548 func (m *MacipACLInterfaceAddDelReply) Size() int {
2553 // field[1] m.Retval
2557 func (m *MacipACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
2558 o := binary.BigEndian
2564 buf = make([]byte, m.Size())
2568 // field[1] m.Retval
2569 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2573 func (m *MacipACLInterfaceAddDelReply) Unmarshal(tmp []byte) error {
2574 o := binary.BigEndian
2578 // field[1] m.Retval
2579 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2584 // MacipACLInterfaceGet represents VPP binary API message 'macip_acl_interface_get'.
2585 type MacipACLInterfaceGet struct{}
2587 func (m *MacipACLInterfaceGet) Reset() { *m = MacipACLInterfaceGet{} }
2588 func (*MacipACLInterfaceGet) GetMessageName() string { return "macip_acl_interface_get" }
2589 func (*MacipACLInterfaceGet) GetCrcString() string { return "51077d14" }
2590 func (*MacipACLInterfaceGet) GetMessageType() api.MessageType { return api.RequestMessage }
2592 func (m *MacipACLInterfaceGet) Size() int {
2599 func (m *MacipACLInterfaceGet) Marshal(b []byte) ([]byte, error) {
2600 o := binary.BigEndian
2606 buf = make([]byte, m.Size())
2612 func (m *MacipACLInterfaceGet) Unmarshal(tmp []byte) error {
2613 o := binary.BigEndian
2620 // MacipACLInterfaceGetReply represents VPP binary API message 'macip_acl_interface_get_reply'.
2621 type MacipACLInterfaceGetReply struct {
2622 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
2623 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
2626 func (m *MacipACLInterfaceGetReply) Reset() { *m = MacipACLInterfaceGetReply{} }
2627 func (*MacipACLInterfaceGetReply) GetMessageName() string { return "macip_acl_interface_get_reply" }
2628 func (*MacipACLInterfaceGetReply) GetCrcString() string { return "accf9b05" }
2629 func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2631 func (m *MacipACLInterfaceGetReply) Size() int {
2639 size += 4 * len(m.Acls)
2642 func (m *MacipACLInterfaceGetReply) Marshal(b []byte) ([]byte, error) {
2643 o := binary.BigEndian
2649 buf = make([]byte, m.Size())
2654 o.PutUint32(buf[pos:pos+4], uint32(len(m.Acls)))
2657 for i := 0; i < len(m.Acls); i++ {
2659 if i < len(m.Acls) {
2660 x = uint32(m.Acls[i])
2662 o.PutUint32(buf[pos:pos+4], uint32(x))
2667 func (m *MacipACLInterfaceGetReply) Unmarshal(tmp []byte) error {
2668 o := binary.BigEndian
2673 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
2676 m.Acls = make([]uint32, m.Count)
2677 for i := 0; i < len(m.Acls); i++ {
2678 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
2684 // MacipACLInterfaceListDetails represents VPP binary API message 'macip_acl_interface_list_details'.
2685 type MacipACLInterfaceListDetails struct {
2686 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2687 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
2688 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
2691 func (m *MacipACLInterfaceListDetails) Reset() { *m = MacipACLInterfaceListDetails{} }
2692 func (*MacipACLInterfaceListDetails) GetMessageName() string {
2693 return "macip_acl_interface_list_details"
2695 func (*MacipACLInterfaceListDetails) GetCrcString() string { return "a0c5d56d" }
2696 func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
2698 func (m *MacipACLInterfaceListDetails) Size() int {
2703 // field[1] m.SwIfIndex
2708 size += 4 * len(m.Acls)
2711 func (m *MacipACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
2712 o := binary.BigEndian
2718 buf = make([]byte, m.Size())
2722 // field[1] m.SwIfIndex
2723 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2726 buf[pos] = uint8(len(m.Acls))
2729 for i := 0; i < len(m.Acls); i++ {
2731 if i < len(m.Acls) {
2732 x = uint32(m.Acls[i])
2734 o.PutUint32(buf[pos:pos+4], uint32(x))
2739 func (m *MacipACLInterfaceListDetails) Unmarshal(tmp []byte) error {
2740 o := binary.BigEndian
2744 // field[1] m.SwIfIndex
2745 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2748 m.Count = uint8(tmp[pos])
2751 m.Acls = make([]uint32, m.Count)
2752 for i := 0; i < len(m.Acls); i++ {
2753 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
2759 // MacipACLInterfaceListDump represents VPP binary API message 'macip_acl_interface_list_dump'.
2760 type MacipACLInterfaceListDump struct {
2761 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2764 func (m *MacipACLInterfaceListDump) Reset() { *m = MacipACLInterfaceListDump{} }
2765 func (*MacipACLInterfaceListDump) GetMessageName() string { return "macip_acl_interface_list_dump" }
2766 func (*MacipACLInterfaceListDump) GetCrcString() string { return "f9e6675e" }
2767 func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType { return api.RequestMessage }
2769 func (m *MacipACLInterfaceListDump) Size() int {
2774 // field[1] m.SwIfIndex
2778 func (m *MacipACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
2779 o := binary.BigEndian
2785 buf = make([]byte, m.Size())
2789 // field[1] m.SwIfIndex
2790 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2794 func (m *MacipACLInterfaceListDump) Unmarshal(tmp []byte) error {
2795 o := binary.BigEndian
2799 // field[1] m.SwIfIndex
2800 m.SwIfIndex = interface_types.InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2805 func init() { file_acl_binapi_init() }
2806 func file_acl_binapi_init() {
2807 api.RegisterMessage((*ACLAddReplace)(nil), "acl.ACLAddReplace")
2808 api.RegisterMessage((*ACLAddReplaceReply)(nil), "acl.ACLAddReplaceReply")
2809 api.RegisterMessage((*ACLDel)(nil), "acl.ACLDel")
2810 api.RegisterMessage((*ACLDelReply)(nil), "acl.ACLDelReply")
2811 api.RegisterMessage((*ACLDetails)(nil), "acl.ACLDetails")
2812 api.RegisterMessage((*ACLDump)(nil), "acl.ACLDump")
2813 api.RegisterMessage((*ACLInterfaceAddDel)(nil), "acl.ACLInterfaceAddDel")
2814 api.RegisterMessage((*ACLInterfaceAddDelReply)(nil), "acl.ACLInterfaceAddDelReply")
2815 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDetails)(nil), "acl.ACLInterfaceEtypeWhitelistDetails")
2816 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDump)(nil), "acl.ACLInterfaceEtypeWhitelistDump")
2817 api.RegisterMessage((*ACLInterfaceListDetails)(nil), "acl.ACLInterfaceListDetails")
2818 api.RegisterMessage((*ACLInterfaceListDump)(nil), "acl.ACLInterfaceListDump")
2819 api.RegisterMessage((*ACLInterfaceSetACLList)(nil), "acl.ACLInterfaceSetACLList")
2820 api.RegisterMessage((*ACLInterfaceSetACLListReply)(nil), "acl.ACLInterfaceSetACLListReply")
2821 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelist)(nil), "acl.ACLInterfaceSetEtypeWhitelist")
2822 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelistReply)(nil), "acl.ACLInterfaceSetEtypeWhitelistReply")
2823 api.RegisterMessage((*ACLPluginControlPing)(nil), "acl.ACLPluginControlPing")
2824 api.RegisterMessage((*ACLPluginControlPingReply)(nil), "acl.ACLPluginControlPingReply")
2825 api.RegisterMessage((*ACLPluginGetConnTableMaxEntries)(nil), "acl.ACLPluginGetConnTableMaxEntries")
2826 api.RegisterMessage((*ACLPluginGetConnTableMaxEntriesReply)(nil), "acl.ACLPluginGetConnTableMaxEntriesReply")
2827 api.RegisterMessage((*ACLPluginGetVersion)(nil), "acl.ACLPluginGetVersion")
2828 api.RegisterMessage((*ACLPluginGetVersionReply)(nil), "acl.ACLPluginGetVersionReply")
2829 api.RegisterMessage((*ACLStatsIntfCountersEnable)(nil), "acl.ACLStatsIntfCountersEnable")
2830 api.RegisterMessage((*ACLStatsIntfCountersEnableReply)(nil), "acl.ACLStatsIntfCountersEnableReply")
2831 api.RegisterMessage((*MacipACLAdd)(nil), "acl.MacipACLAdd")
2832 api.RegisterMessage((*MacipACLAddReplace)(nil), "acl.MacipACLAddReplace")
2833 api.RegisterMessage((*MacipACLAddReplaceReply)(nil), "acl.MacipACLAddReplaceReply")
2834 api.RegisterMessage((*MacipACLAddReply)(nil), "acl.MacipACLAddReply")
2835 api.RegisterMessage((*MacipACLDel)(nil), "acl.MacipACLDel")
2836 api.RegisterMessage((*MacipACLDelReply)(nil), "acl.MacipACLDelReply")
2837 api.RegisterMessage((*MacipACLDetails)(nil), "acl.MacipACLDetails")
2838 api.RegisterMessage((*MacipACLDump)(nil), "acl.MacipACLDump")
2839 api.RegisterMessage((*MacipACLInterfaceAddDel)(nil), "acl.MacipACLInterfaceAddDel")
2840 api.RegisterMessage((*MacipACLInterfaceAddDelReply)(nil), "acl.MacipACLInterfaceAddDelReply")
2841 api.RegisterMessage((*MacipACLInterfaceGet)(nil), "acl.MacipACLInterfaceGet")
2842 api.RegisterMessage((*MacipACLInterfaceGetReply)(nil), "acl.MacipACLInterfaceGetReply")
2843 api.RegisterMessage((*MacipACLInterfaceListDetails)(nil), "acl.MacipACLInterfaceListDetails")
2844 api.RegisterMessage((*MacipACLInterfaceListDump)(nil), "acl.MacipACLInterfaceListDump")
2847 // Messages returns list of all messages in this module.
2848 func AllMessages() []api.Message {
2849 return []api.Message{
2850 (*ACLAddReplace)(nil),
2851 (*ACLAddReplaceReply)(nil),
2853 (*ACLDelReply)(nil),
2856 (*ACLInterfaceAddDel)(nil),
2857 (*ACLInterfaceAddDelReply)(nil),
2858 (*ACLInterfaceEtypeWhitelistDetails)(nil),
2859 (*ACLInterfaceEtypeWhitelistDump)(nil),
2860 (*ACLInterfaceListDetails)(nil),
2861 (*ACLInterfaceListDump)(nil),
2862 (*ACLInterfaceSetACLList)(nil),
2863 (*ACLInterfaceSetACLListReply)(nil),
2864 (*ACLInterfaceSetEtypeWhitelist)(nil),
2865 (*ACLInterfaceSetEtypeWhitelistReply)(nil),
2866 (*ACLPluginControlPing)(nil),
2867 (*ACLPluginControlPingReply)(nil),
2868 (*ACLPluginGetConnTableMaxEntries)(nil),
2869 (*ACLPluginGetConnTableMaxEntriesReply)(nil),
2870 (*ACLPluginGetVersion)(nil),
2871 (*ACLPluginGetVersionReply)(nil),
2872 (*ACLStatsIntfCountersEnable)(nil),
2873 (*ACLStatsIntfCountersEnableReply)(nil),
2874 (*MacipACLAdd)(nil),
2875 (*MacipACLAddReplace)(nil),
2876 (*MacipACLAddReplaceReply)(nil),
2877 (*MacipACLAddReply)(nil),
2878 (*MacipACLDel)(nil),
2879 (*MacipACLDelReply)(nil),
2880 (*MacipACLDetails)(nil),
2881 (*MacipACLDump)(nil),
2882 (*MacipACLInterfaceAddDel)(nil),
2883 (*MacipACLInterfaceAddDelReply)(nil),
2884 (*MacipACLInterfaceGet)(nil),
2885 (*MacipACLInterfaceGetReply)(nil),
2886 (*MacipACLInterfaceListDetails)(nil),
2887 (*MacipACLInterfaceListDump)(nil),
2891 // Reference imports to suppress errors if they are not otherwise used.
2892 var _ = api.RegisterMessage
2893 var _ = codec.DecodeString
2894 var _ = bytes.NewBuffer
2895 var _ = context.Background
2897 var _ = strconv.Itoa
2898 var _ = strings.Contains
2900 var _ = binary.BigEndian
2901 var _ = math.Float32bits