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/core/interface.api.json
8 Package interfaces contains generated code for VPP binary API defined by interface.api (version 3.2.2).
27 api "git.fd.io/govpp.git/api"
28 codec "git.fd.io/govpp.git/codec"
29 struc "github.com/lunixbochs/struc"
32 // This is a compile-time assertion to ensure that this generated file
33 // is compatible with the GoVPP api package it is being compiled against.
34 // A compilation error at this line likely means your copy of the
35 // GoVPP api package needs to be updated.
36 const _ = api.GoVppAPIPackageIsVersion2 // please upgrade the GoVPP api package
39 // ModuleName is the name of this module.
40 ModuleName = "interface"
41 // APIVersion is the API version of this module.
43 // VersionCrc is the CRC of this module.
44 VersionCrc = 0xfebc3ffa
47 // AddressFamily represents VPP binary API enum 'address_family'.
48 type AddressFamily uint32
51 ADDRESS_IP4 AddressFamily = 0
52 ADDRESS_IP6 AddressFamily = 1
56 AddressFamily_name = map[uint32]string{
60 AddressFamily_value = map[string]uint32{
66 func (x AddressFamily) String() string {
67 s, ok := AddressFamily_name[uint32(x)]
71 return "AddressFamily(" + strconv.Itoa(int(x)) + ")"
74 // IfStatusFlags represents VPP binary API enum 'if_status_flags'.
75 type IfStatusFlags uint32
78 IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1
79 IF_STATUS_API_FLAG_LINK_UP IfStatusFlags = 2
83 IfStatusFlags_name = map[uint32]string{
84 1: "IF_STATUS_API_FLAG_ADMIN_UP",
85 2: "IF_STATUS_API_FLAG_LINK_UP",
87 IfStatusFlags_value = map[string]uint32{
88 "IF_STATUS_API_FLAG_ADMIN_UP": 1,
89 "IF_STATUS_API_FLAG_LINK_UP": 2,
93 func (x IfStatusFlags) String() string {
94 s, ok := IfStatusFlags_name[uint32(x)]
98 return "IfStatusFlags(" + strconv.Itoa(int(x)) + ")"
101 // IfType represents VPP binary API enum 'if_type'.
105 IF_API_TYPE_HARDWARE IfType = 1
106 IF_API_TYPE_SUB IfType = 2
107 IF_API_TYPE_P2P IfType = 3
108 IF_API_TYPE_PIPE IfType = 4
112 IfType_name = map[uint32]string{
113 1: "IF_API_TYPE_HARDWARE",
114 2: "IF_API_TYPE_SUB",
115 3: "IF_API_TYPE_P2P",
116 4: "IF_API_TYPE_PIPE",
118 IfType_value = map[string]uint32{
119 "IF_API_TYPE_HARDWARE": 1,
120 "IF_API_TYPE_SUB": 2,
121 "IF_API_TYPE_P2P": 3,
122 "IF_API_TYPE_PIPE": 4,
126 func (x IfType) String() string {
127 s, ok := IfType_name[uint32(x)]
131 return "IfType(" + strconv.Itoa(int(x)) + ")"
134 // IPDscp represents VPP binary API enum 'ip_dscp'.
138 IP_API_DSCP_CS0 IPDscp = 0
139 IP_API_DSCP_CS1 IPDscp = 8
140 IP_API_DSCP_AF11 IPDscp = 10
141 IP_API_DSCP_AF12 IPDscp = 12
142 IP_API_DSCP_AF13 IPDscp = 14
143 IP_API_DSCP_CS2 IPDscp = 16
144 IP_API_DSCP_AF21 IPDscp = 18
145 IP_API_DSCP_AF22 IPDscp = 20
146 IP_API_DSCP_AF23 IPDscp = 22
147 IP_API_DSCP_CS3 IPDscp = 24
148 IP_API_DSCP_AF31 IPDscp = 26
149 IP_API_DSCP_AF32 IPDscp = 28
150 IP_API_DSCP_AF33 IPDscp = 30
151 IP_API_DSCP_CS4 IPDscp = 32
152 IP_API_DSCP_AF41 IPDscp = 34
153 IP_API_DSCP_AF42 IPDscp = 36
154 IP_API_DSCP_AF43 IPDscp = 38
155 IP_API_DSCP_CS5 IPDscp = 40
156 IP_API_DSCP_EF IPDscp = 46
157 IP_API_DSCP_CS6 IPDscp = 48
158 IP_API_DSCP_CS7 IPDscp = 50
162 IPDscp_name = map[uint8]string{
163 0: "IP_API_DSCP_CS0",
164 8: "IP_API_DSCP_CS1",
165 10: "IP_API_DSCP_AF11",
166 12: "IP_API_DSCP_AF12",
167 14: "IP_API_DSCP_AF13",
168 16: "IP_API_DSCP_CS2",
169 18: "IP_API_DSCP_AF21",
170 20: "IP_API_DSCP_AF22",
171 22: "IP_API_DSCP_AF23",
172 24: "IP_API_DSCP_CS3",
173 26: "IP_API_DSCP_AF31",
174 28: "IP_API_DSCP_AF32",
175 30: "IP_API_DSCP_AF33",
176 32: "IP_API_DSCP_CS4",
177 34: "IP_API_DSCP_AF41",
178 36: "IP_API_DSCP_AF42",
179 38: "IP_API_DSCP_AF43",
180 40: "IP_API_DSCP_CS5",
181 46: "IP_API_DSCP_EF",
182 48: "IP_API_DSCP_CS6",
183 50: "IP_API_DSCP_CS7",
185 IPDscp_value = map[string]uint8{
186 "IP_API_DSCP_CS0": 0,
187 "IP_API_DSCP_CS1": 8,
188 "IP_API_DSCP_AF11": 10,
189 "IP_API_DSCP_AF12": 12,
190 "IP_API_DSCP_AF13": 14,
191 "IP_API_DSCP_CS2": 16,
192 "IP_API_DSCP_AF21": 18,
193 "IP_API_DSCP_AF22": 20,
194 "IP_API_DSCP_AF23": 22,
195 "IP_API_DSCP_CS3": 24,
196 "IP_API_DSCP_AF31": 26,
197 "IP_API_DSCP_AF32": 28,
198 "IP_API_DSCP_AF33": 30,
199 "IP_API_DSCP_CS4": 32,
200 "IP_API_DSCP_AF41": 34,
201 "IP_API_DSCP_AF42": 36,
202 "IP_API_DSCP_AF43": 38,
203 "IP_API_DSCP_CS5": 40,
204 "IP_API_DSCP_EF": 46,
205 "IP_API_DSCP_CS6": 48,
206 "IP_API_DSCP_CS7": 50,
210 func (x IPDscp) String() string {
211 s, ok := IPDscp_name[uint8(x)]
215 return "IPDscp(" + strconv.Itoa(int(x)) + ")"
218 // IPEcn represents VPP binary API enum 'ip_ecn'.
222 IP_API_ECN_NONE IPEcn = 0
223 IP_API_ECN_ECT0 IPEcn = 1
224 IP_API_ECN_ECT1 IPEcn = 2
225 IP_API_ECN_CE IPEcn = 3
229 IPEcn_name = map[uint8]string{
230 0: "IP_API_ECN_NONE",
231 1: "IP_API_ECN_ECT0",
232 2: "IP_API_ECN_ECT1",
235 IPEcn_value = map[string]uint8{
236 "IP_API_ECN_NONE": 0,
237 "IP_API_ECN_ECT0": 1,
238 "IP_API_ECN_ECT1": 2,
243 func (x IPEcn) String() string {
244 s, ok := IPEcn_name[uint8(x)]
248 return "IPEcn(" + strconv.Itoa(int(x)) + ")"
251 // IPProto represents VPP binary API enum 'ip_proto'.
255 IP_API_PROTO_HOPOPT IPProto = 0
256 IP_API_PROTO_ICMP IPProto = 1
257 IP_API_PROTO_IGMP IPProto = 2
258 IP_API_PROTO_TCP IPProto = 6
259 IP_API_PROTO_UDP IPProto = 17
260 IP_API_PROTO_GRE IPProto = 47
261 IP_API_PROTO_AH IPProto = 50
262 IP_API_PROTO_ESP IPProto = 51
263 IP_API_PROTO_EIGRP IPProto = 88
264 IP_API_PROTO_OSPF IPProto = 89
265 IP_API_PROTO_SCTP IPProto = 132
266 IP_API_PROTO_RESERVED IPProto = 255
270 IPProto_name = map[uint32]string{
271 0: "IP_API_PROTO_HOPOPT",
272 1: "IP_API_PROTO_ICMP",
273 2: "IP_API_PROTO_IGMP",
274 6: "IP_API_PROTO_TCP",
275 17: "IP_API_PROTO_UDP",
276 47: "IP_API_PROTO_GRE",
277 50: "IP_API_PROTO_AH",
278 51: "IP_API_PROTO_ESP",
279 88: "IP_API_PROTO_EIGRP",
280 89: "IP_API_PROTO_OSPF",
281 132: "IP_API_PROTO_SCTP",
282 255: "IP_API_PROTO_RESERVED",
284 IPProto_value = map[string]uint32{
285 "IP_API_PROTO_HOPOPT": 0,
286 "IP_API_PROTO_ICMP": 1,
287 "IP_API_PROTO_IGMP": 2,
288 "IP_API_PROTO_TCP": 6,
289 "IP_API_PROTO_UDP": 17,
290 "IP_API_PROTO_GRE": 47,
291 "IP_API_PROTO_AH": 50,
292 "IP_API_PROTO_ESP": 51,
293 "IP_API_PROTO_EIGRP": 88,
294 "IP_API_PROTO_OSPF": 89,
295 "IP_API_PROTO_SCTP": 132,
296 "IP_API_PROTO_RESERVED": 255,
300 func (x IPProto) String() string {
301 s, ok := IPProto_name[uint32(x)]
305 return "IPProto(" + strconv.Itoa(int(x)) + ")"
308 // LinkDuplex represents VPP binary API enum 'link_duplex'.
309 type LinkDuplex uint32
312 LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0
313 LINK_DUPLEX_API_HALF LinkDuplex = 1
314 LINK_DUPLEX_API_FULL LinkDuplex = 2
318 LinkDuplex_name = map[uint32]string{
319 0: "LINK_DUPLEX_API_UNKNOWN",
320 1: "LINK_DUPLEX_API_HALF",
321 2: "LINK_DUPLEX_API_FULL",
323 LinkDuplex_value = map[string]uint32{
324 "LINK_DUPLEX_API_UNKNOWN": 0,
325 "LINK_DUPLEX_API_HALF": 1,
326 "LINK_DUPLEX_API_FULL": 2,
330 func (x LinkDuplex) String() string {
331 s, ok := LinkDuplex_name[uint32(x)]
335 return "LinkDuplex(" + strconv.Itoa(int(x)) + ")"
338 // MtuProto represents VPP binary API enum 'mtu_proto'.
342 MTU_PROTO_API_L3 MtuProto = 1
343 MTU_PROTO_API_IP4 MtuProto = 2
344 MTU_PROTO_API_IP6 MtuProto = 3
345 MTU_PROTO_API_MPLS MtuProto = 4
346 MTU_PROTO_API_N MtuProto = 5
350 MtuProto_name = map[uint32]string{
351 1: "MTU_PROTO_API_L3",
352 2: "MTU_PROTO_API_IP4",
353 3: "MTU_PROTO_API_IP6",
354 4: "MTU_PROTO_API_MPLS",
355 5: "MTU_PROTO_API_N",
357 MtuProto_value = map[string]uint32{
358 "MTU_PROTO_API_L3": 1,
359 "MTU_PROTO_API_IP4": 2,
360 "MTU_PROTO_API_IP6": 3,
361 "MTU_PROTO_API_MPLS": 4,
362 "MTU_PROTO_API_N": 5,
366 func (x MtuProto) String() string {
367 s, ok := MtuProto_name[uint32(x)]
371 return "MtuProto(" + strconv.Itoa(int(x)) + ")"
374 // RxMode represents VPP binary API enum 'rx_mode'.
378 RX_MODE_API_UNKNOWN RxMode = 0
379 RX_MODE_API_POLLING RxMode = 1
380 RX_MODE_API_INTERRUPT RxMode = 2
381 RX_MODE_API_ADAPTIVE RxMode = 3
382 RX_MODE_API_DEFAULT RxMode = 4
386 RxMode_name = map[uint32]string{
387 0: "RX_MODE_API_UNKNOWN",
388 1: "RX_MODE_API_POLLING",
389 2: "RX_MODE_API_INTERRUPT",
390 3: "RX_MODE_API_ADAPTIVE",
391 4: "RX_MODE_API_DEFAULT",
393 RxMode_value = map[string]uint32{
394 "RX_MODE_API_UNKNOWN": 0,
395 "RX_MODE_API_POLLING": 1,
396 "RX_MODE_API_INTERRUPT": 2,
397 "RX_MODE_API_ADAPTIVE": 3,
398 "RX_MODE_API_DEFAULT": 4,
402 func (x RxMode) String() string {
403 s, ok := RxMode_name[uint32(x)]
407 return "RxMode(" + strconv.Itoa(int(x)) + ")"
410 // SubIfFlags represents VPP binary API enum 'sub_if_flags'.
411 type SubIfFlags uint32
414 SUB_IF_API_FLAG_NO_TAGS SubIfFlags = 1
415 SUB_IF_API_FLAG_ONE_TAG SubIfFlags = 2
416 SUB_IF_API_FLAG_TWO_TAGS SubIfFlags = 4
417 SUB_IF_API_FLAG_DOT1AD SubIfFlags = 8
418 SUB_IF_API_FLAG_EXACT_MATCH SubIfFlags = 16
419 SUB_IF_API_FLAG_DEFAULT SubIfFlags = 32
420 SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64
421 SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128
422 SUB_IF_API_FLAG_MASK_VNET SubIfFlags = 254
423 SUB_IF_API_FLAG_DOT1AH SubIfFlags = 256
427 SubIfFlags_name = map[uint32]string{
428 1: "SUB_IF_API_FLAG_NO_TAGS",
429 2: "SUB_IF_API_FLAG_ONE_TAG",
430 4: "SUB_IF_API_FLAG_TWO_TAGS",
431 8: "SUB_IF_API_FLAG_DOT1AD",
432 16: "SUB_IF_API_FLAG_EXACT_MATCH",
433 32: "SUB_IF_API_FLAG_DEFAULT",
434 64: "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY",
435 128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY",
436 254: "SUB_IF_API_FLAG_MASK_VNET",
437 256: "SUB_IF_API_FLAG_DOT1AH",
439 SubIfFlags_value = map[string]uint32{
440 "SUB_IF_API_FLAG_NO_TAGS": 1,
441 "SUB_IF_API_FLAG_ONE_TAG": 2,
442 "SUB_IF_API_FLAG_TWO_TAGS": 4,
443 "SUB_IF_API_FLAG_DOT1AD": 8,
444 "SUB_IF_API_FLAG_EXACT_MATCH": 16,
445 "SUB_IF_API_FLAG_DEFAULT": 32,
446 "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64,
447 "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128,
448 "SUB_IF_API_FLAG_MASK_VNET": 254,
449 "SUB_IF_API_FLAG_DOT1AH": 256,
453 func (x SubIfFlags) String() string {
454 s, ok := SubIfFlags_name[uint32(x)]
458 return "SubIfFlags(" + strconv.Itoa(int(x)) + ")"
461 // AddressWithPrefix represents VPP binary API alias 'address_with_prefix'.
462 type AddressWithPrefix Prefix
464 // InterfaceIndex represents VPP binary API alias 'interface_index'.
465 type InterfaceIndex uint32
467 // IP4Address represents VPP binary API alias 'ip4_address'.
468 type IP4Address [4]uint8
470 // IP4AddressWithPrefix represents VPP binary API alias 'ip4_address_with_prefix'.
471 type IP4AddressWithPrefix IP4Prefix
473 // IP6Address represents VPP binary API alias 'ip6_address'.
474 type IP6Address [16]uint8
476 // IP6AddressWithPrefix represents VPP binary API alias 'ip6_address_with_prefix'.
477 type IP6AddressWithPrefix IP6Prefix
479 // MacAddress represents VPP binary API alias 'mac_address'.
480 type MacAddress [6]uint8
482 // Address represents VPP binary API type 'address'.
483 type Address struct {
484 Af AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"`
485 Un AddressUnion `binapi:"address_union,name=un" json:"un,omitempty"`
488 func (*Address) GetTypeName() string { return "address" }
490 // IP4Prefix represents VPP binary API type 'ip4_prefix'.
491 type IP4Prefix struct {
492 Address IP4Address `binapi:"ip4_address,name=address" json:"address,omitempty"`
493 Len uint8 `binapi:"u8,name=len" json:"len,omitempty"`
496 func (*IP4Prefix) GetTypeName() string { return "ip4_prefix" }
498 // IP6Prefix represents VPP binary API type 'ip6_prefix'.
499 type IP6Prefix struct {
500 Address IP6Address `binapi:"ip6_address,name=address" json:"address,omitempty"`
501 Len uint8 `binapi:"u8,name=len" json:"len,omitempty"`
504 func (*IP6Prefix) GetTypeName() string { return "ip6_prefix" }
506 // Mprefix represents VPP binary API type 'mprefix'.
507 type Mprefix struct {
508 Af AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"`
509 GrpAddressLength uint16 `binapi:"u16,name=grp_address_length" json:"grp_address_length,omitempty"`
510 GrpAddress AddressUnion `binapi:"address_union,name=grp_address" json:"grp_address,omitempty"`
511 SrcAddress AddressUnion `binapi:"address_union,name=src_address" json:"src_address,omitempty"`
514 func (*Mprefix) GetTypeName() string { return "mprefix" }
516 // Prefix represents VPP binary API type 'prefix'.
518 Address Address `binapi:"address,name=address" json:"address,omitempty"`
519 Len uint8 `binapi:"u8,name=len" json:"len,omitempty"`
522 func (*Prefix) GetTypeName() string { return "prefix" }
524 // PrefixMatcher represents VPP binary API type 'prefix_matcher'.
525 type PrefixMatcher struct {
526 Le uint8 `binapi:"u8,name=le" json:"le,omitempty"`
527 Ge uint8 `binapi:"u8,name=ge" json:"ge,omitempty"`
530 func (*PrefixMatcher) GetTypeName() string { return "prefix_matcher" }
532 // AddressUnion represents VPP binary API union 'address_union'.
533 type AddressUnion struct {
534 XXX_UnionData [16]byte
537 func (*AddressUnion) GetTypeName() string { return "address_union" }
539 func AddressUnionIP4(a IP4Address) (u AddressUnion) {
543 func (u *AddressUnion) SetIP4(a IP4Address) {
544 var b = new(bytes.Buffer)
545 if err := struc.Pack(b, &a); err != nil {
548 copy(u.XXX_UnionData[:], b.Bytes())
550 func (u *AddressUnion) GetIP4() (a IP4Address) {
551 var b = bytes.NewReader(u.XXX_UnionData[:])
556 func AddressUnionIP6(a IP6Address) (u AddressUnion) {
560 func (u *AddressUnion) SetIP6(a IP6Address) {
561 var b = new(bytes.Buffer)
562 if err := struc.Pack(b, &a); err != nil {
565 copy(u.XXX_UnionData[:], b.Bytes())
567 func (u *AddressUnion) GetIP6() (a IP6Address) {
568 var b = bytes.NewReader(u.XXX_UnionData[:])
573 // CollectDetailedInterfaceStats represents VPP binary API message 'collect_detailed_interface_stats'.
574 type CollectDetailedInterfaceStats struct {
575 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
576 EnableDisable bool `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"`
579 func (m *CollectDetailedInterfaceStats) Reset() { *m = CollectDetailedInterfaceStats{} }
580 func (*CollectDetailedInterfaceStats) GetMessageName() string {
581 return "collect_detailed_interface_stats"
583 func (*CollectDetailedInterfaceStats) GetCrcString() string { return "5501adee" }
584 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType { return api.RequestMessage }
586 func (m *CollectDetailedInterfaceStats) Size() int {
591 // field[1] m.SwIfIndex
593 // field[1] m.EnableDisable
597 func (m *CollectDetailedInterfaceStats) Marshal(b []byte) ([]byte, error) {
598 o := binary.BigEndian
604 buf = make([]byte, m.Size())
608 // field[1] m.SwIfIndex
609 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
611 // field[1] m.EnableDisable
618 func (m *CollectDetailedInterfaceStats) Unmarshal(tmp []byte) error {
619 o := binary.BigEndian
623 // field[1] m.SwIfIndex
624 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
626 // field[1] m.EnableDisable
627 m.EnableDisable = tmp[pos] != 0
632 // CollectDetailedInterfaceStatsReply represents VPP binary API message 'collect_detailed_interface_stats_reply'.
633 type CollectDetailedInterfaceStatsReply struct {
634 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
637 func (m *CollectDetailedInterfaceStatsReply) Reset() { *m = CollectDetailedInterfaceStatsReply{} }
638 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
639 return "collect_detailed_interface_stats_reply"
641 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string { return "e8d4e804" }
642 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType { return api.ReplyMessage }
644 func (m *CollectDetailedInterfaceStatsReply) Size() int {
653 func (m *CollectDetailedInterfaceStatsReply) Marshal(b []byte) ([]byte, error) {
654 o := binary.BigEndian
660 buf = make([]byte, m.Size())
665 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
669 func (m *CollectDetailedInterfaceStatsReply) Unmarshal(tmp []byte) error {
670 o := binary.BigEndian
675 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
680 // CreateLoopback represents VPP binary API message 'create_loopback'.
681 type CreateLoopback struct {
682 MacAddress MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
685 func (m *CreateLoopback) Reset() { *m = CreateLoopback{} }
686 func (*CreateLoopback) GetMessageName() string { return "create_loopback" }
687 func (*CreateLoopback) GetCrcString() string { return "42bb5d22" }
688 func (*CreateLoopback) GetMessageType() api.MessageType { return api.RequestMessage }
690 func (m *CreateLoopback) Size() int {
695 // field[1] m.MacAddress
699 func (m *CreateLoopback) Marshal(b []byte) ([]byte, error) {
700 o := binary.BigEndian
706 buf = make([]byte, m.Size())
710 // field[1] m.MacAddress
711 for i := 0; i < 6; i++ {
713 if i < len(m.MacAddress) {
714 x = uint8(m.MacAddress[i])
721 func (m *CreateLoopback) Unmarshal(tmp []byte) error {
722 o := binary.BigEndian
726 // field[1] m.MacAddress
727 for i := 0; i < len(m.MacAddress); i++ {
728 m.MacAddress[i] = uint8(tmp[pos])
734 // CreateLoopbackInstance represents VPP binary API message 'create_loopback_instance'.
735 type CreateLoopbackInstance struct {
736 MacAddress MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
737 IsSpecified bool `binapi:"bool,name=is_specified" json:"is_specified,omitempty"`
738 UserInstance uint32 `binapi:"u32,name=user_instance" json:"user_instance,omitempty"`
741 func (m *CreateLoopbackInstance) Reset() { *m = CreateLoopbackInstance{} }
742 func (*CreateLoopbackInstance) GetMessageName() string { return "create_loopback_instance" }
743 func (*CreateLoopbackInstance) GetCrcString() string { return "d36a3ee2" }
744 func (*CreateLoopbackInstance) GetMessageType() api.MessageType { return api.RequestMessage }
746 func (m *CreateLoopbackInstance) Size() int {
751 // field[1] m.MacAddress
753 // field[1] m.IsSpecified
755 // field[1] m.UserInstance
759 func (m *CreateLoopbackInstance) Marshal(b []byte) ([]byte, error) {
760 o := binary.BigEndian
766 buf = make([]byte, m.Size())
770 // field[1] m.MacAddress
771 for i := 0; i < 6; i++ {
773 if i < len(m.MacAddress) {
774 x = uint8(m.MacAddress[i])
779 // field[1] m.IsSpecified
784 // field[1] m.UserInstance
785 o.PutUint32(buf[pos:pos+4], uint32(m.UserInstance))
789 func (m *CreateLoopbackInstance) Unmarshal(tmp []byte) error {
790 o := binary.BigEndian
794 // field[1] m.MacAddress
795 for i := 0; i < len(m.MacAddress); i++ {
796 m.MacAddress[i] = uint8(tmp[pos])
799 // field[1] m.IsSpecified
800 m.IsSpecified = tmp[pos] != 0
802 // field[1] m.UserInstance
803 m.UserInstance = uint32(o.Uint32(tmp[pos : pos+4]))
808 // CreateLoopbackInstanceReply represents VPP binary API message 'create_loopback_instance_reply'.
809 type CreateLoopbackInstanceReply struct {
810 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
811 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
814 func (m *CreateLoopbackInstanceReply) Reset() { *m = CreateLoopbackInstanceReply{} }
815 func (*CreateLoopbackInstanceReply) GetMessageName() string { return "create_loopback_instance_reply" }
816 func (*CreateLoopbackInstanceReply) GetCrcString() string { return "5383d31f" }
817 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType { return api.ReplyMessage }
819 func (m *CreateLoopbackInstanceReply) Size() int {
826 // field[1] m.SwIfIndex
830 func (m *CreateLoopbackInstanceReply) Marshal(b []byte) ([]byte, error) {
831 o := binary.BigEndian
837 buf = make([]byte, m.Size())
842 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
844 // field[1] m.SwIfIndex
845 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
849 func (m *CreateLoopbackInstanceReply) Unmarshal(tmp []byte) error {
850 o := binary.BigEndian
855 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
857 // field[1] m.SwIfIndex
858 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
863 // CreateLoopbackReply represents VPP binary API message 'create_loopback_reply'.
864 type CreateLoopbackReply struct {
865 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
866 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
869 func (m *CreateLoopbackReply) Reset() { *m = CreateLoopbackReply{} }
870 func (*CreateLoopbackReply) GetMessageName() string { return "create_loopback_reply" }
871 func (*CreateLoopbackReply) GetCrcString() string { return "5383d31f" }
872 func (*CreateLoopbackReply) GetMessageType() api.MessageType { return api.ReplyMessage }
874 func (m *CreateLoopbackReply) Size() int {
881 // field[1] m.SwIfIndex
885 func (m *CreateLoopbackReply) Marshal(b []byte) ([]byte, error) {
886 o := binary.BigEndian
892 buf = make([]byte, m.Size())
897 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
899 // field[1] m.SwIfIndex
900 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
904 func (m *CreateLoopbackReply) Unmarshal(tmp []byte) error {
905 o := binary.BigEndian
910 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
912 // field[1] m.SwIfIndex
913 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
918 // CreateSubif represents VPP binary API message 'create_subif'.
919 type CreateSubif struct {
920 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
921 SubID uint32 `binapi:"u32,name=sub_id" json:"sub_id,omitempty"`
922 SubIfFlags SubIfFlags `binapi:"sub_if_flags,name=sub_if_flags" json:"sub_if_flags,omitempty"`
923 OuterVlanID uint16 `binapi:"u16,name=outer_vlan_id" json:"outer_vlan_id,omitempty"`
924 InnerVlanID uint16 `binapi:"u16,name=inner_vlan_id" json:"inner_vlan_id,omitempty"`
927 func (m *CreateSubif) Reset() { *m = CreateSubif{} }
928 func (*CreateSubif) GetMessageName() string { return "create_subif" }
929 func (*CreateSubif) GetCrcString() string { return "cb371063" }
930 func (*CreateSubif) GetMessageType() api.MessageType { return api.RequestMessage }
932 func (m *CreateSubif) Size() int {
937 // field[1] m.SwIfIndex
941 // field[1] m.SubIfFlags
943 // field[1] m.OuterVlanID
945 // field[1] m.InnerVlanID
949 func (m *CreateSubif) Marshal(b []byte) ([]byte, error) {
950 o := binary.BigEndian
956 buf = make([]byte, m.Size())
960 // field[1] m.SwIfIndex
961 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
964 o.PutUint32(buf[pos:pos+4], uint32(m.SubID))
966 // field[1] m.SubIfFlags
967 o.PutUint32(buf[pos:pos+4], uint32(m.SubIfFlags))
969 // field[1] m.OuterVlanID
970 o.PutUint16(buf[pos:pos+2], uint16(m.OuterVlanID))
972 // field[1] m.InnerVlanID
973 o.PutUint16(buf[pos:pos+2], uint16(m.InnerVlanID))
977 func (m *CreateSubif) Unmarshal(tmp []byte) error {
978 o := binary.BigEndian
982 // field[1] m.SwIfIndex
983 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
986 m.SubID = uint32(o.Uint32(tmp[pos : pos+4]))
988 // field[1] m.SubIfFlags
989 m.SubIfFlags = SubIfFlags(o.Uint32(tmp[pos : pos+4]))
991 // field[1] m.OuterVlanID
992 m.OuterVlanID = uint16(o.Uint16(tmp[pos : pos+2]))
994 // field[1] m.InnerVlanID
995 m.InnerVlanID = uint16(o.Uint16(tmp[pos : pos+2]))
1000 // CreateSubifReply represents VPP binary API message 'create_subif_reply'.
1001 type CreateSubifReply struct {
1002 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1003 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1006 func (m *CreateSubifReply) Reset() { *m = CreateSubifReply{} }
1007 func (*CreateSubifReply) GetMessageName() string { return "create_subif_reply" }
1008 func (*CreateSubifReply) GetCrcString() string { return "5383d31f" }
1009 func (*CreateSubifReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1011 func (m *CreateSubifReply) Size() int {
1016 // field[1] m.Retval
1018 // field[1] m.SwIfIndex
1022 func (m *CreateSubifReply) Marshal(b []byte) ([]byte, error) {
1023 o := binary.BigEndian
1029 buf = make([]byte, m.Size())
1033 // field[1] m.Retval
1034 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1036 // field[1] m.SwIfIndex
1037 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1041 func (m *CreateSubifReply) Unmarshal(tmp []byte) error {
1042 o := binary.BigEndian
1046 // field[1] m.Retval
1047 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1049 // field[1] m.SwIfIndex
1050 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1055 // CreateVlanSubif represents VPP binary API message 'create_vlan_subif'.
1056 type CreateVlanSubif struct {
1057 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1058 VlanID uint32 `binapi:"u32,name=vlan_id" json:"vlan_id,omitempty"`
1061 func (m *CreateVlanSubif) Reset() { *m = CreateVlanSubif{} }
1062 func (*CreateVlanSubif) GetMessageName() string { return "create_vlan_subif" }
1063 func (*CreateVlanSubif) GetCrcString() string { return "af34ac8b" }
1064 func (*CreateVlanSubif) GetMessageType() api.MessageType { return api.RequestMessage }
1066 func (m *CreateVlanSubif) Size() int {
1071 // field[1] m.SwIfIndex
1073 // field[1] m.VlanID
1077 func (m *CreateVlanSubif) Marshal(b []byte) ([]byte, error) {
1078 o := binary.BigEndian
1084 buf = make([]byte, m.Size())
1088 // field[1] m.SwIfIndex
1089 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1091 // field[1] m.VlanID
1092 o.PutUint32(buf[pos:pos+4], uint32(m.VlanID))
1096 func (m *CreateVlanSubif) Unmarshal(tmp []byte) error {
1097 o := binary.BigEndian
1101 // field[1] m.SwIfIndex
1102 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1104 // field[1] m.VlanID
1105 m.VlanID = uint32(o.Uint32(tmp[pos : pos+4]))
1110 // CreateVlanSubifReply represents VPP binary API message 'create_vlan_subif_reply'.
1111 type CreateVlanSubifReply struct {
1112 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1113 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1116 func (m *CreateVlanSubifReply) Reset() { *m = CreateVlanSubifReply{} }
1117 func (*CreateVlanSubifReply) GetMessageName() string { return "create_vlan_subif_reply" }
1118 func (*CreateVlanSubifReply) GetCrcString() string { return "5383d31f" }
1119 func (*CreateVlanSubifReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1121 func (m *CreateVlanSubifReply) Size() int {
1126 // field[1] m.Retval
1128 // field[1] m.SwIfIndex
1132 func (m *CreateVlanSubifReply) Marshal(b []byte) ([]byte, error) {
1133 o := binary.BigEndian
1139 buf = make([]byte, m.Size())
1143 // field[1] m.Retval
1144 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1146 // field[1] m.SwIfIndex
1147 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1151 func (m *CreateVlanSubifReply) Unmarshal(tmp []byte) error {
1152 o := binary.BigEndian
1156 // field[1] m.Retval
1157 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1159 // field[1] m.SwIfIndex
1160 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1165 // DeleteLoopback represents VPP binary API message 'delete_loopback'.
1166 type DeleteLoopback struct {
1167 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1170 func (m *DeleteLoopback) Reset() { *m = DeleteLoopback{} }
1171 func (*DeleteLoopback) GetMessageName() string { return "delete_loopback" }
1172 func (*DeleteLoopback) GetCrcString() string { return "f9e6675e" }
1173 func (*DeleteLoopback) GetMessageType() api.MessageType { return api.RequestMessage }
1175 func (m *DeleteLoopback) Size() int {
1180 // field[1] m.SwIfIndex
1184 func (m *DeleteLoopback) Marshal(b []byte) ([]byte, error) {
1185 o := binary.BigEndian
1191 buf = make([]byte, m.Size())
1195 // field[1] m.SwIfIndex
1196 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1200 func (m *DeleteLoopback) Unmarshal(tmp []byte) error {
1201 o := binary.BigEndian
1205 // field[1] m.SwIfIndex
1206 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1211 // DeleteLoopbackReply represents VPP binary API message 'delete_loopback_reply'.
1212 type DeleteLoopbackReply struct {
1213 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1216 func (m *DeleteLoopbackReply) Reset() { *m = DeleteLoopbackReply{} }
1217 func (*DeleteLoopbackReply) GetMessageName() string { return "delete_loopback_reply" }
1218 func (*DeleteLoopbackReply) GetCrcString() string { return "e8d4e804" }
1219 func (*DeleteLoopbackReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1221 func (m *DeleteLoopbackReply) Size() int {
1226 // field[1] m.Retval
1230 func (m *DeleteLoopbackReply) Marshal(b []byte) ([]byte, error) {
1231 o := binary.BigEndian
1237 buf = make([]byte, m.Size())
1241 // field[1] m.Retval
1242 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1246 func (m *DeleteLoopbackReply) Unmarshal(tmp []byte) error {
1247 o := binary.BigEndian
1251 // field[1] m.Retval
1252 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1257 // DeleteSubif represents VPP binary API message 'delete_subif'.
1258 type DeleteSubif struct {
1259 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1262 func (m *DeleteSubif) Reset() { *m = DeleteSubif{} }
1263 func (*DeleteSubif) GetMessageName() string { return "delete_subif" }
1264 func (*DeleteSubif) GetCrcString() string { return "f9e6675e" }
1265 func (*DeleteSubif) GetMessageType() api.MessageType { return api.RequestMessage }
1267 func (m *DeleteSubif) Size() int {
1272 // field[1] m.SwIfIndex
1276 func (m *DeleteSubif) Marshal(b []byte) ([]byte, error) {
1277 o := binary.BigEndian
1283 buf = make([]byte, m.Size())
1287 // field[1] m.SwIfIndex
1288 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1292 func (m *DeleteSubif) Unmarshal(tmp []byte) error {
1293 o := binary.BigEndian
1297 // field[1] m.SwIfIndex
1298 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1303 // DeleteSubifReply represents VPP binary API message 'delete_subif_reply'.
1304 type DeleteSubifReply struct {
1305 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1308 func (m *DeleteSubifReply) Reset() { *m = DeleteSubifReply{} }
1309 func (*DeleteSubifReply) GetMessageName() string { return "delete_subif_reply" }
1310 func (*DeleteSubifReply) GetCrcString() string { return "e8d4e804" }
1311 func (*DeleteSubifReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1313 func (m *DeleteSubifReply) Size() int {
1318 // field[1] m.Retval
1322 func (m *DeleteSubifReply) Marshal(b []byte) ([]byte, error) {
1323 o := binary.BigEndian
1329 buf = make([]byte, m.Size())
1333 // field[1] m.Retval
1334 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1338 func (m *DeleteSubifReply) Unmarshal(tmp []byte) error {
1339 o := binary.BigEndian
1343 // field[1] m.Retval
1344 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1349 // HwInterfaceSetMtu represents VPP binary API message 'hw_interface_set_mtu'.
1350 type HwInterfaceSetMtu struct {
1351 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1352 Mtu uint16 `binapi:"u16,name=mtu" json:"mtu,omitempty"`
1355 func (m *HwInterfaceSetMtu) Reset() { *m = HwInterfaceSetMtu{} }
1356 func (*HwInterfaceSetMtu) GetMessageName() string { return "hw_interface_set_mtu" }
1357 func (*HwInterfaceSetMtu) GetCrcString() string { return "e6746899" }
1358 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType { return api.RequestMessage }
1360 func (m *HwInterfaceSetMtu) Size() int {
1365 // field[1] m.SwIfIndex
1371 func (m *HwInterfaceSetMtu) Marshal(b []byte) ([]byte, error) {
1372 o := binary.BigEndian
1378 buf = make([]byte, m.Size())
1382 // field[1] m.SwIfIndex
1383 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1386 o.PutUint16(buf[pos:pos+2], uint16(m.Mtu))
1390 func (m *HwInterfaceSetMtu) Unmarshal(tmp []byte) error {
1391 o := binary.BigEndian
1395 // field[1] m.SwIfIndex
1396 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1399 m.Mtu = uint16(o.Uint16(tmp[pos : pos+2]))
1404 // HwInterfaceSetMtuReply represents VPP binary API message 'hw_interface_set_mtu_reply'.
1405 type HwInterfaceSetMtuReply struct {
1406 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1409 func (m *HwInterfaceSetMtuReply) Reset() { *m = HwInterfaceSetMtuReply{} }
1410 func (*HwInterfaceSetMtuReply) GetMessageName() string { return "hw_interface_set_mtu_reply" }
1411 func (*HwInterfaceSetMtuReply) GetCrcString() string { return "e8d4e804" }
1412 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1414 func (m *HwInterfaceSetMtuReply) Size() int {
1419 // field[1] m.Retval
1423 func (m *HwInterfaceSetMtuReply) Marshal(b []byte) ([]byte, error) {
1424 o := binary.BigEndian
1430 buf = make([]byte, m.Size())
1434 // field[1] m.Retval
1435 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1439 func (m *HwInterfaceSetMtuReply) Unmarshal(tmp []byte) error {
1440 o := binary.BigEndian
1444 // field[1] m.Retval
1445 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1450 // InterfaceNameRenumber represents VPP binary API message 'interface_name_renumber'.
1451 type InterfaceNameRenumber struct {
1452 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1453 NewShowDevInstance uint32 `binapi:"u32,name=new_show_dev_instance" json:"new_show_dev_instance,omitempty"`
1456 func (m *InterfaceNameRenumber) Reset() { *m = InterfaceNameRenumber{} }
1457 func (*InterfaceNameRenumber) GetMessageName() string { return "interface_name_renumber" }
1458 func (*InterfaceNameRenumber) GetCrcString() string { return "2b8858b8" }
1459 func (*InterfaceNameRenumber) GetMessageType() api.MessageType { return api.RequestMessage }
1461 func (m *InterfaceNameRenumber) Size() int {
1466 // field[1] m.SwIfIndex
1468 // field[1] m.NewShowDevInstance
1472 func (m *InterfaceNameRenumber) Marshal(b []byte) ([]byte, error) {
1473 o := binary.BigEndian
1479 buf = make([]byte, m.Size())
1483 // field[1] m.SwIfIndex
1484 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1486 // field[1] m.NewShowDevInstance
1487 o.PutUint32(buf[pos:pos+4], uint32(m.NewShowDevInstance))
1491 func (m *InterfaceNameRenumber) Unmarshal(tmp []byte) error {
1492 o := binary.BigEndian
1496 // field[1] m.SwIfIndex
1497 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1499 // field[1] m.NewShowDevInstance
1500 m.NewShowDevInstance = uint32(o.Uint32(tmp[pos : pos+4]))
1505 // InterfaceNameRenumberReply represents VPP binary API message 'interface_name_renumber_reply'.
1506 type InterfaceNameRenumberReply struct {
1507 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1510 func (m *InterfaceNameRenumberReply) Reset() { *m = InterfaceNameRenumberReply{} }
1511 func (*InterfaceNameRenumberReply) GetMessageName() string { return "interface_name_renumber_reply" }
1512 func (*InterfaceNameRenumberReply) GetCrcString() string { return "e8d4e804" }
1513 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1515 func (m *InterfaceNameRenumberReply) Size() int {
1520 // field[1] m.Retval
1524 func (m *InterfaceNameRenumberReply) Marshal(b []byte) ([]byte, error) {
1525 o := binary.BigEndian
1531 buf = make([]byte, m.Size())
1535 // field[1] m.Retval
1536 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1540 func (m *InterfaceNameRenumberReply) Unmarshal(tmp []byte) error {
1541 o := binary.BigEndian
1545 // field[1] m.Retval
1546 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1551 // SwInterfaceAddDelAddress represents VPP binary API message 'sw_interface_add_del_address'.
1552 type SwInterfaceAddDelAddress struct {
1553 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1554 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
1555 DelAll bool `binapi:"bool,name=del_all" json:"del_all,omitempty"`
1556 Prefix AddressWithPrefix `binapi:"address_with_prefix,name=prefix" json:"prefix,omitempty"`
1559 func (m *SwInterfaceAddDelAddress) Reset() { *m = SwInterfaceAddDelAddress{} }
1560 func (*SwInterfaceAddDelAddress) GetMessageName() string { return "sw_interface_add_del_address" }
1561 func (*SwInterfaceAddDelAddress) GetCrcString() string { return "5803d5c4" }
1562 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType { return api.RequestMessage }
1564 func (m *SwInterfaceAddDelAddress) Size() int {
1569 // field[1] m.SwIfIndex
1573 // field[1] m.DelAll
1575 // field[1] m.Prefix
1576 // field[2] m.Prefix.Address
1577 // field[3] m.Prefix.Address.Af
1579 // field[3] m.Prefix.Address.Un
1581 // field[2] m.Prefix.Len
1585 func (m *SwInterfaceAddDelAddress) Marshal(b []byte) ([]byte, error) {
1586 o := binary.BigEndian
1592 buf = make([]byte, m.Size())
1596 // field[1] m.SwIfIndex
1597 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1604 // field[1] m.DelAll
1609 // field[1] m.Prefix
1610 // field[2] m.Prefix.Address
1611 // field[3] m.Prefix.Address.Af
1612 o.PutUint32(buf[pos:pos+4], uint32(m.Prefix.Address.Af))
1614 // field[3] m.Prefix.Address.Un
1615 copy(buf[pos:pos+16], m.Prefix.Address.Un.XXX_UnionData[:])
1617 // field[2] m.Prefix.Len
1618 buf[pos] = uint8(m.Prefix.Len)
1622 func (m *SwInterfaceAddDelAddress) Unmarshal(tmp []byte) error {
1623 o := binary.BigEndian
1627 // field[1] m.SwIfIndex
1628 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1631 m.IsAdd = tmp[pos] != 0
1633 // field[1] m.DelAll
1634 m.DelAll = tmp[pos] != 0
1636 // field[1] m.Prefix
1637 // field[2] m.Prefix.Address
1638 // field[3] m.Prefix.Address.Af
1639 m.Prefix.Address.Af = AddressFamily(o.Uint32(tmp[pos : pos+4]))
1641 // field[3] m.Prefix.Address.Un
1642 copy(m.Prefix.Address.Un.XXX_UnionData[:], tmp[pos:pos+16])
1644 // field[2] m.Prefix.Len
1645 m.Prefix.Len = uint8(tmp[pos])
1650 // SwInterfaceAddDelAddressReply represents VPP binary API message 'sw_interface_add_del_address_reply'.
1651 type SwInterfaceAddDelAddressReply struct {
1652 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1655 func (m *SwInterfaceAddDelAddressReply) Reset() { *m = SwInterfaceAddDelAddressReply{} }
1656 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
1657 return "sw_interface_add_del_address_reply"
1659 func (*SwInterfaceAddDelAddressReply) GetCrcString() string { return "e8d4e804" }
1660 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1662 func (m *SwInterfaceAddDelAddressReply) Size() int {
1667 // field[1] m.Retval
1671 func (m *SwInterfaceAddDelAddressReply) Marshal(b []byte) ([]byte, error) {
1672 o := binary.BigEndian
1678 buf = make([]byte, m.Size())
1682 // field[1] m.Retval
1683 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1687 func (m *SwInterfaceAddDelAddressReply) Unmarshal(tmp []byte) error {
1688 o := binary.BigEndian
1692 // field[1] m.Retval
1693 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1698 // SwInterfaceAddDelMacAddress represents VPP binary API message 'sw_interface_add_del_mac_address'.
1699 type SwInterfaceAddDelMacAddress struct {
1700 SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"`
1701 Addr MacAddress `binapi:"mac_address,name=addr" json:"addr,omitempty"`
1702 IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"`
1705 func (m *SwInterfaceAddDelMacAddress) Reset() { *m = SwInterfaceAddDelMacAddress{} }
1706 func (*SwInterfaceAddDelMacAddress) GetMessageName() string {
1707 return "sw_interface_add_del_mac_address"
1709 func (*SwInterfaceAddDelMacAddress) GetCrcString() string { return "638bb9f4" }
1710 func (*SwInterfaceAddDelMacAddress) GetMessageType() api.MessageType { return api.RequestMessage }
1712 func (m *SwInterfaceAddDelMacAddress) Size() int {
1717 // field[1] m.SwIfIndex
1725 func (m *SwInterfaceAddDelMacAddress) Marshal(b []byte) ([]byte, error) {
1726 o := binary.BigEndian
1732 buf = make([]byte, m.Size())
1736 // field[1] m.SwIfIndex
1737 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1740 for i := 0; i < 6; i++ {
1742 if i < len(m.Addr) {
1743 x = uint8(m.Addr[i])
1749 buf[pos] = uint8(m.IsAdd)
1753 func (m *SwInterfaceAddDelMacAddress) Unmarshal(tmp []byte) error {
1754 o := binary.BigEndian
1758 // field[1] m.SwIfIndex
1759 m.SwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
1762 for i := 0; i < len(m.Addr); i++ {
1763 m.Addr[i] = uint8(tmp[pos])
1767 m.IsAdd = uint8(tmp[pos])
1772 // SwInterfaceAddDelMacAddressReply represents VPP binary API message 'sw_interface_add_del_mac_address_reply'.
1773 type SwInterfaceAddDelMacAddressReply struct {
1774 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1777 func (m *SwInterfaceAddDelMacAddressReply) Reset() { *m = SwInterfaceAddDelMacAddressReply{} }
1778 func (*SwInterfaceAddDelMacAddressReply) GetMessageName() string {
1779 return "sw_interface_add_del_mac_address_reply"
1781 func (*SwInterfaceAddDelMacAddressReply) GetCrcString() string { return "e8d4e804" }
1782 func (*SwInterfaceAddDelMacAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1784 func (m *SwInterfaceAddDelMacAddressReply) Size() int {
1789 // field[1] m.Retval
1793 func (m *SwInterfaceAddDelMacAddressReply) Marshal(b []byte) ([]byte, error) {
1794 o := binary.BigEndian
1800 buf = make([]byte, m.Size())
1804 // field[1] m.Retval
1805 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1809 func (m *SwInterfaceAddDelMacAddressReply) Unmarshal(tmp []byte) error {
1810 o := binary.BigEndian
1814 // field[1] m.Retval
1815 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1820 // SwInterfaceClearStats represents VPP binary API message 'sw_interface_clear_stats'.
1821 type SwInterfaceClearStats struct {
1822 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1825 func (m *SwInterfaceClearStats) Reset() { *m = SwInterfaceClearStats{} }
1826 func (*SwInterfaceClearStats) GetMessageName() string { return "sw_interface_clear_stats" }
1827 func (*SwInterfaceClearStats) GetCrcString() string { return "f9e6675e" }
1828 func (*SwInterfaceClearStats) GetMessageType() api.MessageType { return api.RequestMessage }
1830 func (m *SwInterfaceClearStats) Size() int {
1835 // field[1] m.SwIfIndex
1839 func (m *SwInterfaceClearStats) Marshal(b []byte) ([]byte, error) {
1840 o := binary.BigEndian
1846 buf = make([]byte, m.Size())
1850 // field[1] m.SwIfIndex
1851 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
1855 func (m *SwInterfaceClearStats) Unmarshal(tmp []byte) error {
1856 o := binary.BigEndian
1860 // field[1] m.SwIfIndex
1861 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
1866 // SwInterfaceClearStatsReply represents VPP binary API message 'sw_interface_clear_stats_reply'.
1867 type SwInterfaceClearStatsReply struct {
1868 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1871 func (m *SwInterfaceClearStatsReply) Reset() { *m = SwInterfaceClearStatsReply{} }
1872 func (*SwInterfaceClearStatsReply) GetMessageName() string { return "sw_interface_clear_stats_reply" }
1873 func (*SwInterfaceClearStatsReply) GetCrcString() string { return "e8d4e804" }
1874 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1876 func (m *SwInterfaceClearStatsReply) Size() int {
1881 // field[1] m.Retval
1885 func (m *SwInterfaceClearStatsReply) Marshal(b []byte) ([]byte, error) {
1886 o := binary.BigEndian
1892 buf = make([]byte, m.Size())
1896 // field[1] m.Retval
1897 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1901 func (m *SwInterfaceClearStatsReply) Unmarshal(tmp []byte) error {
1902 o := binary.BigEndian
1906 // field[1] m.Retval
1907 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1912 // SwInterfaceDetails represents VPP binary API message 'sw_interface_details'.
1913 type SwInterfaceDetails struct {
1914 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1915 SupSwIfIndex uint32 `binapi:"u32,name=sup_sw_if_index" json:"sup_sw_if_index,omitempty"`
1916 L2Address MacAddress `binapi:"mac_address,name=l2_address" json:"l2_address,omitempty"`
1917 Flags IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"`
1918 Type IfType `binapi:"if_type,name=type" json:"type,omitempty"`
1919 LinkDuplex LinkDuplex `binapi:"link_duplex,name=link_duplex" json:"link_duplex,omitempty"`
1920 LinkSpeed uint32 `binapi:"u32,name=link_speed" json:"link_speed,omitempty"`
1921 LinkMtu uint16 `binapi:"u16,name=link_mtu" json:"link_mtu,omitempty"`
1922 Mtu []uint32 `binapi:"u32[4],name=mtu" json:"mtu,omitempty" struc:"[4]uint32"`
1923 SubID uint32 `binapi:"u32,name=sub_id" json:"sub_id,omitempty"`
1924 SubNumberOfTags uint8 `binapi:"u8,name=sub_number_of_tags" json:"sub_number_of_tags,omitempty"`
1925 SubOuterVlanID uint16 `binapi:"u16,name=sub_outer_vlan_id" json:"sub_outer_vlan_id,omitempty"`
1926 SubInnerVlanID uint16 `binapi:"u16,name=sub_inner_vlan_id" json:"sub_inner_vlan_id,omitempty"`
1927 SubIfFlags SubIfFlags `binapi:"sub_if_flags,name=sub_if_flags" json:"sub_if_flags,omitempty"`
1928 VtrOp uint32 `binapi:"u32,name=vtr_op" json:"vtr_op,omitempty"`
1929 VtrPushDot1q uint32 `binapi:"u32,name=vtr_push_dot1q" json:"vtr_push_dot1q,omitempty"`
1930 VtrTag1 uint32 `binapi:"u32,name=vtr_tag1" json:"vtr_tag1,omitempty"`
1931 VtrTag2 uint32 `binapi:"u32,name=vtr_tag2" json:"vtr_tag2,omitempty"`
1932 OuterTag uint16 `binapi:"u16,name=outer_tag" json:"outer_tag,omitempty"`
1933 BDmac MacAddress `binapi:"mac_address,name=b_dmac" json:"b_dmac,omitempty"`
1934 BSmac MacAddress `binapi:"mac_address,name=b_smac" json:"b_smac,omitempty"`
1935 BVlanid uint16 `binapi:"u16,name=b_vlanid" json:"b_vlanid,omitempty"`
1936 ISid uint32 `binapi:"u32,name=i_sid" json:"i_sid,omitempty"`
1937 InterfaceName string `binapi:"string[64],name=interface_name" json:"interface_name,omitempty" struc:"[64]byte"`
1938 InterfaceDevType string `binapi:"string[64],name=interface_dev_type" json:"interface_dev_type,omitempty" struc:"[64]byte"`
1939 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
1942 func (m *SwInterfaceDetails) Reset() { *m = SwInterfaceDetails{} }
1943 func (*SwInterfaceDetails) GetMessageName() string { return "sw_interface_details" }
1944 func (*SwInterfaceDetails) GetCrcString() string { return "17b69fa2" }
1945 func (*SwInterfaceDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
1947 func (m *SwInterfaceDetails) Size() int {
1952 // field[1] m.SwIfIndex
1954 // field[1] m.SupSwIfIndex
1956 // field[1] m.L2Address
1962 // field[1] m.LinkDuplex
1964 // field[1] m.LinkSpeed
1966 // field[1] m.LinkMtu
1972 // field[1] m.SubNumberOfTags
1974 // field[1] m.SubOuterVlanID
1976 // field[1] m.SubInnerVlanID
1978 // field[1] m.SubIfFlags
1982 // field[1] m.VtrPushDot1q
1984 // field[1] m.VtrTag1
1986 // field[1] m.VtrTag2
1988 // field[1] m.OuterTag
1994 // field[1] m.BVlanid
1998 // field[1] m.InterfaceName
2000 // field[1] m.InterfaceDevType
2006 func (m *SwInterfaceDetails) Marshal(b []byte) ([]byte, error) {
2007 o := binary.BigEndian
2013 buf = make([]byte, m.Size())
2017 // field[1] m.SwIfIndex
2018 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2020 // field[1] m.SupSwIfIndex
2021 o.PutUint32(buf[pos:pos+4], uint32(m.SupSwIfIndex))
2023 // field[1] m.L2Address
2024 for i := 0; i < 6; i++ {
2026 if i < len(m.L2Address) {
2027 x = uint8(m.L2Address[i])
2033 o.PutUint32(buf[pos:pos+4], uint32(m.Flags))
2036 o.PutUint32(buf[pos:pos+4], uint32(m.Type))
2038 // field[1] m.LinkDuplex
2039 o.PutUint32(buf[pos:pos+4], uint32(m.LinkDuplex))
2041 // field[1] m.LinkSpeed
2042 o.PutUint32(buf[pos:pos+4], uint32(m.LinkSpeed))
2044 // field[1] m.LinkMtu
2045 o.PutUint16(buf[pos:pos+2], uint16(m.LinkMtu))
2048 for i := 0; i < 4; i++ {
2051 x = uint32(m.Mtu[i])
2053 o.PutUint32(buf[pos:pos+4], uint32(x))
2057 o.PutUint32(buf[pos:pos+4], uint32(m.SubID))
2059 // field[1] m.SubNumberOfTags
2060 buf[pos] = uint8(m.SubNumberOfTags)
2062 // field[1] m.SubOuterVlanID
2063 o.PutUint16(buf[pos:pos+2], uint16(m.SubOuterVlanID))
2065 // field[1] m.SubInnerVlanID
2066 o.PutUint16(buf[pos:pos+2], uint16(m.SubInnerVlanID))
2068 // field[1] m.SubIfFlags
2069 o.PutUint32(buf[pos:pos+4], uint32(m.SubIfFlags))
2072 o.PutUint32(buf[pos:pos+4], uint32(m.VtrOp))
2074 // field[1] m.VtrPushDot1q
2075 o.PutUint32(buf[pos:pos+4], uint32(m.VtrPushDot1q))
2077 // field[1] m.VtrTag1
2078 o.PutUint32(buf[pos:pos+4], uint32(m.VtrTag1))
2080 // field[1] m.VtrTag2
2081 o.PutUint32(buf[pos:pos+4], uint32(m.VtrTag2))
2083 // field[1] m.OuterTag
2084 o.PutUint16(buf[pos:pos+2], uint16(m.OuterTag))
2087 for i := 0; i < 6; i++ {
2089 if i < len(m.BDmac) {
2090 x = uint8(m.BDmac[i])
2096 for i := 0; i < 6; i++ {
2098 if i < len(m.BSmac) {
2099 x = uint8(m.BSmac[i])
2104 // field[1] m.BVlanid
2105 o.PutUint16(buf[pos:pos+2], uint16(m.BVlanid))
2108 o.PutUint32(buf[pos:pos+4], uint32(m.ISid))
2110 // field[1] m.InterfaceName
2111 copy(buf[pos:pos+64], m.InterfaceName)
2113 // field[1] m.InterfaceDevType
2114 copy(buf[pos:pos+64], m.InterfaceDevType)
2117 copy(buf[pos:pos+64], m.Tag)
2121 func (m *SwInterfaceDetails) Unmarshal(tmp []byte) error {
2122 o := binary.BigEndian
2126 // field[1] m.SwIfIndex
2127 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2129 // field[1] m.SupSwIfIndex
2130 m.SupSwIfIndex = uint32(o.Uint32(tmp[pos : pos+4]))
2132 // field[1] m.L2Address
2133 for i := 0; i < len(m.L2Address); i++ {
2134 m.L2Address[i] = uint8(tmp[pos])
2138 m.Flags = IfStatusFlags(o.Uint32(tmp[pos : pos+4]))
2141 m.Type = IfType(o.Uint32(tmp[pos : pos+4]))
2143 // field[1] m.LinkDuplex
2144 m.LinkDuplex = LinkDuplex(o.Uint32(tmp[pos : pos+4]))
2146 // field[1] m.LinkSpeed
2147 m.LinkSpeed = uint32(o.Uint32(tmp[pos : pos+4]))
2149 // field[1] m.LinkMtu
2150 m.LinkMtu = uint16(o.Uint16(tmp[pos : pos+2]))
2153 m.Mtu = make([]uint32, 4)
2154 for i := 0; i < len(m.Mtu); i++ {
2155 m.Mtu[i] = uint32(o.Uint32(tmp[pos : pos+4]))
2159 m.SubID = uint32(o.Uint32(tmp[pos : pos+4]))
2161 // field[1] m.SubNumberOfTags
2162 m.SubNumberOfTags = uint8(tmp[pos])
2164 // field[1] m.SubOuterVlanID
2165 m.SubOuterVlanID = uint16(o.Uint16(tmp[pos : pos+2]))
2167 // field[1] m.SubInnerVlanID
2168 m.SubInnerVlanID = uint16(o.Uint16(tmp[pos : pos+2]))
2170 // field[1] m.SubIfFlags
2171 m.SubIfFlags = SubIfFlags(o.Uint32(tmp[pos : pos+4]))
2174 m.VtrOp = uint32(o.Uint32(tmp[pos : pos+4]))
2176 // field[1] m.VtrPushDot1q
2177 m.VtrPushDot1q = uint32(o.Uint32(tmp[pos : pos+4]))
2179 // field[1] m.VtrTag1
2180 m.VtrTag1 = uint32(o.Uint32(tmp[pos : pos+4]))
2182 // field[1] m.VtrTag2
2183 m.VtrTag2 = uint32(o.Uint32(tmp[pos : pos+4]))
2185 // field[1] m.OuterTag
2186 m.OuterTag = uint16(o.Uint16(tmp[pos : pos+2]))
2189 for i := 0; i < len(m.BDmac); i++ {
2190 m.BDmac[i] = uint8(tmp[pos])
2194 for i := 0; i < len(m.BSmac); i++ {
2195 m.BSmac[i] = uint8(tmp[pos])
2198 // field[1] m.BVlanid
2199 m.BVlanid = uint16(o.Uint16(tmp[pos : pos+2]))
2202 m.ISid = uint32(o.Uint32(tmp[pos : pos+4]))
2204 // field[1] m.InterfaceName
2206 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
2207 m.InterfaceName = codec.DecodeString(tmp[pos : pos+nul])
2210 // field[1] m.InterfaceDevType
2212 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
2213 m.InterfaceDevType = codec.DecodeString(tmp[pos : pos+nul])
2218 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
2219 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
2225 // SwInterfaceDump represents VPP binary API message 'sw_interface_dump'.
2226 type SwInterfaceDump struct {
2227 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"`
2228 NameFilterValid bool `binapi:"bool,name=name_filter_valid" json:"name_filter_valid,omitempty"`
2229 XXX_NameFilterLen uint32 `struc:"sizeof=NameFilter"`
2230 NameFilter string `json:"name_filter,omitempty"`
2233 func (m *SwInterfaceDump) Reset() { *m = SwInterfaceDump{} }
2234 func (*SwInterfaceDump) GetMessageName() string { return "sw_interface_dump" }
2235 func (*SwInterfaceDump) GetCrcString() string { return "aa610c27" }
2236 func (*SwInterfaceDump) GetMessageType() api.MessageType { return api.RequestMessage }
2238 func (m *SwInterfaceDump) Size() int {
2243 // field[1] m.SwIfIndex
2245 // field[1] m.NameFilterValid
2247 // field[1] m.NameFilter
2248 size += 4 + len(m.NameFilter)
2251 func (m *SwInterfaceDump) Marshal(b []byte) ([]byte, error) {
2252 o := binary.BigEndian
2258 buf = make([]byte, m.Size())
2262 // field[1] m.SwIfIndex
2263 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2265 // field[1] m.NameFilterValid
2266 if m.NameFilterValid {
2270 // field[1] m.NameFilter
2271 o.PutUint32(buf[pos:pos+4], uint32(len(m.NameFilter)))
2273 copy(buf[pos:pos+len(m.NameFilter)], m.NameFilter[:])
2274 pos += len(m.NameFilter)
2277 func (m *SwInterfaceDump) Unmarshal(tmp []byte) error {
2278 o := binary.BigEndian
2282 // field[1] m.SwIfIndex
2283 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2285 // field[1] m.NameFilterValid
2286 m.NameFilterValid = tmp[pos] != 0
2288 // field[1] m.NameFilter
2290 siz := o.Uint32(tmp[pos : pos+4])
2292 m.NameFilter = codec.DecodeString(tmp[pos : pos+int(siz)])
2293 pos += len(m.NameFilter)
2298 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event'.
2299 type SwInterfaceEvent struct {
2300 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
2301 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2302 Flags IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"`
2303 Deleted bool `binapi:"bool,name=deleted" json:"deleted,omitempty"`
2306 func (m *SwInterfaceEvent) Reset() { *m = SwInterfaceEvent{} }
2307 func (*SwInterfaceEvent) GetMessageName() string { return "sw_interface_event" }
2308 func (*SwInterfaceEvent) GetCrcString() string { return "f709f78d" }
2309 func (*SwInterfaceEvent) GetMessageType() api.MessageType { return api.EventMessage }
2311 func (m *SwInterfaceEvent) Size() int {
2318 // field[1] m.SwIfIndex
2322 // field[1] m.Deleted
2326 func (m *SwInterfaceEvent) Marshal(b []byte) ([]byte, error) {
2327 o := binary.BigEndian
2333 buf = make([]byte, m.Size())
2338 o.PutUint32(buf[pos:pos+4], uint32(m.PID))
2340 // field[1] m.SwIfIndex
2341 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2344 o.PutUint32(buf[pos:pos+4], uint32(m.Flags))
2346 // field[1] m.Deleted
2353 func (m *SwInterfaceEvent) Unmarshal(tmp []byte) error {
2354 o := binary.BigEndian
2359 m.PID = uint32(o.Uint32(tmp[pos : pos+4]))
2361 // field[1] m.SwIfIndex
2362 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2365 m.Flags = IfStatusFlags(o.Uint32(tmp[pos : pos+4]))
2367 // field[1] m.Deleted
2368 m.Deleted = tmp[pos] != 0
2373 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address'.
2374 type SwInterfaceGetMacAddress struct {
2375 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2378 func (m *SwInterfaceGetMacAddress) Reset() { *m = SwInterfaceGetMacAddress{} }
2379 func (*SwInterfaceGetMacAddress) GetMessageName() string { return "sw_interface_get_mac_address" }
2380 func (*SwInterfaceGetMacAddress) GetCrcString() string { return "f9e6675e" }
2381 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType { return api.RequestMessage }
2383 func (m *SwInterfaceGetMacAddress) Size() int {
2388 // field[1] m.SwIfIndex
2392 func (m *SwInterfaceGetMacAddress) Marshal(b []byte) ([]byte, error) {
2393 o := binary.BigEndian
2399 buf = make([]byte, m.Size())
2403 // field[1] m.SwIfIndex
2404 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2408 func (m *SwInterfaceGetMacAddress) Unmarshal(tmp []byte) error {
2409 o := binary.BigEndian
2413 // field[1] m.SwIfIndex
2414 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2419 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply'.
2420 type SwInterfaceGetMacAddressReply struct {
2421 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2422 MacAddress MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
2425 func (m *SwInterfaceGetMacAddressReply) Reset() { *m = SwInterfaceGetMacAddressReply{} }
2426 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
2427 return "sw_interface_get_mac_address_reply"
2429 func (*SwInterfaceGetMacAddressReply) GetCrcString() string { return "40ef2c08" }
2430 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2432 func (m *SwInterfaceGetMacAddressReply) Size() int {
2437 // field[1] m.Retval
2439 // field[1] m.MacAddress
2443 func (m *SwInterfaceGetMacAddressReply) Marshal(b []byte) ([]byte, error) {
2444 o := binary.BigEndian
2450 buf = make([]byte, m.Size())
2454 // field[1] m.Retval
2455 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2457 // field[1] m.MacAddress
2458 for i := 0; i < 6; i++ {
2460 if i < len(m.MacAddress) {
2461 x = uint8(m.MacAddress[i])
2468 func (m *SwInterfaceGetMacAddressReply) Unmarshal(tmp []byte) error {
2469 o := binary.BigEndian
2473 // field[1] m.Retval
2474 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2476 // field[1] m.MacAddress
2477 for i := 0; i < len(m.MacAddress); i++ {
2478 m.MacAddress[i] = uint8(tmp[pos])
2484 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table'.
2485 type SwInterfaceGetTable struct {
2486 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2487 IsIPv6 bool `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"`
2490 func (m *SwInterfaceGetTable) Reset() { *m = SwInterfaceGetTable{} }
2491 func (*SwInterfaceGetTable) GetMessageName() string { return "sw_interface_get_table" }
2492 func (*SwInterfaceGetTable) GetCrcString() string { return "2d033de4" }
2493 func (*SwInterfaceGetTable) GetMessageType() api.MessageType { return api.RequestMessage }
2495 func (m *SwInterfaceGetTable) Size() int {
2500 // field[1] m.SwIfIndex
2502 // field[1] m.IsIPv6
2506 func (m *SwInterfaceGetTable) Marshal(b []byte) ([]byte, error) {
2507 o := binary.BigEndian
2513 buf = make([]byte, m.Size())
2517 // field[1] m.SwIfIndex
2518 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2520 // field[1] m.IsIPv6
2527 func (m *SwInterfaceGetTable) Unmarshal(tmp []byte) error {
2528 o := binary.BigEndian
2532 // field[1] m.SwIfIndex
2533 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2535 // field[1] m.IsIPv6
2536 m.IsIPv6 = tmp[pos] != 0
2541 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply'.
2542 type SwInterfaceGetTableReply struct {
2543 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2544 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
2547 func (m *SwInterfaceGetTableReply) Reset() { *m = SwInterfaceGetTableReply{} }
2548 func (*SwInterfaceGetTableReply) GetMessageName() string { return "sw_interface_get_table_reply" }
2549 func (*SwInterfaceGetTableReply) GetCrcString() string { return "a6eb0109" }
2550 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2552 func (m *SwInterfaceGetTableReply) Size() int {
2557 // field[1] m.Retval
2563 func (m *SwInterfaceGetTableReply) Marshal(b []byte) ([]byte, error) {
2564 o := binary.BigEndian
2570 buf = make([]byte, m.Size())
2574 // field[1] m.Retval
2575 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2578 o.PutUint32(buf[pos:pos+4], uint32(m.VrfID))
2582 func (m *SwInterfaceGetTableReply) Unmarshal(tmp []byte) error {
2583 o := binary.BigEndian
2587 // field[1] m.Retval
2588 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2591 m.VrfID = uint32(o.Uint32(tmp[pos : pos+4]))
2596 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details'.
2597 type SwInterfaceRxPlacementDetails struct {
2598 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2599 QueueID uint32 `binapi:"u32,name=queue_id" json:"queue_id,omitempty"`
2600 WorkerID uint32 `binapi:"u32,name=worker_id" json:"worker_id,omitempty"`
2601 Mode RxMode `binapi:"rx_mode,name=mode" json:"mode,omitempty"`
2604 func (m *SwInterfaceRxPlacementDetails) Reset() { *m = SwInterfaceRxPlacementDetails{} }
2605 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
2606 return "sw_interface_rx_placement_details"
2608 func (*SwInterfaceRxPlacementDetails) GetCrcString() string { return "f6d7d024" }
2609 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType { return api.RequestMessage }
2611 func (m *SwInterfaceRxPlacementDetails) Size() int {
2616 // field[1] m.SwIfIndex
2618 // field[1] m.QueueID
2620 // field[1] m.WorkerID
2626 func (m *SwInterfaceRxPlacementDetails) Marshal(b []byte) ([]byte, error) {
2627 o := binary.BigEndian
2633 buf = make([]byte, m.Size())
2637 // field[1] m.SwIfIndex
2638 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2640 // field[1] m.QueueID
2641 o.PutUint32(buf[pos:pos+4], uint32(m.QueueID))
2643 // field[1] m.WorkerID
2644 o.PutUint32(buf[pos:pos+4], uint32(m.WorkerID))
2647 o.PutUint32(buf[pos:pos+4], uint32(m.Mode))
2651 func (m *SwInterfaceRxPlacementDetails) Unmarshal(tmp []byte) error {
2652 o := binary.BigEndian
2656 // field[1] m.SwIfIndex
2657 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2659 // field[1] m.QueueID
2660 m.QueueID = uint32(o.Uint32(tmp[pos : pos+4]))
2662 // field[1] m.WorkerID
2663 m.WorkerID = uint32(o.Uint32(tmp[pos : pos+4]))
2666 m.Mode = RxMode(o.Uint32(tmp[pos : pos+4]))
2671 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump'.
2672 type SwInterfaceRxPlacementDump struct {
2673 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2676 func (m *SwInterfaceRxPlacementDump) Reset() { *m = SwInterfaceRxPlacementDump{} }
2677 func (*SwInterfaceRxPlacementDump) GetMessageName() string { return "sw_interface_rx_placement_dump" }
2678 func (*SwInterfaceRxPlacementDump) GetCrcString() string { return "f9e6675e" }
2679 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType { return api.RequestMessage }
2681 func (m *SwInterfaceRxPlacementDump) Size() int {
2686 // field[1] m.SwIfIndex
2690 func (m *SwInterfaceRxPlacementDump) Marshal(b []byte) ([]byte, error) {
2691 o := binary.BigEndian
2697 buf = make([]byte, m.Size())
2701 // field[1] m.SwIfIndex
2702 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2706 func (m *SwInterfaceRxPlacementDump) Unmarshal(tmp []byte) error {
2707 o := binary.BigEndian
2711 // field[1] m.SwIfIndex
2712 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2717 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags'.
2718 type SwInterfaceSetFlags struct {
2719 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2720 Flags IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"`
2723 func (m *SwInterfaceSetFlags) Reset() { *m = SwInterfaceSetFlags{} }
2724 func (*SwInterfaceSetFlags) GetMessageName() string { return "sw_interface_set_flags" }
2725 func (*SwInterfaceSetFlags) GetCrcString() string { return "6a2b491a" }
2726 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType { return api.RequestMessage }
2728 func (m *SwInterfaceSetFlags) Size() int {
2733 // field[1] m.SwIfIndex
2739 func (m *SwInterfaceSetFlags) Marshal(b []byte) ([]byte, error) {
2740 o := binary.BigEndian
2746 buf = make([]byte, m.Size())
2750 // field[1] m.SwIfIndex
2751 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2754 o.PutUint32(buf[pos:pos+4], uint32(m.Flags))
2758 func (m *SwInterfaceSetFlags) Unmarshal(tmp []byte) error {
2759 o := binary.BigEndian
2763 // field[1] m.SwIfIndex
2764 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2767 m.Flags = IfStatusFlags(o.Uint32(tmp[pos : pos+4]))
2772 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply'.
2773 type SwInterfaceSetFlagsReply struct {
2774 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2777 func (m *SwInterfaceSetFlagsReply) Reset() { *m = SwInterfaceSetFlagsReply{} }
2778 func (*SwInterfaceSetFlagsReply) GetMessageName() string { return "sw_interface_set_flags_reply" }
2779 func (*SwInterfaceSetFlagsReply) GetCrcString() string { return "e8d4e804" }
2780 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType { return api.ReplyMessage }
2782 func (m *SwInterfaceSetFlagsReply) Size() int {
2787 // field[1] m.Retval
2791 func (m *SwInterfaceSetFlagsReply) Marshal(b []byte) ([]byte, error) {
2792 o := binary.BigEndian
2798 buf = make([]byte, m.Size())
2802 // field[1] m.Retval
2803 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2807 func (m *SwInterfaceSetFlagsReply) Unmarshal(tmp []byte) error {
2808 o := binary.BigEndian
2812 // field[1] m.Retval
2813 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2818 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast'.
2819 type SwInterfaceSetIPDirectedBroadcast struct {
2820 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2821 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
2824 func (m *SwInterfaceSetIPDirectedBroadcast) Reset() { *m = SwInterfaceSetIPDirectedBroadcast{} }
2825 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
2826 return "sw_interface_set_ip_directed_broadcast"
2828 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string { return "ae6cfcfb" }
2829 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType { return api.RequestMessage }
2831 func (m *SwInterfaceSetIPDirectedBroadcast) Size() int {
2836 // field[1] m.SwIfIndex
2838 // field[1] m.Enable
2842 func (m *SwInterfaceSetIPDirectedBroadcast) Marshal(b []byte) ([]byte, error) {
2843 o := binary.BigEndian
2849 buf = make([]byte, m.Size())
2853 // field[1] m.SwIfIndex
2854 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2856 // field[1] m.Enable
2863 func (m *SwInterfaceSetIPDirectedBroadcast) Unmarshal(tmp []byte) error {
2864 o := binary.BigEndian
2868 // field[1] m.SwIfIndex
2869 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2871 // field[1] m.Enable
2872 m.Enable = tmp[pos] != 0
2877 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply'.
2878 type SwInterfaceSetIPDirectedBroadcastReply struct {
2879 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2882 func (m *SwInterfaceSetIPDirectedBroadcastReply) Reset() {
2883 *m = SwInterfaceSetIPDirectedBroadcastReply{}
2885 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
2886 return "sw_interface_set_ip_directed_broadcast_reply"
2888 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string { return "e8d4e804" }
2889 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
2890 return api.ReplyMessage
2893 func (m *SwInterfaceSetIPDirectedBroadcastReply) Size() int {
2898 // field[1] m.Retval
2902 func (m *SwInterfaceSetIPDirectedBroadcastReply) Marshal(b []byte) ([]byte, error) {
2903 o := binary.BigEndian
2909 buf = make([]byte, m.Size())
2913 // field[1] m.Retval
2914 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
2918 func (m *SwInterfaceSetIPDirectedBroadcastReply) Unmarshal(tmp []byte) error {
2919 o := binary.BigEndian
2923 // field[1] m.Retval
2924 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
2929 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address'.
2930 type SwInterfaceSetMacAddress struct {
2931 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
2932 MacAddress MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"`
2935 func (m *SwInterfaceSetMacAddress) Reset() { *m = SwInterfaceSetMacAddress{} }
2936 func (*SwInterfaceSetMacAddress) GetMessageName() string { return "sw_interface_set_mac_address" }
2937 func (*SwInterfaceSetMacAddress) GetCrcString() string { return "6aca746a" }
2938 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType { return api.RequestMessage }
2940 func (m *SwInterfaceSetMacAddress) Size() int {
2945 // field[1] m.SwIfIndex
2947 // field[1] m.MacAddress
2951 func (m *SwInterfaceSetMacAddress) Marshal(b []byte) ([]byte, error) {
2952 o := binary.BigEndian
2958 buf = make([]byte, m.Size())
2962 // field[1] m.SwIfIndex
2963 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
2965 // field[1] m.MacAddress
2966 for i := 0; i < 6; i++ {
2968 if i < len(m.MacAddress) {
2969 x = uint8(m.MacAddress[i])
2976 func (m *SwInterfaceSetMacAddress) Unmarshal(tmp []byte) error {
2977 o := binary.BigEndian
2981 // field[1] m.SwIfIndex
2982 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
2984 // field[1] m.MacAddress
2985 for i := 0; i < len(m.MacAddress); i++ {
2986 m.MacAddress[i] = uint8(tmp[pos])
2992 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply'.
2993 type SwInterfaceSetMacAddressReply struct {
2994 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2997 func (m *SwInterfaceSetMacAddressReply) Reset() { *m = SwInterfaceSetMacAddressReply{} }
2998 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
2999 return "sw_interface_set_mac_address_reply"
3001 func (*SwInterfaceSetMacAddressReply) GetCrcString() string { return "e8d4e804" }
3002 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType { return api.ReplyMessage }
3004 func (m *SwInterfaceSetMacAddressReply) Size() int {
3009 // field[1] m.Retval
3013 func (m *SwInterfaceSetMacAddressReply) Marshal(b []byte) ([]byte, error) {
3014 o := binary.BigEndian
3020 buf = make([]byte, m.Size())
3024 // field[1] m.Retval
3025 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
3029 func (m *SwInterfaceSetMacAddressReply) Unmarshal(tmp []byte) error {
3030 o := binary.BigEndian
3034 // field[1] m.Retval
3035 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
3040 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu'.
3041 type SwInterfaceSetMtu struct {
3042 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
3043 Mtu []uint32 `binapi:"u32[4],name=mtu" json:"mtu,omitempty" struc:"[4]uint32"`
3046 func (m *SwInterfaceSetMtu) Reset() { *m = SwInterfaceSetMtu{} }
3047 func (*SwInterfaceSetMtu) GetMessageName() string { return "sw_interface_set_mtu" }
3048 func (*SwInterfaceSetMtu) GetCrcString() string { return "5cbe85e5" }
3049 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType { return api.RequestMessage }
3051 func (m *SwInterfaceSetMtu) Size() int {
3056 // field[1] m.SwIfIndex
3062 func (m *SwInterfaceSetMtu) Marshal(b []byte) ([]byte, error) {
3063 o := binary.BigEndian
3069 buf = make([]byte, m.Size())
3073 // field[1] m.SwIfIndex
3074 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
3077 for i := 0; i < 4; i++ {
3080 x = uint32(m.Mtu[i])
3082 o.PutUint32(buf[pos:pos+4], uint32(x))
3087 func (m *SwInterfaceSetMtu) Unmarshal(tmp []byte) error {
3088 o := binary.BigEndian
3092 // field[1] m.SwIfIndex
3093 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
3096 m.Mtu = make([]uint32, 4)
3097 for i := 0; i < len(m.Mtu); i++ {
3098 m.Mtu[i] = uint32(o.Uint32(tmp[pos : pos+4]))
3104 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply'.
3105 type SwInterfaceSetMtuReply struct {
3106 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3109 func (m *SwInterfaceSetMtuReply) Reset() { *m = SwInterfaceSetMtuReply{} }
3110 func (*SwInterfaceSetMtuReply) GetMessageName() string { return "sw_interface_set_mtu_reply" }
3111 func (*SwInterfaceSetMtuReply) GetCrcString() string { return "e8d4e804" }
3112 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType { return api.ReplyMessage }
3114 func (m *SwInterfaceSetMtuReply) Size() int {
3119 // field[1] m.Retval
3123 func (m *SwInterfaceSetMtuReply) Marshal(b []byte) ([]byte, error) {
3124 o := binary.BigEndian
3130 buf = make([]byte, m.Size())
3134 // field[1] m.Retval
3135 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
3139 func (m *SwInterfaceSetMtuReply) Unmarshal(tmp []byte) error {
3140 o := binary.BigEndian
3144 // field[1] m.Retval
3145 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
3150 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode'.
3151 type SwInterfaceSetRxMode struct {
3152 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
3153 QueueIDValid bool `binapi:"bool,name=queue_id_valid" json:"queue_id_valid,omitempty"`
3154 QueueID uint32 `binapi:"u32,name=queue_id" json:"queue_id,omitempty"`
3155 Mode RxMode `binapi:"rx_mode,name=mode" json:"mode,omitempty"`
3158 func (m *SwInterfaceSetRxMode) Reset() { *m = SwInterfaceSetRxMode{} }
3159 func (*SwInterfaceSetRxMode) GetMessageName() string { return "sw_interface_set_rx_mode" }
3160 func (*SwInterfaceSetRxMode) GetCrcString() string { return "780f5cee" }
3161 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType { return api.RequestMessage }
3163 func (m *SwInterfaceSetRxMode) Size() int {
3168 // field[1] m.SwIfIndex
3170 // field[1] m.QueueIDValid
3172 // field[1] m.QueueID
3178 func (m *SwInterfaceSetRxMode) Marshal(b []byte) ([]byte, error) {
3179 o := binary.BigEndian
3185 buf = make([]byte, m.Size())
3189 // field[1] m.SwIfIndex
3190 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
3192 // field[1] m.QueueIDValid
3197 // field[1] m.QueueID
3198 o.PutUint32(buf[pos:pos+4], uint32(m.QueueID))
3201 o.PutUint32(buf[pos:pos+4], uint32(m.Mode))
3205 func (m *SwInterfaceSetRxMode) Unmarshal(tmp []byte) error {
3206 o := binary.BigEndian
3210 // field[1] m.SwIfIndex
3211 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
3213 // field[1] m.QueueIDValid
3214 m.QueueIDValid = tmp[pos] != 0
3216 // field[1] m.QueueID
3217 m.QueueID = uint32(o.Uint32(tmp[pos : pos+4]))
3220 m.Mode = RxMode(o.Uint32(tmp[pos : pos+4]))
3225 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply'.
3226 type SwInterfaceSetRxModeReply struct {
3227 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3230 func (m *SwInterfaceSetRxModeReply) Reset() { *m = SwInterfaceSetRxModeReply{} }
3231 func (*SwInterfaceSetRxModeReply) GetMessageName() string { return "sw_interface_set_rx_mode_reply" }
3232 func (*SwInterfaceSetRxModeReply) GetCrcString() string { return "e8d4e804" }
3233 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType { return api.ReplyMessage }
3235 func (m *SwInterfaceSetRxModeReply) Size() int {
3240 // field[1] m.Retval
3244 func (m *SwInterfaceSetRxModeReply) Marshal(b []byte) ([]byte, error) {
3245 o := binary.BigEndian
3251 buf = make([]byte, m.Size())
3255 // field[1] m.Retval
3256 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
3260 func (m *SwInterfaceSetRxModeReply) Unmarshal(tmp []byte) error {
3261 o := binary.BigEndian
3265 // field[1] m.Retval
3266 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
3271 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement'.
3272 type SwInterfaceSetRxPlacement struct {
3273 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
3274 QueueID uint32 `binapi:"u32,name=queue_id" json:"queue_id,omitempty"`
3275 WorkerID uint32 `binapi:"u32,name=worker_id" json:"worker_id,omitempty"`
3276 IsMain bool `binapi:"bool,name=is_main" json:"is_main,omitempty"`
3279 func (m *SwInterfaceSetRxPlacement) Reset() { *m = SwInterfaceSetRxPlacement{} }
3280 func (*SwInterfaceSetRxPlacement) GetMessageName() string { return "sw_interface_set_rx_placement" }
3281 func (*SwInterfaceSetRxPlacement) GetCrcString() string { return "db65f3c9" }
3282 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType { return api.RequestMessage }
3284 func (m *SwInterfaceSetRxPlacement) Size() int {
3289 // field[1] m.SwIfIndex
3291 // field[1] m.QueueID
3293 // field[1] m.WorkerID
3295 // field[1] m.IsMain
3299 func (m *SwInterfaceSetRxPlacement) Marshal(b []byte) ([]byte, error) {
3300 o := binary.BigEndian
3306 buf = make([]byte, m.Size())
3310 // field[1] m.SwIfIndex
3311 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
3313 // field[1] m.QueueID
3314 o.PutUint32(buf[pos:pos+4], uint32(m.QueueID))
3316 // field[1] m.WorkerID
3317 o.PutUint32(buf[pos:pos+4], uint32(m.WorkerID))
3319 // field[1] m.IsMain
3326 func (m *SwInterfaceSetRxPlacement) Unmarshal(tmp []byte) error {
3327 o := binary.BigEndian
3331 // field[1] m.SwIfIndex
3332 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
3334 // field[1] m.QueueID
3335 m.QueueID = uint32(o.Uint32(tmp[pos : pos+4]))
3337 // field[1] m.WorkerID
3338 m.WorkerID = uint32(o.Uint32(tmp[pos : pos+4]))
3340 // field[1] m.IsMain
3341 m.IsMain = tmp[pos] != 0
3346 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply'.
3347 type SwInterfaceSetRxPlacementReply struct {
3348 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3351 func (m *SwInterfaceSetRxPlacementReply) Reset() { *m = SwInterfaceSetRxPlacementReply{} }
3352 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
3353 return "sw_interface_set_rx_placement_reply"
3355 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string { return "e8d4e804" }
3356 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType { return api.ReplyMessage }
3358 func (m *SwInterfaceSetRxPlacementReply) Size() int {
3363 // field[1] m.Retval
3367 func (m *SwInterfaceSetRxPlacementReply) Marshal(b []byte) ([]byte, error) {
3368 o := binary.BigEndian
3374 buf = make([]byte, m.Size())
3378 // field[1] m.Retval
3379 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
3383 func (m *SwInterfaceSetRxPlacementReply) Unmarshal(tmp []byte) error {
3384 o := binary.BigEndian
3388 // field[1] m.Retval
3389 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
3394 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table'.
3395 type SwInterfaceSetTable struct {
3396 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
3397 IsIPv6 bool `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"`
3398 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
3401 func (m *SwInterfaceSetTable) Reset() { *m = SwInterfaceSetTable{} }
3402 func (*SwInterfaceSetTable) GetMessageName() string { return "sw_interface_set_table" }
3403 func (*SwInterfaceSetTable) GetCrcString() string { return "df42a577" }
3404 func (*SwInterfaceSetTable) GetMessageType() api.MessageType { return api.RequestMessage }
3406 func (m *SwInterfaceSetTable) Size() int {
3411 // field[1] m.SwIfIndex
3413 // field[1] m.IsIPv6
3419 func (m *SwInterfaceSetTable) Marshal(b []byte) ([]byte, error) {
3420 o := binary.BigEndian
3426 buf = make([]byte, m.Size())
3430 // field[1] m.SwIfIndex
3431 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
3433 // field[1] m.IsIPv6
3439 o.PutUint32(buf[pos:pos+4], uint32(m.VrfID))
3443 func (m *SwInterfaceSetTable) Unmarshal(tmp []byte) error {
3444 o := binary.BigEndian
3448 // field[1] m.SwIfIndex
3449 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
3451 // field[1] m.IsIPv6
3452 m.IsIPv6 = tmp[pos] != 0
3455 m.VrfID = uint32(o.Uint32(tmp[pos : pos+4]))
3460 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply'.
3461 type SwInterfaceSetTableReply struct {
3462 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3465 func (m *SwInterfaceSetTableReply) Reset() { *m = SwInterfaceSetTableReply{} }
3466 func (*SwInterfaceSetTableReply) GetMessageName() string { return "sw_interface_set_table_reply" }
3467 func (*SwInterfaceSetTableReply) GetCrcString() string { return "e8d4e804" }
3468 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType { return api.ReplyMessage }
3470 func (m *SwInterfaceSetTableReply) Size() int {
3475 // field[1] m.Retval
3479 func (m *SwInterfaceSetTableReply) Marshal(b []byte) ([]byte, error) {
3480 o := binary.BigEndian
3486 buf = make([]byte, m.Size())
3490 // field[1] m.Retval
3491 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
3495 func (m *SwInterfaceSetTableReply) Unmarshal(tmp []byte) error {
3496 o := binary.BigEndian
3500 // field[1] m.Retval
3501 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
3506 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered'.
3507 type SwInterfaceSetUnnumbered struct {
3508 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
3509 UnnumberedSwIfIndex InterfaceIndex `binapi:"interface_index,name=unnumbered_sw_if_index" json:"unnumbered_sw_if_index,omitempty"`
3510 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
3513 func (m *SwInterfaceSetUnnumbered) Reset() { *m = SwInterfaceSetUnnumbered{} }
3514 func (*SwInterfaceSetUnnumbered) GetMessageName() string { return "sw_interface_set_unnumbered" }
3515 func (*SwInterfaceSetUnnumbered) GetCrcString() string { return "938ef33b" }
3516 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType { return api.RequestMessage }
3518 func (m *SwInterfaceSetUnnumbered) Size() int {
3523 // field[1] m.SwIfIndex
3525 // field[1] m.UnnumberedSwIfIndex
3531 func (m *SwInterfaceSetUnnumbered) Marshal(b []byte) ([]byte, error) {
3532 o := binary.BigEndian
3538 buf = make([]byte, m.Size())
3542 // field[1] m.SwIfIndex
3543 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
3545 // field[1] m.UnnumberedSwIfIndex
3546 o.PutUint32(buf[pos:pos+4], uint32(m.UnnumberedSwIfIndex))
3555 func (m *SwInterfaceSetUnnumbered) Unmarshal(tmp []byte) error {
3556 o := binary.BigEndian
3560 // field[1] m.SwIfIndex
3561 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
3563 // field[1] m.UnnumberedSwIfIndex
3564 m.UnnumberedSwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
3567 m.IsAdd = tmp[pos] != 0
3572 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply'.
3573 type SwInterfaceSetUnnumberedReply struct {
3574 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3577 func (m *SwInterfaceSetUnnumberedReply) Reset() { *m = SwInterfaceSetUnnumberedReply{} }
3578 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
3579 return "sw_interface_set_unnumbered_reply"
3581 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string { return "e8d4e804" }
3582 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType { return api.ReplyMessage }
3584 func (m *SwInterfaceSetUnnumberedReply) Size() int {
3589 // field[1] m.Retval
3593 func (m *SwInterfaceSetUnnumberedReply) Marshal(b []byte) ([]byte, error) {
3594 o := binary.BigEndian
3600 buf = make([]byte, m.Size())
3604 // field[1] m.Retval
3605 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
3609 func (m *SwInterfaceSetUnnumberedReply) Unmarshal(tmp []byte) error {
3610 o := binary.BigEndian
3614 // field[1] m.Retval
3615 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
3620 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del'.
3621 type SwInterfaceTagAddDel struct {
3622 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
3623 SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
3624 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty" struc:"[64]byte"`
3627 func (m *SwInterfaceTagAddDel) Reset() { *m = SwInterfaceTagAddDel{} }
3628 func (*SwInterfaceTagAddDel) GetMessageName() string { return "sw_interface_tag_add_del" }
3629 func (*SwInterfaceTagAddDel) GetCrcString() string { return "426f8bc1" }
3630 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType { return api.RequestMessage }
3632 func (m *SwInterfaceTagAddDel) Size() int {
3639 // field[1] m.SwIfIndex
3645 func (m *SwInterfaceTagAddDel) Marshal(b []byte) ([]byte, error) {
3646 o := binary.BigEndian
3652 buf = make([]byte, m.Size())
3661 // field[1] m.SwIfIndex
3662 o.PutUint32(buf[pos:pos+4], uint32(m.SwIfIndex))
3665 copy(buf[pos:pos+64], m.Tag)
3669 func (m *SwInterfaceTagAddDel) Unmarshal(tmp []byte) error {
3670 o := binary.BigEndian
3675 m.IsAdd = tmp[pos] != 0
3677 // field[1] m.SwIfIndex
3678 m.SwIfIndex = InterfaceIndex(o.Uint32(tmp[pos : pos+4]))
3682 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
3683 m.Tag = codec.DecodeString(tmp[pos : pos+nul])
3689 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply'.
3690 type SwInterfaceTagAddDelReply struct {
3691 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3694 func (m *SwInterfaceTagAddDelReply) Reset() { *m = SwInterfaceTagAddDelReply{} }
3695 func (*SwInterfaceTagAddDelReply) GetMessageName() string { return "sw_interface_tag_add_del_reply" }
3696 func (*SwInterfaceTagAddDelReply) GetCrcString() string { return "e8d4e804" }
3697 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage }
3699 func (m *SwInterfaceTagAddDelReply) Size() int {
3704 // field[1] m.Retval
3708 func (m *SwInterfaceTagAddDelReply) Marshal(b []byte) ([]byte, error) {
3709 o := binary.BigEndian
3715 buf = make([]byte, m.Size())
3719 // field[1] m.Retval
3720 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
3724 func (m *SwInterfaceTagAddDelReply) Unmarshal(tmp []byte) error {
3725 o := binary.BigEndian
3729 // field[1] m.Retval
3730 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
3735 // WantInterfaceEvents represents VPP binary API message 'want_interface_events'.
3736 type WantInterfaceEvents struct {
3737 EnableDisable uint32 `binapi:"u32,name=enable_disable" json:"enable_disable,omitempty"`
3738 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
3741 func (m *WantInterfaceEvents) Reset() { *m = WantInterfaceEvents{} }
3742 func (*WantInterfaceEvents) GetMessageName() string { return "want_interface_events" }
3743 func (*WantInterfaceEvents) GetCrcString() string { return "476f5a08" }
3744 func (*WantInterfaceEvents) GetMessageType() api.MessageType { return api.RequestMessage }
3746 func (m *WantInterfaceEvents) Size() int {
3751 // field[1] m.EnableDisable
3757 func (m *WantInterfaceEvents) Marshal(b []byte) ([]byte, error) {
3758 o := binary.BigEndian
3764 buf = make([]byte, m.Size())
3768 // field[1] m.EnableDisable
3769 o.PutUint32(buf[pos:pos+4], uint32(m.EnableDisable))
3772 o.PutUint32(buf[pos:pos+4], uint32(m.PID))
3776 func (m *WantInterfaceEvents) Unmarshal(tmp []byte) error {
3777 o := binary.BigEndian
3781 // field[1] m.EnableDisable
3782 m.EnableDisable = uint32(o.Uint32(tmp[pos : pos+4]))
3785 m.PID = uint32(o.Uint32(tmp[pos : pos+4]))
3790 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply'.
3791 type WantInterfaceEventsReply struct {
3792 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
3795 func (m *WantInterfaceEventsReply) Reset() { *m = WantInterfaceEventsReply{} }
3796 func (*WantInterfaceEventsReply) GetMessageName() string { return "want_interface_events_reply" }
3797 func (*WantInterfaceEventsReply) GetCrcString() string { return "e8d4e804" }
3798 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType { return api.ReplyMessage }
3800 func (m *WantInterfaceEventsReply) Size() int {
3805 // field[1] m.Retval
3809 func (m *WantInterfaceEventsReply) Marshal(b []byte) ([]byte, error) {
3810 o := binary.BigEndian
3816 buf = make([]byte, m.Size())
3820 // field[1] m.Retval
3821 o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
3825 func (m *WantInterfaceEventsReply) Unmarshal(tmp []byte) error {
3826 o := binary.BigEndian
3830 // field[1] m.Retval
3831 m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
3836 func init() { file_interfaces_binapi_init() }
3837 func file_interfaces_binapi_init() {
3838 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
3839 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
3840 api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
3841 api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
3842 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
3843 api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
3844 api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
3845 api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
3846 api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
3847 api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
3848 api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
3849 api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
3850 api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
3851 api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
3852 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
3853 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
3854 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
3855 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
3856 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
3857 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
3858 api.RegisterMessage((*SwInterfaceAddDelMacAddress)(nil), "interface.SwInterfaceAddDelMacAddress")
3859 api.RegisterMessage((*SwInterfaceAddDelMacAddressReply)(nil), "interface.SwInterfaceAddDelMacAddressReply")
3860 api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
3861 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
3862 api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
3863 api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
3864 api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
3865 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
3866 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
3867 api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
3868 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
3869 api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
3870 api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
3871 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
3872 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
3873 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
3874 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
3875 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
3876 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
3877 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
3878 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
3879 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
3880 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
3881 api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
3882 api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
3883 api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
3884 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
3885 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
3886 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
3887 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
3888 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
3889 api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
3890 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
3893 // Messages returns list of all messages in this module.
3894 func AllMessages() []api.Message {
3895 return []api.Message{
3896 (*CollectDetailedInterfaceStats)(nil),
3897 (*CollectDetailedInterfaceStatsReply)(nil),
3898 (*CreateLoopback)(nil),
3899 (*CreateLoopbackInstance)(nil),
3900 (*CreateLoopbackInstanceReply)(nil),
3901 (*CreateLoopbackReply)(nil),
3902 (*CreateSubif)(nil),
3903 (*CreateSubifReply)(nil),
3904 (*CreateVlanSubif)(nil),
3905 (*CreateVlanSubifReply)(nil),
3906 (*DeleteLoopback)(nil),
3907 (*DeleteLoopbackReply)(nil),
3908 (*DeleteSubif)(nil),
3909 (*DeleteSubifReply)(nil),
3910 (*HwInterfaceSetMtu)(nil),
3911 (*HwInterfaceSetMtuReply)(nil),
3912 (*InterfaceNameRenumber)(nil),
3913 (*InterfaceNameRenumberReply)(nil),
3914 (*SwInterfaceAddDelAddress)(nil),
3915 (*SwInterfaceAddDelAddressReply)(nil),
3916 (*SwInterfaceAddDelMacAddress)(nil),
3917 (*SwInterfaceAddDelMacAddressReply)(nil),
3918 (*SwInterfaceClearStats)(nil),
3919 (*SwInterfaceClearStatsReply)(nil),
3920 (*SwInterfaceDetails)(nil),
3921 (*SwInterfaceDump)(nil),
3922 (*SwInterfaceEvent)(nil),
3923 (*SwInterfaceGetMacAddress)(nil),
3924 (*SwInterfaceGetMacAddressReply)(nil),
3925 (*SwInterfaceGetTable)(nil),
3926 (*SwInterfaceGetTableReply)(nil),
3927 (*SwInterfaceRxPlacementDetails)(nil),
3928 (*SwInterfaceRxPlacementDump)(nil),
3929 (*SwInterfaceSetFlags)(nil),
3930 (*SwInterfaceSetFlagsReply)(nil),
3931 (*SwInterfaceSetIPDirectedBroadcast)(nil),
3932 (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
3933 (*SwInterfaceSetMacAddress)(nil),
3934 (*SwInterfaceSetMacAddressReply)(nil),
3935 (*SwInterfaceSetMtu)(nil),
3936 (*SwInterfaceSetMtuReply)(nil),
3937 (*SwInterfaceSetRxMode)(nil),
3938 (*SwInterfaceSetRxModeReply)(nil),
3939 (*SwInterfaceSetRxPlacement)(nil),
3940 (*SwInterfaceSetRxPlacementReply)(nil),
3941 (*SwInterfaceSetTable)(nil),
3942 (*SwInterfaceSetTableReply)(nil),
3943 (*SwInterfaceSetUnnumbered)(nil),
3944 (*SwInterfaceSetUnnumberedReply)(nil),
3945 (*SwInterfaceTagAddDel)(nil),
3946 (*SwInterfaceTagAddDelReply)(nil),
3947 (*WantInterfaceEvents)(nil),
3948 (*WantInterfaceEventsReply)(nil),
3952 // Reference imports to suppress errors if they are not otherwise used.
3953 var _ = api.RegisterMessage
3954 var _ = codec.DecodeString
3955 var _ = bytes.NewBuffer
3956 var _ = context.Background
3958 var _ = strconv.Itoa
3960 var _ = binary.BigEndian
3961 var _ = math.Float32bits