1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0-alpha-1-g435c3f4-dirty
4 // VPP: 20.01-45~g7a071e370~b63
5 // source: /usr/share/vpp/api/plugins/acl.api.json
8 Package acl contains generated code for VPP binary API defined by acl.api (version 1.0.1).
24 api "git.fd.io/govpp.git/api"
25 codec "git.fd.io/govpp.git/codec"
26 struc "github.com/lunixbochs/struc"
29 // This is a compile-time assertion to ensure that this generated file
30 // is compatible with the GoVPP api package it is being compiled against.
31 // A compilation error at this line likely means your copy of the
32 // GoVPP api package needs to be updated.
33 const _ = api.GoVppAPIPackageIsVersion2 // please upgrade the GoVPP api package
36 // ModuleName is the name of this module.
38 // APIVersion is the API version of this module.
40 // VersionCrc is the CRC of this module.
41 VersionCrc = 0x11c5c1e5
44 // ACLRule represents VPP binary API type 'acl_rule'.
46 IsPermit uint8 `binapi:"u8,name=is_permit" json:"is_permit,omitempty"`
47 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
48 SrcIPAddr []byte `binapi:"u8[16],name=src_ip_addr" json:"src_ip_addr,omitempty" struc:"[16]byte"`
49 SrcIPPrefixLen uint8 `binapi:"u8,name=src_ip_prefix_len" json:"src_ip_prefix_len,omitempty"`
50 DstIPAddr []byte `binapi:"u8[16],name=dst_ip_addr" json:"dst_ip_addr,omitempty" struc:"[16]byte"`
51 DstIPPrefixLen uint8 `binapi:"u8,name=dst_ip_prefix_len" json:"dst_ip_prefix_len,omitempty"`
52 Proto uint8 `binapi:"u8,name=proto" json:"proto,omitempty"`
53 SrcportOrIcmptypeFirst uint16 `binapi:"u16,name=srcport_or_icmptype_first" json:"srcport_or_icmptype_first,omitempty"`
54 SrcportOrIcmptypeLast uint16 `binapi:"u16,name=srcport_or_icmptype_last" json:"srcport_or_icmptype_last,omitempty"`
55 DstportOrIcmpcodeFirst uint16 `binapi:"u16,name=dstport_or_icmpcode_first" json:"dstport_or_icmpcode_first,omitempty"`
56 DstportOrIcmpcodeLast uint16 `binapi:"u16,name=dstport_or_icmpcode_last" json:"dstport_or_icmpcode_last,omitempty"`
57 TCPFlagsMask uint8 `binapi:"u8,name=tcp_flags_mask" json:"tcp_flags_mask,omitempty"`
58 TCPFlagsValue uint8 `binapi:"u8,name=tcp_flags_value" json:"tcp_flags_value,omitempty"`
61 func (*ACLRule) GetTypeName() string { return "acl_rule" }
63 // MacipACLRule represents VPP binary API type 'macip_acl_rule'.
64 type MacipACLRule struct {
65 IsPermit uint8 `binapi:"u8,name=is_permit" json:"is_permit,omitempty"`
66 IsIPv6 uint8 `binapi:"u8,name=is_ipv6" json:"is_ipv6,omitempty"`
67 SrcMac []byte `binapi:"u8[6],name=src_mac" json:"src_mac,omitempty" struc:"[6]byte"`
68 SrcMacMask []byte `binapi:"u8[6],name=src_mac_mask" json:"src_mac_mask,omitempty" struc:"[6]byte"`
69 SrcIPAddr []byte `binapi:"u8[16],name=src_ip_addr" json:"src_ip_addr,omitempty" struc:"[16]byte"`
70 SrcIPPrefixLen uint8 `binapi:"u8,name=src_ip_prefix_len" json:"src_ip_prefix_len,omitempty"`
73 func (*MacipACLRule) GetTypeName() string { return "macip_acl_rule" }
75 // ACLAddReplace represents VPP binary API message 'acl_add_replace'.
76 type ACLAddReplace struct {
77 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
78 Tag []byte `binapi:"u8[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
79 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
80 R []ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
83 func (m *ACLAddReplace) Reset() { *m = ACLAddReplace{} }
84 func (*ACLAddReplace) GetMessageName() string { return "acl_add_replace" }
85 func (*ACLAddReplace) GetCrcString() string { return "13bc8539" }
86 func (*ACLAddReplace) GetMessageType() api.MessageType { return api.RequestMessage }
88 func (m *ACLAddReplace) Size() int {
93 // field[1] m.ACLIndex
100 for j1 := 0; j1 < len(m.R); j1++ {
106 // field[2] s1.IsPermit
108 // field[2] s1.IsIPv6
110 // field[2] s1.SrcIPAddr
112 // field[2] s1.SrcIPPrefixLen
114 // field[2] s1.DstIPAddr
116 // field[2] s1.DstIPPrefixLen
120 // field[2] s1.SrcportOrIcmptypeFirst
122 // field[2] s1.SrcportOrIcmptypeLast
124 // field[2] s1.DstportOrIcmpcodeFirst
126 // field[2] s1.DstportOrIcmpcodeLast
128 // field[2] s1.TCPFlagsMask
130 // field[2] s1.TCPFlagsValue
135 func (m *ACLAddReplace) Marshal(b []byte) ([]byte, error) {
136 o := binary.BigEndian
142 buf = make([]byte, m.Size())
146 // field[1] m.ACLIndex
147 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
150 for i := 0; i < 64; i++ {
159 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
162 for j1 := 0; j1 < len(m.R); j1++ {
167 // field[2] v1.IsPermit
168 buf[pos] = uint8(v1.IsPermit)
170 // field[2] v1.IsIPv6
171 buf[pos] = uint8(v1.IsIPv6)
173 // field[2] v1.SrcIPAddr
174 for i := 0; i < 16; i++ {
176 if i < len(v1.SrcIPAddr) {
177 x = uint8(v1.SrcIPAddr[i])
182 // field[2] v1.SrcIPPrefixLen
183 buf[pos] = uint8(v1.SrcIPPrefixLen)
185 // field[2] v1.DstIPAddr
186 for i := 0; i < 16; i++ {
188 if i < len(v1.DstIPAddr) {
189 x = uint8(v1.DstIPAddr[i])
194 // field[2] v1.DstIPPrefixLen
195 buf[pos] = uint8(v1.DstIPPrefixLen)
198 buf[pos] = uint8(v1.Proto)
200 // field[2] v1.SrcportOrIcmptypeFirst
201 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeFirst))
203 // field[2] v1.SrcportOrIcmptypeLast
204 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeLast))
206 // field[2] v1.DstportOrIcmpcodeFirst
207 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeFirst))
209 // field[2] v1.DstportOrIcmpcodeLast
210 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeLast))
212 // field[2] v1.TCPFlagsMask
213 buf[pos] = uint8(v1.TCPFlagsMask)
215 // field[2] v1.TCPFlagsValue
216 buf[pos] = uint8(v1.TCPFlagsValue)
221 func (m *ACLAddReplace) Unmarshal(tmp []byte) error {
222 o := binary.BigEndian
226 // field[1] m.ACLIndex
227 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
230 m.Tag = make([]uint8, 64)
231 for i := 0; i < len(m.Tag); i++ {
232 m.Tag[i] = uint8(tmp[pos])
236 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
239 m.R = make([]ACLRule, int(m.Count))
240 for j1 := 0; j1 < int(m.Count); j1++ {
241 // field[2] m.R[j1].IsPermit
242 m.R[j1].IsPermit = uint8(tmp[pos])
244 // field[2] m.R[j1].IsIPv6
245 m.R[j1].IsIPv6 = uint8(tmp[pos])
247 // field[2] m.R[j1].SrcIPAddr
248 m.R[j1].SrcIPAddr = make([]uint8, 16)
249 for i := 0; i < len(m.R[j1].SrcIPAddr); i++ {
250 m.R[j1].SrcIPAddr[i] = uint8(tmp[pos])
253 // field[2] m.R[j1].SrcIPPrefixLen
254 m.R[j1].SrcIPPrefixLen = uint8(tmp[pos])
256 // field[2] m.R[j1].DstIPAddr
257 m.R[j1].DstIPAddr = make([]uint8, 16)
258 for i := 0; i < len(m.R[j1].DstIPAddr); i++ {
259 m.R[j1].DstIPAddr[i] = uint8(tmp[pos])
262 // field[2] m.R[j1].DstIPPrefixLen
263 m.R[j1].DstIPPrefixLen = uint8(tmp[pos])
265 // field[2] m.R[j1].Proto
266 m.R[j1].Proto = uint8(tmp[pos])
268 // field[2] m.R[j1].SrcportOrIcmptypeFirst
269 m.R[j1].SrcportOrIcmptypeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
271 // field[2] m.R[j1].SrcportOrIcmptypeLast
272 m.R[j1].SrcportOrIcmptypeLast = uint16(o.Uint16(tmp[pos : pos+2]))
274 // field[2] m.R[j1].DstportOrIcmpcodeFirst
275 m.R[j1].DstportOrIcmpcodeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
277 // field[2] m.R[j1].DstportOrIcmpcodeLast
278 m.R[j1].DstportOrIcmpcodeLast = uint16(o.Uint16(tmp[pos : pos+2]))
280 // field[2] m.R[j1].TCPFlagsMask
281 m.R[j1].TCPFlagsMask = uint8(tmp[pos])
283 // field[2] m.R[j1].TCPFlagsValue
284 m.R[j1].TCPFlagsValue = uint8(tmp[pos])
290 // ACLAddReplaceReply represents VPP binary API message 'acl_add_replace_reply'.
291 type ACLAddReplaceReply struct {
292 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
293 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
296 func (m *ACLAddReplaceReply) Reset() { *m = ACLAddReplaceReply{} }
297 func (*ACLAddReplaceReply) GetMessageName() string { return "acl_add_replace_reply" }
298 func (*ACLAddReplaceReply) GetCrcString() string { return "ac407b0c" }
299 func (*ACLAddReplaceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
301 func (m *ACLAddReplaceReply) Size() int {
306 // field[1] m.ACLIndex
312 func (m *ACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
313 o := binary.BigEndian
319 buf = make([]byte, m.Size())
323 // field[1] m.ACLIndex
324 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
327 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
331 func (m *ACLAddReplaceReply) Unmarshal(tmp []byte) error {
332 o := binary.BigEndian
336 // field[1] m.ACLIndex
337 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
340 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
345 // ACLDel represents VPP binary API message 'acl_del'.
347 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
350 func (m *ACLDel) Reset() { *m = ACLDel{} }
351 func (*ACLDel) GetMessageName() string { return "acl_del" }
352 func (*ACLDel) GetCrcString() string { return "ef34fea4" }
353 func (*ACLDel) GetMessageType() api.MessageType { return api.RequestMessage }
355 func (m *ACLDel) Size() int {
360 // field[1] m.ACLIndex
364 func (m *ACLDel) Marshal(b []byte) ([]byte, error) {
365 o := binary.BigEndian
371 buf = make([]byte, m.Size())
375 // field[1] m.ACLIndex
376 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
380 func (m *ACLDel) Unmarshal(tmp []byte) error {
381 o := binary.BigEndian
385 // field[1] m.ACLIndex
386 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
391 // ACLDelReply represents VPP binary API message 'acl_del_reply'.
392 type ACLDelReply struct {
393 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
396 func (m *ACLDelReply) Reset() { *m = ACLDelReply{} }
397 func (*ACLDelReply) GetMessageName() string { return "acl_del_reply" }
398 func (*ACLDelReply) GetCrcString() string { return "e8d4e804" }
399 func (*ACLDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
401 func (m *ACLDelReply) Size() int {
410 func (m *ACLDelReply) Marshal(b []byte) ([]byte, error) {
411 o := binary.BigEndian
417 buf = make([]byte, m.Size())
422 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
426 func (m *ACLDelReply) Unmarshal(tmp []byte) error {
427 o := binary.BigEndian
432 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
437 // ACLDetails represents VPP binary API message 'acl_details'.
438 type ACLDetails struct {
439 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
440 Tag []byte `binapi:"u8[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
441 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
442 R []ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
445 func (m *ACLDetails) Reset() { *m = ACLDetails{} }
446 func (*ACLDetails) GetMessageName() string { return "acl_details" }
447 func (*ACLDetails) GetCrcString() string { return "f89d7a88" }
448 func (*ACLDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
450 func (m *ACLDetails) Size() int {
455 // field[1] m.ACLIndex
462 for j1 := 0; j1 < len(m.R); j1++ {
468 // field[2] s1.IsPermit
470 // field[2] s1.IsIPv6
472 // field[2] s1.SrcIPAddr
474 // field[2] s1.SrcIPPrefixLen
476 // field[2] s1.DstIPAddr
478 // field[2] s1.DstIPPrefixLen
482 // field[2] s1.SrcportOrIcmptypeFirst
484 // field[2] s1.SrcportOrIcmptypeLast
486 // field[2] s1.DstportOrIcmpcodeFirst
488 // field[2] s1.DstportOrIcmpcodeLast
490 // field[2] s1.TCPFlagsMask
492 // field[2] s1.TCPFlagsValue
497 func (m *ACLDetails) Marshal(b []byte) ([]byte, error) {
498 o := binary.BigEndian
504 buf = make([]byte, m.Size())
508 // field[1] m.ACLIndex
509 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
512 for i := 0; i < 64; i++ {
521 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
524 for j1 := 0; j1 < len(m.R); j1++ {
529 // field[2] v1.IsPermit
530 buf[pos] = uint8(v1.IsPermit)
532 // field[2] v1.IsIPv6
533 buf[pos] = uint8(v1.IsIPv6)
535 // field[2] v1.SrcIPAddr
536 for i := 0; i < 16; i++ {
538 if i < len(v1.SrcIPAddr) {
539 x = uint8(v1.SrcIPAddr[i])
544 // field[2] v1.SrcIPPrefixLen
545 buf[pos] = uint8(v1.SrcIPPrefixLen)
547 // field[2] v1.DstIPAddr
548 for i := 0; i < 16; i++ {
550 if i < len(v1.DstIPAddr) {
551 x = uint8(v1.DstIPAddr[i])
556 // field[2] v1.DstIPPrefixLen
557 buf[pos] = uint8(v1.DstIPPrefixLen)
560 buf[pos] = uint8(v1.Proto)
562 // field[2] v1.SrcportOrIcmptypeFirst
563 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeFirst))
565 // field[2] v1.SrcportOrIcmptypeLast
566 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeLast))
568 // field[2] v1.DstportOrIcmpcodeFirst
569 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeFirst))
571 // field[2] v1.DstportOrIcmpcodeLast
572 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeLast))
574 // field[2] v1.TCPFlagsMask
575 buf[pos] = uint8(v1.TCPFlagsMask)
577 // field[2] v1.TCPFlagsValue
578 buf[pos] = uint8(v1.TCPFlagsValue)
583 func (m *ACLDetails) Unmarshal(tmp []byte) error {
584 o := binary.BigEndian
588 // field[1] m.ACLIndex
589 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
592 m.Tag = make([]uint8, 64)
593 for i := 0; i < len(m.Tag); i++ {
594 m.Tag[i] = uint8(tmp[pos])
598 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
601 m.R = make([]ACLRule, int(m.Count))
602 for j1 := 0; j1 < int(m.Count); j1++ {
603 // field[2] m.R[j1].IsPermit
604 m.R[j1].IsPermit = uint8(tmp[pos])
606 // field[2] m.R[j1].IsIPv6
607 m.R[j1].IsIPv6 = uint8(tmp[pos])
609 // field[2] m.R[j1].SrcIPAddr
610 m.R[j1].SrcIPAddr = make([]uint8, 16)
611 for i := 0; i < len(m.R[j1].SrcIPAddr); i++ {
612 m.R[j1].SrcIPAddr[i] = uint8(tmp[pos])
615 // field[2] m.R[j1].SrcIPPrefixLen
616 m.R[j1].SrcIPPrefixLen = uint8(tmp[pos])
618 // field[2] m.R[j1].DstIPAddr
619 m.R[j1].DstIPAddr = make([]uint8, 16)
620 for i := 0; i < len(m.R[j1].DstIPAddr); i++ {
621 m.R[j1].DstIPAddr[i] = uint8(tmp[pos])
624 // field[2] m.R[j1].DstIPPrefixLen
625 m.R[j1].DstIPPrefixLen = uint8(tmp[pos])
627 // field[2] m.R[j1].Proto
628 m.R[j1].Proto = uint8(tmp[pos])
630 // field[2] m.R[j1].SrcportOrIcmptypeFirst
631 m.R[j1].SrcportOrIcmptypeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
633 // field[2] m.R[j1].SrcportOrIcmptypeLast
634 m.R[j1].SrcportOrIcmptypeLast = uint16(o.Uint16(tmp[pos : pos+2]))
636 // field[2] m.R[j1].DstportOrIcmpcodeFirst
637 m.R[j1].DstportOrIcmpcodeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
639 // field[2] m.R[j1].DstportOrIcmpcodeLast
640 m.R[j1].DstportOrIcmpcodeLast = uint16(o.Uint16(tmp[pos : pos+2]))
642 // field[2] m.R[j1].TCPFlagsMask
643 m.R[j1].TCPFlagsMask = uint8(tmp[pos])
645 // field[2] m.R[j1].TCPFlagsValue
646 m.R[j1].TCPFlagsValue = uint8(tmp[pos])
652 // ACLDump represents VPP binary API message 'acl_dump'.
653 type ACLDump struct {
654 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
657 func (m *ACLDump) Reset() { *m = ACLDump{} }
658 func (*ACLDump) GetMessageName() string { return "acl_dump" }
659 func (*ACLDump) GetCrcString() string { return "ef34fea4" }
660 func (*ACLDump) GetMessageType() api.MessageType { return api.RequestMessage }
662 func (m *ACLDump) Size() int {
667 // field[1] m.ACLIndex
671 func (m *ACLDump) Marshal(b []byte) ([]byte, error) {
672 o := binary.BigEndian
678 buf = make([]byte, m.Size())
682 // field[1] m.ACLIndex
683 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
687 func (m *ACLDump) Unmarshal(tmp []byte) error {
688 o := binary.BigEndian
692 // field[1] m.ACLIndex
693 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
698 // ACLInterfaceAddDel represents VPP binary API message 'acl_interface_add_del'.
699 type ACLInterfaceAddDel struct {
700 IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"`
701 IsInput uint8 `binapi:"u8,name=is_input" json:"is_input,omitempty"`
702 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
703 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
706 func (m *ACLInterfaceAddDel) Reset() { *m = ACLInterfaceAddDel{} }
707 func (*ACLInterfaceAddDel) GetMessageName() string { return "acl_interface_add_del" }
708 func (*ACLInterfaceAddDel) GetCrcString() string { return "0b2aedd1" }
709 func (*ACLInterfaceAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
711 func (m *ACLInterfaceAddDel) Size() int {
718 // field[1] m.IsInput
720 // field[1] m.SwIfIndex
722 // field[1] m.ACLIndex
726 func (m *ACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
727 o := binary.BigEndian
733 buf = make([]byte, m.Size())
738 buf[pos] = uint8(m.IsAdd)
740 // field[1] m.IsInput
741 buf[pos] = uint8(m.IsInput)
743 // field[1] m.SwIfIndex
744 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
746 // field[1] m.ACLIndex
747 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
751 func (m *ACLInterfaceAddDel) Unmarshal(tmp []byte) error {
752 o := binary.BigEndian
757 m.IsAdd = uint8(tmp[pos])
759 // field[1] m.IsInput
760 m.IsInput = uint8(tmp[pos])
762 // field[1] m.SwIfIndex
763 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
765 // field[1] m.ACLIndex
766 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
771 // ACLInterfaceAddDelReply represents VPP binary API message 'acl_interface_add_del_reply'.
772 type ACLInterfaceAddDelReply struct {
773 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
776 func (m *ACLInterfaceAddDelReply) Reset() { *m = ACLInterfaceAddDelReply{} }
777 func (*ACLInterfaceAddDelReply) GetMessageName() string { return "acl_interface_add_del_reply" }
778 func (*ACLInterfaceAddDelReply) GetCrcString() string { return "e8d4e804" }
779 func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
781 func (m *ACLInterfaceAddDelReply) Size() int {
790 func (m *ACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
791 o := binary.BigEndian
797 buf = make([]byte, m.Size())
802 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
806 func (m *ACLInterfaceAddDelReply) Unmarshal(tmp []byte) error {
807 o := binary.BigEndian
812 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
817 // ACLInterfaceEtypeWhitelistDetails represents VPP binary API message 'acl_interface_etype_whitelist_details'.
818 type ACLInterfaceEtypeWhitelistDetails struct {
819 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
820 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Whitelist"`
821 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
822 Whitelist []uint16 `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
825 func (m *ACLInterfaceEtypeWhitelistDetails) Reset() { *m = ACLInterfaceEtypeWhitelistDetails{} }
826 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string {
827 return "acl_interface_etype_whitelist_details"
829 func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string { return "6a5d4e81" }
830 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
832 func (m *ACLInterfaceEtypeWhitelistDetails) Size() int {
837 // field[1] m.SwIfIndex
843 // field[1] m.Whitelist
844 size += 2 * len(m.Whitelist)
847 func (m *ACLInterfaceEtypeWhitelistDetails) Marshal(b []byte) ([]byte, error) {
848 o := binary.BigEndian
854 buf = make([]byte, m.Size())
858 // field[1] m.SwIfIndex
859 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
862 buf[pos] = uint8(len(m.Whitelist))
865 buf[pos] = uint8(m.NInput)
867 // field[1] m.Whitelist
868 for i := 0; i < len(m.Whitelist); i++ {
870 if i < len(m.Whitelist) {
871 x = uint16(m.Whitelist[i])
873 o.PutUint16(buf[pos:pos+2], uint16(x))
878 func (m *ACLInterfaceEtypeWhitelistDetails) Unmarshal(tmp []byte) error {
879 o := binary.BigEndian
883 // field[1] m.SwIfIndex
884 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
887 m.Count = uint8(tmp[pos])
890 m.NInput = uint8(tmp[pos])
892 // field[1] m.Whitelist
893 m.Whitelist = make([]uint16, m.Count)
894 for i := 0; i < len(m.Whitelist); i++ {
895 m.Whitelist[i] = uint16(o.Uint16(tmp[pos : pos+2]))
901 // ACLInterfaceEtypeWhitelistDump represents VPP binary API message 'acl_interface_etype_whitelist_dump'.
902 type ACLInterfaceEtypeWhitelistDump struct {
903 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
906 func (m *ACLInterfaceEtypeWhitelistDump) Reset() { *m = ACLInterfaceEtypeWhitelistDump{} }
907 func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string {
908 return "acl_interface_etype_whitelist_dump"
910 func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string { return "529cb13f" }
911 func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType { return api.RequestMessage }
913 func (m *ACLInterfaceEtypeWhitelistDump) Size() int {
918 // field[1] m.SwIfIndex
922 func (m *ACLInterfaceEtypeWhitelistDump) Marshal(b []byte) ([]byte, error) {
923 o := binary.BigEndian
929 buf = make([]byte, m.Size())
933 // field[1] m.SwIfIndex
934 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
938 func (m *ACLInterfaceEtypeWhitelistDump) Unmarshal(tmp []byte) error {
939 o := binary.BigEndian
943 // field[1] m.SwIfIndex
944 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
949 // ACLInterfaceListDetails represents VPP binary API message 'acl_interface_list_details'.
950 type ACLInterfaceListDetails struct {
951 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
952 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
953 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
954 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
957 func (m *ACLInterfaceListDetails) Reset() { *m = ACLInterfaceListDetails{} }
958 func (*ACLInterfaceListDetails) GetMessageName() string { return "acl_interface_list_details" }
959 func (*ACLInterfaceListDetails) GetCrcString() string { return "d5e80809" }
960 func (*ACLInterfaceListDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
962 func (m *ACLInterfaceListDetails) Size() int {
967 // field[1] m.SwIfIndex
974 size += 4 * len(m.Acls)
977 func (m *ACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
978 o := binary.BigEndian
984 buf = make([]byte, m.Size())
988 // field[1] m.SwIfIndex
989 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
992 buf[pos] = uint8(len(m.Acls))
995 buf[pos] = uint8(m.NInput)
998 for i := 0; i < len(m.Acls); i++ {
1000 if i < len(m.Acls) {
1001 x = uint32(m.Acls[i])
1003 o.PutUint32(buf[pos:pos+4], uint32(x))
1008 func (m *ACLInterfaceListDetails) Unmarshal(tmp []byte) error {
1009 o := binary.BigEndian
1013 // field[1] m.SwIfIndex
1014 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1017 m.Count = uint8(tmp[pos])
1019 // field[1] m.NInput
1020 m.NInput = uint8(tmp[pos])
1023 m.Acls = make([]uint32, m.Count)
1024 for i := 0; i < len(m.Acls); i++ {
1025 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
1031 // ACLInterfaceListDump represents VPP binary API message 'acl_interface_list_dump'.
1032 type ACLInterfaceListDump struct {
1033 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
1036 func (m *ACLInterfaceListDump) Reset() { *m = ACLInterfaceListDump{} }
1037 func (*ACLInterfaceListDump) GetMessageName() string { return "acl_interface_list_dump" }
1038 func (*ACLInterfaceListDump) GetCrcString() string { return "529cb13f" }
1039 func (*ACLInterfaceListDump) GetMessageType() api.MessageType { return api.RequestMessage }
1041 func (m *ACLInterfaceListDump) Size() int {
1046 // field[1] m.SwIfIndex
1050 func (m *ACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
1051 o := binary.BigEndian
1057 buf = make([]byte, m.Size())
1061 // field[1] m.SwIfIndex
1062 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1066 func (m *ACLInterfaceListDump) Unmarshal(tmp []byte) error {
1067 o := binary.BigEndian
1071 // field[1] m.SwIfIndex
1072 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1077 // ACLInterfaceSetACLList represents VPP binary API message 'acl_interface_set_acl_list'.
1078 type ACLInterfaceSetACLList struct {
1079 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
1080 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
1081 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
1082 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
1085 func (m *ACLInterfaceSetACLList) Reset() { *m = ACLInterfaceSetACLList{} }
1086 func (*ACLInterfaceSetACLList) GetMessageName() string { return "acl_interface_set_acl_list" }
1087 func (*ACLInterfaceSetACLList) GetCrcString() string { return "8baece38" }
1088 func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType { return api.RequestMessage }
1090 func (m *ACLInterfaceSetACLList) Size() int {
1095 // field[1] m.SwIfIndex
1099 // field[1] m.NInput
1102 size += 4 * len(m.Acls)
1105 func (m *ACLInterfaceSetACLList) Marshal(b []byte) ([]byte, error) {
1106 o := binary.BigEndian
1112 buf = make([]byte, m.Size())
1116 // field[1] m.SwIfIndex
1117 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1120 buf[pos] = uint8(len(m.Acls))
1122 // field[1] m.NInput
1123 buf[pos] = uint8(m.NInput)
1126 for i := 0; i < len(m.Acls); i++ {
1128 if i < len(m.Acls) {
1129 x = uint32(m.Acls[i])
1131 o.PutUint32(buf[pos:pos+4], uint32(x))
1136 func (m *ACLInterfaceSetACLList) Unmarshal(tmp []byte) error {
1137 o := binary.BigEndian
1141 // field[1] m.SwIfIndex
1142 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1145 m.Count = uint8(tmp[pos])
1147 // field[1] m.NInput
1148 m.NInput = uint8(tmp[pos])
1151 m.Acls = make([]uint32, m.Count)
1152 for i := 0; i < len(m.Acls); i++ {
1153 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
1159 // ACLInterfaceSetACLListReply represents VPP binary API message 'acl_interface_set_acl_list_reply'.
1160 type ACLInterfaceSetACLListReply struct {
1161 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1164 func (m *ACLInterfaceSetACLListReply) Reset() { *m = ACLInterfaceSetACLListReply{} }
1165 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
1166 return "acl_interface_set_acl_list_reply"
1168 func (*ACLInterfaceSetACLListReply) GetCrcString() string { return "e8d4e804" }
1169 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1171 func (m *ACLInterfaceSetACLListReply) Size() int {
1176 // field[1] m.Retval
1180 func (m *ACLInterfaceSetACLListReply) Marshal(b []byte) ([]byte, error) {
1181 o := binary.BigEndian
1187 buf = make([]byte, m.Size())
1191 // field[1] m.Retval
1192 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1196 func (m *ACLInterfaceSetACLListReply) Unmarshal(tmp []byte) error {
1197 o := binary.BigEndian
1201 // field[1] m.Retval
1202 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1207 // ACLInterfaceSetEtypeWhitelist represents VPP binary API message 'acl_interface_set_etype_whitelist'.
1208 type ACLInterfaceSetEtypeWhitelist struct {
1209 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
1210 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Whitelist"`
1211 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
1212 Whitelist []uint16 `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
1215 func (m *ACLInterfaceSetEtypeWhitelist) Reset() { *m = ACLInterfaceSetEtypeWhitelist{} }
1216 func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string {
1217 return "acl_interface_set_etype_whitelist"
1219 func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string { return "f515efc5" }
1220 func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType { return api.RequestMessage }
1222 func (m *ACLInterfaceSetEtypeWhitelist) Size() int {
1227 // field[1] m.SwIfIndex
1231 // field[1] m.NInput
1233 // field[1] m.Whitelist
1234 size += 2 * len(m.Whitelist)
1237 func (m *ACLInterfaceSetEtypeWhitelist) Marshal(b []byte) ([]byte, error) {
1238 o := binary.BigEndian
1244 buf = make([]byte, m.Size())
1248 // field[1] m.SwIfIndex
1249 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1252 buf[pos] = uint8(len(m.Whitelist))
1254 // field[1] m.NInput
1255 buf[pos] = uint8(m.NInput)
1257 // field[1] m.Whitelist
1258 for i := 0; i < len(m.Whitelist); i++ {
1260 if i < len(m.Whitelist) {
1261 x = uint16(m.Whitelist[i])
1263 o.PutUint16(buf[pos:pos+2], uint16(x))
1268 func (m *ACLInterfaceSetEtypeWhitelist) Unmarshal(tmp []byte) error {
1269 o := binary.BigEndian
1273 // field[1] m.SwIfIndex
1274 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1277 m.Count = uint8(tmp[pos])
1279 // field[1] m.NInput
1280 m.NInput = uint8(tmp[pos])
1282 // field[1] m.Whitelist
1283 m.Whitelist = make([]uint16, m.Count)
1284 for i := 0; i < len(m.Whitelist); i++ {
1285 m.Whitelist[i] = uint16(o.Uint16(tmp[pos : pos+2]))
1291 // ACLInterfaceSetEtypeWhitelistReply represents VPP binary API message 'acl_interface_set_etype_whitelist_reply'.
1292 type ACLInterfaceSetEtypeWhitelistReply struct {
1293 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1296 func (m *ACLInterfaceSetEtypeWhitelistReply) Reset() { *m = ACLInterfaceSetEtypeWhitelistReply{} }
1297 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string {
1298 return "acl_interface_set_etype_whitelist_reply"
1300 func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string { return "e8d4e804" }
1301 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1303 func (m *ACLInterfaceSetEtypeWhitelistReply) Size() int {
1308 // field[1] m.Retval
1312 func (m *ACLInterfaceSetEtypeWhitelistReply) Marshal(b []byte) ([]byte, error) {
1313 o := binary.BigEndian
1319 buf = make([]byte, m.Size())
1323 // field[1] m.Retval
1324 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1328 func (m *ACLInterfaceSetEtypeWhitelistReply) Unmarshal(tmp []byte) error {
1329 o := binary.BigEndian
1333 // field[1] m.Retval
1334 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1339 // ACLPluginControlPing represents VPP binary API message 'acl_plugin_control_ping'.
1340 type ACLPluginControlPing struct{}
1342 func (m *ACLPluginControlPing) Reset() { *m = ACLPluginControlPing{} }
1343 func (*ACLPluginControlPing) GetMessageName() string { return "acl_plugin_control_ping" }
1344 func (*ACLPluginControlPing) GetCrcString() string { return "51077d14" }
1345 func (*ACLPluginControlPing) GetMessageType() api.MessageType { return api.RequestMessage }
1347 func (m *ACLPluginControlPing) Size() int {
1354 func (m *ACLPluginControlPing) Marshal(b []byte) ([]byte, error) {
1355 o := binary.BigEndian
1361 buf = make([]byte, m.Size())
1367 func (m *ACLPluginControlPing) Unmarshal(tmp []byte) error {
1368 o := binary.BigEndian
1375 // ACLPluginControlPingReply represents VPP binary API message 'acl_plugin_control_ping_reply'.
1376 type ACLPluginControlPingReply struct {
1377 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1378 ClientIndex uint32 `binapi:"u32,name=client_index" json:"client_index,omitempty"`
1379 VpePID uint32 `binapi:"u32,name=vpe_pid" json:"vpe_pid,omitempty"`
1382 func (m *ACLPluginControlPingReply) Reset() { *m = ACLPluginControlPingReply{} }
1383 func (*ACLPluginControlPingReply) GetMessageName() string { return "acl_plugin_control_ping_reply" }
1384 func (*ACLPluginControlPingReply) GetCrcString() string { return "f6b0b8ca" }
1385 func (*ACLPluginControlPingReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1387 func (m *ACLPluginControlPingReply) Size() int {
1392 // field[1] m.Retval
1394 // field[1] m.ClientIndex
1396 // field[1] m.VpePID
1400 func (m *ACLPluginControlPingReply) Marshal(b []byte) ([]byte, error) {
1401 o := binary.BigEndian
1407 buf = make([]byte, m.Size())
1411 // field[1] m.Retval
1412 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1414 // field[1] m.ClientIndex
1415 o.PutUint32(buf[pos:pos+4], uint32(m.ClientIndex))
1417 // field[1] m.VpePID
1418 o.PutUint32(buf[pos:pos+4], uint32(m.VpePID))
1422 func (m *ACLPluginControlPingReply) Unmarshal(tmp []byte) error {
1423 o := binary.BigEndian
1427 // field[1] m.Retval
1428 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1430 // field[1] m.ClientIndex
1431 m.ClientIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1433 // field[1] m.VpePID
1434 m.VpePID = uint32(o.Uint32(tmp[pos : pos+4]))
1439 // ACLPluginGetConnTableMaxEntries represents VPP binary API message 'acl_plugin_get_conn_table_max_entries'.
1440 type ACLPluginGetConnTableMaxEntries struct{}
1442 func (m *ACLPluginGetConnTableMaxEntries) Reset() { *m = ACLPluginGetConnTableMaxEntries{} }
1443 func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string {
1444 return "acl_plugin_get_conn_table_max_entries"
1446 func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string { return "51077d14" }
1447 func (*ACLPluginGetConnTableMaxEntries) GetMessageType() api.MessageType { return api.RequestMessage }
1449 func (m *ACLPluginGetConnTableMaxEntries) Size() int {
1456 func (m *ACLPluginGetConnTableMaxEntries) Marshal(b []byte) ([]byte, error) {
1457 o := binary.BigEndian
1463 buf = make([]byte, m.Size())
1469 func (m *ACLPluginGetConnTableMaxEntries) Unmarshal(tmp []byte) error {
1470 o := binary.BigEndian
1477 // ACLPluginGetConnTableMaxEntriesReply represents VPP binary API message 'acl_plugin_get_conn_table_max_entries_reply'.
1478 type ACLPluginGetConnTableMaxEntriesReply struct {
1479 ConnTableMaxEntries uint64 `binapi:"u64,name=conn_table_max_entries" json:"conn_table_max_entries,omitempty"`
1482 func (m *ACLPluginGetConnTableMaxEntriesReply) Reset() { *m = ACLPluginGetConnTableMaxEntriesReply{} }
1483 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string {
1484 return "acl_plugin_get_conn_table_max_entries_reply"
1486 func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString() string { return "7a096d3d" }
1487 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType() api.MessageType {
1488 return api.ReplyMessage
1491 func (m *ACLPluginGetConnTableMaxEntriesReply) Size() int {
1496 // field[1] m.ConnTableMaxEntries
1500 func (m *ACLPluginGetConnTableMaxEntriesReply) Marshal(b []byte) ([]byte, error) {
1501 o := binary.BigEndian
1507 buf = make([]byte, m.Size())
1511 // field[1] m.ConnTableMaxEntries
1512 o.PutUint64(buf[pos:pos+8], uint64(m.ConnTableMaxEntries))
1516 func (m *ACLPluginGetConnTableMaxEntriesReply) Unmarshal(tmp []byte) error {
1517 o := binary.BigEndian
1521 // field[1] m.ConnTableMaxEntries
1522 m.ConnTableMaxEntries = uint64(o.Uint64(tmp[pos : pos+8]))
1527 // ACLPluginGetVersion represents VPP binary API message 'acl_plugin_get_version'.
1528 type ACLPluginGetVersion struct{}
1530 func (m *ACLPluginGetVersion) Reset() { *m = ACLPluginGetVersion{} }
1531 func (*ACLPluginGetVersion) GetMessageName() string { return "acl_plugin_get_version" }
1532 func (*ACLPluginGetVersion) GetCrcString() string { return "51077d14" }
1533 func (*ACLPluginGetVersion) GetMessageType() api.MessageType { return api.RequestMessage }
1535 func (m *ACLPluginGetVersion) Size() int {
1542 func (m *ACLPluginGetVersion) Marshal(b []byte) ([]byte, error) {
1543 o := binary.BigEndian
1549 buf = make([]byte, m.Size())
1555 func (m *ACLPluginGetVersion) Unmarshal(tmp []byte) error {
1556 o := binary.BigEndian
1563 // ACLPluginGetVersionReply represents VPP binary API message 'acl_plugin_get_version_reply'.
1564 type ACLPluginGetVersionReply struct {
1565 Major uint32 `binapi:"u32,name=major" json:"major,omitempty"`
1566 Minor uint32 `binapi:"u32,name=minor" json:"minor,omitempty"`
1569 func (m *ACLPluginGetVersionReply) Reset() { *m = ACLPluginGetVersionReply{} }
1570 func (*ACLPluginGetVersionReply) GetMessageName() string { return "acl_plugin_get_version_reply" }
1571 func (*ACLPluginGetVersionReply) GetCrcString() string { return "9b32cf86" }
1572 func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1574 func (m *ACLPluginGetVersionReply) Size() int {
1585 func (m *ACLPluginGetVersionReply) Marshal(b []byte) ([]byte, error) {
1586 o := binary.BigEndian
1592 buf = make([]byte, m.Size())
1597 o.PutUint32(buf[pos:pos+4], uint32(m.Major))
1600 o.PutUint32(buf[pos:pos+4], uint32(m.Minor))
1604 func (m *ACLPluginGetVersionReply) Unmarshal(tmp []byte) error {
1605 o := binary.BigEndian
1610 m.Major = uint32(o.Uint32(tmp[pos : pos+4]))
1613 m.Minor = uint32(o.Uint32(tmp[pos : pos+4]))
1618 // ACLStatsIntfCountersEnable represents VPP binary API message 'acl_stats_intf_counters_enable'.
1619 type ACLStatsIntfCountersEnable struct {
1620 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1623 func (m *ACLStatsIntfCountersEnable) Reset() { *m = ACLStatsIntfCountersEnable{} }
1624 func (*ACLStatsIntfCountersEnable) GetMessageName() string { return "acl_stats_intf_counters_enable" }
1625 func (*ACLStatsIntfCountersEnable) GetCrcString() string { return "b3e225d2" }
1626 func (*ACLStatsIntfCountersEnable) GetMessageType() api.MessageType { return api.RequestMessage }
1628 func (m *ACLStatsIntfCountersEnable) Size() int {
1633 // field[1] m.Enable
1637 func (m *ACLStatsIntfCountersEnable) Marshal(b []byte) ([]byte, error) {
1638 o := binary.BigEndian
1644 buf = make([]byte, m.Size())
1648 // field[1] m.Enable
1655 func (m *ACLStatsIntfCountersEnable) Unmarshal(tmp []byte) error {
1656 o := binary.BigEndian
1660 // field[1] m.Enable
1661 m.Enable = tmp[pos] != 0
1666 // ACLStatsIntfCountersEnableReply represents VPP binary API message 'acl_stats_intf_counters_enable_reply'.
1667 type ACLStatsIntfCountersEnableReply struct {
1668 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1671 func (m *ACLStatsIntfCountersEnableReply) Reset() { *m = ACLStatsIntfCountersEnableReply{} }
1672 func (*ACLStatsIntfCountersEnableReply) GetMessageName() string {
1673 return "acl_stats_intf_counters_enable_reply"
1675 func (*ACLStatsIntfCountersEnableReply) GetCrcString() string { return "e8d4e804" }
1676 func (*ACLStatsIntfCountersEnableReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1678 func (m *ACLStatsIntfCountersEnableReply) Size() int {
1683 // field[1] m.Retval
1687 func (m *ACLStatsIntfCountersEnableReply) Marshal(b []byte) ([]byte, error) {
1688 o := binary.BigEndian
1694 buf = make([]byte, m.Size())
1698 // field[1] m.Retval
1699 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1703 func (m *ACLStatsIntfCountersEnableReply) Unmarshal(tmp []byte) error {
1704 o := binary.BigEndian
1708 // field[1] m.Retval
1709 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1714 // MacipACLAdd represents VPP binary API message 'macip_acl_add'.
1715 type MacipACLAdd struct {
1716 Tag []byte `binapi:"u8[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
1717 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
1718 R []MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
1721 func (m *MacipACLAdd) Reset() { *m = MacipACLAdd{} }
1722 func (*MacipACLAdd) GetMessageName() string { return "macip_acl_add" }
1723 func (*MacipACLAdd) GetCrcString() string { return "0c680ca5" }
1724 func (*MacipACLAdd) GetMessageType() api.MessageType { return api.RequestMessage }
1726 func (m *MacipACLAdd) Size() int {
1736 for j1 := 0; j1 < len(m.R); j1++ {
1742 // field[2] s1.IsPermit
1744 // field[2] s1.IsIPv6
1746 // field[2] s1.SrcMac
1748 // field[2] s1.SrcMacMask
1750 // field[2] s1.SrcIPAddr
1752 // field[2] s1.SrcIPPrefixLen
1757 func (m *MacipACLAdd) Marshal(b []byte) ([]byte, error) {
1758 o := binary.BigEndian
1764 buf = make([]byte, m.Size())
1769 for i := 0; i < 64; i++ {
1778 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
1781 for j1 := 0; j1 < len(m.R); j1++ {
1786 // field[2] v1.IsPermit
1787 buf[pos] = uint8(v1.IsPermit)
1789 // field[2] v1.IsIPv6
1790 buf[pos] = uint8(v1.IsIPv6)
1792 // field[2] v1.SrcMac
1793 for i := 0; i < 6; i++ {
1795 if i < len(v1.SrcMac) {
1796 x = uint8(v1.SrcMac[i])
1801 // field[2] v1.SrcMacMask
1802 for i := 0; i < 6; i++ {
1804 if i < len(v1.SrcMacMask) {
1805 x = uint8(v1.SrcMacMask[i])
1810 // field[2] v1.SrcIPAddr
1811 for i := 0; i < 16; i++ {
1813 if i < len(v1.SrcIPAddr) {
1814 x = uint8(v1.SrcIPAddr[i])
1819 // field[2] v1.SrcIPPrefixLen
1820 buf[pos] = uint8(v1.SrcIPPrefixLen)
1825 func (m *MacipACLAdd) Unmarshal(tmp []byte) error {
1826 o := binary.BigEndian
1831 m.Tag = make([]uint8, 64)
1832 for i := 0; i < len(m.Tag); i++ {
1833 m.Tag[i] = uint8(tmp[pos])
1837 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
1840 m.R = make([]MacipACLRule, int(m.Count))
1841 for j1 := 0; j1 < int(m.Count); j1++ {
1842 // field[2] m.R[j1].IsPermit
1843 m.R[j1].IsPermit = uint8(tmp[pos])
1845 // field[2] m.R[j1].IsIPv6
1846 m.R[j1].IsIPv6 = uint8(tmp[pos])
1848 // field[2] m.R[j1].SrcMac
1849 m.R[j1].SrcMac = make([]uint8, 6)
1850 for i := 0; i < len(m.R[j1].SrcMac); i++ {
1851 m.R[j1].SrcMac[i] = uint8(tmp[pos])
1854 // field[2] m.R[j1].SrcMacMask
1855 m.R[j1].SrcMacMask = make([]uint8, 6)
1856 for i := 0; i < len(m.R[j1].SrcMacMask); i++ {
1857 m.R[j1].SrcMacMask[i] = uint8(tmp[pos])
1860 // field[2] m.R[j1].SrcIPAddr
1861 m.R[j1].SrcIPAddr = make([]uint8, 16)
1862 for i := 0; i < len(m.R[j1].SrcIPAddr); i++ {
1863 m.R[j1].SrcIPAddr[i] = uint8(tmp[pos])
1866 // field[2] m.R[j1].SrcIPPrefixLen
1867 m.R[j1].SrcIPPrefixLen = uint8(tmp[pos])
1873 // MacipACLAddReplace represents VPP binary API message 'macip_acl_add_replace'.
1874 type MacipACLAddReplace struct {
1875 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
1876 Tag []byte `binapi:"u8[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
1877 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
1878 R []MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
1881 func (m *MacipACLAddReplace) Reset() { *m = MacipACLAddReplace{} }
1882 func (*MacipACLAddReplace) GetMessageName() string { return "macip_acl_add_replace" }
1883 func (*MacipACLAddReplace) GetCrcString() string { return "d3d313e7" }
1884 func (*MacipACLAddReplace) GetMessageType() api.MessageType { return api.RequestMessage }
1886 func (m *MacipACLAddReplace) Size() int {
1891 // field[1] m.ACLIndex
1898 for j1 := 0; j1 < len(m.R); j1++ {
1904 // field[2] s1.IsPermit
1906 // field[2] s1.IsIPv6
1908 // field[2] s1.SrcMac
1910 // field[2] s1.SrcMacMask
1912 // field[2] s1.SrcIPAddr
1914 // field[2] s1.SrcIPPrefixLen
1919 func (m *MacipACLAddReplace) Marshal(b []byte) ([]byte, error) {
1920 o := binary.BigEndian
1926 buf = make([]byte, m.Size())
1930 // field[1] m.ACLIndex
1931 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
1934 for i := 0; i < 64; i++ {
1943 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
1946 for j1 := 0; j1 < len(m.R); j1++ {
1951 // field[2] v1.IsPermit
1952 buf[pos] = uint8(v1.IsPermit)
1954 // field[2] v1.IsIPv6
1955 buf[pos] = uint8(v1.IsIPv6)
1957 // field[2] v1.SrcMac
1958 for i := 0; i < 6; i++ {
1960 if i < len(v1.SrcMac) {
1961 x = uint8(v1.SrcMac[i])
1966 // field[2] v1.SrcMacMask
1967 for i := 0; i < 6; i++ {
1969 if i < len(v1.SrcMacMask) {
1970 x = uint8(v1.SrcMacMask[i])
1975 // field[2] v1.SrcIPAddr
1976 for i := 0; i < 16; i++ {
1978 if i < len(v1.SrcIPAddr) {
1979 x = uint8(v1.SrcIPAddr[i])
1984 // field[2] v1.SrcIPPrefixLen
1985 buf[pos] = uint8(v1.SrcIPPrefixLen)
1990 func (m *MacipACLAddReplace) Unmarshal(tmp []byte) error {
1991 o := binary.BigEndian
1995 // field[1] m.ACLIndex
1996 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1999 m.Tag = make([]uint8, 64)
2000 for i := 0; i < len(m.Tag); i++ {
2001 m.Tag[i] = uint8(tmp[pos])
2005 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
2008 m.R = make([]MacipACLRule, int(m.Count))
2009 for j1 := 0; j1 < int(m.Count); j1++ {
2010 // field[2] m.R[j1].IsPermit
2011 m.R[j1].IsPermit = uint8(tmp[pos])
2013 // field[2] m.R[j1].IsIPv6
2014 m.R[j1].IsIPv6 = uint8(tmp[pos])
2016 // field[2] m.R[j1].SrcMac
2017 m.R[j1].SrcMac = make([]uint8, 6)
2018 for i := 0; i < len(m.R[j1].SrcMac); i++ {
2019 m.R[j1].SrcMac[i] = uint8(tmp[pos])
2022 // field[2] m.R[j1].SrcMacMask
2023 m.R[j1].SrcMacMask = make([]uint8, 6)
2024 for i := 0; i < len(m.R[j1].SrcMacMask); i++ {
2025 m.R[j1].SrcMacMask[i] = uint8(tmp[pos])
2028 // field[2] m.R[j1].SrcIPAddr
2029 m.R[j1].SrcIPAddr = make([]uint8, 16)
2030 for i := 0; i < len(m.R[j1].SrcIPAddr); i++ {
2031 m.R[j1].SrcIPAddr[i] = uint8(tmp[pos])
2034 // field[2] m.R[j1].SrcIPPrefixLen
2035 m.R[j1].SrcIPPrefixLen = uint8(tmp[pos])
2041 // MacipACLAddReplaceReply represents VPP binary API message 'macip_acl_add_replace_reply'.
2042 type MacipACLAddReplaceReply struct {
2043 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2044 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2047 func (m *MacipACLAddReplaceReply) Reset() { *m = MacipACLAddReplaceReply{} }
2048 func (*MacipACLAddReplaceReply) GetMessageName() string { return "macip_acl_add_replace_reply" }
2049 func (*MacipACLAddReplaceReply) GetCrcString() string { return "ac407b0c" }
2050 func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2052 func (m *MacipACLAddReplaceReply) Size() int {
2057 // field[1] m.ACLIndex
2059 // field[1] m.Retval
2063 func (m *MacipACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
2064 o := binary.BigEndian
2070 buf = make([]byte, m.Size())
2074 // field[1] m.ACLIndex
2075 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2077 // field[1] m.Retval
2078 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2082 func (m *MacipACLAddReplaceReply) Unmarshal(tmp []byte) error {
2083 o := binary.BigEndian
2087 // field[1] m.ACLIndex
2088 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2090 // field[1] m.Retval
2091 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2096 // MacipACLAddReply represents VPP binary API message 'macip_acl_add_reply'.
2097 type MacipACLAddReply struct {
2098 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2099 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2102 func (m *MacipACLAddReply) Reset() { *m = MacipACLAddReply{} }
2103 func (*MacipACLAddReply) GetMessageName() string { return "macip_acl_add_reply" }
2104 func (*MacipACLAddReply) GetCrcString() string { return "ac407b0c" }
2105 func (*MacipACLAddReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2107 func (m *MacipACLAddReply) Size() int {
2112 // field[1] m.ACLIndex
2114 // field[1] m.Retval
2118 func (m *MacipACLAddReply) Marshal(b []byte) ([]byte, error) {
2119 o := binary.BigEndian
2125 buf = make([]byte, m.Size())
2129 // field[1] m.ACLIndex
2130 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2132 // field[1] m.Retval
2133 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2137 func (m *MacipACLAddReply) Unmarshal(tmp []byte) error {
2138 o := binary.BigEndian
2142 // field[1] m.ACLIndex
2143 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2145 // field[1] m.Retval
2146 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2151 // MacipACLDel represents VPP binary API message 'macip_acl_del'.
2152 type MacipACLDel struct {
2153 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2156 func (m *MacipACLDel) Reset() { *m = MacipACLDel{} }
2157 func (*MacipACLDel) GetMessageName() string { return "macip_acl_del" }
2158 func (*MacipACLDel) GetCrcString() string { return "ef34fea4" }
2159 func (*MacipACLDel) GetMessageType() api.MessageType { return api.RequestMessage }
2161 func (m *MacipACLDel) Size() int {
2166 // field[1] m.ACLIndex
2170 func (m *MacipACLDel) Marshal(b []byte) ([]byte, error) {
2171 o := binary.BigEndian
2177 buf = make([]byte, m.Size())
2181 // field[1] m.ACLIndex
2182 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2186 func (m *MacipACLDel) Unmarshal(tmp []byte) error {
2187 o := binary.BigEndian
2191 // field[1] m.ACLIndex
2192 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2197 // MacipACLDelReply represents VPP binary API message 'macip_acl_del_reply'.
2198 type MacipACLDelReply struct {
2199 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2202 func (m *MacipACLDelReply) Reset() { *m = MacipACLDelReply{} }
2203 func (*MacipACLDelReply) GetMessageName() string { return "macip_acl_del_reply" }
2204 func (*MacipACLDelReply) GetCrcString() string { return "e8d4e804" }
2205 func (*MacipACLDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2207 func (m *MacipACLDelReply) Size() int {
2212 // field[1] m.Retval
2216 func (m *MacipACLDelReply) Marshal(b []byte) ([]byte, error) {
2217 o := binary.BigEndian
2223 buf = make([]byte, m.Size())
2227 // field[1] m.Retval
2228 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2232 func (m *MacipACLDelReply) Unmarshal(tmp []byte) error {
2233 o := binary.BigEndian
2237 // field[1] m.Retval
2238 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2243 // MacipACLDetails represents VPP binary API message 'macip_acl_details'.
2244 type MacipACLDetails struct {
2245 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2246 Tag []byte `binapi:"u8[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
2247 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
2248 R []MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
2251 func (m *MacipACLDetails) Reset() { *m = MacipACLDetails{} }
2252 func (*MacipACLDetails) GetMessageName() string { return "macip_acl_details" }
2253 func (*MacipACLDetails) GetCrcString() string { return "e164e69a" }
2254 func (*MacipACLDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
2256 func (m *MacipACLDetails) Size() int {
2261 // field[1] m.ACLIndex
2268 for j1 := 0; j1 < len(m.R); j1++ {
2274 // field[2] s1.IsPermit
2276 // field[2] s1.IsIPv6
2278 // field[2] s1.SrcMac
2280 // field[2] s1.SrcMacMask
2282 // field[2] s1.SrcIPAddr
2284 // field[2] s1.SrcIPPrefixLen
2289 func (m *MacipACLDetails) Marshal(b []byte) ([]byte, error) {
2290 o := binary.BigEndian
2296 buf = make([]byte, m.Size())
2300 // field[1] m.ACLIndex
2301 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2304 for i := 0; i < 64; i++ {
2313 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
2316 for j1 := 0; j1 < len(m.R); j1++ {
2321 // field[2] v1.IsPermit
2322 buf[pos] = uint8(v1.IsPermit)
2324 // field[2] v1.IsIPv6
2325 buf[pos] = uint8(v1.IsIPv6)
2327 // field[2] v1.SrcMac
2328 for i := 0; i < 6; i++ {
2330 if i < len(v1.SrcMac) {
2331 x = uint8(v1.SrcMac[i])
2336 // field[2] v1.SrcMacMask
2337 for i := 0; i < 6; i++ {
2339 if i < len(v1.SrcMacMask) {
2340 x = uint8(v1.SrcMacMask[i])
2345 // field[2] v1.SrcIPAddr
2346 for i := 0; i < 16; i++ {
2348 if i < len(v1.SrcIPAddr) {
2349 x = uint8(v1.SrcIPAddr[i])
2354 // field[2] v1.SrcIPPrefixLen
2355 buf[pos] = uint8(v1.SrcIPPrefixLen)
2360 func (m *MacipACLDetails) Unmarshal(tmp []byte) error {
2361 o := binary.BigEndian
2365 // field[1] m.ACLIndex
2366 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2369 m.Tag = make([]uint8, 64)
2370 for i := 0; i < len(m.Tag); i++ {
2371 m.Tag[i] = uint8(tmp[pos])
2375 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
2378 m.R = make([]MacipACLRule, int(m.Count))
2379 for j1 := 0; j1 < int(m.Count); j1++ {
2380 // field[2] m.R[j1].IsPermit
2381 m.R[j1].IsPermit = uint8(tmp[pos])
2383 // field[2] m.R[j1].IsIPv6
2384 m.R[j1].IsIPv6 = uint8(tmp[pos])
2386 // field[2] m.R[j1].SrcMac
2387 m.R[j1].SrcMac = make([]uint8, 6)
2388 for i := 0; i < len(m.R[j1].SrcMac); i++ {
2389 m.R[j1].SrcMac[i] = uint8(tmp[pos])
2392 // field[2] m.R[j1].SrcMacMask
2393 m.R[j1].SrcMacMask = make([]uint8, 6)
2394 for i := 0; i < len(m.R[j1].SrcMacMask); i++ {
2395 m.R[j1].SrcMacMask[i] = uint8(tmp[pos])
2398 // field[2] m.R[j1].SrcIPAddr
2399 m.R[j1].SrcIPAddr = make([]uint8, 16)
2400 for i := 0; i < len(m.R[j1].SrcIPAddr); i++ {
2401 m.R[j1].SrcIPAddr[i] = uint8(tmp[pos])
2404 // field[2] m.R[j1].SrcIPPrefixLen
2405 m.R[j1].SrcIPPrefixLen = uint8(tmp[pos])
2411 // MacipACLDump represents VPP binary API message 'macip_acl_dump'.
2412 type MacipACLDump struct {
2413 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2416 func (m *MacipACLDump) Reset() { *m = MacipACLDump{} }
2417 func (*MacipACLDump) GetMessageName() string { return "macip_acl_dump" }
2418 func (*MacipACLDump) GetCrcString() string { return "ef34fea4" }
2419 func (*MacipACLDump) GetMessageType() api.MessageType { return api.RequestMessage }
2421 func (m *MacipACLDump) Size() int {
2426 // field[1] m.ACLIndex
2430 func (m *MacipACLDump) Marshal(b []byte) ([]byte, error) {
2431 o := binary.BigEndian
2437 buf = make([]byte, m.Size())
2441 // field[1] m.ACLIndex
2442 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2446 func (m *MacipACLDump) Unmarshal(tmp []byte) error {
2447 o := binary.BigEndian
2451 // field[1] m.ACLIndex
2452 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2457 // MacipACLInterfaceAddDel represents VPP binary API message 'macip_acl_interface_add_del'.
2458 type MacipACLInterfaceAddDel struct {
2459 IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"`
2460 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
2461 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2464 func (m *MacipACLInterfaceAddDel) Reset() { *m = MacipACLInterfaceAddDel{} }
2465 func (*MacipACLInterfaceAddDel) GetMessageName() string { return "macip_acl_interface_add_del" }
2466 func (*MacipACLInterfaceAddDel) GetCrcString() string { return "6a6be97c" }
2467 func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
2469 func (m *MacipACLInterfaceAddDel) Size() int {
2476 // field[1] m.SwIfIndex
2478 // field[1] m.ACLIndex
2482 func (m *MacipACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
2483 o := binary.BigEndian
2489 buf = make([]byte, m.Size())
2494 buf[pos] = uint8(m.IsAdd)
2496 // field[1] m.SwIfIndex
2497 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2499 // field[1] m.ACLIndex
2500 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2504 func (m *MacipACLInterfaceAddDel) Unmarshal(tmp []byte) error {
2505 o := binary.BigEndian
2510 m.IsAdd = uint8(tmp[pos])
2512 // field[1] m.SwIfIndex
2513 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2515 // field[1] m.ACLIndex
2516 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2521 // MacipACLInterfaceAddDelReply represents VPP binary API message 'macip_acl_interface_add_del_reply'.
2522 type MacipACLInterfaceAddDelReply struct {
2523 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2526 func (m *MacipACLInterfaceAddDelReply) Reset() { *m = MacipACLInterfaceAddDelReply{} }
2527 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
2528 return "macip_acl_interface_add_del_reply"
2530 func (*MacipACLInterfaceAddDelReply) GetCrcString() string { return "e8d4e804" }
2531 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2533 func (m *MacipACLInterfaceAddDelReply) Size() int {
2538 // field[1] m.Retval
2542 func (m *MacipACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
2543 o := binary.BigEndian
2549 buf = make([]byte, m.Size())
2553 // field[1] m.Retval
2554 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2558 func (m *MacipACLInterfaceAddDelReply) Unmarshal(tmp []byte) error {
2559 o := binary.BigEndian
2563 // field[1] m.Retval
2564 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2569 // MacipACLInterfaceGet represents VPP binary API message 'macip_acl_interface_get'.
2570 type MacipACLInterfaceGet struct{}
2572 func (m *MacipACLInterfaceGet) Reset() { *m = MacipACLInterfaceGet{} }
2573 func (*MacipACLInterfaceGet) GetMessageName() string { return "macip_acl_interface_get" }
2574 func (*MacipACLInterfaceGet) GetCrcString() string { return "51077d14" }
2575 func (*MacipACLInterfaceGet) GetMessageType() api.MessageType { return api.RequestMessage }
2577 func (m *MacipACLInterfaceGet) Size() int {
2584 func (m *MacipACLInterfaceGet) Marshal(b []byte) ([]byte, error) {
2585 o := binary.BigEndian
2591 buf = make([]byte, m.Size())
2597 func (m *MacipACLInterfaceGet) Unmarshal(tmp []byte) error {
2598 o := binary.BigEndian
2605 // MacipACLInterfaceGetReply represents VPP binary API message 'macip_acl_interface_get_reply'.
2606 type MacipACLInterfaceGetReply struct {
2607 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
2608 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
2611 func (m *MacipACLInterfaceGetReply) Reset() { *m = MacipACLInterfaceGetReply{} }
2612 func (*MacipACLInterfaceGetReply) GetMessageName() string { return "macip_acl_interface_get_reply" }
2613 func (*MacipACLInterfaceGetReply) GetCrcString() string { return "accf9b05" }
2614 func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2616 func (m *MacipACLInterfaceGetReply) Size() int {
2624 size += 4 * len(m.Acls)
2627 func (m *MacipACLInterfaceGetReply) Marshal(b []byte) ([]byte, error) {
2628 o := binary.BigEndian
2634 buf = make([]byte, m.Size())
2639 o.PutUint32(buf[pos:pos+4], uint32(len(m.Acls)))
2642 for i := 0; i < len(m.Acls); i++ {
2644 if i < len(m.Acls) {
2645 x = uint32(m.Acls[i])
2647 o.PutUint32(buf[pos:pos+4], uint32(x))
2652 func (m *MacipACLInterfaceGetReply) Unmarshal(tmp []byte) error {
2653 o := binary.BigEndian
2658 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
2661 m.Acls = make([]uint32, m.Count)
2662 for i := 0; i < len(m.Acls); i++ {
2663 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
2669 // MacipACLInterfaceListDetails represents VPP binary API message 'macip_acl_interface_list_details'.
2670 type MacipACLInterfaceListDetails struct {
2671 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
2672 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
2673 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
2676 func (m *MacipACLInterfaceListDetails) Reset() { *m = MacipACLInterfaceListDetails{} }
2677 func (*MacipACLInterfaceListDetails) GetMessageName() string {
2678 return "macip_acl_interface_list_details"
2680 func (*MacipACLInterfaceListDetails) GetCrcString() string { return "29783fa0" }
2681 func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
2683 func (m *MacipACLInterfaceListDetails) Size() int {
2688 // field[1] m.SwIfIndex
2693 size += 4 * len(m.Acls)
2696 func (m *MacipACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
2697 o := binary.BigEndian
2703 buf = make([]byte, m.Size())
2707 // field[1] m.SwIfIndex
2708 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2711 buf[pos] = uint8(len(m.Acls))
2714 for i := 0; i < len(m.Acls); i++ {
2716 if i < len(m.Acls) {
2717 x = uint32(m.Acls[i])
2719 o.PutUint32(buf[pos:pos+4], uint32(x))
2724 func (m *MacipACLInterfaceListDetails) Unmarshal(tmp []byte) error {
2725 o := binary.BigEndian
2729 // field[1] m.SwIfIndex
2730 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2733 m.Count = uint8(tmp[pos])
2736 m.Acls = make([]uint32, m.Count)
2737 for i := 0; i < len(m.Acls); i++ {
2738 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
2744 // MacipACLInterfaceListDump represents VPP binary API message 'macip_acl_interface_list_dump'.
2745 type MacipACLInterfaceListDump struct {
2746 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
2749 func (m *MacipACLInterfaceListDump) Reset() { *m = MacipACLInterfaceListDump{} }
2750 func (*MacipACLInterfaceListDump) GetMessageName() string { return "macip_acl_interface_list_dump" }
2751 func (*MacipACLInterfaceListDump) GetCrcString() string { return "529cb13f" }
2752 func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType { return api.RequestMessage }
2754 func (m *MacipACLInterfaceListDump) Size() int {
2759 // field[1] m.SwIfIndex
2763 func (m *MacipACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
2764 o := binary.BigEndian
2770 buf = make([]byte, m.Size())
2774 // field[1] m.SwIfIndex
2775 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2779 func (m *MacipACLInterfaceListDump) Unmarshal(tmp []byte) error {
2780 o := binary.BigEndian
2784 // field[1] m.SwIfIndex
2785 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2790 func init() { file_acl_binapi_init() }
2791 func file_acl_binapi_init() {
2792 api.RegisterMessage((*ACLAddReplace)(nil), "acl.ACLAddReplace")
2793 api.RegisterMessage((*ACLAddReplaceReply)(nil), "acl.ACLAddReplaceReply")
2794 api.RegisterMessage((*ACLDel)(nil), "acl.ACLDel")
2795 api.RegisterMessage((*ACLDelReply)(nil), "acl.ACLDelReply")
2796 api.RegisterMessage((*ACLDetails)(nil), "acl.ACLDetails")
2797 api.RegisterMessage((*ACLDump)(nil), "acl.ACLDump")
2798 api.RegisterMessage((*ACLInterfaceAddDel)(nil), "acl.ACLInterfaceAddDel")
2799 api.RegisterMessage((*ACLInterfaceAddDelReply)(nil), "acl.ACLInterfaceAddDelReply")
2800 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDetails)(nil), "acl.ACLInterfaceEtypeWhitelistDetails")
2801 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDump)(nil), "acl.ACLInterfaceEtypeWhitelistDump")
2802 api.RegisterMessage((*ACLInterfaceListDetails)(nil), "acl.ACLInterfaceListDetails")
2803 api.RegisterMessage((*ACLInterfaceListDump)(nil), "acl.ACLInterfaceListDump")
2804 api.RegisterMessage((*ACLInterfaceSetACLList)(nil), "acl.ACLInterfaceSetACLList")
2805 api.RegisterMessage((*ACLInterfaceSetACLListReply)(nil), "acl.ACLInterfaceSetACLListReply")
2806 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelist)(nil), "acl.ACLInterfaceSetEtypeWhitelist")
2807 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelistReply)(nil), "acl.ACLInterfaceSetEtypeWhitelistReply")
2808 api.RegisterMessage((*ACLPluginControlPing)(nil), "acl.ACLPluginControlPing")
2809 api.RegisterMessage((*ACLPluginControlPingReply)(nil), "acl.ACLPluginControlPingReply")
2810 api.RegisterMessage((*ACLPluginGetConnTableMaxEntries)(nil), "acl.ACLPluginGetConnTableMaxEntries")
2811 api.RegisterMessage((*ACLPluginGetConnTableMaxEntriesReply)(nil), "acl.ACLPluginGetConnTableMaxEntriesReply")
2812 api.RegisterMessage((*ACLPluginGetVersion)(nil), "acl.ACLPluginGetVersion")
2813 api.RegisterMessage((*ACLPluginGetVersionReply)(nil), "acl.ACLPluginGetVersionReply")
2814 api.RegisterMessage((*ACLStatsIntfCountersEnable)(nil), "acl.ACLStatsIntfCountersEnable")
2815 api.RegisterMessage((*ACLStatsIntfCountersEnableReply)(nil), "acl.ACLStatsIntfCountersEnableReply")
2816 api.RegisterMessage((*MacipACLAdd)(nil), "acl.MacipACLAdd")
2817 api.RegisterMessage((*MacipACLAddReplace)(nil), "acl.MacipACLAddReplace")
2818 api.RegisterMessage((*MacipACLAddReplaceReply)(nil), "acl.MacipACLAddReplaceReply")
2819 api.RegisterMessage((*MacipACLAddReply)(nil), "acl.MacipACLAddReply")
2820 api.RegisterMessage((*MacipACLDel)(nil), "acl.MacipACLDel")
2821 api.RegisterMessage((*MacipACLDelReply)(nil), "acl.MacipACLDelReply")
2822 api.RegisterMessage((*MacipACLDetails)(nil), "acl.MacipACLDetails")
2823 api.RegisterMessage((*MacipACLDump)(nil), "acl.MacipACLDump")
2824 api.RegisterMessage((*MacipACLInterfaceAddDel)(nil), "acl.MacipACLInterfaceAddDel")
2825 api.RegisterMessage((*MacipACLInterfaceAddDelReply)(nil), "acl.MacipACLInterfaceAddDelReply")
2826 api.RegisterMessage((*MacipACLInterfaceGet)(nil), "acl.MacipACLInterfaceGet")
2827 api.RegisterMessage((*MacipACLInterfaceGetReply)(nil), "acl.MacipACLInterfaceGetReply")
2828 api.RegisterMessage((*MacipACLInterfaceListDetails)(nil), "acl.MacipACLInterfaceListDetails")
2829 api.RegisterMessage((*MacipACLInterfaceListDump)(nil), "acl.MacipACLInterfaceListDump")
2832 // Messages returns list of all messages in this module.
2833 func AllMessages() []api.Message {
2834 return []api.Message{
2835 (*ACLAddReplace)(nil),
2836 (*ACLAddReplaceReply)(nil),
2838 (*ACLDelReply)(nil),
2841 (*ACLInterfaceAddDel)(nil),
2842 (*ACLInterfaceAddDelReply)(nil),
2843 (*ACLInterfaceEtypeWhitelistDetails)(nil),
2844 (*ACLInterfaceEtypeWhitelistDump)(nil),
2845 (*ACLInterfaceListDetails)(nil),
2846 (*ACLInterfaceListDump)(nil),
2847 (*ACLInterfaceSetACLList)(nil),
2848 (*ACLInterfaceSetACLListReply)(nil),
2849 (*ACLInterfaceSetEtypeWhitelist)(nil),
2850 (*ACLInterfaceSetEtypeWhitelistReply)(nil),
2851 (*ACLPluginControlPing)(nil),
2852 (*ACLPluginControlPingReply)(nil),
2853 (*ACLPluginGetConnTableMaxEntries)(nil),
2854 (*ACLPluginGetConnTableMaxEntriesReply)(nil),
2855 (*ACLPluginGetVersion)(nil),
2856 (*ACLPluginGetVersionReply)(nil),
2857 (*ACLStatsIntfCountersEnable)(nil),
2858 (*ACLStatsIntfCountersEnableReply)(nil),
2859 (*MacipACLAdd)(nil),
2860 (*MacipACLAddReplace)(nil),
2861 (*MacipACLAddReplaceReply)(nil),
2862 (*MacipACLAddReply)(nil),
2863 (*MacipACLDel)(nil),
2864 (*MacipACLDelReply)(nil),
2865 (*MacipACLDetails)(nil),
2866 (*MacipACLDump)(nil),
2867 (*MacipACLInterfaceAddDel)(nil),
2868 (*MacipACLInterfaceAddDelReply)(nil),
2869 (*MacipACLInterfaceGet)(nil),
2870 (*MacipACLInterfaceGetReply)(nil),
2871 (*MacipACLInterfaceListDetails)(nil),
2872 (*MacipACLInterfaceListDump)(nil),
2876 // Reference imports to suppress errors if they are not otherwise used.
2877 var _ = api.RegisterMessage
2878 var _ = codec.DecodeString
2879 var _ = bytes.NewBuffer
2880 var _ = context.Background
2882 var _ = strconv.Itoa
2884 var _ = binary.BigEndian
2885 var _ = math.Float32bits