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).
27 api "git.fd.io/govpp.git/api"
28 codec "git.fd.io/govpp.git/codec"
29 struc "github.com/lunixbochs/struc"
31 interface_types "git.fd.io/govpp.git/examples/binapi/interface_types"
32 ip_types "git.fd.io/govpp.git/examples/binapi/ip_types"
35 // This is a compile-time assertion to ensure that this generated file
36 // is compatible with the GoVPP api package it is being compiled against.
37 // A compilation error at this line likely means your copy of the
38 // GoVPP api package needs to be updated.
39 const _ = api.GoVppAPIPackageIsVersion2 // please upgrade the GoVPP api package
42 // ModuleName is the name of this module.
44 // APIVersion is the API version of this module.
46 // VersionCrc is the CRC of this module.
47 VersionCrc = 0x68c4cb37
50 // ACLAction represents VPP binary API enum 'acl_action'.
54 ACL_ACTION_API_DENY ACLAction = 0
55 ACL_ACTION_API_PERMIT ACLAction = 1
56 ACL_ACTION_API_PERMIT_REFLECT ACLAction = 2
60 ACLAction_name = map[uint8]string{
61 0: "ACL_ACTION_API_DENY",
62 1: "ACL_ACTION_API_PERMIT",
63 2: "ACL_ACTION_API_PERMIT_REFLECT",
65 ACLAction_value = map[string]uint8{
66 "ACL_ACTION_API_DENY": 0,
67 "ACL_ACTION_API_PERMIT": 1,
68 "ACL_ACTION_API_PERMIT_REFLECT": 2,
72 func (x ACLAction) String() string {
73 s, ok := ACLAction_name[uint8(x)]
77 return "ACLAction(" + strconv.Itoa(int(x)) + ")"
80 type AddressFamily = ip_types.AddressFamily
82 type IfStatusFlags = interface_types.IfStatusFlags
84 type IfType = interface_types.IfType
86 type IPDscp = ip_types.IPDscp
88 type IPEcn = ip_types.IPEcn
90 type IPProto = ip_types.IPProto
92 type LinkDuplex = interface_types.LinkDuplex
94 type MtuProto = interface_types.MtuProto
96 type RxMode = interface_types.RxMode
98 type SubIfFlags = interface_types.SubIfFlags
100 type AddressWithPrefix = ip_types.AddressWithPrefix
102 type InterfaceIndex = interface_types.InterfaceIndex
104 type IP4Address = ip_types.IP4Address
106 type IP4AddressWithPrefix = ip_types.IP4AddressWithPrefix
108 type IP6Address = ip_types.IP6Address
110 type IP6AddressWithPrefix = ip_types.IP6AddressWithPrefix
112 // MacAddress represents VPP binary API alias 'mac_address'.
113 type MacAddress [6]uint8
115 // ACLRule represents VPP binary API type 'acl_rule'.
116 type ACLRule struct {
117 IsPermit ACLAction `binapi:"acl_action,name=is_permit" json:"is_permit,omitempty"`
118 SrcPrefix Prefix `binapi:"prefix,name=src_prefix" json:"src_prefix,omitempty"`
119 DstPrefix Prefix `binapi:"prefix,name=dst_prefix" json:"dst_prefix,omitempty"`
120 Proto IPProto `binapi:"ip_proto,name=proto" json:"proto,omitempty"`
121 SrcportOrIcmptypeFirst uint16 `binapi:"u16,name=srcport_or_icmptype_first" json:"srcport_or_icmptype_first,omitempty"`
122 SrcportOrIcmptypeLast uint16 `binapi:"u16,name=srcport_or_icmptype_last" json:"srcport_or_icmptype_last,omitempty"`
123 DstportOrIcmpcodeFirst uint16 `binapi:"u16,name=dstport_or_icmpcode_first" json:"dstport_or_icmpcode_first,omitempty"`
124 DstportOrIcmpcodeLast uint16 `binapi:"u16,name=dstport_or_icmpcode_last" json:"dstport_or_icmpcode_last,omitempty"`
125 TCPFlagsMask uint8 `binapi:"u8,name=tcp_flags_mask" json:"tcp_flags_mask,omitempty"`
126 TCPFlagsValue uint8 `binapi:"u8,name=tcp_flags_value" json:"tcp_flags_value,omitempty"`
129 func (*ACLRule) GetTypeName() string { return "acl_rule" }
131 type Address = ip_types.Address
133 type IP4Prefix = ip_types.IP4Prefix
135 type IP6Prefix = ip_types.IP6Prefix
137 // MacipACLRule represents VPP binary API type 'macip_acl_rule'.
138 type MacipACLRule struct {
139 IsPermit ACLAction `binapi:"acl_action,name=is_permit" json:"is_permit,omitempty"`
140 SrcMac MacAddress `binapi:"mac_address,name=src_mac" json:"src_mac,omitempty"`
141 SrcMacMask MacAddress `binapi:"mac_address,name=src_mac_mask" json:"src_mac_mask,omitempty"`
142 SrcPrefix Prefix `binapi:"prefix,name=src_prefix" json:"src_prefix,omitempty"`
145 func (*MacipACLRule) GetTypeName() string { return "macip_acl_rule" }
147 type Mprefix = ip_types.Mprefix
149 type Prefix = ip_types.Prefix
151 type PrefixMatcher = ip_types.PrefixMatcher
153 type AddressUnion = ip_types.AddressUnion
155 // ACLAddReplace represents VPP binary API message 'acl_add_replace'.
156 type ACLAddReplace struct {
157 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
158 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
159 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
160 R []ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
163 func (m *ACLAddReplace) Reset() { *m = ACLAddReplace{} }
164 func (*ACLAddReplace) GetMessageName() string { return "acl_add_replace" }
165 func (*ACLAddReplace) GetCrcString() string { return "1cabdeab" }
166 func (*ACLAddReplace) GetMessageType() api.MessageType { return api.RequestMessage }
168 func (m *ACLAddReplace) Size() int {
173 // field[1] m.ACLIndex
180 for j1 := 0; j1 < len(m.R); j1++ {
186 // field[2] s1.IsPermit
188 // field[2] s1.SrcPrefix
189 // field[3] s1.SrcPrefix.Address
190 // field[4] s1.SrcPrefix.Address.Af
192 // field[4] s1.SrcPrefix.Address.Un
194 // field[3] s1.SrcPrefix.Len
196 // field[2] s1.DstPrefix
197 // field[3] s1.DstPrefix.Address
198 // field[4] s1.DstPrefix.Address.Af
200 // field[4] s1.DstPrefix.Address.Un
202 // field[3] s1.DstPrefix.Len
206 // field[2] s1.SrcportOrIcmptypeFirst
208 // field[2] s1.SrcportOrIcmptypeLast
210 // field[2] s1.DstportOrIcmpcodeFirst
212 // field[2] s1.DstportOrIcmpcodeLast
214 // field[2] s1.TCPFlagsMask
216 // field[2] s1.TCPFlagsValue
221 func (m *ACLAddReplace) Marshal(b []byte) ([]byte, error) {
222 o := binary.BigEndian
228 buf = make([]byte, m.Size())
232 // field[1] m.ACLIndex
233 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
236 copy(buf[pos:pos+64], m.Tag)
239 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
242 for j1 := 0; j1 < len(m.R); j1++ {
247 // field[2] v1.IsPermit
248 buf[pos] = uint8(v1.IsPermit)
250 // field[2] v1.SrcPrefix
251 // field[3] v1.SrcPrefix.Address
252 // field[4] v1.SrcPrefix.Address.Af
253 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
255 // field[4] v1.SrcPrefix.Address.Un
256 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
258 // field[3] v1.SrcPrefix.Len
259 buf[pos] = uint8(v1.SrcPrefix.Len)
261 // field[2] v1.DstPrefix
262 // field[3] v1.DstPrefix.Address
263 // field[4] v1.DstPrefix.Address.Af
264 buf[pos] = uint8(v1.DstPrefix.Address.Af)
266 // field[4] v1.DstPrefix.Address.Un
267 copy(buf[pos:pos+16], v1.DstPrefix.Address.Un.XXX_UnionData[:])
269 // field[3] v1.DstPrefix.Len
270 buf[pos] = uint8(v1.DstPrefix.Len)
273 buf[pos] = uint8(v1.Proto)
275 // field[2] v1.SrcportOrIcmptypeFirst
276 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeFirst))
278 // field[2] v1.SrcportOrIcmptypeLast
279 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeLast))
281 // field[2] v1.DstportOrIcmpcodeFirst
282 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeFirst))
284 // field[2] v1.DstportOrIcmpcodeLast
285 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeLast))
287 // field[2] v1.TCPFlagsMask
288 buf[pos] = uint8(v1.TCPFlagsMask)
290 // field[2] v1.TCPFlagsValue
291 buf[pos] = uint8(v1.TCPFlagsValue)
296 func (m *ACLAddReplace) Unmarshal(tmp []byte) error {
297 o := binary.BigEndian
301 // field[1] m.ACLIndex
302 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
306 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
307 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
311 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
314 m.R = make([]ACLRule, int(m.Count))
315 for j1 := 0; j1 < int(m.Count); j1++ {
316 // field[2] m.R[j1].IsPermit
317 m.R[j1].IsPermit = ACLAction(tmp[pos])
319 // field[2] m.R[j1].SrcPrefix
320 // field[3] m.R[j1].SrcPrefix.Address
321 // field[4] m.R[j1].SrcPrefix.Address.Af
322 m.R[j1].SrcPrefix.Address.Af = AddressFamily(tmp[pos])
324 // field[4] m.R[j1].SrcPrefix.Address.Un
325 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
327 // field[3] m.R[j1].SrcPrefix.Len
328 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
330 // field[2] m.R[j1].DstPrefix
331 // field[3] m.R[j1].DstPrefix.Address
332 // field[4] m.R[j1].DstPrefix.Address.Af
333 m.R[j1].DstPrefix.Address.Af = AddressFamily(tmp[pos])
335 // field[4] m.R[j1].DstPrefix.Address.Un
336 copy(m.R[j1].DstPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
338 // field[3] m.R[j1].DstPrefix.Len
339 m.R[j1].DstPrefix.Len = uint8(tmp[pos])
341 // field[2] m.R[j1].Proto
342 m.R[j1].Proto = IPProto(tmp[pos])
344 // field[2] m.R[j1].SrcportOrIcmptypeFirst
345 m.R[j1].SrcportOrIcmptypeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
347 // field[2] m.R[j1].SrcportOrIcmptypeLast
348 m.R[j1].SrcportOrIcmptypeLast = uint16(o.Uint16(tmp[pos : pos+2]))
350 // field[2] m.R[j1].DstportOrIcmpcodeFirst
351 m.R[j1].DstportOrIcmpcodeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
353 // field[2] m.R[j1].DstportOrIcmpcodeLast
354 m.R[j1].DstportOrIcmpcodeLast = uint16(o.Uint16(tmp[pos : pos+2]))
356 // field[2] m.R[j1].TCPFlagsMask
357 m.R[j1].TCPFlagsMask = uint8(tmp[pos])
359 // field[2] m.R[j1].TCPFlagsValue
360 m.R[j1].TCPFlagsValue = uint8(tmp[pos])
366 // ACLAddReplaceReply represents VPP binary API message 'acl_add_replace_reply'.
367 type ACLAddReplaceReply struct {
368 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
369 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
372 func (m *ACLAddReplaceReply) Reset() { *m = ACLAddReplaceReply{} }
373 func (*ACLAddReplaceReply) GetMessageName() string { return "acl_add_replace_reply" }
374 func (*ACLAddReplaceReply) GetCrcString() string { return "ac407b0c" }
375 func (*ACLAddReplaceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
377 func (m *ACLAddReplaceReply) Size() int {
382 // field[1] m.ACLIndex
388 func (m *ACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
389 o := binary.BigEndian
395 buf = make([]byte, m.Size())
399 // field[1] m.ACLIndex
400 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
403 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
407 func (m *ACLAddReplaceReply) Unmarshal(tmp []byte) error {
408 o := binary.BigEndian
412 // field[1] m.ACLIndex
413 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
416 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
421 // ACLDel represents VPP binary API message 'acl_del'.
423 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
426 func (m *ACLDel) Reset() { *m = ACLDel{} }
427 func (*ACLDel) GetMessageName() string { return "acl_del" }
428 func (*ACLDel) GetCrcString() string { return "ef34fea4" }
429 func (*ACLDel) GetMessageType() api.MessageType { return api.RequestMessage }
431 func (m *ACLDel) Size() int {
436 // field[1] m.ACLIndex
440 func (m *ACLDel) Marshal(b []byte) ([]byte, error) {
441 o := binary.BigEndian
447 buf = make([]byte, m.Size())
451 // field[1] m.ACLIndex
452 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
456 func (m *ACLDel) Unmarshal(tmp []byte) error {
457 o := binary.BigEndian
461 // field[1] m.ACLIndex
462 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
467 // ACLDelReply represents VPP binary API message 'acl_del_reply'.
468 type ACLDelReply struct {
469 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
472 func (m *ACLDelReply) Reset() { *m = ACLDelReply{} }
473 func (*ACLDelReply) GetMessageName() string { return "acl_del_reply" }
474 func (*ACLDelReply) GetCrcString() string { return "e8d4e804" }
475 func (*ACLDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
477 func (m *ACLDelReply) Size() int {
486 func (m *ACLDelReply) Marshal(b []byte) ([]byte, error) {
487 o := binary.BigEndian
493 buf = make([]byte, m.Size())
498 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
502 func (m *ACLDelReply) Unmarshal(tmp []byte) error {
503 o := binary.BigEndian
508 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
513 // ACLDetails represents VPP binary API message 'acl_details'.
514 type ACLDetails struct {
515 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
516 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
517 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
518 R []ACLRule `binapi:"acl_rule[count],name=r" json:"r,omitempty"`
521 func (m *ACLDetails) Reset() { *m = ACLDetails{} }
522 func (*ACLDetails) GetMessageName() string { return "acl_details" }
523 func (*ACLDetails) GetCrcString() string { return "7a97f21c" }
524 func (*ACLDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
526 func (m *ACLDetails) Size() int {
531 // field[1] m.ACLIndex
538 for j1 := 0; j1 < len(m.R); j1++ {
544 // field[2] s1.IsPermit
546 // field[2] s1.SrcPrefix
547 // field[3] s1.SrcPrefix.Address
548 // field[4] s1.SrcPrefix.Address.Af
550 // field[4] s1.SrcPrefix.Address.Un
552 // field[3] s1.SrcPrefix.Len
554 // field[2] s1.DstPrefix
555 // field[3] s1.DstPrefix.Address
556 // field[4] s1.DstPrefix.Address.Af
558 // field[4] s1.DstPrefix.Address.Un
560 // field[3] s1.DstPrefix.Len
564 // field[2] s1.SrcportOrIcmptypeFirst
566 // field[2] s1.SrcportOrIcmptypeLast
568 // field[2] s1.DstportOrIcmpcodeFirst
570 // field[2] s1.DstportOrIcmpcodeLast
572 // field[2] s1.TCPFlagsMask
574 // field[2] s1.TCPFlagsValue
579 func (m *ACLDetails) Marshal(b []byte) ([]byte, error) {
580 o := binary.BigEndian
586 buf = make([]byte, m.Size())
590 // field[1] m.ACLIndex
591 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
594 copy(buf[pos:pos+64], m.Tag)
597 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
600 for j1 := 0; j1 < len(m.R); j1++ {
605 // field[2] v1.IsPermit
606 buf[pos] = uint8(v1.IsPermit)
608 // field[2] v1.SrcPrefix
609 // field[3] v1.SrcPrefix.Address
610 // field[4] v1.SrcPrefix.Address.Af
611 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
613 // field[4] v1.SrcPrefix.Address.Un
614 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
616 // field[3] v1.SrcPrefix.Len
617 buf[pos] = uint8(v1.SrcPrefix.Len)
619 // field[2] v1.DstPrefix
620 // field[3] v1.DstPrefix.Address
621 // field[4] v1.DstPrefix.Address.Af
622 buf[pos] = uint8(v1.DstPrefix.Address.Af)
624 // field[4] v1.DstPrefix.Address.Un
625 copy(buf[pos:pos+16], v1.DstPrefix.Address.Un.XXX_UnionData[:])
627 // field[3] v1.DstPrefix.Len
628 buf[pos] = uint8(v1.DstPrefix.Len)
631 buf[pos] = uint8(v1.Proto)
633 // field[2] v1.SrcportOrIcmptypeFirst
634 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeFirst))
636 // field[2] v1.SrcportOrIcmptypeLast
637 o.PutUint16(buf[pos:pos+2], uint16(v1.SrcportOrIcmptypeLast))
639 // field[2] v1.DstportOrIcmpcodeFirst
640 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeFirst))
642 // field[2] v1.DstportOrIcmpcodeLast
643 o.PutUint16(buf[pos:pos+2], uint16(v1.DstportOrIcmpcodeLast))
645 // field[2] v1.TCPFlagsMask
646 buf[pos] = uint8(v1.TCPFlagsMask)
648 // field[2] v1.TCPFlagsValue
649 buf[pos] = uint8(v1.TCPFlagsValue)
654 func (m *ACLDetails) Unmarshal(tmp []byte) error {
655 o := binary.BigEndian
659 // field[1] m.ACLIndex
660 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
664 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
665 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
669 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
672 m.R = make([]ACLRule, int(m.Count))
673 for j1 := 0; j1 < int(m.Count); j1++ {
674 // field[2] m.R[j1].IsPermit
675 m.R[j1].IsPermit = ACLAction(tmp[pos])
677 // field[2] m.R[j1].SrcPrefix
678 // field[3] m.R[j1].SrcPrefix.Address
679 // field[4] m.R[j1].SrcPrefix.Address.Af
680 m.R[j1].SrcPrefix.Address.Af = AddressFamily(tmp[pos])
682 // field[4] m.R[j1].SrcPrefix.Address.Un
683 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
685 // field[3] m.R[j1].SrcPrefix.Len
686 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
688 // field[2] m.R[j1].DstPrefix
689 // field[3] m.R[j1].DstPrefix.Address
690 // field[4] m.R[j1].DstPrefix.Address.Af
691 m.R[j1].DstPrefix.Address.Af = AddressFamily(tmp[pos])
693 // field[4] m.R[j1].DstPrefix.Address.Un
694 copy(m.R[j1].DstPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
696 // field[3] m.R[j1].DstPrefix.Len
697 m.R[j1].DstPrefix.Len = uint8(tmp[pos])
699 // field[2] m.R[j1].Proto
700 m.R[j1].Proto = IPProto(tmp[pos])
702 // field[2] m.R[j1].SrcportOrIcmptypeFirst
703 m.R[j1].SrcportOrIcmptypeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
705 // field[2] m.R[j1].SrcportOrIcmptypeLast
706 m.R[j1].SrcportOrIcmptypeLast = uint16(o.Uint16(tmp[pos : pos+2]))
708 // field[2] m.R[j1].DstportOrIcmpcodeFirst
709 m.R[j1].DstportOrIcmpcodeFirst = uint16(o.Uint16(tmp[pos : pos+2]))
711 // field[2] m.R[j1].DstportOrIcmpcodeLast
712 m.R[j1].DstportOrIcmpcodeLast = uint16(o.Uint16(tmp[pos : pos+2]))
714 // field[2] m.R[j1].TCPFlagsMask
715 m.R[j1].TCPFlagsMask = uint8(tmp[pos])
717 // field[2] m.R[j1].TCPFlagsValue
718 m.R[j1].TCPFlagsValue = uint8(tmp[pos])
724 // ACLDump represents VPP binary API message 'acl_dump'.
725 type ACLDump struct {
726 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
729 func (m *ACLDump) Reset() { *m = ACLDump{} }
730 func (*ACLDump) GetMessageName() string { return "acl_dump" }
731 func (*ACLDump) GetCrcString() string { return "ef34fea4" }
732 func (*ACLDump) GetMessageType() api.MessageType { return api.RequestMessage }
734 func (m *ACLDump) Size() int {
739 // field[1] m.ACLIndex
743 func (m *ACLDump) Marshal(b []byte) ([]byte, error) {
744 o := binary.BigEndian
750 buf = make([]byte, m.Size())
754 // field[1] m.ACLIndex
755 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
759 func (m *ACLDump) Unmarshal(tmp []byte) error {
760 o := binary.BigEndian
764 // field[1] m.ACLIndex
765 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
770 // ACLInterfaceAddDel represents VPP binary API message 'acl_interface_add_del'.
771 type ACLInterfaceAddDel struct {
772 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
773 IsInput bool `binapi:"bool,name=is_input" json:"is_input,omitempty"`
774 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
775 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
778 func (m *ACLInterfaceAddDel) Reset() { *m = ACLInterfaceAddDel{} }
779 func (*ACLInterfaceAddDel) GetMessageName() string { return "acl_interface_add_del" }
780 func (*ACLInterfaceAddDel) GetCrcString() string { return "4b54bebd" }
781 func (*ACLInterfaceAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
783 func (m *ACLInterfaceAddDel) Size() int {
790 // field[1] m.IsInput
792 // field[1] m.SwIfIndex
794 // field[1] m.ACLIndex
798 func (m *ACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
799 o := binary.BigEndian
805 buf = make([]byte, m.Size())
814 // field[1] m.IsInput
819 // field[1] m.SwIfIndex
820 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
822 // field[1] m.ACLIndex
823 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
827 func (m *ACLInterfaceAddDel) Unmarshal(tmp []byte) error {
828 o := binary.BigEndian
833 m.IsAdd = tmp[pos] != 0
835 // field[1] m.IsInput
836 m.IsInput = tmp[pos] != 0
838 // field[1] m.SwIfIndex
839 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
841 // field[1] m.ACLIndex
842 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
847 // ACLInterfaceAddDelReply represents VPP binary API message 'acl_interface_add_del_reply'.
848 type ACLInterfaceAddDelReply struct {
849 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
852 func (m *ACLInterfaceAddDelReply) Reset() { *m = ACLInterfaceAddDelReply{} }
853 func (*ACLInterfaceAddDelReply) GetMessageName() string { return "acl_interface_add_del_reply" }
854 func (*ACLInterfaceAddDelReply) GetCrcString() string { return "e8d4e804" }
855 func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
857 func (m *ACLInterfaceAddDelReply) Size() int {
866 func (m *ACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
867 o := binary.BigEndian
873 buf = make([]byte, m.Size())
878 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
882 func (m *ACLInterfaceAddDelReply) Unmarshal(tmp []byte) error {
883 o := binary.BigEndian
888 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
893 // ACLInterfaceEtypeWhitelistDetails represents VPP binary API message 'acl_interface_etype_whitelist_details'.
894 type ACLInterfaceEtypeWhitelistDetails struct {
895 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
896 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Whitelist"`
897 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
898 Whitelist []uint16 `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
901 func (m *ACLInterfaceEtypeWhitelistDetails) Reset() { *m = ACLInterfaceEtypeWhitelistDetails{} }
902 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string {
903 return "acl_interface_etype_whitelist_details"
905 func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string { return "cc2bfded" }
906 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
908 func (m *ACLInterfaceEtypeWhitelistDetails) Size() int {
913 // field[1] m.SwIfIndex
919 // field[1] m.Whitelist
920 size += 2 * len(m.Whitelist)
923 func (m *ACLInterfaceEtypeWhitelistDetails) Marshal(b []byte) ([]byte, error) {
924 o := binary.BigEndian
930 buf = make([]byte, m.Size())
934 // field[1] m.SwIfIndex
935 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
938 buf[pos] = uint8(len(m.Whitelist))
941 buf[pos] = uint8(m.NInput)
943 // field[1] m.Whitelist
944 for i := 0; i < len(m.Whitelist); i++ {
946 if i < len(m.Whitelist) {
947 x = uint16(m.Whitelist[i])
949 o.PutUint16(buf[pos:pos+2], uint16(x))
954 func (m *ACLInterfaceEtypeWhitelistDetails) Unmarshal(tmp []byte) error {
955 o := binary.BigEndian
959 // field[1] m.SwIfIndex
960 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
963 m.Count = uint8(tmp[pos])
966 m.NInput = uint8(tmp[pos])
968 // field[1] m.Whitelist
969 m.Whitelist = make([]uint16, m.Count)
970 for i := 0; i < len(m.Whitelist); i++ {
971 m.Whitelist[i] = uint16(o.Uint16(tmp[pos : pos+2]))
977 // ACLInterfaceEtypeWhitelistDump represents VPP binary API message 'acl_interface_etype_whitelist_dump'.
978 type ACLInterfaceEtypeWhitelistDump struct {
979 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
982 func (m *ACLInterfaceEtypeWhitelistDump) Reset() { *m = ACLInterfaceEtypeWhitelistDump{} }
983 func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string {
984 return "acl_interface_etype_whitelist_dump"
986 func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string { return "f9e6675e" }
987 func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType { return api.RequestMessage }
989 func (m *ACLInterfaceEtypeWhitelistDump) Size() int {
994 // field[1] m.SwIfIndex
998 func (m *ACLInterfaceEtypeWhitelistDump) Marshal(b []byte) ([]byte, error) {
999 o := binary.BigEndian
1005 buf = make([]byte, m.Size())
1009 // field[1] m.SwIfIndex
1010 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1014 func (m *ACLInterfaceEtypeWhitelistDump) Unmarshal(tmp []byte) error {
1015 o := binary.BigEndian
1019 // field[1] m.SwIfIndex
1020 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1025 // ACLInterfaceListDetails represents VPP binary API message 'acl_interface_list_details'.
1026 type ACLInterfaceListDetails struct {
1027 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1028 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
1029 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
1030 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
1033 func (m *ACLInterfaceListDetails) Reset() { *m = ACLInterfaceListDetails{} }
1034 func (*ACLInterfaceListDetails) GetMessageName() string { return "acl_interface_list_details" }
1035 func (*ACLInterfaceListDetails) GetCrcString() string { return "e695d256" }
1036 func (*ACLInterfaceListDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
1038 func (m *ACLInterfaceListDetails) Size() int {
1043 // field[1] m.SwIfIndex
1047 // field[1] m.NInput
1050 size += 4 * len(m.Acls)
1053 func (m *ACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
1054 o := binary.BigEndian
1060 buf = make([]byte, m.Size())
1064 // field[1] m.SwIfIndex
1065 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1068 buf[pos] = uint8(len(m.Acls))
1070 // field[1] m.NInput
1071 buf[pos] = uint8(m.NInput)
1074 for i := 0; i < len(m.Acls); i++ {
1076 if i < len(m.Acls) {
1077 x = uint32(m.Acls[i])
1079 o.PutUint32(buf[pos:pos+4], uint32(x))
1084 func (m *ACLInterfaceListDetails) Unmarshal(tmp []byte) error {
1085 o := binary.BigEndian
1089 // field[1] m.SwIfIndex
1090 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1093 m.Count = uint8(tmp[pos])
1095 // field[1] m.NInput
1096 m.NInput = uint8(tmp[pos])
1099 m.Acls = make([]uint32, m.Count)
1100 for i := 0; i < len(m.Acls); i++ {
1101 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
1107 // ACLInterfaceListDump represents VPP binary API message 'acl_interface_list_dump'.
1108 type ACLInterfaceListDump struct {
1109 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
1112 func (m *ACLInterfaceListDump) Reset() { *m = ACLInterfaceListDump{} }
1113 func (*ACLInterfaceListDump) GetMessageName() string { return "acl_interface_list_dump" }
1114 func (*ACLInterfaceListDump) GetCrcString() string { return "f9e6675e" }
1115 func (*ACLInterfaceListDump) GetMessageType() api.MessageType { return api.RequestMessage }
1117 func (m *ACLInterfaceListDump) Size() int {
1122 // field[1] m.SwIfIndex
1126 func (m *ACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
1127 o := binary.BigEndian
1133 buf = make([]byte, m.Size())
1137 // field[1] m.SwIfIndex
1138 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1142 func (m *ACLInterfaceListDump) Unmarshal(tmp []byte) error {
1143 o := binary.BigEndian
1147 // field[1] m.SwIfIndex
1148 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1153 // ACLInterfaceSetACLList represents VPP binary API message 'acl_interface_set_acl_list'.
1154 type ACLInterfaceSetACLList struct {
1155 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1156 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
1157 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
1158 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
1161 func (m *ACLInterfaceSetACLList) Reset() { *m = ACLInterfaceSetACLList{} }
1162 func (*ACLInterfaceSetACLList) GetMessageName() string { return "acl_interface_set_acl_list" }
1163 func (*ACLInterfaceSetACLList) GetCrcString() string { return "473982bd" }
1164 func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType { return api.RequestMessage }
1166 func (m *ACLInterfaceSetACLList) Size() int {
1171 // field[1] m.SwIfIndex
1175 // field[1] m.NInput
1178 size += 4 * len(m.Acls)
1181 func (m *ACLInterfaceSetACLList) Marshal(b []byte) ([]byte, error) {
1182 o := binary.BigEndian
1188 buf = make([]byte, m.Size())
1192 // field[1] m.SwIfIndex
1193 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1196 buf[pos] = uint8(len(m.Acls))
1198 // field[1] m.NInput
1199 buf[pos] = uint8(m.NInput)
1202 for i := 0; i < len(m.Acls); i++ {
1204 if i < len(m.Acls) {
1205 x = uint32(m.Acls[i])
1207 o.PutUint32(buf[pos:pos+4], uint32(x))
1212 func (m *ACLInterfaceSetACLList) Unmarshal(tmp []byte) error {
1213 o := binary.BigEndian
1217 // field[1] m.SwIfIndex
1218 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1221 m.Count = uint8(tmp[pos])
1223 // field[1] m.NInput
1224 m.NInput = uint8(tmp[pos])
1227 m.Acls = make([]uint32, m.Count)
1228 for i := 0; i < len(m.Acls); i++ {
1229 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
1235 // ACLInterfaceSetACLListReply represents VPP binary API message 'acl_interface_set_acl_list_reply'.
1236 type ACLInterfaceSetACLListReply struct {
1237 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1240 func (m *ACLInterfaceSetACLListReply) Reset() { *m = ACLInterfaceSetACLListReply{} }
1241 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
1242 return "acl_interface_set_acl_list_reply"
1244 func (*ACLInterfaceSetACLListReply) GetCrcString() string { return "e8d4e804" }
1245 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1247 func (m *ACLInterfaceSetACLListReply) Size() int {
1252 // field[1] m.Retval
1256 func (m *ACLInterfaceSetACLListReply) Marshal(b []byte) ([]byte, error) {
1257 o := binary.BigEndian
1263 buf = make([]byte, m.Size())
1267 // field[1] m.Retval
1268 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1272 func (m *ACLInterfaceSetACLListReply) Unmarshal(tmp []byte) error {
1273 o := binary.BigEndian
1277 // field[1] m.Retval
1278 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1283 // ACLInterfaceSetEtypeWhitelist represents VPP binary API message 'acl_interface_set_etype_whitelist'.
1284 type ACLInterfaceSetEtypeWhitelist struct {
1285 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1286 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Whitelist"`
1287 NInput uint8 `binapi:"u8,name=n_input" json:"n_input,omitempty"`
1288 Whitelist []uint16 `binapi:"u16[count],name=whitelist" json:"whitelist,omitempty"`
1291 func (m *ACLInterfaceSetEtypeWhitelist) Reset() { *m = ACLInterfaceSetEtypeWhitelist{} }
1292 func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string {
1293 return "acl_interface_set_etype_whitelist"
1295 func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string { return "3f5c2d2d" }
1296 func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType { return api.RequestMessage }
1298 func (m *ACLInterfaceSetEtypeWhitelist) Size() int {
1303 // field[1] m.SwIfIndex
1307 // field[1] m.NInput
1309 // field[1] m.Whitelist
1310 size += 2 * len(m.Whitelist)
1313 func (m *ACLInterfaceSetEtypeWhitelist) Marshal(b []byte) ([]byte, error) {
1314 o := binary.BigEndian
1320 buf = make([]byte, m.Size())
1324 // field[1] m.SwIfIndex
1325 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1328 buf[pos] = uint8(len(m.Whitelist))
1330 // field[1] m.NInput
1331 buf[pos] = uint8(m.NInput)
1333 // field[1] m.Whitelist
1334 for i := 0; i < len(m.Whitelist); i++ {
1336 if i < len(m.Whitelist) {
1337 x = uint16(m.Whitelist[i])
1339 o.PutUint16(buf[pos:pos+2], uint16(x))
1344 func (m *ACLInterfaceSetEtypeWhitelist) Unmarshal(tmp []byte) error {
1345 o := binary.BigEndian
1349 // field[1] m.SwIfIndex
1350 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1353 m.Count = uint8(tmp[pos])
1355 // field[1] m.NInput
1356 m.NInput = uint8(tmp[pos])
1358 // field[1] m.Whitelist
1359 m.Whitelist = make([]uint16, m.Count)
1360 for i := 0; i < len(m.Whitelist); i++ {
1361 m.Whitelist[i] = uint16(o.Uint16(tmp[pos : pos+2]))
1367 // ACLInterfaceSetEtypeWhitelistReply represents VPP binary API message 'acl_interface_set_etype_whitelist_reply'.
1368 type ACLInterfaceSetEtypeWhitelistReply struct {
1369 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1372 func (m *ACLInterfaceSetEtypeWhitelistReply) Reset() { *m = ACLInterfaceSetEtypeWhitelistReply{} }
1373 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string {
1374 return "acl_interface_set_etype_whitelist_reply"
1376 func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string { return "e8d4e804" }
1377 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1379 func (m *ACLInterfaceSetEtypeWhitelistReply) Size() int {
1384 // field[1] m.Retval
1388 func (m *ACLInterfaceSetEtypeWhitelistReply) Marshal(b []byte) ([]byte, error) {
1389 o := binary.BigEndian
1395 buf = make([]byte, m.Size())
1399 // field[1] m.Retval
1400 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1404 func (m *ACLInterfaceSetEtypeWhitelistReply) Unmarshal(tmp []byte) error {
1405 o := binary.BigEndian
1409 // field[1] m.Retval
1410 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1415 // ACLPluginControlPing represents VPP binary API message 'acl_plugin_control_ping'.
1416 type ACLPluginControlPing struct{}
1418 func (m *ACLPluginControlPing) Reset() { *m = ACLPluginControlPing{} }
1419 func (*ACLPluginControlPing) GetMessageName() string { return "acl_plugin_control_ping" }
1420 func (*ACLPluginControlPing) GetCrcString() string { return "51077d14" }
1421 func (*ACLPluginControlPing) GetMessageType() api.MessageType { return api.RequestMessage }
1423 func (m *ACLPluginControlPing) Size() int {
1430 func (m *ACLPluginControlPing) Marshal(b []byte) ([]byte, error) {
1431 o := binary.BigEndian
1437 buf = make([]byte, m.Size())
1443 func (m *ACLPluginControlPing) Unmarshal(tmp []byte) error {
1444 o := binary.BigEndian
1451 // ACLPluginControlPingReply represents VPP binary API message 'acl_plugin_control_ping_reply'.
1452 type ACLPluginControlPingReply struct {
1453 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1454 ClientIndex uint32 `binapi:"u32,name=client_index" json:"client_index,omitempty"`
1455 VpePID uint32 `binapi:"u32,name=vpe_pid" json:"vpe_pid,omitempty"`
1458 func (m *ACLPluginControlPingReply) Reset() { *m = ACLPluginControlPingReply{} }
1459 func (*ACLPluginControlPingReply) GetMessageName() string { return "acl_plugin_control_ping_reply" }
1460 func (*ACLPluginControlPingReply) GetCrcString() string { return "f6b0b8ca" }
1461 func (*ACLPluginControlPingReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1463 func (m *ACLPluginControlPingReply) Size() int {
1468 // field[1] m.Retval
1470 // field[1] m.ClientIndex
1472 // field[1] m.VpePID
1476 func (m *ACLPluginControlPingReply) Marshal(b []byte) ([]byte, error) {
1477 o := binary.BigEndian
1483 buf = make([]byte, m.Size())
1487 // field[1] m.Retval
1488 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1490 // field[1] m.ClientIndex
1491 o.PutUint32(buf[pos:pos+4], uint32(m.ClientIndex))
1493 // field[1] m.VpePID
1494 o.PutUint32(buf[pos:pos+4], uint32(m.VpePID))
1498 func (m *ACLPluginControlPingReply) Unmarshal(tmp []byte) error {
1499 o := binary.BigEndian
1503 // field[1] m.Retval
1504 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1506 // field[1] m.ClientIndex
1507 m.ClientIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1509 // field[1] m.VpePID
1510 m.VpePID = uint32(o.Uint32(tmp[pos : pos+4]))
1515 // ACLPluginGetConnTableMaxEntries represents VPP binary API message 'acl_plugin_get_conn_table_max_entries'.
1516 type ACLPluginGetConnTableMaxEntries struct{}
1518 func (m *ACLPluginGetConnTableMaxEntries) Reset() { *m = ACLPluginGetConnTableMaxEntries{} }
1519 func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string {
1520 return "acl_plugin_get_conn_table_max_entries"
1522 func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string { return "51077d14" }
1523 func (*ACLPluginGetConnTableMaxEntries) GetMessageType() api.MessageType { return api.RequestMessage }
1525 func (m *ACLPluginGetConnTableMaxEntries) Size() int {
1532 func (m *ACLPluginGetConnTableMaxEntries) Marshal(b []byte) ([]byte, error) {
1533 o := binary.BigEndian
1539 buf = make([]byte, m.Size())
1545 func (m *ACLPluginGetConnTableMaxEntries) Unmarshal(tmp []byte) error {
1546 o := binary.BigEndian
1553 // ACLPluginGetConnTableMaxEntriesReply represents VPP binary API message 'acl_plugin_get_conn_table_max_entries_reply'.
1554 type ACLPluginGetConnTableMaxEntriesReply struct {
1555 ConnTableMaxEntries uint64 `binapi:"u64,name=conn_table_max_entries" json:"conn_table_max_entries,omitempty"`
1558 func (m *ACLPluginGetConnTableMaxEntriesReply) Reset() { *m = ACLPluginGetConnTableMaxEntriesReply{} }
1559 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string {
1560 return "acl_plugin_get_conn_table_max_entries_reply"
1562 func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString() string { return "7a096d3d" }
1563 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType() api.MessageType {
1564 return api.ReplyMessage
1567 func (m *ACLPluginGetConnTableMaxEntriesReply) Size() int {
1572 // field[1] m.ConnTableMaxEntries
1576 func (m *ACLPluginGetConnTableMaxEntriesReply) Marshal(b []byte) ([]byte, error) {
1577 o := binary.BigEndian
1583 buf = make([]byte, m.Size())
1587 // field[1] m.ConnTableMaxEntries
1588 o.PutUint64(buf[pos:pos+8], uint64(m.ConnTableMaxEntries))
1592 func (m *ACLPluginGetConnTableMaxEntriesReply) Unmarshal(tmp []byte) error {
1593 o := binary.BigEndian
1597 // field[1] m.ConnTableMaxEntries
1598 m.ConnTableMaxEntries = uint64(o.Uint64(tmp[pos : pos+8]))
1603 // ACLPluginGetVersion represents VPP binary API message 'acl_plugin_get_version'.
1604 type ACLPluginGetVersion struct{}
1606 func (m *ACLPluginGetVersion) Reset() { *m = ACLPluginGetVersion{} }
1607 func (*ACLPluginGetVersion) GetMessageName() string { return "acl_plugin_get_version" }
1608 func (*ACLPluginGetVersion) GetCrcString() string { return "51077d14" }
1609 func (*ACLPluginGetVersion) GetMessageType() api.MessageType { return api.RequestMessage }
1611 func (m *ACLPluginGetVersion) Size() int {
1618 func (m *ACLPluginGetVersion) Marshal(b []byte) ([]byte, error) {
1619 o := binary.BigEndian
1625 buf = make([]byte, m.Size())
1631 func (m *ACLPluginGetVersion) Unmarshal(tmp []byte) error {
1632 o := binary.BigEndian
1639 // ACLPluginGetVersionReply represents VPP binary API message 'acl_plugin_get_version_reply'.
1640 type ACLPluginGetVersionReply struct {
1641 Major uint32 `binapi:"u32,name=major" json:"major,omitempty"`
1642 Minor uint32 `binapi:"u32,name=minor" json:"minor,omitempty"`
1645 func (m *ACLPluginGetVersionReply) Reset() { *m = ACLPluginGetVersionReply{} }
1646 func (*ACLPluginGetVersionReply) GetMessageName() string { return "acl_plugin_get_version_reply" }
1647 func (*ACLPluginGetVersionReply) GetCrcString() string { return "9b32cf86" }
1648 func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1650 func (m *ACLPluginGetVersionReply) Size() int {
1661 func (m *ACLPluginGetVersionReply) Marshal(b []byte) ([]byte, error) {
1662 o := binary.BigEndian
1668 buf = make([]byte, m.Size())
1673 o.PutUint32(buf[pos:pos+4], uint32(m.Major))
1676 o.PutUint32(buf[pos:pos+4], uint32(m.Minor))
1680 func (m *ACLPluginGetVersionReply) Unmarshal(tmp []byte) error {
1681 o := binary.BigEndian
1686 m.Major = uint32(o.Uint32(tmp[pos : pos+4]))
1689 m.Minor = uint32(o.Uint32(tmp[pos : pos+4]))
1694 // ACLStatsIntfCountersEnable represents VPP binary API message 'acl_stats_intf_counters_enable'.
1695 type ACLStatsIntfCountersEnable struct {
1696 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1699 func (m *ACLStatsIntfCountersEnable) Reset() { *m = ACLStatsIntfCountersEnable{} }
1700 func (*ACLStatsIntfCountersEnable) GetMessageName() string { return "acl_stats_intf_counters_enable" }
1701 func (*ACLStatsIntfCountersEnable) GetCrcString() string { return "b3e225d2" }
1702 func (*ACLStatsIntfCountersEnable) GetMessageType() api.MessageType { return api.RequestMessage }
1704 func (m *ACLStatsIntfCountersEnable) Size() int {
1709 // field[1] m.Enable
1713 func (m *ACLStatsIntfCountersEnable) Marshal(b []byte) ([]byte, error) {
1714 o := binary.BigEndian
1720 buf = make([]byte, m.Size())
1724 // field[1] m.Enable
1731 func (m *ACLStatsIntfCountersEnable) Unmarshal(tmp []byte) error {
1732 o := binary.BigEndian
1736 // field[1] m.Enable
1737 m.Enable = tmp[pos] != 0
1742 // ACLStatsIntfCountersEnableReply represents VPP binary API message 'acl_stats_intf_counters_enable_reply'.
1743 type ACLStatsIntfCountersEnableReply struct {
1744 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1747 func (m *ACLStatsIntfCountersEnableReply) Reset() { *m = ACLStatsIntfCountersEnableReply{} }
1748 func (*ACLStatsIntfCountersEnableReply) GetMessageName() string {
1749 return "acl_stats_intf_counters_enable_reply"
1751 func (*ACLStatsIntfCountersEnableReply) GetCrcString() string { return "e8d4e804" }
1752 func (*ACLStatsIntfCountersEnableReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1754 func (m *ACLStatsIntfCountersEnableReply) Size() int {
1759 // field[1] m.Retval
1763 func (m *ACLStatsIntfCountersEnableReply) Marshal(b []byte) ([]byte, error) {
1764 o := binary.BigEndian
1770 buf = make([]byte, m.Size())
1774 // field[1] m.Retval
1775 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1779 func (m *ACLStatsIntfCountersEnableReply) Unmarshal(tmp []byte) error {
1780 o := binary.BigEndian
1784 // field[1] m.Retval
1785 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1790 // MacipACLAdd represents VPP binary API message 'macip_acl_add'.
1791 type MacipACLAdd struct {
1792 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
1793 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
1794 R []MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
1797 func (m *MacipACLAdd) Reset() { *m = MacipACLAdd{} }
1798 func (*MacipACLAdd) GetMessageName() string { return "macip_acl_add" }
1799 func (*MacipACLAdd) GetCrcString() string { return "d648fd0a" }
1800 func (*MacipACLAdd) GetMessageType() api.MessageType { return api.RequestMessage }
1802 func (m *MacipACLAdd) Size() int {
1812 for j1 := 0; j1 < len(m.R); j1++ {
1818 // field[2] s1.IsPermit
1820 // field[2] s1.SrcMac
1822 // field[2] s1.SrcMacMask
1824 // field[2] s1.SrcPrefix
1825 // field[3] s1.SrcPrefix.Address
1826 // field[4] s1.SrcPrefix.Address.Af
1828 // field[4] s1.SrcPrefix.Address.Un
1830 // field[3] s1.SrcPrefix.Len
1835 func (m *MacipACLAdd) Marshal(b []byte) ([]byte, error) {
1836 o := binary.BigEndian
1842 buf = make([]byte, m.Size())
1847 copy(buf[pos:pos+64], m.Tag)
1850 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
1853 for j1 := 0; j1 < len(m.R); j1++ {
1858 // field[2] v1.IsPermit
1859 buf[pos] = uint8(v1.IsPermit)
1861 // field[2] v1.SrcMac
1862 for i := 0; i < 6; i++ {
1864 if i < len(v1.SrcMac) {
1865 x = uint8(v1.SrcMac[i])
1870 // field[2] v1.SrcMacMask
1871 for i := 0; i < 6; i++ {
1873 if i < len(v1.SrcMacMask) {
1874 x = uint8(v1.SrcMacMask[i])
1879 // field[2] v1.SrcPrefix
1880 // field[3] v1.SrcPrefix.Address
1881 // field[4] v1.SrcPrefix.Address.Af
1882 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
1884 // field[4] v1.SrcPrefix.Address.Un
1885 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
1887 // field[3] v1.SrcPrefix.Len
1888 buf[pos] = uint8(v1.SrcPrefix.Len)
1893 func (m *MacipACLAdd) Unmarshal(tmp []byte) error {
1894 o := binary.BigEndian
1900 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
1901 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
1905 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
1908 m.R = make([]MacipACLRule, int(m.Count))
1909 for j1 := 0; j1 < int(m.Count); j1++ {
1910 // field[2] m.R[j1].IsPermit
1911 m.R[j1].IsPermit = ACLAction(tmp[pos])
1913 // field[2] m.R[j1].SrcMac
1914 for i := 0; i < len(m.R[j1].SrcMac); i++ {
1915 m.R[j1].SrcMac[i] = uint8(tmp[pos])
1918 // field[2] m.R[j1].SrcMacMask
1919 for i := 0; i < len(m.R[j1].SrcMacMask); i++ {
1920 m.R[j1].SrcMacMask[i] = uint8(tmp[pos])
1923 // field[2] m.R[j1].SrcPrefix
1924 // field[3] m.R[j1].SrcPrefix.Address
1925 // field[4] m.R[j1].SrcPrefix.Address.Af
1926 m.R[j1].SrcPrefix.Address.Af = AddressFamily(tmp[pos])
1928 // field[4] m.R[j1].SrcPrefix.Address.Un
1929 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
1931 // field[3] m.R[j1].SrcPrefix.Len
1932 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
1938 // MacipACLAddReplace represents VPP binary API message 'macip_acl_add_replace'.
1939 type MacipACLAddReplace struct {
1940 ACLIndex uint32 `binapi:"u32,name=acl_index,default=4.294967295e+09" json:"acl_index,omitempty"`
1941 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
1942 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
1943 R []MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
1946 func (m *MacipACLAddReplace) Reset() { *m = MacipACLAddReplace{} }
1947 func (*MacipACLAddReplace) GetMessageName() string { return "macip_acl_add_replace" }
1948 func (*MacipACLAddReplace) GetCrcString() string { return "e34402a7" }
1949 func (*MacipACLAddReplace) GetMessageType() api.MessageType { return api.RequestMessage }
1951 func (m *MacipACLAddReplace) Size() int {
1956 // field[1] m.ACLIndex
1963 for j1 := 0; j1 < len(m.R); j1++ {
1969 // field[2] s1.IsPermit
1971 // field[2] s1.SrcMac
1973 // field[2] s1.SrcMacMask
1975 // field[2] s1.SrcPrefix
1976 // field[3] s1.SrcPrefix.Address
1977 // field[4] s1.SrcPrefix.Address.Af
1979 // field[4] s1.SrcPrefix.Address.Un
1981 // field[3] s1.SrcPrefix.Len
1986 func (m *MacipACLAddReplace) Marshal(b []byte) ([]byte, error) {
1987 o := binary.BigEndian
1993 buf = make([]byte, m.Size())
1997 // field[1] m.ACLIndex
1998 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2001 copy(buf[pos:pos+64], m.Tag)
2004 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
2007 for j1 := 0; j1 < len(m.R); j1++ {
2012 // field[2] v1.IsPermit
2013 buf[pos] = uint8(v1.IsPermit)
2015 // field[2] v1.SrcMac
2016 for i := 0; i < 6; i++ {
2018 if i < len(v1.SrcMac) {
2019 x = uint8(v1.SrcMac[i])
2024 // field[2] v1.SrcMacMask
2025 for i := 0; i < 6; i++ {
2027 if i < len(v1.SrcMacMask) {
2028 x = uint8(v1.SrcMacMask[i])
2033 // field[2] v1.SrcPrefix
2034 // field[3] v1.SrcPrefix.Address
2035 // field[4] v1.SrcPrefix.Address.Af
2036 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
2038 // field[4] v1.SrcPrefix.Address.Un
2039 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
2041 // field[3] v1.SrcPrefix.Len
2042 buf[pos] = uint8(v1.SrcPrefix.Len)
2047 func (m *MacipACLAddReplace) Unmarshal(tmp []byte) error {
2048 o := binary.BigEndian
2052 // field[1] m.ACLIndex
2053 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2057 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
2058 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
2062 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
2065 m.R = make([]MacipACLRule, int(m.Count))
2066 for j1 := 0; j1 < int(m.Count); j1++ {
2067 // field[2] m.R[j1].IsPermit
2068 m.R[j1].IsPermit = ACLAction(tmp[pos])
2070 // field[2] m.R[j1].SrcMac
2071 for i := 0; i < len(m.R[j1].SrcMac); i++ {
2072 m.R[j1].SrcMac[i] = uint8(tmp[pos])
2075 // field[2] m.R[j1].SrcMacMask
2076 for i := 0; i < len(m.R[j1].SrcMacMask); i++ {
2077 m.R[j1].SrcMacMask[i] = uint8(tmp[pos])
2080 // field[2] m.R[j1].SrcPrefix
2081 // field[3] m.R[j1].SrcPrefix.Address
2082 // field[4] m.R[j1].SrcPrefix.Address.Af
2083 m.R[j1].SrcPrefix.Address.Af = AddressFamily(tmp[pos])
2085 // field[4] m.R[j1].SrcPrefix.Address.Un
2086 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
2088 // field[3] m.R[j1].SrcPrefix.Len
2089 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
2095 // MacipACLAddReplaceReply represents VPP binary API message 'macip_acl_add_replace_reply'.
2096 type MacipACLAddReplaceReply struct {
2097 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2098 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2101 func (m *MacipACLAddReplaceReply) Reset() { *m = MacipACLAddReplaceReply{} }
2102 func (*MacipACLAddReplaceReply) GetMessageName() string { return "macip_acl_add_replace_reply" }
2103 func (*MacipACLAddReplaceReply) GetCrcString() string { return "ac407b0c" }
2104 func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2106 func (m *MacipACLAddReplaceReply) Size() int {
2111 // field[1] m.ACLIndex
2113 // field[1] m.Retval
2117 func (m *MacipACLAddReplaceReply) Marshal(b []byte) ([]byte, error) {
2118 o := binary.BigEndian
2124 buf = make([]byte, m.Size())
2128 // field[1] m.ACLIndex
2129 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2131 // field[1] m.Retval
2132 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2136 func (m *MacipACLAddReplaceReply) Unmarshal(tmp []byte) error {
2137 o := binary.BigEndian
2141 // field[1] m.ACLIndex
2142 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2144 // field[1] m.Retval
2145 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2150 // MacipACLAddReply represents VPP binary API message 'macip_acl_add_reply'.
2151 type MacipACLAddReply struct {
2152 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2153 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2156 func (m *MacipACLAddReply) Reset() { *m = MacipACLAddReply{} }
2157 func (*MacipACLAddReply) GetMessageName() string { return "macip_acl_add_reply" }
2158 func (*MacipACLAddReply) GetCrcString() string { return "ac407b0c" }
2159 func (*MacipACLAddReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2161 func (m *MacipACLAddReply) Size() int {
2166 // field[1] m.ACLIndex
2168 // field[1] m.Retval
2172 func (m *MacipACLAddReply) Marshal(b []byte) ([]byte, error) {
2173 o := binary.BigEndian
2179 buf = make([]byte, m.Size())
2183 // field[1] m.ACLIndex
2184 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2186 // field[1] m.Retval
2187 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2191 func (m *MacipACLAddReply) Unmarshal(tmp []byte) error {
2192 o := binary.BigEndian
2196 // field[1] m.ACLIndex
2197 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2199 // field[1] m.Retval
2200 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2205 // MacipACLDel represents VPP binary API message 'macip_acl_del'.
2206 type MacipACLDel struct {
2207 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2210 func (m *MacipACLDel) Reset() { *m = MacipACLDel{} }
2211 func (*MacipACLDel) GetMessageName() string { return "macip_acl_del" }
2212 func (*MacipACLDel) GetCrcString() string { return "ef34fea4" }
2213 func (*MacipACLDel) GetMessageType() api.MessageType { return api.RequestMessage }
2215 func (m *MacipACLDel) Size() int {
2220 // field[1] m.ACLIndex
2224 func (m *MacipACLDel) Marshal(b []byte) ([]byte, error) {
2225 o := binary.BigEndian
2231 buf = make([]byte, m.Size())
2235 // field[1] m.ACLIndex
2236 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2240 func (m *MacipACLDel) Unmarshal(tmp []byte) error {
2241 o := binary.BigEndian
2245 // field[1] m.ACLIndex
2246 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2251 // MacipACLDelReply represents VPP binary API message 'macip_acl_del_reply'.
2252 type MacipACLDelReply struct {
2253 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2256 func (m *MacipACLDelReply) Reset() { *m = MacipACLDelReply{} }
2257 func (*MacipACLDelReply) GetMessageName() string { return "macip_acl_del_reply" }
2258 func (*MacipACLDelReply) GetCrcString() string { return "e8d4e804" }
2259 func (*MacipACLDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2261 func (m *MacipACLDelReply) Size() int {
2266 // field[1] m.Retval
2270 func (m *MacipACLDelReply) Marshal(b []byte) ([]byte, error) {
2271 o := binary.BigEndian
2277 buf = make([]byte, m.Size())
2281 // field[1] m.Retval
2282 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2286 func (m *MacipACLDelReply) Unmarshal(tmp []byte) error {
2287 o := binary.BigEndian
2291 // field[1] m.Retval
2292 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2297 // MacipACLDetails represents VPP binary API message 'macip_acl_details'.
2298 type MacipACLDetails struct {
2299 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2300 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
2301 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=R"`
2302 R []MacipACLRule `binapi:"macip_acl_rule[count],name=r" json:"r,omitempty"`
2305 func (m *MacipACLDetails) Reset() { *m = MacipACLDetails{} }
2306 func (*MacipACLDetails) GetMessageName() string { return "macip_acl_details" }
2307 func (*MacipACLDetails) GetCrcString() string { return "57c7482f" }
2308 func (*MacipACLDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
2310 func (m *MacipACLDetails) Size() int {
2315 // field[1] m.ACLIndex
2322 for j1 := 0; j1 < len(m.R); j1++ {
2328 // field[2] s1.IsPermit
2330 // field[2] s1.SrcMac
2332 // field[2] s1.SrcMacMask
2334 // field[2] s1.SrcPrefix
2335 // field[3] s1.SrcPrefix.Address
2336 // field[4] s1.SrcPrefix.Address.Af
2338 // field[4] s1.SrcPrefix.Address.Un
2340 // field[3] s1.SrcPrefix.Len
2345 func (m *MacipACLDetails) Marshal(b []byte) ([]byte, error) {
2346 o := binary.BigEndian
2352 buf = make([]byte, m.Size())
2356 // field[1] m.ACLIndex
2357 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2360 copy(buf[pos:pos+64], m.Tag)
2363 o.PutUint32(buf[pos:pos+4], uint32(len(m.R)))
2366 for j1 := 0; j1 < len(m.R); j1++ {
2371 // field[2] v1.IsPermit
2372 buf[pos] = uint8(v1.IsPermit)
2374 // field[2] v1.SrcMac
2375 for i := 0; i < 6; i++ {
2377 if i < len(v1.SrcMac) {
2378 x = uint8(v1.SrcMac[i])
2383 // field[2] v1.SrcMacMask
2384 for i := 0; i < 6; i++ {
2386 if i < len(v1.SrcMacMask) {
2387 x = uint8(v1.SrcMacMask[i])
2392 // field[2] v1.SrcPrefix
2393 // field[3] v1.SrcPrefix.Address
2394 // field[4] v1.SrcPrefix.Address.Af
2395 buf[pos] = uint8(v1.SrcPrefix.Address.Af)
2397 // field[4] v1.SrcPrefix.Address.Un
2398 copy(buf[pos:pos+16], v1.SrcPrefix.Address.Un.XXX_UnionData[:])
2400 // field[3] v1.SrcPrefix.Len
2401 buf[pos] = uint8(v1.SrcPrefix.Len)
2406 func (m *MacipACLDetails) Unmarshal(tmp []byte) error {
2407 o := binary.BigEndian
2411 // field[1] m.ACLIndex
2412 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2416 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
2417 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
2421 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
2424 m.R = make([]MacipACLRule, int(m.Count))
2425 for j1 := 0; j1 < int(m.Count); j1++ {
2426 // field[2] m.R[j1].IsPermit
2427 m.R[j1].IsPermit = ACLAction(tmp[pos])
2429 // field[2] m.R[j1].SrcMac
2430 for i := 0; i < len(m.R[j1].SrcMac); i++ {
2431 m.R[j1].SrcMac[i] = uint8(tmp[pos])
2434 // field[2] m.R[j1].SrcMacMask
2435 for i := 0; i < len(m.R[j1].SrcMacMask); i++ {
2436 m.R[j1].SrcMacMask[i] = uint8(tmp[pos])
2439 // field[2] m.R[j1].SrcPrefix
2440 // field[3] m.R[j1].SrcPrefix.Address
2441 // field[4] m.R[j1].SrcPrefix.Address.Af
2442 m.R[j1].SrcPrefix.Address.Af = AddressFamily(tmp[pos])
2444 // field[4] m.R[j1].SrcPrefix.Address.Un
2445 copy(m.R[j1].SrcPrefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
2447 // field[3] m.R[j1].SrcPrefix.Len
2448 m.R[j1].SrcPrefix.Len = uint8(tmp[pos])
2454 // MacipACLDump represents VPP binary API message 'macip_acl_dump'.
2455 type MacipACLDump struct {
2456 ACLIndex uint32 `binapi:"u32,name=acl_index,default=4.294967295e+09" json:"acl_index,omitempty"`
2459 func (m *MacipACLDump) Reset() { *m = MacipACLDump{} }
2460 func (*MacipACLDump) GetMessageName() string { return "macip_acl_dump" }
2461 func (*MacipACLDump) GetCrcString() string { return "ef34fea4" }
2462 func (*MacipACLDump) GetMessageType() api.MessageType { return api.RequestMessage }
2464 func (m *MacipACLDump) Size() int {
2469 // field[1] m.ACLIndex
2473 func (m *MacipACLDump) Marshal(b []byte) ([]byte, error) {
2474 o := binary.BigEndian
2480 buf = make([]byte, m.Size())
2484 // field[1] m.ACLIndex
2485 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2489 func (m *MacipACLDump) Unmarshal(tmp []byte) error {
2490 o := binary.BigEndian
2494 // field[1] m.ACLIndex
2495 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2500 // MacipACLInterfaceAddDel represents VPP binary API message 'macip_acl_interface_add_del'.
2501 type MacipACLInterfaceAddDel struct {
2502 IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"`
2503 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2504 ACLIndex uint32 `binapi:"u32,name=acl_index" json:"acl_index,omitempty"`
2507 func (m *MacipACLInterfaceAddDel) Reset() { *m = MacipACLInterfaceAddDel{} }
2508 func (*MacipACLInterfaceAddDel) GetMessageName() string { return "macip_acl_interface_add_del" }
2509 func (*MacipACLInterfaceAddDel) GetCrcString() string { return "4b8690b1" }
2510 func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
2512 func (m *MacipACLInterfaceAddDel) Size() int {
2519 // field[1] m.SwIfIndex
2521 // field[1] m.ACLIndex
2525 func (m *MacipACLInterfaceAddDel) Marshal(b []byte) ([]byte, error) {
2526 o := binary.BigEndian
2532 buf = make([]byte, m.Size())
2541 // field[1] m.SwIfIndex
2542 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2544 // field[1] m.ACLIndex
2545 o.PutUint32(buf[pos:pos+4], uint32(m.ACLIndex))
2549 func (m *MacipACLInterfaceAddDel) Unmarshal(tmp []byte) error {
2550 o := binary.BigEndian
2555 m.IsAdd = tmp[pos] != 0
2557 // field[1] m.SwIfIndex
2558 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2560 // field[1] m.ACLIndex
2561 m.ACLIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2566 // MacipACLInterfaceAddDelReply represents VPP binary API message 'macip_acl_interface_add_del_reply'.
2567 type MacipACLInterfaceAddDelReply struct {
2568 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2571 func (m *MacipACLInterfaceAddDelReply) Reset() { *m = MacipACLInterfaceAddDelReply{} }
2572 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
2573 return "macip_acl_interface_add_del_reply"
2575 func (*MacipACLInterfaceAddDelReply) GetCrcString() string { return "e8d4e804" }
2576 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2578 func (m *MacipACLInterfaceAddDelReply) Size() int {
2583 // field[1] m.Retval
2587 func (m *MacipACLInterfaceAddDelReply) Marshal(b []byte) ([]byte, error) {
2588 o := binary.BigEndian
2594 buf = make([]byte, m.Size())
2598 // field[1] m.Retval
2599 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2603 func (m *MacipACLInterfaceAddDelReply) Unmarshal(tmp []byte) error {
2604 o := binary.BigEndian
2608 // field[1] m.Retval
2609 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2614 // MacipACLInterfaceGet represents VPP binary API message 'macip_acl_interface_get'.
2615 type MacipACLInterfaceGet struct{}
2617 func (m *MacipACLInterfaceGet) Reset() { *m = MacipACLInterfaceGet{} }
2618 func (*MacipACLInterfaceGet) GetMessageName() string { return "macip_acl_interface_get" }
2619 func (*MacipACLInterfaceGet) GetCrcString() string { return "51077d14" }
2620 func (*MacipACLInterfaceGet) GetMessageType() api.MessageType { return api.RequestMessage }
2622 func (m *MacipACLInterfaceGet) Size() int {
2629 func (m *MacipACLInterfaceGet) Marshal(b []byte) ([]byte, error) {
2630 o := binary.BigEndian
2636 buf = make([]byte, m.Size())
2642 func (m *MacipACLInterfaceGet) Unmarshal(tmp []byte) error {
2643 o := binary.BigEndian
2650 // MacipACLInterfaceGetReply represents VPP binary API message 'macip_acl_interface_get_reply'.
2651 type MacipACLInterfaceGetReply struct {
2652 Count uint32 `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
2653 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
2656 func (m *MacipACLInterfaceGetReply) Reset() { *m = MacipACLInterfaceGetReply{} }
2657 func (*MacipACLInterfaceGetReply) GetMessageName() string { return "macip_acl_interface_get_reply" }
2658 func (*MacipACLInterfaceGetReply) GetCrcString() string { return "accf9b05" }
2659 func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2661 func (m *MacipACLInterfaceGetReply) Size() int {
2669 size += 4 * len(m.Acls)
2672 func (m *MacipACLInterfaceGetReply) Marshal(b []byte) ([]byte, error) {
2673 o := binary.BigEndian
2679 buf = make([]byte, m.Size())
2684 o.PutUint32(buf[pos:pos+4], uint32(len(m.Acls)))
2687 for i := 0; i < len(m.Acls); i++ {
2689 if i < len(m.Acls) {
2690 x = uint32(m.Acls[i])
2692 o.PutUint32(buf[pos:pos+4], uint32(x))
2697 func (m *MacipACLInterfaceGetReply) Unmarshal(tmp []byte) error {
2698 o := binary.BigEndian
2703 m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
2706 m.Acls = make([]uint32, m.Count)
2707 for i := 0; i < len(m.Acls); i++ {
2708 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
2714 // MacipACLInterfaceListDetails represents VPP binary API message 'macip_acl_interface_list_details'.
2715 type MacipACLInterfaceListDetails struct {
2716 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2717 Count uint8 `binapi:"u8,name=count" json:"count,omitempty" struc:"sizeof=Acls"`
2718 Acls []uint32 `binapi:"u32[count],name=acls" json:"acls,omitempty"`
2721 func (m *MacipACLInterfaceListDetails) Reset() { *m = MacipACLInterfaceListDetails{} }
2722 func (*MacipACLInterfaceListDetails) GetMessageName() string {
2723 return "macip_acl_interface_list_details"
2725 func (*MacipACLInterfaceListDetails) GetCrcString() string { return "a0c5d56d" }
2726 func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
2728 func (m *MacipACLInterfaceListDetails) Size() int {
2733 // field[1] m.SwIfIndex
2738 size += 4 * len(m.Acls)
2741 func (m *MacipACLInterfaceListDetails) Marshal(b []byte) ([]byte, error) {
2742 o := binary.BigEndian
2748 buf = make([]byte, m.Size())
2752 // field[1] m.SwIfIndex
2753 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2756 buf[pos] = uint8(len(m.Acls))
2759 for i := 0; i < len(m.Acls); i++ {
2761 if i < len(m.Acls) {
2762 x = uint32(m.Acls[i])
2764 o.PutUint32(buf[pos:pos+4], uint32(x))
2769 func (m *MacipACLInterfaceListDetails) Unmarshal(tmp []byte) error {
2770 o := binary.BigEndian
2774 // field[1] m.SwIfIndex
2775 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2778 m.Count = uint8(tmp[pos])
2781 m.Acls = make([]uint32, m.Count)
2782 for i := 0; i < len(m.Acls); i++ {
2783 m.Acls[i] = uint32(o.Uint32(tmp[pos : pos+4]))
2789 // MacipACLInterfaceListDump represents VPP binary API message 'macip_acl_interface_list_dump'.
2790 type MacipACLInterfaceListDump struct {
2791 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2794 func (m *MacipACLInterfaceListDump) Reset() { *m = MacipACLInterfaceListDump{} }
2795 func (*MacipACLInterfaceListDump) GetMessageName() string { return "macip_acl_interface_list_dump" }
2796 func (*MacipACLInterfaceListDump) GetCrcString() string { return "f9e6675e" }
2797 func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType { return api.RequestMessage }
2799 func (m *MacipACLInterfaceListDump) Size() int {
2804 // field[1] m.SwIfIndex
2808 func (m *MacipACLInterfaceListDump) Marshal(b []byte) ([]byte, error) {
2809 o := binary.BigEndian
2815 buf = make([]byte, m.Size())
2819 // field[1] m.SwIfIndex
2820 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2824 func (m *MacipACLInterfaceListDump) Unmarshal(tmp []byte) error {
2825 o := binary.BigEndian
2829 // field[1] m.SwIfIndex
2830 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2835 func init() { file_acl_binapi_init() }
2836 func file_acl_binapi_init() {
2837 api.RegisterMessage((*ACLAddReplace)(nil), "acl.ACLAddReplace")
2838 api.RegisterMessage((*ACLAddReplaceReply)(nil), "acl.ACLAddReplaceReply")
2839 api.RegisterMessage((*ACLDel)(nil), "acl.ACLDel")
2840 api.RegisterMessage((*ACLDelReply)(nil), "acl.ACLDelReply")
2841 api.RegisterMessage((*ACLDetails)(nil), "acl.ACLDetails")
2842 api.RegisterMessage((*ACLDump)(nil), "acl.ACLDump")
2843 api.RegisterMessage((*ACLInterfaceAddDel)(nil), "acl.ACLInterfaceAddDel")
2844 api.RegisterMessage((*ACLInterfaceAddDelReply)(nil), "acl.ACLInterfaceAddDelReply")
2845 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDetails)(nil), "acl.ACLInterfaceEtypeWhitelistDetails")
2846 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDump)(nil), "acl.ACLInterfaceEtypeWhitelistDump")
2847 api.RegisterMessage((*ACLInterfaceListDetails)(nil), "acl.ACLInterfaceListDetails")
2848 api.RegisterMessage((*ACLInterfaceListDump)(nil), "acl.ACLInterfaceListDump")
2849 api.RegisterMessage((*ACLInterfaceSetACLList)(nil), "acl.ACLInterfaceSetACLList")
2850 api.RegisterMessage((*ACLInterfaceSetACLListReply)(nil), "acl.ACLInterfaceSetACLListReply")
2851 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelist)(nil), "acl.ACLInterfaceSetEtypeWhitelist")
2852 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelistReply)(nil), "acl.ACLInterfaceSetEtypeWhitelistReply")
2853 api.RegisterMessage((*ACLPluginControlPing)(nil), "acl.ACLPluginControlPing")
2854 api.RegisterMessage((*ACLPluginControlPingReply)(nil), "acl.ACLPluginControlPingReply")
2855 api.RegisterMessage((*ACLPluginGetConnTableMaxEntries)(nil), "acl.ACLPluginGetConnTableMaxEntries")
2856 api.RegisterMessage((*ACLPluginGetConnTableMaxEntriesReply)(nil), "acl.ACLPluginGetConnTableMaxEntriesReply")
2857 api.RegisterMessage((*ACLPluginGetVersion)(nil), "acl.ACLPluginGetVersion")
2858 api.RegisterMessage((*ACLPluginGetVersionReply)(nil), "acl.ACLPluginGetVersionReply")
2859 api.RegisterMessage((*ACLStatsIntfCountersEnable)(nil), "acl.ACLStatsIntfCountersEnable")
2860 api.RegisterMessage((*ACLStatsIntfCountersEnableReply)(nil), "acl.ACLStatsIntfCountersEnableReply")
2861 api.RegisterMessage((*MacipACLAdd)(nil), "acl.MacipACLAdd")
2862 api.RegisterMessage((*MacipACLAddReplace)(nil), "acl.MacipACLAddReplace")
2863 api.RegisterMessage((*MacipACLAddReplaceReply)(nil), "acl.MacipACLAddReplaceReply")
2864 api.RegisterMessage((*MacipACLAddReply)(nil), "acl.MacipACLAddReply")
2865 api.RegisterMessage((*MacipACLDel)(nil), "acl.MacipACLDel")
2866 api.RegisterMessage((*MacipACLDelReply)(nil), "acl.MacipACLDelReply")
2867 api.RegisterMessage((*MacipACLDetails)(nil), "acl.MacipACLDetails")
2868 api.RegisterMessage((*MacipACLDump)(nil), "acl.MacipACLDump")
2869 api.RegisterMessage((*MacipACLInterfaceAddDel)(nil), "acl.MacipACLInterfaceAddDel")
2870 api.RegisterMessage((*MacipACLInterfaceAddDelReply)(nil), "acl.MacipACLInterfaceAddDelReply")
2871 api.RegisterMessage((*MacipACLInterfaceGet)(nil), "acl.MacipACLInterfaceGet")
2872 api.RegisterMessage((*MacipACLInterfaceGetReply)(nil), "acl.MacipACLInterfaceGetReply")
2873 api.RegisterMessage((*MacipACLInterfaceListDetails)(nil), "acl.MacipACLInterfaceListDetails")
2874 api.RegisterMessage((*MacipACLInterfaceListDump)(nil), "acl.MacipACLInterfaceListDump")
2877 // Messages returns list of all messages in this module.
2878 func AllMessages() []api.Message {
2879 return []api.Message{
2880 (*ACLAddReplace)(nil),
2881 (*ACLAddReplaceReply)(nil),
2883 (*ACLDelReply)(nil),
2886 (*ACLInterfaceAddDel)(nil),
2887 (*ACLInterfaceAddDelReply)(nil),
2888 (*ACLInterfaceEtypeWhitelistDetails)(nil),
2889 (*ACLInterfaceEtypeWhitelistDump)(nil),
2890 (*ACLInterfaceListDetails)(nil),
2891 (*ACLInterfaceListDump)(nil),
2892 (*ACLInterfaceSetACLList)(nil),
2893 (*ACLInterfaceSetACLListReply)(nil),
2894 (*ACLInterfaceSetEtypeWhitelist)(nil),
2895 (*ACLInterfaceSetEtypeWhitelistReply)(nil),
2896 (*ACLPluginControlPing)(nil),
2897 (*ACLPluginControlPingReply)(nil),
2898 (*ACLPluginGetConnTableMaxEntries)(nil),
2899 (*ACLPluginGetConnTableMaxEntriesReply)(nil),
2900 (*ACLPluginGetVersion)(nil),
2901 (*ACLPluginGetVersionReply)(nil),
2902 (*ACLStatsIntfCountersEnable)(nil),
2903 (*ACLStatsIntfCountersEnableReply)(nil),
2904 (*MacipACLAdd)(nil),
2905 (*MacipACLAddReplace)(nil),
2906 (*MacipACLAddReplaceReply)(nil),
2907 (*MacipACLAddReply)(nil),
2908 (*MacipACLDel)(nil),
2909 (*MacipACLDelReply)(nil),
2910 (*MacipACLDetails)(nil),
2911 (*MacipACLDump)(nil),
2912 (*MacipACLInterfaceAddDel)(nil),
2913 (*MacipACLInterfaceAddDelReply)(nil),
2914 (*MacipACLInterfaceGet)(nil),
2915 (*MacipACLInterfaceGetReply)(nil),
2916 (*MacipACLInterfaceListDetails)(nil),
2917 (*MacipACLInterfaceListDump)(nil),
2921 // Reference imports to suppress errors if they are not otherwise used.
2922 var _ = api.RegisterMessage
2923 var _ = codec.DecodeString
2924 var _ = bytes.NewBuffer
2925 var _ = context.Background
2927 var _ = strconv.Itoa
2929 var _ = binary.BigEndian
2930 var _ = math.Float32bits