Omit message factory and line numbers from generated output
[govpp.git] / examples / bin_api / stats / stats.ba.go
1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 //  source: stats.api.json
3
4 /*
5  Package stats is a generated from VPP binary API module 'stats'.
6
7  It contains following objects:
8          39 messages
9          10 types
10          14 services
11
12 */
13 package stats
14
15 import "git.fd.io/govpp.git/api"
16 import "github.com/lunixbochs/struc"
17 import "bytes"
18
19 // Reference imports to suppress errors if they are not otherwise used.
20 var _ = api.RegisterMessage
21 var _ = struc.Pack
22 var _ = bytes.NewBuffer
23
24 /* Types */
25
26 // VlibCounter represents the VPP binary API type 'vlib_counter'.
27 //
28 //            "vlib_counter",
29 //            [
30 //                "u64",
31 //                "packets"
32 //            ],
33 //            [
34 //                "u64",
35 //                "bytes"
36 //            ],
37 //            {
38 //                "crc": "0xce2325a2"
39 //            }
40 //
41 type VlibCounter struct {
42         Packets uint64
43         Bytes   uint64
44 }
45
46 func (*VlibCounter) GetTypeName() string {
47         return "vlib_counter"
48 }
49 func (*VlibCounter) GetCrcString() string {
50         return "ce2325a2"
51 }
52
53 // VnetCombinedCounter represents the VPP binary API type 'vnet_combined_counter'.
54 //
55 //            "vnet_combined_counter",
56 //            [
57 //                "u32",
58 //                "sw_if_index"
59 //            ],
60 //            [
61 //                "u64",
62 //                "rx_packets"
63 //            ],
64 //            [
65 //                "u64",
66 //                "rx_bytes"
67 //            ],
68 //            [
69 //                "u64",
70 //                "rx_unicast_packets"
71 //            ],
72 //            [
73 //                "u64",
74 //                "rx_unicast_bytes"
75 //            ],
76 //            [
77 //                "u64",
78 //                "rx_multicast_packets"
79 //            ],
80 //            [
81 //                "u64",
82 //                "rx_multicast_bytes"
83 //            ],
84 //            [
85 //                "u64",
86 //                "rx_broadcast_packets"
87 //            ],
88 //            [
89 //                "u64",
90 //                "rx_broadcast_bytes"
91 //            ],
92 //            [
93 //                "u64",
94 //                "tx_packets"
95 //            ],
96 //            [
97 //                "u64",
98 //                "tx_bytes"
99 //            ],
100 //            [
101 //                "u64",
102 //                "tx_unicast_packets"
103 //            ],
104 //            [
105 //                "u64",
106 //                "tx_unicast_bytes"
107 //            ],
108 //            [
109 //                "u64",
110 //                "tx_multicast_packets"
111 //            ],
112 //            [
113 //                "u64",
114 //                "tx_multicast_bytes"
115 //            ],
116 //            [
117 //                "u64",
118 //                "tx_broadcast_packets"
119 //            ],
120 //            [
121 //                "u64",
122 //                "tx_broadcast_bytes"
123 //            ],
124 //            {
125 //                "crc": "0x20905ca4"
126 //            }
127 //
128 type VnetCombinedCounter struct {
129         SwIfIndex          uint32
130         RxPackets          uint64
131         RxBytes            uint64
132         RxUnicastPackets   uint64
133         RxUnicastBytes     uint64
134         RxMulticastPackets uint64
135         RxMulticastBytes   uint64
136         RxBroadcastPackets uint64
137         RxBroadcastBytes   uint64
138         TxPackets          uint64
139         TxBytes            uint64
140         TxUnicastPackets   uint64
141         TxUnicastBytes     uint64
142         TxMulticastPackets uint64
143         TxMulticastBytes   uint64
144         TxBroadcastPackets uint64
145         TxBroadcastBytes   uint64
146 }
147
148 func (*VnetCombinedCounter) GetTypeName() string {
149         return "vnet_combined_counter"
150 }
151 func (*VnetCombinedCounter) GetCrcString() string {
152         return "20905ca4"
153 }
154
155 // VnetSimpleCounter represents the VPP binary API type 'vnet_simple_counter'.
156 //
157 //            "vnet_simple_counter",
158 //            [
159 //                "u32",
160 //                "sw_if_index"
161 //            ],
162 //            [
163 //                "u64",
164 //                "drop"
165 //            ],
166 //            [
167 //                "u64",
168 //                "punt"
169 //            ],
170 //            [
171 //                "u64",
172 //                "rx_ip4"
173 //            ],
174 //            [
175 //                "u64",
176 //                "rx_ip6"
177 //            ],
178 //            [
179 //                "u64",
180 //                "rx_no_buffer"
181 //            ],
182 //            [
183 //                "u64",
184 //                "rx_miss"
185 //            ],
186 //            [
187 //                "u64",
188 //                "rx_error"
189 //            ],
190 //            [
191 //                "u64",
192 //                "tx_error"
193 //            ],
194 //            [
195 //                "u64",
196 //                "rx_mpls"
197 //            ],
198 //            {
199 //                "crc": "0x8bd65e2d"
200 //            }
201 //
202 type VnetSimpleCounter struct {
203         SwIfIndex  uint32
204         Drop       uint64
205         Punt       uint64
206         RxIP4      uint64
207         RxIP6      uint64
208         RxNoBuffer uint64
209         RxMiss     uint64
210         RxError    uint64
211         TxError    uint64
212         RxMpls     uint64
213 }
214
215 func (*VnetSimpleCounter) GetTypeName() string {
216         return "vnet_simple_counter"
217 }
218 func (*VnetSimpleCounter) GetCrcString() string {
219         return "8bd65e2d"
220 }
221
222 // IP4FibCounter represents the VPP binary API type 'ip4_fib_counter'.
223 //
224 //            "ip4_fib_counter",
225 //            [
226 //                "u32",
227 //                "address"
228 //            ],
229 //            [
230 //                "u8",
231 //                "address_length"
232 //            ],
233 //            [
234 //                "u64",
235 //                "packets"
236 //            ],
237 //            [
238 //                "u64",
239 //                "bytes"
240 //            ],
241 //            {
242 //                "crc": "0xa6ceb0c9"
243 //            }
244 //
245 type IP4FibCounter struct {
246         Address       uint32
247         AddressLength uint8
248         Packets       uint64
249         Bytes         uint64
250 }
251
252 func (*IP4FibCounter) GetTypeName() string {
253         return "ip4_fib_counter"
254 }
255 func (*IP4FibCounter) GetCrcString() string {
256         return "a6ceb0c9"
257 }
258
259 // IP4MfibCounter represents the VPP binary API type 'ip4_mfib_counter'.
260 //
261 //            "ip4_mfib_counter",
262 //            [
263 //                "u8",
264 //                "source",
265 //                4
266 //            ],
267 //            [
268 //                "u8",
269 //                "group",
270 //                4
271 //            ],
272 //            [
273 //                "u8",
274 //                "group_length"
275 //            ],
276 //            [
277 //                "u64",
278 //                "packets"
279 //            ],
280 //            [
281 //                "u64",
282 //                "bytes"
283 //            ],
284 //            {
285 //                "crc": "0x2cee4721"
286 //            }
287 //
288 type IP4MfibCounter struct {
289         Source      []byte `struc:"[4]byte"`
290         Group       []byte `struc:"[4]byte"`
291         GroupLength uint8
292         Packets     uint64
293         Bytes       uint64
294 }
295
296 func (*IP4MfibCounter) GetTypeName() string {
297         return "ip4_mfib_counter"
298 }
299 func (*IP4MfibCounter) GetCrcString() string {
300         return "2cee4721"
301 }
302
303 // IP4NbrCounter represents the VPP binary API type 'ip4_nbr_counter'.
304 //
305 //            "ip4_nbr_counter",
306 //            [
307 //                "u32",
308 //                "address"
309 //            ],
310 //            [
311 //                "u8",
312 //                "link_type"
313 //            ],
314 //            [
315 //                "u64",
316 //                "packets"
317 //            ],
318 //            [
319 //                "u64",
320 //                "bytes"
321 //            ],
322 //            {
323 //                "crc": "0xb9f974d6"
324 //            }
325 //
326 type IP4NbrCounter struct {
327         Address  uint32
328         LinkType uint8
329         Packets  uint64
330         Bytes    uint64
331 }
332
333 func (*IP4NbrCounter) GetTypeName() string {
334         return "ip4_nbr_counter"
335 }
336 func (*IP4NbrCounter) GetCrcString() string {
337         return "b9f974d6"
338 }
339
340 // IP6FibCounter represents the VPP binary API type 'ip6_fib_counter'.
341 //
342 //            "ip6_fib_counter",
343 //            [
344 //                "u64",
345 //                "address",
346 //                2
347 //            ],
348 //            [
349 //                "u8",
350 //                "address_length"
351 //            ],
352 //            [
353 //                "u64",
354 //                "packets"
355 //            ],
356 //            [
357 //                "u64",
358 //                "bytes"
359 //            ],
360 //            {
361 //                "crc": "0xf1197efb"
362 //            }
363 //
364 type IP6FibCounter struct {
365         Address       []uint64 `struc:"[2]uint64"`
366         AddressLength uint8
367         Packets       uint64
368         Bytes         uint64
369 }
370
371 func (*IP6FibCounter) GetTypeName() string {
372         return "ip6_fib_counter"
373 }
374 func (*IP6FibCounter) GetCrcString() string {
375         return "f1197efb"
376 }
377
378 // IP6MfibCounter represents the VPP binary API type 'ip6_mfib_counter'.
379 //
380 //            "ip6_mfib_counter",
381 //            [
382 //                "u8",
383 //                "source",
384 //                16
385 //            ],
386 //            [
387 //                "u8",
388 //                "group",
389 //                16
390 //            ],
391 //            [
392 //                "u8",
393 //                "group_length"
394 //            ],
395 //            [
396 //                "u64",
397 //                "packets"
398 //            ],
399 //            [
400 //                "u64",
401 //                "bytes"
402 //            ],
403 //            {
404 //                "crc": "0x90a9590e"
405 //            }
406 //
407 type IP6MfibCounter struct {
408         Source      []byte `struc:"[16]byte"`
409         Group       []byte `struc:"[16]byte"`
410         GroupLength uint8
411         Packets     uint64
412         Bytes       uint64
413 }
414
415 func (*IP6MfibCounter) GetTypeName() string {
416         return "ip6_mfib_counter"
417 }
418 func (*IP6MfibCounter) GetCrcString() string {
419         return "90a9590e"
420 }
421
422 // IP6NbrCounter represents the VPP binary API type 'ip6_nbr_counter'.
423 //
424 //            "ip6_nbr_counter",
425 //            [
426 //                "u64",
427 //                "address",
428 //                2
429 //            ],
430 //            [
431 //                "u8",
432 //                "link_type"
433 //            ],
434 //            [
435 //                "u64",
436 //                "packets"
437 //            ],
438 //            [
439 //                "u64",
440 //                "bytes"
441 //            ],
442 //            {
443 //                "crc": "0x2d755474"
444 //            }
445 //
446 type IP6NbrCounter struct {
447         Address  []uint64 `struc:"[2]uint64"`
448         LinkType uint8
449         Packets  uint64
450         Bytes    uint64
451 }
452
453 func (*IP6NbrCounter) GetTypeName() string {
454         return "ip6_nbr_counter"
455 }
456 func (*IP6NbrCounter) GetCrcString() string {
457         return "2d755474"
458 }
459
460 // UDPEncapCounter represents the VPP binary API type 'udp_encap_counter'.
461 //
462 //            "udp_encap_counter",
463 //            [
464 //                "u32",
465 //                "id"
466 //            ],
467 //            [
468 //                "u64",
469 //                "packets"
470 //            ],
471 //            [
472 //                "u64",
473 //                "bytes"
474 //            ],
475 //            {
476 //                "crc": "0x7107035f"
477 //            }
478 //
479 type UDPEncapCounter struct {
480         ID      uint32
481         Packets uint64
482         Bytes   uint64
483 }
484
485 func (*UDPEncapCounter) GetTypeName() string {
486         return "udp_encap_counter"
487 }
488 func (*UDPEncapCounter) GetCrcString() string {
489         return "7107035f"
490 }
491
492 /* Messages */
493
494 // WantStats represents the VPP binary API message 'want_stats'.
495 //
496 //            "want_stats",
497 //            [
498 //                "u16",
499 //                "_vl_msg_id"
500 //            ],
501 //            [
502 //                "u32",
503 //                "client_index"
504 //            ],
505 //            [
506 //                "u32",
507 //                "context"
508 //            ],
509 //            [
510 //                "u32",
511 //                "enable_disable"
512 //            ],
513 //            [
514 //                "u32",
515 //                "pid"
516 //            ],
517 //            {
518 //                "crc": "0x476f5a08"
519 //            }
520 //
521 type WantStats struct {
522         EnableDisable uint32
523         PID           uint32
524 }
525
526 func (*WantStats) GetMessageName() string {
527         return "want_stats"
528 }
529 func (*WantStats) GetCrcString() string {
530         return "476f5a08"
531 }
532 func (*WantStats) GetMessageType() api.MessageType {
533         return api.RequestMessage
534 }
535
536 // WantStatsReply represents the VPP binary API message 'want_stats_reply'.
537 //
538 //            "want_stats_reply",
539 //            [
540 //                "u16",
541 //                "_vl_msg_id"
542 //            ],
543 //            [
544 //                "u32",
545 //                "context"
546 //            ],
547 //            [
548 //                "i32",
549 //                "retval"
550 //            ],
551 //            {
552 //                "crc": "0xe8d4e804"
553 //            }
554 //
555 type WantStatsReply struct {
556         Retval int32
557 }
558
559 func (*WantStatsReply) GetMessageName() string {
560         return "want_stats_reply"
561 }
562 func (*WantStatsReply) GetCrcString() string {
563         return "e8d4e804"
564 }
565 func (*WantStatsReply) GetMessageType() api.MessageType {
566         return api.ReplyMessage
567 }
568
569 // WantInterfaceSimpleStats represents the VPP binary API message 'want_interface_simple_stats'.
570 //
571 //            "want_interface_simple_stats",
572 //            [
573 //                "u16",
574 //                "_vl_msg_id"
575 //            ],
576 //            [
577 //                "u32",
578 //                "client_index"
579 //            ],
580 //            [
581 //                "u32",
582 //                "context"
583 //            ],
584 //            [
585 //                "u32",
586 //                "enable_disable"
587 //            ],
588 //            [
589 //                "u32",
590 //                "pid"
591 //            ],
592 //            {
593 //                "crc": "0x476f5a08"
594 //            }
595 //
596 type WantInterfaceSimpleStats struct {
597         EnableDisable uint32
598         PID           uint32
599 }
600
601 func (*WantInterfaceSimpleStats) GetMessageName() string {
602         return "want_interface_simple_stats"
603 }
604 func (*WantInterfaceSimpleStats) GetCrcString() string {
605         return "476f5a08"
606 }
607 func (*WantInterfaceSimpleStats) GetMessageType() api.MessageType {
608         return api.RequestMessage
609 }
610
611 // WantInterfaceSimpleStatsReply represents the VPP binary API message 'want_interface_simple_stats_reply'.
612 //
613 //            "want_interface_simple_stats_reply",
614 //            [
615 //                "u16",
616 //                "_vl_msg_id"
617 //            ],
618 //            [
619 //                "u32",
620 //                "context"
621 //            ],
622 //            [
623 //                "i32",
624 //                "retval"
625 //            ],
626 //            {
627 //                "crc": "0xe8d4e804"
628 //            }
629 //
630 type WantInterfaceSimpleStatsReply struct {
631         Retval int32
632 }
633
634 func (*WantInterfaceSimpleStatsReply) GetMessageName() string {
635         return "want_interface_simple_stats_reply"
636 }
637 func (*WantInterfaceSimpleStatsReply) GetCrcString() string {
638         return "e8d4e804"
639 }
640 func (*WantInterfaceSimpleStatsReply) GetMessageType() api.MessageType {
641         return api.ReplyMessage
642 }
643
644 // WantPerInterfaceSimpleStats represents the VPP binary API message 'want_per_interface_simple_stats'.
645 //
646 //            "want_per_interface_simple_stats",
647 //            [
648 //                "u16",
649 //                "_vl_msg_id"
650 //            ],
651 //            [
652 //                "u32",
653 //                "client_index"
654 //            ],
655 //            [
656 //                "u32",
657 //                "context"
658 //            ],
659 //            [
660 //                "u32",
661 //                "enable_disable"
662 //            ],
663 //            [
664 //                "u32",
665 //                "pid"
666 //            ],
667 //            [
668 //                "u32",
669 //                "num"
670 //            ],
671 //            [
672 //                "u32",
673 //                "sw_ifs",
674 //                0,
675 //                "num"
676 //            ],
677 //            {
678 //                "crc": "0x729d04f1"
679 //            }
680 //
681 type WantPerInterfaceSimpleStats struct {
682         EnableDisable uint32
683         PID           uint32
684         Num           uint32 `struc:"sizeof=SwIfs"`
685         SwIfs         []uint32
686 }
687
688 func (*WantPerInterfaceSimpleStats) GetMessageName() string {
689         return "want_per_interface_simple_stats"
690 }
691 func (*WantPerInterfaceSimpleStats) GetCrcString() string {
692         return "729d04f1"
693 }
694 func (*WantPerInterfaceSimpleStats) GetMessageType() api.MessageType {
695         return api.RequestMessage
696 }
697
698 // WantPerInterfaceSimpleStatsReply represents the VPP binary API message 'want_per_interface_simple_stats_reply'.
699 //
700 //            "want_per_interface_simple_stats_reply",
701 //            [
702 //                "u16",
703 //                "_vl_msg_id"
704 //            ],
705 //            [
706 //                "u32",
707 //                "context"
708 //            ],
709 //            [
710 //                "i32",
711 //                "retval"
712 //            ],
713 //            {
714 //                "crc": "0xe8d4e804"
715 //            }
716 //
717 type WantPerInterfaceSimpleStatsReply struct {
718         Retval int32
719 }
720
721 func (*WantPerInterfaceSimpleStatsReply) GetMessageName() string {
722         return "want_per_interface_simple_stats_reply"
723 }
724 func (*WantPerInterfaceSimpleStatsReply) GetCrcString() string {
725         return "e8d4e804"
726 }
727 func (*WantPerInterfaceSimpleStatsReply) GetMessageType() api.MessageType {
728         return api.ReplyMessage
729 }
730
731 // WantInterfaceCombinedStats represents the VPP binary API message 'want_interface_combined_stats'.
732 //
733 //            "want_interface_combined_stats",
734 //            [
735 //                "u16",
736 //                "_vl_msg_id"
737 //            ],
738 //            [
739 //                "u32",
740 //                "client_index"
741 //            ],
742 //            [
743 //                "u32",
744 //                "context"
745 //            ],
746 //            [
747 //                "u32",
748 //                "enable_disable"
749 //            ],
750 //            [
751 //                "u32",
752 //                "pid"
753 //            ],
754 //            {
755 //                "crc": "0x476f5a08"
756 //            }
757 //
758 type WantInterfaceCombinedStats struct {
759         EnableDisable uint32
760         PID           uint32
761 }
762
763 func (*WantInterfaceCombinedStats) GetMessageName() string {
764         return "want_interface_combined_stats"
765 }
766 func (*WantInterfaceCombinedStats) GetCrcString() string {
767         return "476f5a08"
768 }
769 func (*WantInterfaceCombinedStats) GetMessageType() api.MessageType {
770         return api.RequestMessage
771 }
772
773 // WantInterfaceCombinedStatsReply represents the VPP binary API message 'want_interface_combined_stats_reply'.
774 //
775 //            "want_interface_combined_stats_reply",
776 //            [
777 //                "u16",
778 //                "_vl_msg_id"
779 //            ],
780 //            [
781 //                "u32",
782 //                "context"
783 //            ],
784 //            [
785 //                "i32",
786 //                "retval"
787 //            ],
788 //            {
789 //                "crc": "0xe8d4e804"
790 //            }
791 //
792 type WantInterfaceCombinedStatsReply struct {
793         Retval int32
794 }
795
796 func (*WantInterfaceCombinedStatsReply) GetMessageName() string {
797         return "want_interface_combined_stats_reply"
798 }
799 func (*WantInterfaceCombinedStatsReply) GetCrcString() string {
800         return "e8d4e804"
801 }
802 func (*WantInterfaceCombinedStatsReply) GetMessageType() api.MessageType {
803         return api.ReplyMessage
804 }
805
806 // WantPerInterfaceCombinedStats represents the VPP binary API message 'want_per_interface_combined_stats'.
807 //
808 //            "want_per_interface_combined_stats",
809 //            [
810 //                "u16",
811 //                "_vl_msg_id"
812 //            ],
813 //            [
814 //                "u32",
815 //                "client_index"
816 //            ],
817 //            [
818 //                "u32",
819 //                "context"
820 //            ],
821 //            [
822 //                "u32",
823 //                "enable_disable"
824 //            ],
825 //            [
826 //                "u32",
827 //                "pid"
828 //            ],
829 //            [
830 //                "u32",
831 //                "num"
832 //            ],
833 //            [
834 //                "u32",
835 //                "sw_ifs",
836 //                0,
837 //                "num"
838 //            ],
839 //            {
840 //                "crc": "0x729d04f1"
841 //            }
842 //
843 type WantPerInterfaceCombinedStats struct {
844         EnableDisable uint32
845         PID           uint32
846         Num           uint32 `struc:"sizeof=SwIfs"`
847         SwIfs         []uint32
848 }
849
850 func (*WantPerInterfaceCombinedStats) GetMessageName() string {
851         return "want_per_interface_combined_stats"
852 }
853 func (*WantPerInterfaceCombinedStats) GetCrcString() string {
854         return "729d04f1"
855 }
856 func (*WantPerInterfaceCombinedStats) GetMessageType() api.MessageType {
857         return api.RequestMessage
858 }
859
860 // WantPerInterfaceCombinedStatsReply represents the VPP binary API message 'want_per_interface_combined_stats_reply'.
861 //
862 //            "want_per_interface_combined_stats_reply",
863 //            [
864 //                "u16",
865 //                "_vl_msg_id"
866 //            ],
867 //            [
868 //                "u32",
869 //                "context"
870 //            ],
871 //            [
872 //                "i32",
873 //                "retval"
874 //            ],
875 //            {
876 //                "crc": "0xe8d4e804"
877 //            }
878 //
879 type WantPerInterfaceCombinedStatsReply struct {
880         Retval int32
881 }
882
883 func (*WantPerInterfaceCombinedStatsReply) GetMessageName() string {
884         return "want_per_interface_combined_stats_reply"
885 }
886 func (*WantPerInterfaceCombinedStatsReply) GetCrcString() string {
887         return "e8d4e804"
888 }
889 func (*WantPerInterfaceCombinedStatsReply) GetMessageType() api.MessageType {
890         return api.ReplyMessage
891 }
892
893 // WantIP4FibStats represents the VPP binary API message 'want_ip4_fib_stats'.
894 //
895 //            "want_ip4_fib_stats",
896 //            [
897 //                "u16",
898 //                "_vl_msg_id"
899 //            ],
900 //            [
901 //                "u32",
902 //                "client_index"
903 //            ],
904 //            [
905 //                "u32",
906 //                "context"
907 //            ],
908 //            [
909 //                "u32",
910 //                "enable_disable"
911 //            ],
912 //            [
913 //                "u32",
914 //                "pid"
915 //            ],
916 //            {
917 //                "crc": "0x476f5a08"
918 //            }
919 //
920 type WantIP4FibStats struct {
921         EnableDisable uint32
922         PID           uint32
923 }
924
925 func (*WantIP4FibStats) GetMessageName() string {
926         return "want_ip4_fib_stats"
927 }
928 func (*WantIP4FibStats) GetCrcString() string {
929         return "476f5a08"
930 }
931 func (*WantIP4FibStats) GetMessageType() api.MessageType {
932         return api.RequestMessage
933 }
934
935 // WantIP4FibStatsReply represents the VPP binary API message 'want_ip4_fib_stats_reply'.
936 //
937 //            "want_ip4_fib_stats_reply",
938 //            [
939 //                "u16",
940 //                "_vl_msg_id"
941 //            ],
942 //            [
943 //                "u32",
944 //                "context"
945 //            ],
946 //            [
947 //                "i32",
948 //                "retval"
949 //            ],
950 //            {
951 //                "crc": "0xe8d4e804"
952 //            }
953 //
954 type WantIP4FibStatsReply struct {
955         Retval int32
956 }
957
958 func (*WantIP4FibStatsReply) GetMessageName() string {
959         return "want_ip4_fib_stats_reply"
960 }
961 func (*WantIP4FibStatsReply) GetCrcString() string {
962         return "e8d4e804"
963 }
964 func (*WantIP4FibStatsReply) GetMessageType() api.MessageType {
965         return api.ReplyMessage
966 }
967
968 // WantIP6FibStats represents the VPP binary API message 'want_ip6_fib_stats'.
969 //
970 //            "want_ip6_fib_stats",
971 //            [
972 //                "u16",
973 //                "_vl_msg_id"
974 //            ],
975 //            [
976 //                "u32",
977 //                "client_index"
978 //            ],
979 //            [
980 //                "u32",
981 //                "context"
982 //            ],
983 //            [
984 //                "u32",
985 //                "enable_disable"
986 //            ],
987 //            [
988 //                "u32",
989 //                "pid"
990 //            ],
991 //            {
992 //                "crc": "0x476f5a08"
993 //            }
994 //
995 type WantIP6FibStats struct {
996         EnableDisable uint32
997         PID           uint32
998 }
999
1000 func (*WantIP6FibStats) GetMessageName() string {
1001         return "want_ip6_fib_stats"
1002 }
1003 func (*WantIP6FibStats) GetCrcString() string {
1004         return "476f5a08"
1005 }
1006 func (*WantIP6FibStats) GetMessageType() api.MessageType {
1007         return api.RequestMessage
1008 }
1009
1010 // WantIP6FibStatsReply represents the VPP binary API message 'want_ip6_fib_stats_reply'.
1011 //
1012 //            "want_ip6_fib_stats_reply",
1013 //            [
1014 //                "u16",
1015 //                "_vl_msg_id"
1016 //            ],
1017 //            [
1018 //                "u32",
1019 //                "context"
1020 //            ],
1021 //            [
1022 //                "i32",
1023 //                "retval"
1024 //            ],
1025 //            {
1026 //                "crc": "0xe8d4e804"
1027 //            }
1028 //
1029 type WantIP6FibStatsReply struct {
1030         Retval int32
1031 }
1032
1033 func (*WantIP6FibStatsReply) GetMessageName() string {
1034         return "want_ip6_fib_stats_reply"
1035 }
1036 func (*WantIP6FibStatsReply) GetCrcString() string {
1037         return "e8d4e804"
1038 }
1039 func (*WantIP6FibStatsReply) GetMessageType() api.MessageType {
1040         return api.ReplyMessage
1041 }
1042
1043 // WantIP4MfibStats represents the VPP binary API message 'want_ip4_mfib_stats'.
1044 //
1045 //            "want_ip4_mfib_stats",
1046 //            [
1047 //                "u16",
1048 //                "_vl_msg_id"
1049 //            ],
1050 //            [
1051 //                "u32",
1052 //                "client_index"
1053 //            ],
1054 //            [
1055 //                "u32",
1056 //                "context"
1057 //            ],
1058 //            [
1059 //                "u32",
1060 //                "enable_disable"
1061 //            ],
1062 //            [
1063 //                "u32",
1064 //                "pid"
1065 //            ],
1066 //            {
1067 //                "crc": "0x476f5a08"
1068 //            }
1069 //
1070 type WantIP4MfibStats struct {
1071         EnableDisable uint32
1072         PID           uint32
1073 }
1074
1075 func (*WantIP4MfibStats) GetMessageName() string {
1076         return "want_ip4_mfib_stats"
1077 }
1078 func (*WantIP4MfibStats) GetCrcString() string {
1079         return "476f5a08"
1080 }
1081 func (*WantIP4MfibStats) GetMessageType() api.MessageType {
1082         return api.RequestMessage
1083 }
1084
1085 // WantIP4MfibStatsReply represents the VPP binary API message 'want_ip4_mfib_stats_reply'.
1086 //
1087 //            "want_ip4_mfib_stats_reply",
1088 //            [
1089 //                "u16",
1090 //                "_vl_msg_id"
1091 //            ],
1092 //            [
1093 //                "u32",
1094 //                "context"
1095 //            ],
1096 //            [
1097 //                "i32",
1098 //                "retval"
1099 //            ],
1100 //            {
1101 //                "crc": "0xe8d4e804"
1102 //            }
1103 //
1104 type WantIP4MfibStatsReply struct {
1105         Retval int32
1106 }
1107
1108 func (*WantIP4MfibStatsReply) GetMessageName() string {
1109         return "want_ip4_mfib_stats_reply"
1110 }
1111 func (*WantIP4MfibStatsReply) GetCrcString() string {
1112         return "e8d4e804"
1113 }
1114 func (*WantIP4MfibStatsReply) GetMessageType() api.MessageType {
1115         return api.ReplyMessage
1116 }
1117
1118 // WantIP6MfibStats represents the VPP binary API message 'want_ip6_mfib_stats'.
1119 //
1120 //            "want_ip6_mfib_stats",
1121 //            [
1122 //                "u16",
1123 //                "_vl_msg_id"
1124 //            ],
1125 //            [
1126 //                "u32",
1127 //                "client_index"
1128 //            ],
1129 //            [
1130 //                "u32",
1131 //                "context"
1132 //            ],
1133 //            [
1134 //                "u32",
1135 //                "enable_disable"
1136 //            ],
1137 //            [
1138 //                "u32",
1139 //                "pid"
1140 //            ],
1141 //            {
1142 //                "crc": "0x476f5a08"
1143 //            }
1144 //
1145 type WantIP6MfibStats struct {
1146         EnableDisable uint32
1147         PID           uint32
1148 }
1149
1150 func (*WantIP6MfibStats) GetMessageName() string {
1151         return "want_ip6_mfib_stats"
1152 }
1153 func (*WantIP6MfibStats) GetCrcString() string {
1154         return "476f5a08"
1155 }
1156 func (*WantIP6MfibStats) GetMessageType() api.MessageType {
1157         return api.RequestMessage
1158 }
1159
1160 // WantIP6MfibStatsReply represents the VPP binary API message 'want_ip6_mfib_stats_reply'.
1161 //
1162 //            "want_ip6_mfib_stats_reply",
1163 //            [
1164 //                "u16",
1165 //                "_vl_msg_id"
1166 //            ],
1167 //            [
1168 //                "u32",
1169 //                "context"
1170 //            ],
1171 //            [
1172 //                "i32",
1173 //                "retval"
1174 //            ],
1175 //            {
1176 //                "crc": "0xe8d4e804"
1177 //            }
1178 //
1179 type WantIP6MfibStatsReply struct {
1180         Retval int32
1181 }
1182
1183 func (*WantIP6MfibStatsReply) GetMessageName() string {
1184         return "want_ip6_mfib_stats_reply"
1185 }
1186 func (*WantIP6MfibStatsReply) GetCrcString() string {
1187         return "e8d4e804"
1188 }
1189 func (*WantIP6MfibStatsReply) GetMessageType() api.MessageType {
1190         return api.ReplyMessage
1191 }
1192
1193 // WantIP4NbrStats represents the VPP binary API message 'want_ip4_nbr_stats'.
1194 //
1195 //            "want_ip4_nbr_stats",
1196 //            [
1197 //                "u16",
1198 //                "_vl_msg_id"
1199 //            ],
1200 //            [
1201 //                "u32",
1202 //                "client_index"
1203 //            ],
1204 //            [
1205 //                "u32",
1206 //                "context"
1207 //            ],
1208 //            [
1209 //                "u32",
1210 //                "enable_disable"
1211 //            ],
1212 //            [
1213 //                "u32",
1214 //                "pid"
1215 //            ],
1216 //            {
1217 //                "crc": "0x476f5a08"
1218 //            }
1219 //
1220 type WantIP4NbrStats struct {
1221         EnableDisable uint32
1222         PID           uint32
1223 }
1224
1225 func (*WantIP4NbrStats) GetMessageName() string {
1226         return "want_ip4_nbr_stats"
1227 }
1228 func (*WantIP4NbrStats) GetCrcString() string {
1229         return "476f5a08"
1230 }
1231 func (*WantIP4NbrStats) GetMessageType() api.MessageType {
1232         return api.RequestMessage
1233 }
1234
1235 // WantIP4NbrStatsReply represents the VPP binary API message 'want_ip4_nbr_stats_reply'.
1236 //
1237 //            "want_ip4_nbr_stats_reply",
1238 //            [
1239 //                "u16",
1240 //                "_vl_msg_id"
1241 //            ],
1242 //            [
1243 //                "u32",
1244 //                "context"
1245 //            ],
1246 //            [
1247 //                "i32",
1248 //                "retval"
1249 //            ],
1250 //            {
1251 //                "crc": "0xe8d4e804"
1252 //            }
1253 //
1254 type WantIP4NbrStatsReply struct {
1255         Retval int32
1256 }
1257
1258 func (*WantIP4NbrStatsReply) GetMessageName() string {
1259         return "want_ip4_nbr_stats_reply"
1260 }
1261 func (*WantIP4NbrStatsReply) GetCrcString() string {
1262         return "e8d4e804"
1263 }
1264 func (*WantIP4NbrStatsReply) GetMessageType() api.MessageType {
1265         return api.ReplyMessage
1266 }
1267
1268 // WantIP6NbrStats represents the VPP binary API message 'want_ip6_nbr_stats'.
1269 //
1270 //            "want_ip6_nbr_stats",
1271 //            [
1272 //                "u16",
1273 //                "_vl_msg_id"
1274 //            ],
1275 //            [
1276 //                "u32",
1277 //                "client_index"
1278 //            ],
1279 //            [
1280 //                "u32",
1281 //                "context"
1282 //            ],
1283 //            [
1284 //                "u32",
1285 //                "enable_disable"
1286 //            ],
1287 //            [
1288 //                "u32",
1289 //                "pid"
1290 //            ],
1291 //            {
1292 //                "crc": "0x476f5a08"
1293 //            }
1294 //
1295 type WantIP6NbrStats struct {
1296         EnableDisable uint32
1297         PID           uint32
1298 }
1299
1300 func (*WantIP6NbrStats) GetMessageName() string {
1301         return "want_ip6_nbr_stats"
1302 }
1303 func (*WantIP6NbrStats) GetCrcString() string {
1304         return "476f5a08"
1305 }
1306 func (*WantIP6NbrStats) GetMessageType() api.MessageType {
1307         return api.RequestMessage
1308 }
1309
1310 // WantIP6NbrStatsReply represents the VPP binary API message 'want_ip6_nbr_stats_reply'.
1311 //
1312 //            "want_ip6_nbr_stats_reply",
1313 //            [
1314 //                "u16",
1315 //                "_vl_msg_id"
1316 //            ],
1317 //            [
1318 //                "u32",
1319 //                "context"
1320 //            ],
1321 //            [
1322 //                "i32",
1323 //                "retval"
1324 //            ],
1325 //            {
1326 //                "crc": "0xe8d4e804"
1327 //            }
1328 //
1329 type WantIP6NbrStatsReply struct {
1330         Retval int32
1331 }
1332
1333 func (*WantIP6NbrStatsReply) GetMessageName() string {
1334         return "want_ip6_nbr_stats_reply"
1335 }
1336 func (*WantIP6NbrStatsReply) GetCrcString() string {
1337         return "e8d4e804"
1338 }
1339 func (*WantIP6NbrStatsReply) GetMessageType() api.MessageType {
1340         return api.ReplyMessage
1341 }
1342
1343 // VnetIP4FibCounters represents the VPP binary API message 'vnet_ip4_fib_counters'.
1344 //
1345 //            "vnet_ip4_fib_counters",
1346 //            [
1347 //                "u16",
1348 //                "_vl_msg_id"
1349 //            ],
1350 //            [
1351 //                "u32",
1352 //                "vrf_id"
1353 //            ],
1354 //            [
1355 //                "u32",
1356 //                "count"
1357 //            ],
1358 //            [
1359 //                "vl_api_ip4_fib_counter_t",
1360 //                "c",
1361 //                0,
1362 //                "count"
1363 //            ],
1364 //            {
1365 //                "crc": "0x57e3feec"
1366 //            }
1367 //
1368 type VnetIP4FibCounters struct {
1369         VrfID uint32
1370         Count uint32 `struc:"sizeof=C"`
1371         C     []IP4FibCounter
1372 }
1373
1374 func (*VnetIP4FibCounters) GetMessageName() string {
1375         return "vnet_ip4_fib_counters"
1376 }
1377 func (*VnetIP4FibCounters) GetCrcString() string {
1378         return "57e3feec"
1379 }
1380 func (*VnetIP4FibCounters) GetMessageType() api.MessageType {
1381         return api.OtherMessage
1382 }
1383
1384 // VnetIP4MfibCounters represents the VPP binary API message 'vnet_ip4_mfib_counters'.
1385 //
1386 //            "vnet_ip4_mfib_counters",
1387 //            [
1388 //                "u16",
1389 //                "_vl_msg_id"
1390 //            ],
1391 //            [
1392 //                "u32",
1393 //                "vrf_id"
1394 //            ],
1395 //            [
1396 //                "u32",
1397 //                "count"
1398 //            ],
1399 //            [
1400 //                "vl_api_ip4_mfib_counter_t",
1401 //                "c",
1402 //                0,
1403 //                "count"
1404 //            ],
1405 //            {
1406 //                "crc": "0x946eb588"
1407 //            }
1408 //
1409 type VnetIP4MfibCounters struct {
1410         VrfID uint32
1411         Count uint32 `struc:"sizeof=C"`
1412         C     []IP4MfibCounter
1413 }
1414
1415 func (*VnetIP4MfibCounters) GetMessageName() string {
1416         return "vnet_ip4_mfib_counters"
1417 }
1418 func (*VnetIP4MfibCounters) GetCrcString() string {
1419         return "946eb588"
1420 }
1421 func (*VnetIP4MfibCounters) GetMessageType() api.MessageType {
1422         return api.OtherMessage
1423 }
1424
1425 // VnetIP4NbrCounters represents the VPP binary API message 'vnet_ip4_nbr_counters'.
1426 //
1427 //            "vnet_ip4_nbr_counters",
1428 //            [
1429 //                "u16",
1430 //                "_vl_msg_id"
1431 //            ],
1432 //            [
1433 //                "u32",
1434 //                "count"
1435 //            ],
1436 //            [
1437 //                "u32",
1438 //                "sw_if_index"
1439 //            ],
1440 //            [
1441 //                "u8",
1442 //                "begin"
1443 //            ],
1444 //            [
1445 //                "vl_api_ip4_nbr_counter_t",
1446 //                "c",
1447 //                0,
1448 //                "count"
1449 //            ],
1450 //            {
1451 //                "crc": "0x214c4811"
1452 //            }
1453 //
1454 type VnetIP4NbrCounters struct {
1455         Count     uint32 `struc:"sizeof=C"`
1456         SwIfIndex uint32
1457         Begin     uint8
1458         C         []IP4NbrCounter
1459 }
1460
1461 func (*VnetIP4NbrCounters) GetMessageName() string {
1462         return "vnet_ip4_nbr_counters"
1463 }
1464 func (*VnetIP4NbrCounters) GetCrcString() string {
1465         return "214c4811"
1466 }
1467 func (*VnetIP4NbrCounters) GetMessageType() api.MessageType {
1468         return api.OtherMessage
1469 }
1470
1471 // VnetIP6FibCounters represents the VPP binary API message 'vnet_ip6_fib_counters'.
1472 //
1473 //            "vnet_ip6_fib_counters",
1474 //            [
1475 //                "u16",
1476 //                "_vl_msg_id"
1477 //            ],
1478 //            [
1479 //                "u32",
1480 //                "vrf_id"
1481 //            ],
1482 //            [
1483 //                "u32",
1484 //                "count"
1485 //            ],
1486 //            [
1487 //                "vl_api_ip6_fib_counter_t",
1488 //                "c",
1489 //                0,
1490 //                "count"
1491 //            ],
1492 //            {
1493 //                "crc": "0x13aed73d"
1494 //            }
1495 //
1496 type VnetIP6FibCounters struct {
1497         VrfID uint32
1498         Count uint32 `struc:"sizeof=C"`
1499         C     []IP6FibCounter
1500 }
1501
1502 func (*VnetIP6FibCounters) GetMessageName() string {
1503         return "vnet_ip6_fib_counters"
1504 }
1505 func (*VnetIP6FibCounters) GetCrcString() string {
1506         return "13aed73d"
1507 }
1508 func (*VnetIP6FibCounters) GetMessageType() api.MessageType {
1509         return api.OtherMessage
1510 }
1511
1512 // VnetIP6MfibCounters represents the VPP binary API message 'vnet_ip6_mfib_counters'.
1513 //
1514 //            "vnet_ip6_mfib_counters",
1515 //            [
1516 //                "u16",
1517 //                "_vl_msg_id"
1518 //            ],
1519 //            [
1520 //                "u32",
1521 //                "vrf_id"
1522 //            ],
1523 //            [
1524 //                "u32",
1525 //                "count"
1526 //            ],
1527 //            [
1528 //                "vl_api_ip6_mfib_counter_t",
1529 //                "c",
1530 //                0,
1531 //                "count"
1532 //            ],
1533 //            {
1534 //                "crc": "0x65fe1ae3"
1535 //            }
1536 //
1537 type VnetIP6MfibCounters struct {
1538         VrfID uint32
1539         Count uint32 `struc:"sizeof=C"`
1540         C     []IP6MfibCounter
1541 }
1542
1543 func (*VnetIP6MfibCounters) GetMessageName() string {
1544         return "vnet_ip6_mfib_counters"
1545 }
1546 func (*VnetIP6MfibCounters) GetCrcString() string {
1547         return "65fe1ae3"
1548 }
1549 func (*VnetIP6MfibCounters) GetMessageType() api.MessageType {
1550         return api.OtherMessage
1551 }
1552
1553 // VnetIP6NbrCounters represents the VPP binary API message 'vnet_ip6_nbr_counters'.
1554 //
1555 //            "vnet_ip6_nbr_counters",
1556 //            [
1557 //                "u16",
1558 //                "_vl_msg_id"
1559 //            ],
1560 //            [
1561 //                "u32",
1562 //                "count"
1563 //            ],
1564 //            [
1565 //                "u32",
1566 //                "sw_if_index"
1567 //            ],
1568 //            [
1569 //                "u8",
1570 //                "begin"
1571 //            ],
1572 //            [
1573 //                "vl_api_ip6_nbr_counter_t",
1574 //                "c",
1575 //                0,
1576 //                "count"
1577 //            ],
1578 //            {
1579 //                "crc": "0x650161c0"
1580 //            }
1581 //
1582 type VnetIP6NbrCounters struct {
1583         Count     uint32 `struc:"sizeof=C"`
1584         SwIfIndex uint32
1585         Begin     uint8
1586         C         []IP6NbrCounter
1587 }
1588
1589 func (*VnetIP6NbrCounters) GetMessageName() string {
1590         return "vnet_ip6_nbr_counters"
1591 }
1592 func (*VnetIP6NbrCounters) GetCrcString() string {
1593         return "650161c0"
1594 }
1595 func (*VnetIP6NbrCounters) GetMessageType() api.MessageType {
1596         return api.OtherMessage
1597 }
1598
1599 // VnetInterfaceSimpleCounters represents the VPP binary API message 'vnet_interface_simple_counters'.
1600 //
1601 //            "vnet_interface_simple_counters",
1602 //            [
1603 //                "u16",
1604 //                "_vl_msg_id"
1605 //            ],
1606 //            [
1607 //                "u8",
1608 //                "vnet_counter_type"
1609 //            ],
1610 //            [
1611 //                "u32",
1612 //                "first_sw_if_index"
1613 //            ],
1614 //            [
1615 //                "u32",
1616 //                "count"
1617 //            ],
1618 //            [
1619 //                "u64",
1620 //                "data",
1621 //                0,
1622 //                "count"
1623 //            ],
1624 //            {
1625 //                "crc": "0x9bc4a808"
1626 //            }
1627 //
1628 type VnetInterfaceSimpleCounters struct {
1629         VnetCounterType uint8
1630         FirstSwIfIndex  uint32
1631         Count           uint32 `struc:"sizeof=Data"`
1632         Data            []uint64
1633 }
1634
1635 func (*VnetInterfaceSimpleCounters) GetMessageName() string {
1636         return "vnet_interface_simple_counters"
1637 }
1638 func (*VnetInterfaceSimpleCounters) GetCrcString() string {
1639         return "9bc4a808"
1640 }
1641 func (*VnetInterfaceSimpleCounters) GetMessageType() api.MessageType {
1642         return api.OtherMessage
1643 }
1644
1645 // VnetInterfaceCombinedCounters represents the VPP binary API message 'vnet_interface_combined_counters'.
1646 //
1647 //            "vnet_interface_combined_counters",
1648 //            [
1649 //                "u16",
1650 //                "_vl_msg_id"
1651 //            ],
1652 //            [
1653 //                "u8",
1654 //                "vnet_counter_type"
1655 //            ],
1656 //            [
1657 //                "u32",
1658 //                "first_sw_if_index"
1659 //            ],
1660 //            [
1661 //                "u32",
1662 //                "count"
1663 //            ],
1664 //            [
1665 //                "vl_api_vlib_counter_t",
1666 //                "data",
1667 //                0,
1668 //                "count"
1669 //            ],
1670 //            {
1671 //                "crc": "0x2c595002"
1672 //            }
1673 //
1674 type VnetInterfaceCombinedCounters struct {
1675         VnetCounterType uint8
1676         FirstSwIfIndex  uint32
1677         Count           uint32 `struc:"sizeof=Data"`
1678         Data            []VlibCounter
1679 }
1680
1681 func (*VnetInterfaceCombinedCounters) GetMessageName() string {
1682         return "vnet_interface_combined_counters"
1683 }
1684 func (*VnetInterfaceCombinedCounters) GetCrcString() string {
1685         return "2c595002"
1686 }
1687 func (*VnetInterfaceCombinedCounters) GetMessageType() api.MessageType {
1688         return api.OtherMessage
1689 }
1690
1691 // VnetPerInterfaceSimpleCounters represents the VPP binary API message 'vnet_per_interface_simple_counters'.
1692 //
1693 //            "vnet_per_interface_simple_counters",
1694 //            [
1695 //                "u16",
1696 //                "_vl_msg_id"
1697 //            ],
1698 //            [
1699 //                "u32",
1700 //                "count"
1701 //            ],
1702 //            [
1703 //                "u32",
1704 //                "timestamp"
1705 //            ],
1706 //            [
1707 //                "vl_api_vnet_simple_counter_t",
1708 //                "data",
1709 //                0,
1710 //                "count"
1711 //            ],
1712 //            {
1713 //                "crc": "0xd1fba9ba"
1714 //            }
1715 //
1716 type VnetPerInterfaceSimpleCounters struct {
1717         Count     uint32 `struc:"sizeof=Data"`
1718         Timestamp uint32
1719         Data      []VnetSimpleCounter
1720 }
1721
1722 func (*VnetPerInterfaceSimpleCounters) GetMessageName() string {
1723         return "vnet_per_interface_simple_counters"
1724 }
1725 func (*VnetPerInterfaceSimpleCounters) GetCrcString() string {
1726         return "d1fba9ba"
1727 }
1728 func (*VnetPerInterfaceSimpleCounters) GetMessageType() api.MessageType {
1729         return api.OtherMessage
1730 }
1731
1732 // VnetPerInterfaceCombinedCounters represents the VPP binary API message 'vnet_per_interface_combined_counters'.
1733 //
1734 //            "vnet_per_interface_combined_counters",
1735 //            [
1736 //                "u16",
1737 //                "_vl_msg_id"
1738 //            ],
1739 //            [
1740 //                "u32",
1741 //                "count"
1742 //            ],
1743 //            [
1744 //                "u32",
1745 //                "timestamp"
1746 //            ],
1747 //            [
1748 //                "vl_api_vnet_combined_counter_t",
1749 //                "data",
1750 //                0,
1751 //                "count"
1752 //            ],
1753 //            {
1754 //                "crc": "0xdc578375"
1755 //            }
1756 //
1757 type VnetPerInterfaceCombinedCounters struct {
1758         Count     uint32 `struc:"sizeof=Data"`
1759         Timestamp uint32
1760         Data      []VnetCombinedCounter
1761 }
1762
1763 func (*VnetPerInterfaceCombinedCounters) GetMessageName() string {
1764         return "vnet_per_interface_combined_counters"
1765 }
1766 func (*VnetPerInterfaceCombinedCounters) GetCrcString() string {
1767         return "dc578375"
1768 }
1769 func (*VnetPerInterfaceCombinedCounters) GetMessageType() api.MessageType {
1770         return api.OtherMessage
1771 }
1772
1773 // VnetGetSummaryStats represents the VPP binary API message 'vnet_get_summary_stats'.
1774 //
1775 //            "vnet_get_summary_stats",
1776 //            [
1777 //                "u16",
1778 //                "_vl_msg_id"
1779 //            ],
1780 //            [
1781 //                "u32",
1782 //                "client_index"
1783 //            ],
1784 //            [
1785 //                "u32",
1786 //                "context"
1787 //            ],
1788 //            {
1789 //                "crc": "0x51077d14"
1790 //            }
1791 //
1792 type VnetGetSummaryStats struct{}
1793
1794 func (*VnetGetSummaryStats) GetMessageName() string {
1795         return "vnet_get_summary_stats"
1796 }
1797 func (*VnetGetSummaryStats) GetCrcString() string {
1798         return "51077d14"
1799 }
1800 func (*VnetGetSummaryStats) GetMessageType() api.MessageType {
1801         return api.RequestMessage
1802 }
1803
1804 // VnetGetSummaryStatsReply represents the VPP binary API message 'vnet_get_summary_stats_reply'.
1805 //
1806 //            "vnet_get_summary_stats_reply",
1807 //            [
1808 //                "u16",
1809 //                "_vl_msg_id"
1810 //            ],
1811 //            [
1812 //                "u32",
1813 //                "context"
1814 //            ],
1815 //            [
1816 //                "i32",
1817 //                "retval"
1818 //            ],
1819 //            [
1820 //                "u64",
1821 //                "total_pkts",
1822 //                2
1823 //            ],
1824 //            [
1825 //                "u64",
1826 //                "total_bytes",
1827 //                2
1828 //            ],
1829 //            [
1830 //                "f64",
1831 //                "vector_rate"
1832 //            ],
1833 //            {
1834 //                "crc": "0x32b87c56"
1835 //            }
1836 //
1837 type VnetGetSummaryStatsReply struct {
1838         Retval     int32
1839         TotalPkts  []uint64 `struc:"[2]uint64"`
1840         TotalBytes []uint64 `struc:"[2]uint64"`
1841         VectorRate float64
1842 }
1843
1844 func (*VnetGetSummaryStatsReply) GetMessageName() string {
1845         return "vnet_get_summary_stats_reply"
1846 }
1847 func (*VnetGetSummaryStatsReply) GetCrcString() string {
1848         return "32b87c56"
1849 }
1850 func (*VnetGetSummaryStatsReply) GetMessageType() api.MessageType {
1851         return api.ReplyMessage
1852 }
1853
1854 // StatsGetPollerDelay represents the VPP binary API message 'stats_get_poller_delay'.
1855 //
1856 //            "stats_get_poller_delay",
1857 //            [
1858 //                "u16",
1859 //                "_vl_msg_id"
1860 //            ],
1861 //            [
1862 //                "u32",
1863 //                "client_index"
1864 //            ],
1865 //            [
1866 //                "u32",
1867 //                "context"
1868 //            ],
1869 //            {
1870 //                "crc": "0x51077d14"
1871 //            }
1872 //
1873 type StatsGetPollerDelay struct{}
1874
1875 func (*StatsGetPollerDelay) GetMessageName() string {
1876         return "stats_get_poller_delay"
1877 }
1878 func (*StatsGetPollerDelay) GetCrcString() string {
1879         return "51077d14"
1880 }
1881 func (*StatsGetPollerDelay) GetMessageType() api.MessageType {
1882         return api.RequestMessage
1883 }
1884
1885 // StatsGetPollerDelayReply represents the VPP binary API message 'stats_get_poller_delay_reply'.
1886 //
1887 //            "stats_get_poller_delay_reply",
1888 //            [
1889 //                "u16",
1890 //                "_vl_msg_id"
1891 //            ],
1892 //            [
1893 //                "u32",
1894 //                "context"
1895 //            ],
1896 //            [
1897 //                "i32",
1898 //                "retval"
1899 //            ],
1900 //            [
1901 //                "u32",
1902 //                "delay"
1903 //            ],
1904 //            {
1905 //                "crc": "0x8c445a33"
1906 //            }
1907 //
1908 type StatsGetPollerDelayReply struct {
1909         Retval int32
1910         Delay  uint32
1911 }
1912
1913 func (*StatsGetPollerDelayReply) GetMessageName() string {
1914         return "stats_get_poller_delay_reply"
1915 }
1916 func (*StatsGetPollerDelayReply) GetCrcString() string {
1917         return "8c445a33"
1918 }
1919 func (*StatsGetPollerDelayReply) GetMessageType() api.MessageType {
1920         return api.ReplyMessage
1921 }
1922
1923 // WantUDPEncapStats represents the VPP binary API message 'want_udp_encap_stats'.
1924 //
1925 //            "want_udp_encap_stats",
1926 //            [
1927 //                "u16",
1928 //                "_vl_msg_id"
1929 //            ],
1930 //            [
1931 //                "u32",
1932 //                "client_index"
1933 //            ],
1934 //            [
1935 //                "u32",
1936 //                "context"
1937 //            ],
1938 //            [
1939 //                "u32",
1940 //                "enable"
1941 //            ],
1942 //            [
1943 //                "u32",
1944 //                "pid"
1945 //            ],
1946 //            {
1947 //                "crc": "0xcfaccc1f"
1948 //            }
1949 //
1950 type WantUDPEncapStats struct {
1951         Enable uint32
1952         PID    uint32
1953 }
1954
1955 func (*WantUDPEncapStats) GetMessageName() string {
1956         return "want_udp_encap_stats"
1957 }
1958 func (*WantUDPEncapStats) GetCrcString() string {
1959         return "cfaccc1f"
1960 }
1961 func (*WantUDPEncapStats) GetMessageType() api.MessageType {
1962         return api.RequestMessage
1963 }
1964
1965 // WantUDPEncapStatsReply represents the VPP binary API message 'want_udp_encap_stats_reply'.
1966 //
1967 //            "want_udp_encap_stats_reply",
1968 //            [
1969 //                "u16",
1970 //                "_vl_msg_id"
1971 //            ],
1972 //            [
1973 //                "u32",
1974 //                "context"
1975 //            ],
1976 //            [
1977 //                "i32",
1978 //                "retval"
1979 //            ],
1980 //            {
1981 //                "crc": "0xe8d4e804"
1982 //            }
1983 //
1984 type WantUDPEncapStatsReply struct {
1985         Retval int32
1986 }
1987
1988 func (*WantUDPEncapStatsReply) GetMessageName() string {
1989         return "want_udp_encap_stats_reply"
1990 }
1991 func (*WantUDPEncapStatsReply) GetCrcString() string {
1992         return "e8d4e804"
1993 }
1994 func (*WantUDPEncapStatsReply) GetMessageType() api.MessageType {
1995         return api.ReplyMessage
1996 }
1997
1998 // VnetUDPEncapCounters represents the VPP binary API message 'vnet_udp_encap_counters'.
1999 //
2000 //            "vnet_udp_encap_counters",
2001 //            [
2002 //                "u16",
2003 //                "_vl_msg_id"
2004 //            ],
2005 //            [
2006 //                "u32",
2007 //                "timestamp"
2008 //            ],
2009 //            [
2010 //                "u32",
2011 //                "count"
2012 //            ],
2013 //            [
2014 //                "vl_api_udp_encap_counter_t",
2015 //                "c",
2016 //                0,
2017 //                "count"
2018 //            ],
2019 //            {
2020 //                "crc": "0x1ab5e649"
2021 //            }
2022 //
2023 type VnetUDPEncapCounters struct {
2024         Timestamp uint32
2025         Count     uint32 `struc:"sizeof=C"`
2026         C         []UDPEncapCounter
2027 }
2028
2029 func (*VnetUDPEncapCounters) GetMessageName() string {
2030         return "vnet_udp_encap_counters"
2031 }
2032 func (*VnetUDPEncapCounters) GetCrcString() string {
2033         return "1ab5e649"
2034 }
2035 func (*VnetUDPEncapCounters) GetMessageType() api.MessageType {
2036         return api.OtherMessage
2037 }
2038
2039 /* Services */
2040
2041 type Services interface {
2042         StatsGetPollerDelay(*StatsGetPollerDelay) (*StatsGetPollerDelayReply, error)
2043         VnetGetSummaryStats(*VnetGetSummaryStats) (*VnetGetSummaryStatsReply, error)
2044         WantInterfaceCombinedStats(*WantInterfaceCombinedStats) (*WantInterfaceCombinedStatsReply, error)
2045         WantInterfaceSimpleStats(*WantInterfaceSimpleStats) (*WantInterfaceSimpleStatsReply, error)
2046         WantIP4FibStats(*WantIP4FibStats) (*WantIP4FibStatsReply, error)
2047         WantIP4MfibStats(*WantIP4MfibStats) (*WantIP4MfibStatsReply, error)
2048         WantIP4NbrStats(*WantIP4NbrStats) (*WantIP4NbrStatsReply, error)
2049         WantIP6FibStats(*WantIP6FibStats) (*WantIP6FibStatsReply, error)
2050         WantIP6MfibStats(*WantIP6MfibStats) (*WantIP6MfibStatsReply, error)
2051         WantIP6NbrStats(*WantIP6NbrStats) (*WantIP6NbrStatsReply, error)
2052         WantPerInterfaceCombinedStats(*WantPerInterfaceCombinedStats) (*WantPerInterfaceCombinedStatsReply, error)
2053         WantPerInterfaceSimpleStats(*WantPerInterfaceSimpleStats) (*WantPerInterfaceSimpleStatsReply, error)
2054         WantStats(*WantStats) (*WantStatsReply, error)
2055         WantUDPEncapStats(*WantUDPEncapStats) (*WantUDPEncapStatsReply, error)
2056 }
2057
2058 func init() {
2059         api.RegisterMessage((*WantStats)(nil), "stats.WantStats")
2060         api.RegisterMessage((*WantStatsReply)(nil), "stats.WantStatsReply")
2061         api.RegisterMessage((*WantInterfaceSimpleStats)(nil), "stats.WantInterfaceSimpleStats")
2062         api.RegisterMessage((*WantInterfaceSimpleStatsReply)(nil), "stats.WantInterfaceSimpleStatsReply")
2063         api.RegisterMessage((*WantPerInterfaceSimpleStats)(nil), "stats.WantPerInterfaceSimpleStats")
2064         api.RegisterMessage((*WantPerInterfaceSimpleStatsReply)(nil), "stats.WantPerInterfaceSimpleStatsReply")
2065         api.RegisterMessage((*WantInterfaceCombinedStats)(nil), "stats.WantInterfaceCombinedStats")
2066         api.RegisterMessage((*WantInterfaceCombinedStatsReply)(nil), "stats.WantInterfaceCombinedStatsReply")
2067         api.RegisterMessage((*WantPerInterfaceCombinedStats)(nil), "stats.WantPerInterfaceCombinedStats")
2068         api.RegisterMessage((*WantPerInterfaceCombinedStatsReply)(nil), "stats.WantPerInterfaceCombinedStatsReply")
2069         api.RegisterMessage((*WantIP4FibStats)(nil), "stats.WantIP4FibStats")
2070         api.RegisterMessage((*WantIP4FibStatsReply)(nil), "stats.WantIP4FibStatsReply")
2071         api.RegisterMessage((*WantIP6FibStats)(nil), "stats.WantIP6FibStats")
2072         api.RegisterMessage((*WantIP6FibStatsReply)(nil), "stats.WantIP6FibStatsReply")
2073         api.RegisterMessage((*WantIP4MfibStats)(nil), "stats.WantIP4MfibStats")
2074         api.RegisterMessage((*WantIP4MfibStatsReply)(nil), "stats.WantIP4MfibStatsReply")
2075         api.RegisterMessage((*WantIP6MfibStats)(nil), "stats.WantIP6MfibStats")
2076         api.RegisterMessage((*WantIP6MfibStatsReply)(nil), "stats.WantIP6MfibStatsReply")
2077         api.RegisterMessage((*WantIP4NbrStats)(nil), "stats.WantIP4NbrStats")
2078         api.RegisterMessage((*WantIP4NbrStatsReply)(nil), "stats.WantIP4NbrStatsReply")
2079         api.RegisterMessage((*WantIP6NbrStats)(nil), "stats.WantIP6NbrStats")
2080         api.RegisterMessage((*WantIP6NbrStatsReply)(nil), "stats.WantIP6NbrStatsReply")
2081         api.RegisterMessage((*VnetIP4FibCounters)(nil), "stats.VnetIP4FibCounters")
2082         api.RegisterMessage((*VnetIP4MfibCounters)(nil), "stats.VnetIP4MfibCounters")
2083         api.RegisterMessage((*VnetIP4NbrCounters)(nil), "stats.VnetIP4NbrCounters")
2084         api.RegisterMessage((*VnetIP6FibCounters)(nil), "stats.VnetIP6FibCounters")
2085         api.RegisterMessage((*VnetIP6MfibCounters)(nil), "stats.VnetIP6MfibCounters")
2086         api.RegisterMessage((*VnetIP6NbrCounters)(nil), "stats.VnetIP6NbrCounters")
2087         api.RegisterMessage((*VnetInterfaceSimpleCounters)(nil), "stats.VnetInterfaceSimpleCounters")
2088         api.RegisterMessage((*VnetInterfaceCombinedCounters)(nil), "stats.VnetInterfaceCombinedCounters")
2089         api.RegisterMessage((*VnetPerInterfaceSimpleCounters)(nil), "stats.VnetPerInterfaceSimpleCounters")
2090         api.RegisterMessage((*VnetPerInterfaceCombinedCounters)(nil), "stats.VnetPerInterfaceCombinedCounters")
2091         api.RegisterMessage((*VnetGetSummaryStats)(nil), "stats.VnetGetSummaryStats")
2092         api.RegisterMessage((*VnetGetSummaryStatsReply)(nil), "stats.VnetGetSummaryStatsReply")
2093         api.RegisterMessage((*StatsGetPollerDelay)(nil), "stats.StatsGetPollerDelay")
2094         api.RegisterMessage((*StatsGetPollerDelayReply)(nil), "stats.StatsGetPollerDelayReply")
2095         api.RegisterMessage((*WantUDPEncapStats)(nil), "stats.WantUDPEncapStats")
2096         api.RegisterMessage((*WantUDPEncapStatsReply)(nil), "stats.WantUDPEncapStatsReply")
2097         api.RegisterMessage((*VnetUDPEncapCounters)(nil), "stats.VnetUDPEncapCounters")
2098 }