FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
custom_dump.c
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------
3  * custom_dump.c - pretty-print API messages for replay
4  *
5  * Copyright (c) 2014-2016 Cisco and/or its affiliates. Licensed under the
6  * Apache License, Version 2.0 (the "License"); you may not use this file
7  * except in compliance with the License. You may obtain a copy of the
8  * License at:
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  * License for the specific language governing permissions and limitations
16  * under the License.
17  * ------------------------------------------------------------------
18  */
19 
20 #include <vnet/vnet.h>
21 #include <vnet/ip/ip.h>
23 #include <vnet/ip/ip_types_api.h>
24 #include <vnet/fib/fib_api.h>
25 #include <vnet/unix/tuntap.h>
26 #include <vnet/mpls/mpls.h>
27 #include <vnet/l2/l2_input.h>
28 #include <vnet/srv6/sr.h>
29 #include <vnet/srmpls/sr_mpls.h>
32 #include <vnet/policer/xlate.h>
33 #include <vnet/policer/policer.h>
35 #include <vlib/vlib.h>
36 #include <vlib/pci/pci.h>
37 #include <vlib/unix/unix.h>
38 #include <vlibapi/api.h>
39 #include <vlibmemory/api.h>
40 #include <vnet/qos/qos_types.h>
41 
42 #include <vnet/ethernet/ethernet.h>
44 #include <vnet/l2/l2_vtr.h>
45 
46 #include <vpp/api/vpe_msg_enum.h>
47 #include <vpp/api/types.h>
48 
49 #include <vnet/bonding/node.h>
50 
51 #include <vnet/format_fns.h>
52 
53 #define vl_typedefs /* define message structures */
54 #include <vpp/api/vpe_all_api_h.h>
55 #undef vl_typedefs
56 
57 #define vl_endianfun /* define message structures */
58 #include <vpp/api/vpe_all_api_h.h>
59 #undef vl_endianfun
60 
61 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__)
62 
63 #define FINISH \
64  vec_add1 (s, 0); \
65  vl_print (handle, (char *)s); \
66  vec_free (s); \
67  return handle;
68 
69 
71  (vl_api_create_loopback_t * mp, void *handle)
72 {
73  u8 *s;
74 
75  s = format (0, "SCRIPT: create_loopback ");
76  s = format (s, "mac %U ", format_ethernet_address, &mp->mac_address);
77 
78  FINISH;
79 }
80 
82  (vl_api_create_loopback_instance_t * mp, void *handle)
83 {
84  u8 *s;
85 
86  s = format (0, "SCRIPT: create_loopback ");
87  s = format (s, "mac %U ", format_ethernet_address, &mp->mac_address);
88  s = format (s, "instance %d ", mp->user_instance);
89 
90  FINISH;
91 }
92 
94  (vl_api_delete_loopback_t * mp, void *handle)
95 {
96  u8 *s;
97 
98  s = format (0, "SCRIPT: delete_loopback ");
99  s = format (s, "sw_if_index %d ", mp->sw_if_index);
100 
101  FINISH;
102 }
103 
105  (vl_api_sw_interface_set_flags_t * mp, void *handle)
106 {
107  u8 *s;
108  s = format (0, "SCRIPT: sw_interface_set_flags ");
109 
110  s = format (s, "sw_if_index %d ", mp->sw_if_index);
111 
113  s = format (s, "admin-up ");
114  else
115  s = format (s, "admin-down ");
116 
117  FINISH;
118 }
119 
120 __clib_unused
123 {
124  u8 *s;
125  s = format (0, "SCRIPT: sw_interface_set_rx_placement ");
126 
127  s = format (s, "sw_if_index %d ", mp->sw_if_index);
128 
129  s = format (s, "queue %d ", mp->queue_id);
130  if (mp->is_main)
131  s = format (s, "main ");
132  else
133  s = format (s, "worker %d ", mp->worker_id);
134 
135  FINISH;
136 }
137 
140 {
141  u8 *s;
142  u32 sw_if_index = (mp->sw_if_index);
143 
144  s = format (0, "SCRIPT: sw_interface_rx_placement_dump ");
145 
146  if (sw_if_index != ~0)
147  s = format (s, "sw_if_index %d ", sw_if_index);
148 
149  FINISH;
150 }
151 
153  (vl_api_sw_interface_event_t * mp, void *handle)
154 {
155  u8 *s;
156  s = format (0, "SCRIPT: sw_interface_event ");
157 
158  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
159 
161  s = format (s, "admin-up ");
162  else
163  s = format (s, "admin-down ");
164 
165  if ((mp->flags) & IF_STATUS_API_FLAG_LINK_UP)
166  s = format (s, "link-up");
167  else
168  s = format (s, "link-down");
169 
170  if (mp->deleted)
171  s = format (s, " deleted");
172 
173  FINISH;
174 }
175 
176 
179 {
180  u8 *s;
181 
182  s = format (0, "SCRIPT: sw_interface_add_del_address ");
183  s = format (s, "sw_if_index %d ", mp->sw_if_index);
184  s = format (s, "%U ", format_vl_api_prefix_t, &mp->prefix);
185  if (mp->is_add == 0)
186  s = format (s, "del ");
187  if (mp->del_all)
188  s = format (s, "del-all ");
189 
190  FINISH;
191 }
192 
194  (vl_api_sw_interface_set_table_t * mp, void *handle)
195 {
196  u8 *s;
197 
198  s = format (0, "SCRIPT: sw_interface_set_table ");
199 
200  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
201 
202  if (mp->vrf_id)
203  s = format (s, "vrf %d ", (mp->vrf_id));
204 
205  if (mp->is_ipv6)
206  s = format (s, "ipv6 ");
207 
208  FINISH;
209 }
210 
213 {
214  u8 *s;
215 
216  s = format (0, "SCRIPT: sw_interface_set_mpls_enable ");
217 
218  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
219 
220  if (mp->enable == 0)
221  s = format (s, "disable");
222 
223  FINISH;
224 }
225 
227  (vl_api_sw_interface_set_vpath_t * mp, void *handle)
228 {
229  u8 *s;
230 
231  s = format (0, "SCRIPT: sw_interface_set_vpath ");
232 
233  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
234 
235  if (mp->enable)
236  s = format (s, "enable ");
237  else
238  s = format (s, "disable ");
239 
240  FINISH;
241 }
242 
245 {
246  u8 *s;
247 
248  s = format (0, "SCRIPT: sw_interface_set_vxlan_bypass ");
249 
250  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
251 
252  if (mp->is_ipv6)
253  s = format (s, "ip6 ");
254 
255  if (mp->enable)
256  s = format (s, "enable ");
257  else
258  s = format (s, "disable ");
259 
260  FINISH;
261 }
262 
265 {
266  u8 *s;
267 
268  s = format (0, "SCRIPT: sw_interface_set_l2_xconnect ");
269 
270  s = format (s, "sw_if_index %d ", (mp->rx_sw_if_index));
271 
272  if (mp->enable)
273  {
274  s = format (s, "tx_sw_if_index %d ", (mp->tx_sw_if_index));
275  }
276  else
277  s = format (s, "delete ");
278 
279  FINISH;
280 }
281 
284 {
285  u8 *s;
286 
287  s = format (0, "SCRIPT: sw_interface_set_l2_bridge ");
288 
289  s = format (s, "sw_if_index %d ", (mp->rx_sw_if_index));
290 
291  if (mp->enable)
292  {
293  s = format (s, "bd_id %d shg %d ", (mp->bd_id), mp->shg);
294  if (L2_API_PORT_TYPE_BVI == (mp->port_type))
295  s = format (s, "bvi ");
296  if (L2_API_PORT_TYPE_UU_FWD == (mp->port_type))
297  s = format (s, "uu-fwd ");
298  s = format (s, "enable");
299  }
300  else
301  s = format (s, "disable ");
302 
303  FINISH;
304 }
305 
307  (vl_api_bridge_domain_add_del_t * mp, void *handle)
308 {
309  u8 *s;
310 
311  s = format (0, "SCRIPT: bridge_domain_add_del ");
312 
313  s = format (s, "bd_id %d ", (mp->bd_id));
314 
315  if (mp->is_add)
316  {
317  if (mp->bd_tag[0])
318  s = format (s, "bd_tag %s ", mp->bd_tag);
319  s = format (s, "flood %d uu-flood %d ", mp->flood, mp->uu_flood);
320  s = format (s, "forward %d learn %d ", mp->forward, mp->learn);
321  s = format (s, "arp-term %d mac-age %d", mp->arp_term, mp->mac_age);
322  }
323  else
324  s = format (s, "del ");
325 
326  FINISH;
327 }
328 
331 {
332  u8 *s;
333 
334  s = format (0, "SCRIPT: bridge_domain_set_mac_age ");
335 
336  s = format (s, "bd_id %d ", (mp->bd_id));
337 
338  s = format (s, "mac-age %d", mp->mac_age);
339 
340  FINISH;
341 }
342 
344  (vl_api_bridge_domain_dump_t * mp, void *handle)
345 {
346  u8 *s;
347  u32 bd_id = (mp->bd_id);
348 
349  s = format (0, "SCRIPT: bridge_domain_dump ");
350 
351  if (bd_id != ~0)
352  s = format (s, "bd_id %d ", bd_id);
353 
354  FINISH;
355 }
356 
358  (vl_api_l2fib_flush_all_t * mp, void *handle)
359 {
360  u8 *s;
361 
362  s = format (0, "SCRIPT: l2fib_flush_all ");
363 
364  FINISH;
365 }
366 
367 
369  (vl_api_l2fib_flush_bd_t * mp, void *handle)
370 {
371  u8 *s;
372  u32 bd_id = (mp->bd_id);
373 
374  s = format (0, "SCRIPT: l2fib_flush_bd ");
375  s = format (s, "bd_id %d ", bd_id);
376 
377  FINISH;
378 }
379 
381  (vl_api_l2fib_flush_int_t * mp, void *handle)
382 {
383  u8 *s;
384  u32 sw_if_index = (mp->sw_if_index);
385 
386  s = format (0, "SCRIPT: l2fib_flush_int ");
387  s = format (s, "sw_if_index %d ", sw_if_index);
388 
389  FINISH;
390 }
391 
392 static void *vl_api_l2fib_add_del_t_print
393  (vl_api_l2fib_add_del_t * mp, void *handle)
394 {
395  u8 *s;
396 
397  s = format (0, "SCRIPT: l2fib_add_del ");
398 
399  s = format (s, "mac %U ", format_ethernet_address, mp->mac);
400 
401  s = format (s, "bd_id %d ", (mp->bd_id));
402 
403 
404  if (mp->is_add)
405  {
406  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
407  if (mp->static_mac)
408  s = format (s, "%s", "static ");
409  if (mp->filter_mac)
410  s = format (s, "%s", "filter ");
411  if (mp->bvi_mac)
412  s = format (s, "%s", "bvi ");
413  }
414  else
415  {
416  s = format (s, "del ");
417  }
418 
419  FINISH;
420 }
421 
422 static void *
424 {
425  u8 *s;
426  u32 flags = (mp->feature_bitmap);
427 
428  s = format (0, "SCRIPT: l2_flags ");
429 
430  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
431 
432  if (flags & L2_LEARN)
433  s = format (s, "learn ");
434  if (flags & L2_FWD)
435  s = format (s, "forward ");
436  if (flags & L2_FLOOD)
437  s = format (s, "flood ");
438  if (flags & L2_UU_FLOOD)
439  s = format (s, "uu-flood ");
440  if (flags & L2_ARP_TERM)
441  s = format (s, "arp-term ");
442 
443  if (mp->is_set == 0)
444  s = format (s, "clear ");
445 
446  FINISH;
447 }
448 
449 static void *vl_api_bridge_flags_t_print
450  (vl_api_bridge_flags_t * mp, void *handle)
451 {
452  u8 *s;
453  u32 flags = (mp->flags);
454 
455  s = format (0, "SCRIPT: bridge_flags ");
456 
457  s = format (s, "bd_id %d ", (mp->bd_id));
458 
460  s = format (s, "learn ");
462  s = format (s, "forward ");
464  s = format (s, "flood ");
466  s = format (s, "uu-flood ");
468  s = format (s, "arp-term ");
469 
470  if (mp->is_set == 0)
471  s = format (s, "clear ");
472 
473  FINISH;
474 }
475 
477  (vl_api_bd_ip_mac_add_del_t * mp, void *handle)
478 {
479  u8 *s;
480 
481  s = format (0, "SCRIPT: bd_ip_mac_add_del ");
482  s = format (s, "bd_id %d ", (mp->entry.bd_id));
483 
484  s = format (s, "%U ", format_vl_api_address, &mp->entry.ip);
485  s = format (s, "%U ", format_vl_api_mac_address, &mp->entry.mac);
486  if (mp->is_add == 0)
487  s = format (s, "del ");
488 
489  FINISH;
490 }
491 
493  (vl_api_bd_ip_mac_flush_t * mp, void *handle)
494 {
495  u8 *s;
496 
497  s = format (0, "SCRIPT: bd_ip_mac_flush ");
498  s = format (s, "bd_id %d ", (mp->bd_id));
499 
500  FINISH;
501 }
502 
503 __clib_unused
504  static void *vl_api_bd_ip_mac_dump_t_print
505  (vl_api_bd_ip_mac_dump_t * mp, void *handle)
506 {
507  u8 *s;
508 
509  s = format (0, "SCRIPT: bd_ip_mac_dump ");
510 
511  FINISH;
512 }
513 
514 static void *vl_api_tap_create_v2_t_print
515  (vl_api_tap_create_v2_t * mp, void *handle)
516 {
517  u8 *s;
518  u8 null_mac[6];
519 
520  clib_memset (null_mac, 0, sizeof (null_mac));
521 
522  s = format (0, "SCRIPT: tap_create_v2 ");
523  s = format (s, "id %u ", (mp->id));
524  if (memcmp (mp->mac_address, null_mac, 6))
525  s = format (s, "mac-address %U ",
527  if (memcmp (mp->host_mac_addr, null_mac, 6))
528  s = format (s, "host-mac-addr %U ",
530  if (mp->host_if_name_set)
531  s = format (s, "host-if-name %s ", mp->host_if_name);
532  if (mp->host_namespace_set)
533  s = format (s, "host-ns %s ", mp->host_namespace);
534  if (mp->host_bridge_set)
535  s = format (s, "host-bridge %s ", mp->host_bridge);
536  if (mp->host_ip4_prefix_set)
537  s = format (s, "host-ip4-addr %U/%d ", format_ip4_address,
538  mp->host_ip4_prefix.address, mp->host_ip4_prefix.len);
539  if (mp->host_ip6_prefix_set)
540  s = format (s, "host-ip6-addr %U/%d ", format_ip6_address,
541  mp->host_ip6_prefix.address, mp->host_ip6_prefix.len);
542  if (mp->host_ip4_gw_set)
543  s =
544  format (s, "host-ip4-gw %U ", format_ip4_address,
545  mp->host_ip4_prefix.address);
546  if (mp->host_ip6_gw_set)
547  s =
548  format (s, "host-ip6-gw %U ", format_ip6_address,
549  mp->host_ip6_prefix.address);
550  if (mp->num_rx_queues)
551  s = format (s, "num_rx_queues %u ", mp->num_rx_queues);
552  if (mp->tx_ring_sz)
553  s = format (s, "tx-ring-size %u ", (mp->tx_ring_sz));
554  if (mp->rx_ring_sz)
555  s = format (s, "rx-ring-size %u ", (mp->rx_ring_sz));
556  if (mp->host_mtu_set)
557  s = format (s, "host-mtu-size %u ", (mp->host_mtu_size));
558  if ((mp->tap_flags) & TAP_API_FLAG_GSO)
559  s = format (s, "gso-enabled ");
561  s = format (s, "csum-offload-enabled ");
562  if ((mp->tap_flags) & TAP_API_FLAG_PERSIST)
563  s = format (s, "persist ");
564  if ((mp->tap_flags) & TAP_API_FLAG_ATTACH)
565  s = format (s, "attach ");
566  if ((mp->tap_flags) & TAP_API_FLAG_TUN)
567  s = format (s, "tun ");
569  s = format (s, "gro-coalesce-enabled ");
570  if ((mp->tap_flags) & TAP_API_FLAG_PACKED)
571  s = format (s, "packed ");
572  if ((mp->tap_flags) & TAP_API_FLAG_IN_ORDER)
573  s = format (s, "in-order ");
574  FINISH;
575 }
576 
577 static void *vl_api_tap_delete_v2_t_print
578  (vl_api_tap_delete_v2_t * mp, void *handle)
579 {
580  u8 *s;
581 
582  s = format (0, "SCRIPT: tap_delete_v2 ");
583  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
584 
585  FINISH;
586 }
587 
590 {
591  u8 *s;
592 
593  s = format (0, "SCRIPT: sw_interface_tap_v2_dump ");
594 
595  FINISH;
596 }
597 
598 __clib_unused
600  (vl_api_virtio_pci_create_t * mp, void *handle)
601 {
602  u8 *s;
603  u8 null_mac[6];
604 
605  clib_memset (null_mac, 0, sizeof (null_mac));
606 
607  s = format (0, "SCRIPT: virtio_pci_create ");
608  s = format (s, "pci_addr %U ", format_vlib_pci_addr, (mp->pci_addr));
609  if (memcmp (mp->mac_address, null_mac, 6))
610  s = format (s, "mac-address %U ",
612  if (mp->features)
613  s = format (s, "features 0x%llx ", clib_net_to_host_u64 (mp->features));
614  if (mp->gso_enabled)
615  s = format (s, "gso-enabled ");
616  if (mp->checksum_offload_enabled)
617  s = format (s, "checksum_offload_enabled");
618  FINISH;
619 }
620 
621 __clib_unused
623  (vl_api_virtio_pci_create_v2_t * mp, void *handle)
624 {
625  u8 *s;
626  u8 null_mac[6];
627 
628  clib_memset (null_mac, 0, sizeof (null_mac));
629 
630  s = format (0, "SCRIPT: virtio_pci_create_v2 ");
631  s = format (s, "pci_addr %U ", format_vlib_pci_addr, (mp->pci_addr));
632  if (memcmp (mp->mac_address, null_mac, 6))
633  s = format (s, "mac-address %U ",
635  if (mp->features)
636  s = format (s, "features 0x%llx ", clib_net_to_host_u64 (mp->features));
638  s = format (s, "gso-enabled ");
640  s = format (s, "checksum_offload_enabled ");
642  s = format (s, "gro-coalesce-enabled ");
644  s = format (s, "packed ");
646  s = format (s, "in-order ");
648  s = format (s, "buffering ");
649  FINISH;
650 }
651 
652 __clib_unused
654  (vl_api_virtio_pci_delete_t * mp, void *handle)
655 {
656  u8 *s;
657 
658  s = format (0, "SCRIPT: virtio_pci_delete ");
659  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
660 
661  FINISH;
662 }
663 
664 __clib_unused
667 {
668  u8 *s;
669 
670  s = format (0, "SCRIPT: sw_interface_virtio_pci_dump ");
671 
672  FINISH;
673 }
674 
675 static void *vl_api_bond_create_t_print
676  (vl_api_bond_create_t * mp, void *handle)
677 {
678  u8 *s;
679  u8 null_mac[6];
680 
681  clib_memset (null_mac, 0, sizeof (null_mac));
682 
683  s = format (0, "SCRIPT: bond_create ");
684  if (memcmp (mp->mac_address, null_mac, 6))
685  s = format (s, "mac-address %U ",
687  if (mp->mode)
688  s = format (s, "mode %U ", format_bond_mode, ntohl (mp->mode));
689  if (mp->lb)
690  s = format (s, "lb %U ", format_bond_load_balance, ntohl (mp->lb));
691  if (mp->numa_only)
692  s = format (s, "numa-only is set in lacp mode");
693  if (mp->id != ~0)
694  s = format (s, "id %u ", (mp->id));
695  FINISH;
696 }
697 
698 static void *vl_api_bond_create2_t_print
699  (vl_api_bond_create2_t * mp, void *handle)
700 {
701  u8 *s;
702  u8 null_mac[6];
703 
704  clib_memset (null_mac, 0, sizeof (null_mac));
705 
706  s = format (0, "SCRIPT: bond_create2 ");
707  if (memcmp (mp->mac_address, null_mac, 6))
708  s = format (s, "mac-address %U ",
710  if (mp->mode)
711  s = format (s, "mode %U ", format_bond_mode, ntohl (mp->mode));
712  if (mp->lb)
713  s = format (s, "lb %U ", format_bond_load_balance, ntohl (mp->lb));
714  if (mp->numa_only)
715  s = format (s, "numa-only ");
716  if (mp->enable_gso)
717  s = format (s, "gso ");
718  if (mp->id != ~0)
719  s = format (s, "id %u ", (mp->id));
720  FINISH;
721 }
722 
723 static void *vl_api_bond_delete_t_print
724  (vl_api_bond_delete_t * mp, void *handle)
725 {
726  u8 *s;
727 
728  s = format (0, "SCRIPT: bond_delete ");
729  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
730 
731  FINISH;
732 }
733 
735  (vl_api_bond_add_member_t * mp, void *handle)
736 {
737  u8 *s;
738 
739  s = format (0, "SCRIPT: bond_add_member ");
740  s = format (s, "bond_sw_if_index %u ", (mp->bond_sw_if_index));
741  s = format (s, "sw_if_index %u ", (mp->sw_if_index));
742  if (mp->is_passive)
743  s = format (s, "passive ");
744  if (mp->is_long_timeout)
745  s = format (s, "long-timeout ");
746 
747  FINISH;
748 }
749 
752 {
753  u8 *s;
754 
755  s = format (0, "SCRIPT: sw_interface_set_bond_weight ");
756  s = format (s, "sw_if_index %u ", ntohl (mp->sw_if_index));
757  s = format (s, "weight %u ", ntohl (mp->weight));
758 
759  FINISH;
760 }
761 
763  (vl_api_bond_detach_member_t * mp, void *handle)
764 {
765  u8 *s;
766 
767  s = format (0, "SCRIPT: bond_detach_member ");
768  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
769 
770  FINISH;
771 }
772 
774  (vl_api_sw_bond_interface_dump_t * mp, void *handle)
775 {
776  u8 *s;
777 
778  s = format (0, "SCRIPT: sw_bond_interface_dump ");
779  if (mp->sw_if_index != ~0)
780  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
781 
782  FINISH;
783 }
784 
787 {
788  u8 *s;
789 
790  s = format (0, "SCRIPT: sw_member_interface_dump ");
791  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
792 
793  FINISH;
794 }
795 
797  (vl_api_ip_route_add_del_t * mp, void *handle)
798 {
799  u8 *s, p;
800 
801  s = format (0, "SCRIPT: ip_route_add_del ");
802  if (mp->is_add == 0)
803  s = format (s, "del ");
804 
805  s = format (s, "%U", format_vl_api_prefix, &mp->route.prefix);
806 
807  for (p = 0; p < mp->route.n_paths; p++)
808  s = format (s, " [%U]", format_vl_api_fib_path, &mp->route.paths[p]);
809 
810  FINISH;
811 }
812 
814  (vl_api_mpls_route_add_del_t * mp, void *handle)
815 {
816  u8 *s, p;
817 
818  s = format (0, "SCRIPT: mpls_route_add_del ");
819 
820  if (mp->mr_is_add)
821  s = format (s, "add ");
822  else
823  s = format (s, "del ");
824 
825  s = format (s, "table %d ", (mp->mr_route.mr_table_id));
826  s = format (s, "%d ", (mp->mr_route.mr_label));
827 
828  if (mp->mr_route.mr_eos)
829  s = format (s, "eos ");
830  else
831  s = format (s, "non-eos ");
832 
833  if (mp->mr_route.mr_is_multicast)
834  s = format (s, "multicast ");
835 
836  for (p = 0; p < mp->mr_route.mr_n_paths; p++)
837  s =
838  format (s, " [%U]", format_vl_api_fib_path, &mp->mr_route.mr_paths[p]);
839 
840 
841  FINISH;
842 }
843 
845  (vl_api_ip_table_add_del_t * mp, void *handle)
846 {
847  u8 *s;
848 
849  s = format (0, "SCRIPT: ip_table_add_del ");
850  if (mp->is_add)
851  s = format (s, "add ");
852  else
853  s = format (s, "del ");
854  if (mp->table.is_ip6)
855  s = format (s, "ip6 ");
856  s = format (s, "table %d ", (mp->table.table_id));
857  s = format (s, "%s ", mp->table.name);
858 
859  FINISH;
860 }
861 
863  (vl_api_mpls_table_add_del_t * mp, void *handle)
864 {
865  u8 *s;
866 
867  s = format (0, "SCRIPT: mpls_table_add_del ");
868  if (mp->mt_is_add)
869  s = format (s, "add ");
870  else
871  s = format (s, "del ");
872  s = format (s, "table %d ", (mp->mt_table.mt_table_id));
873 
874  FINISH;
875 }
876 
878  (vl_api_mpls_tunnel_add_del_t * mp, void *handle)
879 {
880  u8 *s, p;
881 
882  s = format (0, "SCRIPT: mpls_tunnel_add_del ");
883 
884  if (mp->mt_is_add == 0)
885  s = format (s, "del sw_if_index %d ", (mp->mt_tunnel.mt_sw_if_index));
886  else
887  s = format (s, "sw_if_index %d ", (mp->mt_tunnel.mt_sw_if_index));
888 
889 
890  if (mp->mt_tunnel.mt_l2_only)
891  s = format (s, "l2-only ");
892  if (mp->mt_tunnel.mt_is_multicast)
893  s = format (s, "multicast ");
894  if (mp->mt_tunnel.mt_tunnel_index)
895  s = format (s, "tunnel-index ");
896 
897  for (p = 0; p < mp->mt_tunnel.mt_n_paths; p++)
898  s = format (s, " [%U]", format_vl_api_fib_path,
899  &mp->mt_tunnel.mt_paths[p]);
900 
901  FINISH;
902 }
903 
905  (vl_api_sr_mpls_policy_add_t * mp, void *handle)
906 {
907  u8 *s;
908 
909  s = format (0, "SCRIPT: sr_mpls_policy_add ");
910 
911  s = format (s, "bsid %d ", (mp->bsid));
912 
913  if (mp->weight != htonl ((u32) 1))
914  s = format (s, "%d ", (mp->weight));
915 
916  if (mp->is_spray)
917  s = format (s, "spray ");
918 
919  if (mp->n_segments)
920  {
921  int i;
922  for (i = 0; i < mp->n_segments; i++)
923  s = format (s, "next %d ", (mp->segments[i]));
924  }
925 
926  FINISH;
927 }
928 
930  (vl_api_sr_mpls_policy_del_t * mp, void *handle)
931 {
932  u8 *s;
933 
934  s = format (0, "SCRIPT: sr_mpls_policy_del ");
935 
936  s = format (s, "bsid %d ", (mp->bsid));
937 
938  FINISH;
939 }
940 
943 {
944  u8 *s;
945 
946  s = format (0, "SCRIPT: sw_interface_set_unnumbered ");
947 
948  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
949 
950  s = format (s, "unnum_if_index %d ", (mp->unnumbered_sw_if_index));
951 
952  if (mp->is_add == 0)
953  s = format (s, "del ");
954 
955  FINISH;
956 }
957 
959  (vl_api_create_vlan_subif_t * mp, void *handle)
960 {
961  u8 *s;
962 
963  s = format (0, "SCRIPT: create_vlan_subif ");
964 
965  if (mp->sw_if_index)
966  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
967 
968  if (mp->vlan_id)
969  s = format (s, "vlan_id %d ", (mp->vlan_id));
970 
971  FINISH;
972 }
973 
974 #define foreach_create_subif_flag \
975 _(0, "no_tags") \
976 _(1, "one_tag") \
977 _(2, "two_tags") \
978 _(3, "dot1ad") \
979 _(4, "exact_match") \
980 _(5, "default_sub") \
981 _(6, "outer_vlan_id_any") \
982 _(7, "inner_vlan_id_any")
983 
984 static void *vl_api_create_subif_t_print
985  (vl_api_create_subif_t * mp, void *handle)
986 {
987  u8 *s;
988 
989  s = format (0, "SCRIPT: create_subif ");
990 
991  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
992 
993  s = format (s, "sub_id %d ", (mp->sub_id));
994 
995  if (mp->outer_vlan_id)
996  s = format (s, "outer_vlan_id %d ", (mp->outer_vlan_id));
997 
998  if (mp->inner_vlan_id)
999  s = format (s, "inner_vlan_id %d ", (mp->inner_vlan_id));
1000 
1001 #define _(a,b) if (mp->sub_if_flags & (1 << a)) s = format (s, "%s ", b);
1003 #undef _
1004 
1005  FINISH;
1006 }
1007 
1008 static void *vl_api_delete_subif_t_print
1009  (vl_api_delete_subif_t * mp, void *handle)
1010 {
1011  u8 *s;
1012 
1013  s = format (0, "SCRIPT: delete_subif ");
1014  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1015 
1016  FINISH;
1017 }
1018 
1019 static void *
1021  void *handle)
1022 {
1023  u8 *s;
1024 
1025  s = format (0, "SCRIPT: ip_table_replace_begin ");
1026 
1027  s = format (s, "v%s-table %d ",
1028  mp->table.is_ip6 ? "6" : "4", (mp->table.table_id));
1029 
1030  FINISH;
1031 }
1032 
1033 static void *
1035 {
1036  u8 *s;
1037 
1038  s = format (0, "SCRIPT: ip_table_flush ");
1039 
1040  s = format (s, "v%s-table %d ",
1041  mp->table.is_ip6 ? "6" : "4", (mp->table.table_id));
1042 
1043  FINISH;
1044 }
1045 
1046 static void *
1048  void *handle)
1049 {
1050  u8 *s;
1051 
1052  s = format (0, "SCRIPT: ip_table_replace_end ");
1053 
1054  s = format (s, "v%s-table %d ",
1055  mp->table.is_ip6 ? "6" : "4", (mp->table.table_id));
1056 
1057  FINISH;
1058 }
1059 
1061  (vl_api_set_ip_flow_hash_t * mp, void *handle)
1062 {
1063  u8 *s;
1064 
1065  s = format (0, "SCRIPT: set_ip_flow_hash ");
1066 
1067  s = format (s, "vrf_id %d ", (mp->vrf_id));
1068 
1069  if (mp->src)
1070  s = format (s, "src ");
1071 
1072  if (mp->dst)
1073  s = format (s, "dst ");
1074 
1075  if (mp->sport)
1076  s = format (s, "sport ");
1077 
1078  if (mp->dport)
1079  s = format (s, "dport ");
1080 
1081  if (mp->proto)
1082  s = format (s, "proto ");
1083 
1084  if (mp->reverse)
1085  s = format (s, "reverse ");
1086 
1087  if (mp->is_ipv6 != 0)
1088  s = format (s, "ipv6 ");
1089 
1090  FINISH;
1091 }
1092 
1093 
1095  (vl_api_l2_patch_add_del_t * mp, void *handle)
1096 {
1097  u8 *s;
1098 
1099  s = format (0, "SCRIPT: l2_patch_add_del ");
1100 
1101  s = format (s, "rx_sw_if_index %d ", (mp->rx_sw_if_index));
1102 
1103  s = format (s, "tx_sw_if_index %d ", (mp->tx_sw_if_index));
1104 
1105  if (mp->is_add == 0)
1106  s = format (s, "del ");
1107 
1108  FINISH;
1109 }
1110 
1112  (vl_api_sr_localsid_add_del_t * mp, void *handle)
1113 {
1114  vnet_main_t *vnm = vnet_get_main ();
1115  u8 *s;
1116 
1117  s = format (0, "SCRIPT: sr_localsid_add_del ");
1118 
1119  switch (mp->behavior)
1120  {
1121  case SR_BEHAVIOR_END:
1122  s = format (s, "Address: %U\nBehavior: End",
1123  format_ip6_address, (ip6_address_t *) mp->localsid);
1124  s = format (s, (mp->end_psp ? "End.PSP: True" : "End.PSP: False"));
1125  break;
1126  case SR_BEHAVIOR_X:
1127  s =
1128  format (s,
1129  "Address: %U\nBehavior: X (Endpoint with Layer-3 cross-connect)"
1130  "\nIface: %U\nNext hop: %U", format_ip6_address,
1131  (ip6_address_t *) mp->localsid,
1133  format_ip6_address, (ip6_address_t *) mp->nh_addr.un.ip6);
1134  s = format (s, (mp->end_psp ? "End.PSP: True" : "End.PSP: False"));
1135  break;
1136  case SR_BEHAVIOR_DX4:
1137  s =
1138  format (s,
1139  "Address: %U\nBehavior: DX4 (Endpoint with decapsulation with IPv4 cross-connect)"
1140  "\nIface: %U\nNext hop: %U", format_ip6_address,
1141  (ip6_address_t *) mp->localsid,
1143  format_ip4_address, (ip4_address_t *) mp->nh_addr.un.ip4);
1144  break;
1145  case SR_BEHAVIOR_DX6:
1146  s =
1147  format (s,
1148  "Address: %U\nBehavior: DX6 (Endpoint with decapsulation with IPv6 cross-connect)"
1149  "\nIface: %UNext hop: %U", format_ip6_address,
1150  (ip6_address_t *) mp->localsid,
1152  format_ip6_address, (ip6_address_t *) mp->nh_addr.un.ip6);
1153  break;
1154  case SR_BEHAVIOR_DX2:
1155  s =
1156  format (s,
1157  "Address: %U\nBehavior: DX2 (Endpoint with decapulation and Layer-2 cross-connect)"
1158  "\nIface: %U", format_ip6_address,
1159  (ip6_address_t *) mp->localsid,
1161  break;
1162  case SR_BEHAVIOR_DT6:
1163  s =
1164  format (s,
1165  "Address: %U\nBehavior: DT6 (Endpoint with decapsulation and specific IPv6 table lookup)"
1166  "\nTable: %u", format_ip6_address,
1167  (ip6_address_t *) mp->localsid, (mp->fib_table));
1168  break;
1169  case SR_BEHAVIOR_DT4:
1170  s =
1171  format (s,
1172  "Address: %U\nBehavior: DT4 (Endpoint with decapsulation and specific IPv4 table lookup)"
1173  "\nTable: %u", format_ip6_address,
1174  (ip6_address_t *) mp->localsid, (mp->fib_table));
1175  break;
1176  default:
1177  if (mp->behavior >= SR_BEHAVIOR_LAST)
1178  {
1179  s = format (s, "Address: %U\n Behavior: %u",
1180  format_ip6_address, (ip6_address_t *) mp->localsid,
1181  mp->behavior);
1182  }
1183  else
1184  //Should never get here...
1185  s = format (s, "Internal error");
1186  break;
1187  }
1188  FINISH;
1189 }
1190 
1192  (vl_api_sr_steering_add_del_t * mp, void *handle)
1193 {
1194  u8 *s;
1195 
1196  s = format (0, "SCRIPT: sr_steering_add_del ");
1197 
1198  s = format (s, (mp->is_del ? "Del: True" : "Del: False"));
1199 
1200  switch (mp->traffic_type)
1201  {
1202  case SR_STEER_L2:
1203  s = format (s, "Traffic type: L2 iface: %u", (mp->sw_if_index));
1204  break;
1205  case SR_STEER_IPV4:
1206  s = format (s, "Traffic type: IPv4 %U/%u", format_ip4_address,
1207  (ip4_address_t *) mp->prefix.address.un.ip4,
1208  (mp->prefix.len));
1209  break;
1210  case SR_STEER_IPV6:
1211  s = format (s, "Traffic type: IPv6 %U/%u", format_ip6_address,
1212  (ip6_address_t *) mp->prefix.address.un.ip6,
1213  (mp->prefix.len));
1214  break;
1215  default:
1216  s = format (s, "Traffic type: Unknown(%u)", mp->traffic_type);
1217  break;
1218  }
1219  s = format (s, "BindingSID: %U", format_ip6_address,
1220  (ip6_address_t *) mp->bsid_addr);
1221 
1222  s = format (s, "SR Policy Index: %u", (mp->sr_policy_index));
1223 
1224  s = format (s, "FIB_table: %u", (mp->table_id));
1225 
1226  FINISH;
1227 }
1228 
1229 static void *vl_api_sr_policy_add_t_print
1230  (vl_api_sr_policy_add_t * mp, void *handle)
1231 {
1232  u8 *s;
1233 
1234  ip6_address_t *segments = 0, *seg;
1235  ip6_address_t *this_address = (ip6_address_t *) mp->sids.sids;
1236 
1237  int i;
1238  for (i = 0; i < mp->sids.num_sids; i++)
1239  {
1240  vec_add2 (segments, seg, 1);
1241  clib_memcpy (seg->as_u8, this_address->as_u8, sizeof (*this_address));
1242  this_address++;
1243  }
1244 
1245  s = format (0, "SCRIPT: sr_policy_add ");
1246 
1247  s = format (s, "BSID: %U", format_ip6_address,
1248  (ip6_address_t *) mp->bsid_addr);
1249 
1250  s =
1251  format (s,
1252  (mp->is_encap ? "Behavior: Encapsulation" :
1253  "Behavior: SRH insertion"));
1254 
1255  s = format (s, "FIB_table: %u", (mp->fib_table));
1256 
1257  s = format (s, (mp->is_spray ? "Type: Default" : "Type: Spray"));
1258 
1259  s = format (s, "SID list weight: %u", (mp->weight));
1260 
1261  s = format (s, "{");
1262  vec_foreach (seg, segments)
1263  {
1264  s = format (s, "%U, ", format_ip6_address, seg);
1265  }
1266  s = format (s, "\b\b } ");
1267 
1268  FINISH;
1269 }
1270 
1271 static void *vl_api_sr_policy_mod_t_print
1272  (vl_api_sr_policy_mod_t * mp, void *handle)
1273 {
1274  u8 *s;
1275 
1276  ip6_address_t *segments = 0, *seg;
1277  ip6_address_t *this_address = (ip6_address_t *) mp->sids.sids;
1278 
1279  int i;
1280  for (i = 0; i < mp->sids.num_sids; i++)
1281  {
1282  vec_add2 (segments, seg, 1);
1283  clib_memcpy (seg->as_u8, this_address->as_u8, sizeof (*this_address));
1284  this_address++;
1285  }
1286 
1287  s = format (0, "SCRIPT: sr_policy_mod ");
1288 
1289  s = format (s, "BSID: %U", format_ip6_address,
1290  (ip6_address_t *) mp->bsid_addr);
1291 
1292  s = format (s, "SR Policy index: %u", (mp->sr_policy_index));
1293 
1294  s = format (s, "Operation: %u", mp->operation);
1295 
1296  s = format (s, "SID list index: %u", (mp->sl_index));
1297 
1298  s = format (s, "SID list weight: %u", (mp->weight));
1299 
1300  s = format (s, "{");
1301  vec_foreach (seg, segments)
1302  {
1303  s = format (s, "%U, ", format_ip6_address, seg);
1304  }
1305  s = format (s, "\b\b } ");
1306 
1307  FINISH;
1308 }
1309 
1310 static void *vl_api_sr_policy_del_t_print
1311  (vl_api_sr_policy_del_t * mp, void *handle)
1312 {
1313  u8 *s;
1314 
1315  s = format (0, "SCRIPT: sr_policy_del ");
1316  s = format (s, "To be delivered. Good luck.");
1317  FINISH;
1318 }
1319 
1321  (vl_api_classify_add_del_table_t * mp, void *handle)
1322 {
1323  u8 *s;
1324  int i;
1325 
1326  s = format (0, "SCRIPT: classify_add_del_table ");
1327 
1328  if (mp->is_add == 0)
1329  {
1330  s = format (s, "table %d ", (mp->table_index));
1331  s = format (s, "%s ", mp->del_chain ? "del-chain" : "del");
1332  }
1333  else
1334  {
1335  s = format (s, "nbuckets %d ", (mp->nbuckets));
1336  s = format (s, "memory_size %d ", (mp->memory_size));
1337  s = format (s, "skip %d ", (mp->skip_n_vectors));
1338  s = format (s, "match %d ", (mp->match_n_vectors));
1339  s = format (s, "next-table %d ", (mp->next_table_index));
1340  s = format (s, "miss-next %d ", (mp->miss_next_index));
1341  s = format (s, "current-data-flag %d ", (mp->current_data_flag));
1342  if (mp->current_data_flag)
1343  s = format (s, "current-data-offset %d ", (mp->current_data_offset));
1344  s = format (s, "mask hex ");
1345  for (i = 0; i < (mp->match_n_vectors) * sizeof (u32x4); i++)
1346  s = format (s, "%02x", mp->mask[i]);
1347  vec_add1 (s, ' ');
1348  }
1349 
1350  FINISH;
1351 }
1352 
1355 {
1356  u8 *s;
1357  int i, limit = 0;
1358 
1359  s = format (0, "SCRIPT: classify_add_del_session ");
1360 
1361  s = format (s, "table_index %d ", (mp->table_index));
1362  s = format (s, "hit_next_index %d ", (mp->hit_next_index));
1363  s = format (s, "opaque_index %d ", (mp->opaque_index));
1364  s = format (s, "advance %d ", (mp->advance));
1365  s = format (s, "action %d ", mp->action);
1366  if (mp->action)
1367  s = format (s, "metadata %d ", (mp->metadata));
1368  if (mp->is_add == 0)
1369  s = format (s, "del ");
1370 
1371  s = format (s, "match hex ");
1372  for (i = 5 * sizeof (u32x4) - 1; i > 0; i--)
1373  {
1374  if (mp->match[i] != 0)
1375  {
1376  limit = i + 1;
1377  break;
1378  }
1379  }
1380 
1381  for (i = 0; i < limit; i++)
1382  s = format (s, "%02x", mp->match[i]);
1383 
1384  FINISH;
1385 }
1386 
1389 {
1390  u8 *s;
1391 
1392  s = format (0, "SCRIPT: classify_set_interface_ip_table ");
1393 
1394  if (mp->is_ipv6)
1395  s = format (s, "ipv6 ");
1396 
1397  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1398  s = format (s, "table %d ", (mp->table_index));
1399 
1400  FINISH;
1401 }
1402 
1405 {
1406  u8 *s;
1407 
1408  s = format (0, "SCRIPT: classify_set_interface_l2_tables ");
1409 
1410  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1411  s = format (s, "ip4-table %d ", (mp->ip4_table_index));
1412  s = format (s, "ip6-table %d ", (mp->ip6_table_index));
1413  s = format (s, "other-table %d ", (mp->other_table_index));
1414  s = format (s, "is-input %d ", mp->is_input);
1415 
1416  FINISH;
1417 }
1418 
1419 static void *vl_api_add_node_next_t_print
1420  (vl_api_add_node_next_t * mp, void *handle)
1421 {
1422  u8 *s;
1423 
1424  s = format (0, "SCRIPT: add_node_next ");
1425 
1426  s = format (s, "node %s next %s ", mp->node_name, mp->next_name);
1427 
1428  FINISH;
1429 }
1430 
1432  (vl_api_vxlan_add_del_tunnel_t * mp, void *handle)
1433 {
1434  u8 *s;
1435  s = format (0, "SCRIPT: vxlan_add_del_tunnel ");
1436 
1437  ip46_address_t src =
1438  to_ip46 (mp->src_address.af, (u8 *) & mp->src_address.un);
1439  ip46_address_t dst =
1440  to_ip46 (mp->dst_address.af, (u8 *) & mp->dst_address.un);
1441 
1442  u8 is_grp = ip46_address_is_multicast (&dst);
1443  char *dst_name = is_grp ? "group" : "dst";
1444 
1445  s = format (s, "src %U ", format_ip46_address, &src, IP46_TYPE_ANY);
1446  s = format (s, "%s %U ", dst_name, format_ip46_address,
1447  &dst, IP46_TYPE_ANY);
1448 
1449  if (is_grp)
1450  s = format (s, "mcast_sw_if_index %d ", (mp->mcast_sw_if_index));
1451 
1452  if (mp->encap_vrf_id)
1453  s = format (s, "encap-vrf-id %d ", (mp->encap_vrf_id));
1454 
1455  s = format (s, "decap-next %d ", (mp->decap_next_index));
1456 
1457  s = format (s, "vni %d ", (mp->vni));
1458 
1459  s = format (s, "instance %d ", (mp->instance));
1460 
1461  if (mp->is_add == 0)
1462  s = format (s, "del ");
1463 
1464  FINISH;
1465 }
1466 
1468  (vl_api_vxlan_offload_rx_t * mp, void *handle)
1469 {
1470  u8 *s;
1471  s = format (0, "SCRIPT: vxlan_offload_rx ");
1472 
1473  s = format (s, "hw hw_if_index %d ", (mp->hw_if_index));
1474  s = format (s, "rx sw_if_index %d ", (mp->sw_if_index));
1475  if (!mp->enable)
1476  s = format (s, "del ");
1477 
1478  FINISH;
1479 }
1480 
1482  (vl_api_vxlan_tunnel_dump_t * mp, void *handle)
1483 {
1484  u8 *s;
1485 
1486  s = format (0, "SCRIPT: vxlan_tunnel_dump ");
1487 
1488  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1489 
1490  FINISH;
1491 }
1492 
1495 {
1496  u8 *s;
1497  s = format (0, "SCRIPT: vxlan_gbp_tunnel_add_del ");
1498 
1499  if (mp->is_add)
1500  s = format (s, "add ");
1501  else
1502  s = format (s, "del ");
1503 
1504  s = format (s, "instance %d ", (mp->tunnel.instance));
1505  s = format (s, "src %U ", format_vl_api_address, &mp->tunnel.src);
1506  s = format (s, "dst %U ", format_vl_api_address, &mp->tunnel.dst);
1507  s = format (s, "mcast_sw_if_index %d ", (mp->tunnel.mcast_sw_if_index));
1508  s = format (s, "encap_table_id %d ", (mp->tunnel.encap_table_id));
1509  s = format (s, "vni %d ", (mp->tunnel.vni));
1510  s = format (s, "sw_if_index %d ", (mp->tunnel.sw_if_index));
1511 
1512  FINISH;
1513 }
1514 
1516  (vl_api_vxlan_gbp_tunnel_dump_t * mp, void *handle)
1517 {
1518  u8 *s;
1519 
1520  s = format (0, "SCRIPT: vxlan_gbp_tunnel_dump ");
1521 
1522  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1523 
1524  FINISH;
1525 }
1526 
1529 {
1530  u8 *s;
1531 
1532  s = format (0, "SCRIPT: sw_interface_set_vxlan_gbp_bypass ");
1533 
1534  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1535  s = format (s, "%s ", (mp->is_ipv6 != 0) ? "ipv6" : "ipv4");
1536  s = format (s, "%s ", (mp->enable != 0) ? "enable" : "disable");
1537 
1538  FINISH;
1539 }
1540 
1542  (vl_api_l2_fib_clear_table_t * mp, void *handle)
1543 {
1544  u8 *s;
1545 
1546  s = format (0, "SCRIPT: l2_fib_clear_table ");
1547 
1548  FINISH;
1549 }
1550 
1553 {
1554  u8 *s;
1555 
1556  s = format (0, "SCRIPT: l2_interface_efp_filter ");
1557 
1558  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1559  if (mp->enable_disable)
1560  s = format (s, "enable ");
1561  else
1562  s = format (s, "disable ");
1563 
1564  FINISH;
1565 }
1566 
1569 {
1570  u8 *s;
1571 
1572  s = format (0, "SCRIPT: l2_interface_vlan_tag_rewrite ");
1573 
1574  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1575  s = format (s, "vtr_op %d ", (mp->vtr_op));
1576  s = format (s, "push_dot1q %d ", (mp->push_dot1q));
1577  s = format (s, "tag1 %d ", (mp->tag1));
1578  s = format (s, "tag2 %d ", (mp->tag2));
1579 
1580  FINISH;
1581 }
1582 
1584  (vl_api_create_vhost_user_if_t * mp, void *handle)
1585 {
1586  u8 *s;
1587 
1588  s = format (0, "SCRIPT: create_vhost_user_if ");
1589 
1590  s = format (s, "socket %s ", mp->sock_filename);
1591  if (mp->is_server)
1592  s = format (s, "server ");
1593  if (mp->renumber)
1594  s = format (s, "renumber %d ", (mp->custom_dev_instance));
1595  if (mp->disable_mrg_rxbuf)
1596  s = format (s, "disable_mrg_rxbuf ");
1597  if (mp->disable_indirect_desc)
1598  s = format (s, "disable_indirect_desc ");
1599  if (mp->tag[0])
1600  s = format (s, "tag %s ", mp->tag);
1601  if (mp->enable_gso)
1602  s = format (s, "gso ");
1603  if (mp->enable_packed)
1604  s = format (s, "packed");
1605 
1606  FINISH;
1607 }
1608 
1610  (vl_api_modify_vhost_user_if_t * mp, void *handle)
1611 {
1612  u8 *s;
1613 
1614  s = format (0, "SCRIPT: modify_vhost_user_if ");
1615 
1616  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1617  s = format (s, "socket %s ", mp->sock_filename);
1618  if (mp->is_server)
1619  s = format (s, "server ");
1620  if (mp->renumber)
1621  s = format (s, "renumber %d ", (mp->custom_dev_instance));
1622  if (mp->enable_gso)
1623  s = format (s, "gso ");
1624  if (mp->enable_packed)
1625  s = format (s, "packed");
1626 
1627  FINISH;
1628 }
1629 
1632 {
1633  u8 *s;
1634 
1635  s = format (0, "SCRIPT: create_vhost_user_if_v2 ");
1636 
1637  s = format (s, "socket %s ", mp->sock_filename);
1638  if (mp->is_server)
1639  s = format (s, "server ");
1640  if (mp->renumber)
1641  s = format (s, "renumber %d ", (mp->custom_dev_instance));
1642  if (mp->disable_mrg_rxbuf)
1643  s = format (s, "disable_mrg_rxbuf ");
1644  if (mp->disable_indirect_desc)
1645  s = format (s, "disable_indirect_desc ");
1646  if (mp->tag[0])
1647  s = format (s, "tag %s ", mp->tag);
1648  if (mp->enable_gso)
1649  s = format (s, "gso ");
1650  if (mp->enable_event_idx)
1651  s = format (s, "event-idx ");
1652  if (mp->enable_packed)
1653  s = format (s, "packed");
1654 
1655  FINISH;
1656 }
1657 
1660 {
1661  u8 *s;
1662 
1663  s = format (0, "SCRIPT: modify_vhost_user_if_v2 ");
1664 
1665  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1666  s = format (s, "socket %s ", mp->sock_filename);
1667  if (mp->is_server)
1668  s = format (s, "server ");
1669  if (mp->renumber)
1670  s = format (s, "renumber %d ", (mp->custom_dev_instance));
1671  if (mp->enable_gso)
1672  s = format (s, "gso ");
1673  if (mp->enable_event_idx)
1674  s = format (s, "event-idx ");
1675  if (mp->enable_packed)
1676  s = format (s, "packed");
1677 
1678  FINISH;
1679 }
1680 
1682  (vl_api_delete_vhost_user_if_t * mp, void *handle)
1683 {
1684  u8 *s;
1685 
1686  s = format (0, "SCRIPT: delete_vhost_user_if ");
1687  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1688 
1689  FINISH;
1690 }
1691 
1694 {
1695  u8 *s;
1696 
1697  s = format (0, "SCRIPT: sw_interface_vhost_user_dump ");
1698  if (mp->sw_if_index != ~0)
1699  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1700 
1701  FINISH;
1702 }
1703 
1705  (vl_api_sw_interface_dump_t * mp, void *handle)
1706 {
1707  u8 *s;
1708 
1709  s = format (0, "SCRIPT: sw_interface_dump ");
1710 
1711  if (mp->name_filter_valid)
1712  {
1713  u8 *v = vl_api_from_api_to_new_vec (mp, &mp->name_filter);
1714  s = format (s, "name_filter %v ", v);
1715  vec_free (v);
1716  }
1717  else
1718  s = format (s, "all ");
1719 
1720  FINISH;
1721 }
1722 
1724  (vl_api_l2_fib_table_dump_t * mp, void *handle)
1725 {
1726  u8 *s;
1727 
1728  s = format (0, "SCRIPT: l2_fib_table_dump ");
1729 
1730  s = format (s, "bd_id %d ", (mp->bd_id));
1731 
1732  FINISH;
1733 }
1734 
1735 static void *vl_api_control_ping_t_print
1736  (vl_api_control_ping_t * mp, void *handle)
1737 {
1738  u8 *s;
1739 
1740  s = format (0, "SCRIPT: control_ping ");
1741 
1742  FINISH;
1743 }
1744 
1746  (vl_api_want_interface_events_t * mp, void *handle)
1747 {
1748  u8 *s;
1749 
1750  s = format (0, "SCRIPT: want_interface_events pid %d enable %d ",
1751  (mp->pid), ntohl (mp->enable_disable));
1752 
1753  FINISH;
1754 }
1755 
1756 static void *
1757 vl_api_cli_t_print (vl_api_cli_t * mp, void *handle)
1758 {
1759  u8 *s;
1760 
1761  s = format (0, "SCRIPT: cli ");
1762 
1763  FINISH;
1764 }
1765 
1766 static void *vl_api_cli_inband_t_print
1767  (vl_api_cli_inband_t * mp, void *handle)
1768 {
1769  u8 *s;
1770  u8 *cmd = 0;
1771 
1772  cmd = vl_api_from_api_to_new_vec (mp, &mp->cmd);
1773 
1774  s = format (0, "SCRIPT: exec %v ", cmd);
1775 
1776  vec_free (cmd);
1777  FINISH;
1778 }
1779 
1780 static void *vl_api_memclnt_create_t_print
1781  (vl_api_memclnt_create_t * mp, void *handle)
1782 {
1783  u8 *s;
1784 
1785  s = format (0, "SCRIPT: memclnt_create name %s ", mp->name);
1786 
1787  FINISH;
1788 }
1789 
1790 static void *vl_api_sockclnt_create_t_print
1791  (vl_api_sockclnt_create_t * mp, void *handle)
1792 {
1793  u8 *s;
1794 
1795  s = format (0, "SCRIPT: sockclnt_create name %s ", mp->name);
1796 
1797  FINISH;
1798 }
1799 
1800 static void *vl_api_show_version_t_print
1801  (vl_api_show_version_t * mp, void *handle)
1802 {
1803  u8 *s;
1804 
1805  s = format (0, "SCRIPT: show_version ");
1806 
1807  FINISH;
1808 }
1809 
1810 __clib_unused
1811  static void *vl_api_show_threads_t_print
1812  (vl_api_show_threads_t * mp, void *handle)
1813 {
1814  u8 *s;
1815 
1816  s = format (0, "SCRIPT: show_threads ");
1817 
1818  FINISH;
1819 }
1820 
1823 {
1824  u8 *s;
1825 
1826  s = format (0, "SCRIPT: vxlan_gpe_add_del_tunnel ");
1827 
1828  ip46_address_t local, remote;
1829 
1830  ip_address_decode (&mp->local, &local);
1831  ip_address_decode (&mp->remote, &remote);
1832 
1833  u8 is_grp = ip46_address_is_multicast (&remote);
1834  char *remote_name = is_grp ? "group" : "remote";
1835 
1836  s = format (s, "local %U ", format_ip46_address, &local, IP46_TYPE_ANY);
1837  s = format (s, "%s %U ", remote_name, format_ip46_address,
1838  &remote, IP46_TYPE_ANY);
1839 
1840  if (is_grp)
1841  s = format (s, "mcast_sw_if_index %d ", (mp->mcast_sw_if_index));
1842  s = format (s, "protocol %d ", (mp->protocol));
1843 
1844  s = format (s, "vni %d ", (mp->vni));
1845 
1846  if (mp->is_add == 0)
1847  s = format (s, "del ");
1848 
1849  if (mp->encap_vrf_id)
1850  s = format (s, "encap-vrf-id %d ", (mp->encap_vrf_id));
1851 
1852  if (mp->decap_vrf_id)
1853  s = format (s, "decap-vrf-id %d ", (mp->decap_vrf_id));
1854 
1855  FINISH;
1856 }
1857 
1859  (vl_api_vxlan_gpe_tunnel_dump_t * mp, void *handle)
1860 {
1861  u8 *s;
1862 
1863  s = format (0, "SCRIPT: vxlan_gpe_tunnel_dump ");
1864 
1865  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1866 
1867  FINISH;
1868 }
1869 
1872 {
1873  u8 *s;
1874 
1875  s = format (0, "SCRIPT: interface_renumber ");
1876 
1877  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1878 
1879  s = format (s, "new_show_dev_instance %d ", (mp->new_show_dev_instance));
1880 
1881  FINISH;
1882 }
1883 
1885  (vl_api_want_l2_macs_events_t * mp, void *handle)
1886 {
1887  u8 *s;
1888 
1889  s = format (0, "SCRIPT: want_l2_macs_events ");
1890  s = format (s, "learn-limit %d ", (mp->learn_limit));
1891  s = format (s, "scan-delay %d ", (u32) mp->scan_delay);
1892  s = format (s, "max-entries %d ", (u32) mp->max_macs_in_event * 10);
1893  if (mp->enable_disable == 0)
1894  s = format (s, "disable");
1895 
1896  FINISH;
1897 }
1898 
1901 {
1902  u8 *s;
1903 
1904  s = format (0, "SCRIPT: input_acl_set_interface ");
1905 
1906  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1907  s = format (s, "ip4-table %d ", (mp->ip4_table_index));
1908  s = format (s, "ip6-table %d ", (mp->ip6_table_index));
1909  s = format (s, "l2-table %d ", (mp->l2_table_index));
1910 
1911  if (mp->is_add == 0)
1912  s = format (s, "del ");
1913 
1914  FINISH;
1915 }
1916 
1919 {
1920  u8 *s;
1921 
1922  s = format (0, "SCRIPT: output_acl_set_interface ");
1923 
1924  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1925  s = format (s, "ip4-table %d ", (mp->ip4_table_index));
1926  s = format (s, "ip6-table %d ", (mp->ip6_table_index));
1927  s = format (s, "l2-table %d ", (mp->l2_table_index));
1928 
1929  if (mp->is_add == 0)
1930  s = format (s, "del ");
1931 
1932  FINISH;
1933 }
1934 
1935 static void *vl_api_ip_address_dump_t_print
1936  (vl_api_ip_address_dump_t * mp, void *handle)
1937 {
1938  u8 *s;
1939 
1940  s = format (0, "SCRIPT: ip6_address_dump ");
1941  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
1942  s = format (s, "is_ipv6 %d ", mp->is_ipv6 != 0);
1943 
1944  FINISH;
1945 }
1946 
1947 static void *
1949 {
1950  u8 *s;
1951 
1952  s = format (0, "SCRIPT: ip_dump ");
1953  s = format (s, "is_ipv6 %d ", mp->is_ipv6 != 0);
1954 
1955  FINISH;
1956 }
1957 
1959  (vl_api_af_packet_create_t * mp, void *handle)
1960 {
1961  u8 *s;
1962 
1963  s = format (0, "SCRIPT: af_packet_create ");
1964  s = format (s, "host_if_name %s ", mp->host_if_name);
1965  if (mp->use_random_hw_addr)
1966  s = format (s, "hw_addr random ");
1967  else
1968  s = format (s, "hw_addr %U ", format_ethernet_address, mp->hw_addr);
1969 
1970  FINISH;
1971 }
1972 
1974  (vl_api_af_packet_delete_t * mp, void *handle)
1975 {
1976  u8 *s;
1977 
1978  s = format (0, "SCRIPT: af_packet_delete ");
1979  s = format (s, "host_if_name %s ", mp->host_if_name);
1980 
1981  FINISH;
1982 }
1983 
1984 static void *vl_api_af_packet_dump_t_print
1985  (vl_api_af_packet_dump_t * mp, void *handle)
1986 {
1987  u8 *s;
1988 
1989  s = format (0, "SCRIPT: af_packet_dump ");
1990 
1991  FINISH;
1992 }
1993 
1994 static u8 *
1995 format_policer_action (u8 * s, va_list * va)
1996 {
1997  u32 action = va_arg (*va, u32);
1998  u32 dscp = va_arg (*va, u32);
1999 
2000  if (action == QOS_ACTION_DROP)
2001  s = format (s, "drop");
2002  else if (action == QOS_ACTION_TRANSMIT)
2003  s = format (s, "transmit");
2005  {
2006  s = format (s, "mark-and-transmit ");
2007  switch (dscp)
2008  {
2009 #define _(v, f) \
2010  case IP_DSCP_##f: \
2011  format (s, "%s", #f);
2013 #undef _
2014  }
2015  }
2016  return s;
2017 }
2018 
2019 static void *vl_api_policer_add_del_t_print
2020  (vl_api_policer_add_del_t * mp, void *handle)
2021 {
2022  u8 *s;
2023 
2024  s = format (0, "SCRIPT: policer_add_del ");
2025  s = format (s, "name %s ", mp->name);
2026  s = format (s, "cir %d ", mp->cir);
2027  s = format (s, "eir %d ", mp->eir);
2028  s = format (s, "cb %d ", mp->cb);
2029  s = format (s, "eb %d ", mp->eb);
2030 
2031  switch (mp->rate_type)
2032  {
2033  case QOS_RATE_KBPS:
2034  s = format (s, "rate_type kbps ");
2035  break;
2036  case QOS_RATE_PPS:
2037  s = format (s, "rate_type pps ");
2038  break;
2039  default:
2040  break;
2041  }
2042 
2043  switch (mp->round_type)
2044  {
2045  case QOS_ROUND_TO_CLOSEST:
2046  s = format (s, "round_type closest ");
2047  break;
2048  case QOS_ROUND_TO_UP:
2049  s = format (s, "round_type up ");
2050  break;
2051  case QOS_ROUND_TO_DOWN:
2052  s = format (s, "round_type down ");
2053  break;
2054  default:
2055  break;
2056  }
2057 
2058  switch (mp->type)
2059  {
2060  case QOS_POLICER_TYPE_1R2C:
2061  s = format (s, "type 1r2c ");
2062  break;
2064  s = format (s, "type 1r3c ");
2065  break;
2067  s = format (s, "type 2r3c-2698 ");
2068  break;
2070  s = format (s, "type 2r3c-4115 ");
2071  break;
2073  s = format (s, "type 2r3c-mef5cf1 ");
2074  break;
2075  default:
2076  break;
2077  }
2078 
2079  s = format (s, "conform_action %U ", format_policer_action,
2080  mp->conform_action.type, mp->conform_action.dscp);
2081  s = format (s, "exceed_action %U ", format_policer_action,
2082  mp->exceed_action.type, mp->exceed_action.dscp);
2083  s = format (s, "violate_action %U ", format_policer_action,
2084  mp->violate_action.type, mp->violate_action.dscp);
2085 
2086  if (mp->color_aware)
2087  s = format (s, "color-aware ");
2088  if (mp->is_add == 0)
2089  s = format (s, "del ");
2090 
2091  FINISH;
2092 }
2093 
2094 static void *vl_api_policer_dump_t_print
2095  (vl_api_policer_dump_t * mp, void *handle)
2096 {
2097  u8 *s;
2098 
2099  s = format (0, "SCRIPT: policer_dump ");
2100  if (mp->match_name_valid)
2101  s = format (s, "name %s ", mp->match_name);
2102 
2103  FINISH;
2104 }
2105 
2108 {
2109  u8 *s;
2110 
2111  s = format (0, "SCRIPT: policer_classify_set_interface ");
2112  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2113  if (mp->ip4_table_index != ~0)
2114  s = format (s, "ip4-table %d ", (mp->ip4_table_index));
2115  if (mp->ip6_table_index != ~0)
2116  s = format (s, "ip6-table %d ", (mp->ip6_table_index));
2117  if (mp->l2_table_index != ~0)
2118  s = format (s, "l2-table %d ", (mp->l2_table_index));
2119  if (mp->is_add == 0)
2120  s = format (s, "del ");
2121 
2122  FINISH;
2123 }
2124 
2126  (vl_api_policer_classify_dump_t * mp, void *handle)
2127 {
2128  u8 *s;
2129 
2130  s = format (0, "SCRIPT: policer_classify_dump ");
2131  switch (mp->type)
2132  {
2134  s = format (s, "type ip4 ");
2135  break;
2137  s = format (s, "type ip6 ");
2138  break;
2140  s = format (s, "type l2 ");
2141  break;
2142  default:
2143  break;
2144  }
2145 
2146  FINISH;
2147 }
2148 
2151 {
2152  u8 *s;
2153 
2154  s = format (0, "SCRIPT: sw_interface_clear_stats ");
2155  if (mp->sw_if_index != ~0)
2156  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2157 
2158  FINISH;
2159 }
2160 
2162  (vl_api_mpls_tunnel_dump_t * mp, void *handle)
2163 {
2164  u8 *s;
2165 
2166  s = format (0, "SCRIPT: mpls_tunnel_dump ");
2167  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2168 
2169  FINISH;
2170 }
2171 
2172 static void *vl_api_mpls_table_dump_t_print
2173  (vl_api_mpls_table_dump_t * mp, void *handle)
2174 {
2175  u8 *s;
2176 
2177  s = format (0, "SCRIPT: mpls_table_decap_dump ");
2178 
2179  FINISH;
2180 }
2181 
2182 static void *vl_api_mpls_route_dump_t_print
2183  (vl_api_mpls_route_dump_t * mp, void *handle)
2184 {
2185  u8 *s;
2186 
2187  s = format (0, "SCRIPT: mpls_route_decap_dump ");
2188 
2189  FINISH;
2190 }
2191 
2193  (vl_api_classify_table_ids_t * mp, void *handle)
2194 {
2195  u8 *s;
2196 
2197  s = format (0, "SCRIPT: classify_table_ids ");
2198 
2199  FINISH;
2200 }
2201 
2204 {
2205  u8 *s;
2206 
2207  s = format (0, "SCRIPT: classify_table_by_interface ");
2208  if (mp->sw_if_index != ~0)
2209  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2210 
2211  FINISH;
2212 }
2213 
2215  (vl_api_classify_table_info_t * mp, void *handle)
2216 {
2217  u8 *s;
2218 
2219  s = format (0, "SCRIPT: classify_table_info ");
2220  if (mp->table_id != ~0)
2221  s = format (s, "table_id %d ", (mp->table_id));
2222 
2223  FINISH;
2224 }
2225 
2227  (vl_api_classify_session_dump_t * mp, void *handle)
2228 {
2229  u8 *s;
2230 
2231  s = format (0, "SCRIPT: classify_session_dump ");
2232  if (mp->table_id != ~0)
2233  s = format (s, "table_id %d ", (mp->table_id));
2234 
2235  FINISH;
2236 }
2237 
2239  (vl_api_set_ipfix_exporter_t * mp, void *handle)
2240 {
2241  u8 *s;
2242 
2243  s = format (0, "SCRIPT: set_ipfix_exporter ");
2244 
2245  s = format (s, "collector-address %U ", format_ip4_address,
2246  (ip4_address_t *) mp->collector_address.un.ip4);
2247  s = format (s, "collector-port %d ", (mp->collector_port));
2248  s = format (s, "src-address %U ", format_ip4_address,
2249  (ip4_address_t *) mp->src_address.un.ip4);
2250  s = format (s, "vrf-id %d ", (mp->vrf_id));
2251  s = format (s, "path-mtu %d ", (mp->path_mtu));
2252  s = format (s, "template-interval %d ", (mp->template_interval));
2253  s = format (s, "udp-checksum %d ", mp->udp_checksum);
2254 
2255  FINISH;
2256 }
2257 
2259  (vl_api_ipfix_exporter_dump_t * mp, void *handle)
2260 {
2261  u8 *s;
2262 
2263  s = format (0, "SCRIPT: ipfix_exporter_dump ");
2264 
2265  FINISH;
2266 }
2267 
2270 {
2271  u8 *s;
2272 
2273  s = format (0, "SCRIPT: set_ipfix_classify_stream ");
2274 
2275  s = format (s, "domain-id %d ", (mp->domain_id));
2276  s = format (s, "src-port %d ", (mp->src_port));
2277 
2278  FINISH;
2279 }
2280 
2283 {
2284  u8 *s;
2285 
2286  s = format (0, "SCRIPT: ipfix_classify_stream_dump ");
2287 
2288  FINISH;
2289 }
2290 
2293 {
2294  u8 *s;
2295 
2296  s = format (0, "SCRIPT: ipfix_classify_table_add_del ");
2297 
2298  s = format (s, "table-id %d ", (mp->table_id));
2299  s = format (s, "ip-version %d ", mp->ip_version);
2300  s = format (s, "transport-protocol %d ", mp->transport_protocol);
2301 
2302  FINISH;
2303 }
2304 
2307 {
2308  u8 *s;
2309 
2310  s = format (0, "SCRIPT: ipfix_classify_table_dump ");
2311 
2312  FINISH;
2313 }
2314 
2317 {
2318  u8 *s;
2319 
2320  s = format (0, "SCRIPT: sw_interface_span_enable_disable ");
2321  s = format (s, "src_sw_if_index %u ", (mp->sw_if_index_from));
2322  s = format (s, "dst_sw_if_index %u ", (mp->sw_if_index_to));
2323 
2324  if (mp->is_l2)
2325  s = format (s, "l2 ");
2326 
2327  switch (mp->state)
2328  {
2329  case 0:
2330  s = format (s, "disable ");
2331  break;
2332  case 1:
2333  s = format (s, "rx ");
2334  break;
2335  case 2:
2336  s = format (s, "tx ");
2337  break;
2338  case 3:
2339  default:
2340  s = format (s, "both ");
2341  break;
2342  }
2343 
2344  FINISH;
2345 }
2346 
2347 static void *
2349  void *handle)
2350 {
2351  u8 *s;
2352 
2353  s = format (0, "SCRIPT: sw_interface_span_dump ");
2354 
2355  if (mp->is_l2)
2356  s = format (s, "l2 ");
2357 
2358  FINISH;
2359 }
2360 
2361 static void *vl_api_get_next_index_t_print
2362  (vl_api_get_next_index_t * mp, void *handle)
2363 {
2364  u8 *s;
2365 
2366  s = format (0, "SCRIPT: get_next_index ");
2367  s = format (s, "node-name %s ", mp->node_name);
2368  s = format (s, "next-node-name %s ", mp->next_name);
2369 
2370  FINISH;
2371 }
2372 
2374  (vl_api_pg_create_interface_t * mp, void *handle)
2375 {
2376  u8 *s;
2377 
2378  s = format (0, "SCRIPT: pg_create_interface ");
2379  s = format (s, "if_id %d ", (mp->interface_id));
2380  s = format (s, "gso-enabled %u ", mp->gso_enabled);
2381  s = format (s, "gso-size %u", (mp->gso_size));
2382 
2383  FINISH;
2384 }
2385 
2386 static void *vl_api_pg_capture_t_print
2387  (vl_api_pg_capture_t * mp, void *handle)
2388 {
2389  u8 *s;
2390 
2391  s = format (0, "SCRIPT: pg_capture ");
2392  s = format (s, "if_id %d ", (mp->interface_id));
2393  s = format (s, "pcap %U", vl_api_format_string, &mp->pcap_file_name);
2394  if (mp->count != ~0)
2395  s = format (s, "count %d ", (mp->count));
2396  if (!mp->is_enabled)
2397  s = format (s, "disable");
2398 
2399  FINISH;
2400 }
2401 
2403  (vl_api_pg_enable_disable_t * mp, void *handle)
2404 {
2405  u8 *s;
2406 
2407  s = format (0, "SCRIPT: pg_enable_disable ");
2408  if (vl_api_string_len (&mp->stream_name) > 0)
2409  s =
2410  format (s, "stream %s",
2412  if (!mp->is_enabled)
2413  s = format (s, "disable");
2414 
2415  FINISH;
2416 }
2417 
2420 {
2421  u8 *s;
2422 
2423  s = format (0, "SCRIPT: pg_interface_enable_disable_coalesce ");
2424  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2425  if (!mp->coalesce_enabled)
2426  s = format (s, "disable");
2427  else
2428  s = format (s, "enable");
2429  FINISH;
2430 }
2431 
2432 
2435 {
2436  u8 *s;
2437  int i;
2438 
2439  s = format (0, "SCRIPT: ip_source_and_port_range_check_add_del ");
2440  s = format (s, "%U ", format_vl_api_prefix, &mp->prefix);
2441 
2442  for (i = 0; i < mp->number_of_ranges; i++)
2443  {
2444  s = format (s, "range %d - %d ", mp->low_ports[i], mp->high_ports[i]);
2445  }
2446 
2447  s = format (s, "vrf %d ", (mp->vrf_id));
2448 
2449  if (mp->is_add == 0)
2450  s = format (s, "del ");
2451 
2452  FINISH;
2453 }
2454 
2457  void *handle)
2458 {
2459  u8 *s;
2460 
2461  s = format (0, "SCRIPT: ip_source_and_port_range_check_interface_add_del ");
2462 
2463  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2464 
2465  if (mp->tcp_out_vrf_id != ~0)
2466  s = format (s, "tcp-out-vrf %d ", (mp->tcp_out_vrf_id));
2467 
2468  if (mp->udp_out_vrf_id != ~0)
2469  s = format (s, "udp-out-vrf %d ", (mp->udp_out_vrf_id));
2470 
2471  if (mp->tcp_in_vrf_id != ~0)
2472  s = format (s, "tcp-in-vrf %d ", (mp->tcp_in_vrf_id));
2473 
2474  if (mp->udp_in_vrf_id != ~0)
2475  s = format (s, "udp-in-vrf %d ", (mp->udp_in_vrf_id));
2476 
2477  if (mp->is_add == 0)
2478  s = format (s, "del ");
2479 
2480  FINISH;
2481 }
2482 
2483 /* static u8 * */
2484 /* format_nsh_address_vat (u8 * s, va_list * args) */
2485 /* { */
2486 /* nsh_t *a = va_arg (*args, nsh_t *); */
2487 /* return format (s, "SPI:%d SI:%d", clib_net_to_host_u32 (a->spi), a->si); */
2488 /* } */
2489 
2490 static const char *policy_strs[] = {
2491  "BYPASS",
2492  "DISCARD",
2493  "RESOLVE",
2494  "PROTECT",
2495 };
2496 
2497 static const char *algo_strs[] = {
2498  "NONE",
2499  "AES_CBC_128",
2500  "AES_CBC_192",
2501  "AES_CBC_256",
2502  "AES_CTR_128",
2503  "AES_CTR_192",
2504  "AES_CTR_256",
2505  "AES_GCM_128",
2506  "AES_GCM_192",
2507  "AES_GCM_256",
2508  "DES_CBC",
2509  "3DES_CBC",
2510 };
2511 
2512 
2513 static const char *integ_strs[] = {
2514  "NONE",
2515  "MD5_96",
2516  "SHA1_96",
2517  "SHA_256_96",
2518  "SHA_256_128",
2519  "SHA_384_192",
2520  "SHA_512_256",
2521 };
2522 
2525 {
2526  u8 *s;
2527  const char *str;
2528  vl_api_ipsec_spd_entry_t *ep;
2529  int policy_host_byte_order;
2530 
2531  ep = (vl_api_ipsec_spd_entry_t *) & mp->entry;
2532 
2533  s = format (0, "SCRIPT: ipsec_spd_entry ");
2534  s = format (s, "is_add %d spd_id %u priority %d is_outbound %d sa_id %u\n",
2535  mp->is_add,
2536  (ep->spd_id), ntohl (ep->priority), ep->is_outbound,
2537  (ep->sa_id));
2538 
2539  policy_host_byte_order = (ep->policy);
2540 
2541  if (policy_host_byte_order < ARRAY_LEN (policy_strs))
2542  str = policy_strs[policy_host_byte_order];
2543  else
2544  str = "BOGUS!";
2545 
2546  s = format (s, " policy: %s protocol %d\n", str, ep->protocol);
2547 
2548  s = format (s, " remote_address_start %U remote_address_stop %U\n",
2550  &ep->remote_address_start,
2551  format_vl_api_address, &ep->remote_address_stop);
2552 
2553  s = format (s, " local_address_start %U local_address_stop %U\n",
2555  &ep->local_address_start,
2556  format_vl_api_address, &ep->local_address_stop);
2557 
2558  s = format (s, " remote_port_start %d remote_port_stop %d\n",
2559  (ep->remote_port_start), ntohs (ep->remote_port_stop));
2560 
2561  s = format (s, " local_port_start %d local_port_stop %d ",
2562  (ep->local_port_start), ntohs (ep->local_port_stop));
2563 
2564  FINISH;
2565 }
2566 
2569 {
2570  u8 *s;
2571 
2572  s = format (0, "SCRIPT: ipsec_interface_add_del_spd ");
2573  s = format (s, "is_add %d sw_if_index %d spd_id %u ",
2574  mp->is_add, (mp->sw_if_index), ntohl (mp->spd_id));
2575  FINISH;
2576 }
2577 
2579  (vl_api_ipsec_spd_add_del_t * mp, void *handle)
2580 {
2581  u8 *s;
2582 
2583  s = format (0, "SCRIPT: ipsec_spd_add_del ");
2584  s = format (s, "spd_id %u is_add %d ", (mp->spd_id), mp->is_add);
2585  FINISH;
2586 }
2587 
2590 {
2591  u8 *s;
2592  int tmp;
2593  vl_api_ipsec_sad_entry_t *ep;
2594  const char *protocol_str, *algo_str, *integ_str;
2595 
2596  protocol_str = "BOGUS protocol!";
2597  algo_str = "BOGUS crypto_algorithm!";
2598  integ_str = "BOGUS integrity_algorithm!";
2599 
2600  ep = (vl_api_ipsec_sad_entry_t *) & mp->entry;
2601 
2602  s = format (0, "SCRIPT: ipsec_sad_entry_add_del is_add %d ", mp->is_add);
2603 
2604  tmp = (ep->protocol);
2605  if (tmp == IPSEC_API_PROTO_ESP)
2606  protocol_str = "ESP";
2607  else if (tmp == IPSEC_API_PROTO_AH)
2608  protocol_str = "AH";
2609 
2610  tmp = (ep->crypto_algorithm);
2611  if (tmp < ARRAY_LEN (algo_strs))
2612  algo_str = algo_strs[tmp];
2613 
2614  tmp = (ep->integrity_algorithm);
2615  if (tmp < ARRAY_LEN (integ_strs))
2616  integ_str = integ_strs[tmp];
2617 
2618  s = format (s, "proto %s crypto alg %s integ alg %s\n",
2619  protocol_str, algo_str, integ_str);
2620  s = format (s, " crypto_key len %d value %U\n",
2621  ep->crypto_key.length, format_hex_bytes, ep->crypto_key.data,
2622  (int) (ep->crypto_key.length));
2623  s = format (s, " integ_key len %d value %U\n",
2624  ep->integrity_key.length, format_hex_bytes,
2625  ep->integrity_key.data, (int) (ep->integrity_key.length));
2626  s = format (s, " flags 0x%x ", (ep->flags));
2627 
2628  s = format (s, "tunnel_src %U tunnel_dst %U\n",
2630  &ep->tunnel_src, format_vl_api_address, &ep->tunnel_dst);
2631  s = format (s, " tx_table_id %u salt %u ",
2632  (ep->tx_table_id), ntohl (ep->salt));
2633  FINISH;
2634 }
2635 
2636 
2639 {
2640  u8 *s;
2641  u32 vtr_op = (mp->vtr_op);
2642 
2643  s = format (0, "SCRIPT: l2_interface_pbb_tag_rewrite ");
2644 
2645  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2646  s = format (s, "vtr_op %d ", vtr_op);
2647  if (vtr_op != L2_VTR_DISABLED && vtr_op != L2_VTR_POP_2)
2648  {
2649  if (vtr_op == L2_VTR_TRANSLATE_2_2)
2650  s = format (s, "%d ", (mp->outer_tag));
2651  s = format (s, "dmac %U ", format_ethernet_address, &mp->b_dmac);
2652  s = format (s, "smac %U ", format_ethernet_address, &mp->b_smac);
2653  s = format (s, "sid %d ", (mp->i_sid));
2654  s = format (s, "vlanid %d ", (mp->b_vlanid));
2655  }
2656  FINISH;
2657 }
2658 
2661 {
2662  u8 *s;
2663 
2664  s = format (0, "SCRIPT: flow_classify_set_interface ");
2665  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2666  if (mp->ip4_table_index != ~0)
2667  s = format (s, "ip4-table %d ", (mp->ip4_table_index));
2668  if (mp->ip6_table_index != ~0)
2669  s = format (s, "ip6-table %d ", (mp->ip6_table_index));
2670  if (mp->is_add == 0)
2671  s = format (s, "del ");
2672 
2673  FINISH;
2674 }
2675 
2676 static void *
2678 {
2679  u8 *s;
2680 
2681  s = format (0, "SCRIPT: punt ");
2682 
2683  switch (mp->punt.type)
2684  {
2685  case PUNT_API_TYPE_L4:
2686  s = format (s, "%U", format_vl_api_address_family, mp->punt.punt.l4.af);
2687 
2688  s = format (s, "protocol %d ", mp->punt.punt.l4.protocol);
2689 
2690  if (mp->punt.punt.l4.port != (u16) ~ 0)
2691  s = format (s, "port %d ", (mp->punt.punt.l4.port));
2692  break;
2693  default:
2694  break;
2695 
2696  }
2697 
2698  if (!mp->is_add)
2699  s = format (s, "del ");
2700 
2701  FINISH;
2702 }
2703 
2705  (vl_api_flow_classify_dump_t * mp, void *handle)
2706 {
2707  u8 *s;
2708 
2709  s = format (0, "SCRIPT: flow_classify_dump ");
2710  switch (mp->type)
2711  {
2713  s = format (s, "type ip4 ");
2714  break;
2716  s = format (s, "type ip6 ");
2717  break;
2718  default:
2719  break;
2720  }
2721 
2722  FINISH;
2723 }
2724 
2726  (vl_api_get_first_msg_id_t * mp, void *handle)
2727 {
2728  u8 *s;
2729 
2730  s = format (0, "SCRIPT: get_first_msg_id %s ", mp->name);
2731 
2732  FINISH;
2733 }
2734 
2735 static void *vl_api_ioam_enable_t_print
2736  (vl_api_ioam_enable_t * mp, void *handle)
2737 {
2738  u8 *s;
2739 
2740  s = format (0, "SCRIPT: ioam_enable ");
2741 
2742  if (mp->trace_enable)
2743  s = format (s, "trace enabled");
2744 
2745  if (mp->pot_enable)
2746  s = format (s, "POT enabled");
2747 
2748  if (mp->seqno)
2749  s = format (s, "Seqno enabled");
2750 
2751  if (mp->analyse)
2752  s = format (s, "Analyse enabled");
2753 
2754  FINISH;
2755 }
2756 
2757 static void *vl_api_ioam_disable_t_print
2758  (vl_api_ioam_disable_t * mp, void *handle)
2759 {
2760  u8 *s;
2761 
2762  s = format (0, "SCRIPT: ioam_disable ");
2763  s = format (s, "trace disabled");
2764  s = format (s, "POT disabled");
2765  s = format (s, "Seqno disabled");
2766  s = format (s, "Analyse disabled");
2767 
2768  FINISH;
2769 }
2770 
2772  (vl_api_feature_enable_disable_t * mp, void *handle)
2773 {
2774  u8 *s;
2775 
2776  s = format (0, "SCRIPT: feature_enable_disable ");
2777  s = format (s, "arc_name %s ", mp->arc_name);
2778  s = format (s, "feature_name %s ", mp->feature_name);
2779  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2780  if (!mp->enable)
2781  s = format (s, "disable");
2782 
2783  FINISH;
2784 }
2785 
2788 {
2789  u8 *s;
2790 
2791  s = format (0, "SCRIPT: feature_gso_enable_disable ");
2792  s = format (s, "sw_if_index %d ", ntohl (mp->sw_if_index));
2793  if (mp->enable_disable)
2794  s = format (s, "enable");
2795  if (!mp->enable_disable)
2796  s = format (s, "disable");
2797 
2798  FINISH;
2799 }
2800 
2803 {
2804  u8 *s;
2805 
2806  s = format (0, "SCRIPT: sw_interface_tag_add_del ");
2807  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2808  if (mp->is_add)
2809  s = format (s, "tag %s ", mp->tag);
2810  else
2811  s = format (s, "del ");
2812 
2813  FINISH;
2814 }
2815 
2817  (vl_api_hw_interface_set_mtu_t * mp, void *handle)
2818 {
2819  u8 *s;
2820 
2821  s = format (0, "SCRIPT: sw_interface_set_mtu ");
2822  s = format (s, "sw_if_index %d ", (mp->sw_if_index));
2823  s = format (s, "tag %d ", (mp->mtu));
2824 
2825  FINISH;
2826 }
2827 
2829  (vl_api_p2p_ethernet_add_t * mp, void *handle)
2830 {
2831  u8 *s;
2832 
2833  s = format (0, "SCRIPT: p2p_ethernet_add ");
2834  s = format (s, "sw_if_index %d ", (mp->parent_if_index));
2835  s = format (s, "remote_mac %U ", format_ethernet_address, mp->remote_mac);
2836 
2837  FINISH;
2838 }
2839 
2841  (vl_api_p2p_ethernet_del_t * mp, void *handle)
2842 {
2843  u8 *s;
2844 
2845  s = format (0, "SCRIPT: p2p_ethernet_del ");
2846  s = format (s, "sw_if_index %d ", (mp->parent_if_index));
2847  s = format (s, "remote_mac %U ", format_ethernet_address, mp->remote_mac);
2848 
2849  FINISH;
2850 }
2851 
2854 {
2855  u8 *s;
2856 
2857  s = format (0, "SCRIPT: tcp_configure_src_addresses ");
2858  s = format (s, "%U - %U ",
2861 
2862  if (mp->vrf_id)
2863  s = format (s, "vrf %d ", (mp->vrf_id));
2864 
2865  FINISH;
2866 }
2867 
2869  (vl_api_app_namespace_add_del_t * mp, void *handle)
2870 {
2871  u8 *s;
2872 
2873  s = format (0, "SCRIPT: app_namespace_add_del ");
2874  s = format (s, "ns-id %s secret %lu sw_if_index %d ipv4_fib_id %d "
2875  "ipv6_fib_id %d",
2877  mp->secret, (mp->sw_if_index), (mp->ip4_fib_id),
2878  (mp->ip6_fib_id));
2879  FINISH;
2880 }
2881 
2883  (vl_api_session_rule_add_del_t * mp, void *handle)
2884 {
2885  u8 *s;
2886  fib_prefix_t lcl, rmt;
2887  char *proto = mp->transport_proto == 0 ? "tcp" : "udp";
2888  s = format (0, "SCRIPT: session_rule_add_del ");
2889  mp->tag[sizeof (mp->tag) - 1] = 0;
2890  ip_prefix_decode (&mp->lcl, &lcl);
2891  ip_prefix_decode (&mp->rmt, &rmt);
2892 
2893  if (lcl.fp_proto == FIB_PROTOCOL_IP4)
2894  s = format (s, "appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
2896  &lcl.fp_addr.ip4, lcl.fp_len,
2897  format_ip4_address, &rmt.fp_addr.ip4,
2898  rmt.fp_len, mp->action_index, mp->tag);
2899  else
2900  s = format (s, "appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
2902  &lcl.fp_addr.ip6, lcl.fp_len,
2903  format_ip6_address, &rmt.fp_addr.ip6,
2904  rmt.fp_len, mp->action_index, mp->tag);
2905  FINISH;
2906 }
2907 
2908 __clib_unused
2911 {
2912  u8 *s;
2913  s = format (0, "SCRIPT: ip_container_proxy_add_del ");
2914  s = format (s, "is_add %d prefix %U sw_if_index %d",
2916 
2917  FINISH;
2918 }
2919 
2922 {
2923  u8 *s;
2924 
2925  s = format (0, "SCRIPT: qos_record_enable_disable ");
2926  s = format (s, "sw_if_index %d ", (mp->record.sw_if_index));
2927  s = format (s, "input_source %U ", format_qos_source,
2928  mp->record.input_source);
2929 
2930  if (!mp->enable)
2931  s = format (s, "disable ");
2932 
2933  FINISH;
2934 }
2935 
2936 #define foreach_no_print_function \
2937 _(memclnt_keepalive_reply)
2938 
2939 #define _(f) \
2940 static void * vl_api_ ## f ## _t_print \
2941  (vl_api_ ## f ## _t * mp, void * handle) \
2942 { \
2943  return handle; \
2944 }
2946 #undef _
2947 
2948 #define foreach_custom_print_function \
2949 _(CREATE_LOOPBACK, create_loopback) \
2950 _(CREATE_LOOPBACK_INSTANCE, create_loopback_instance) \
2951 _(SW_INTERFACE_SET_FLAGS, sw_interface_set_flags) \
2952 _(SW_INTERFACE_EVENT, sw_interface_event) \
2953 _(SW_INTERFACE_ADD_DEL_ADDRESS, sw_interface_add_del_address) \
2954 _(SW_INTERFACE_SET_TABLE, sw_interface_set_table) \
2955 _(SW_INTERFACE_SET_MPLS_ENABLE, sw_interface_set_mpls_enable) \
2956 _(SW_INTERFACE_SET_VPATH, sw_interface_set_vpath) \
2957 _(SW_INTERFACE_SET_VXLAN_BYPASS, sw_interface_set_vxlan_bypass) \
2958 _(BOND_CREATE, bond_create) \
2959 _(BOND_CREATE2, bond_create2) \
2960 _(BOND_DELETE, bond_delete) \
2961 _(BOND_ADD_MEMBER, bond_add_member) \
2962 _(BOND_DETACH_MEMBER, bond_detach_member) \
2963 _(SW_INTERFACE_SET_BOND_WEIGHT, sw_interface_set_bond_weight) \
2964 _(SW_MEMBER_INTERFACE_DUMP, sw_member_interface_dump) \
2965 _(SW_BOND_INTERFACE_DUMP, sw_bond_interface_dump) \
2966 _(SW_INTERFACE_RX_PLACEMENT_DUMP, sw_interface_rx_placement_dump) \
2967 _(TAP_CREATE_V2, tap_create_v2) \
2968 _(TAP_DELETE_V2, tap_delete_v2) \
2969 _(SW_INTERFACE_TAP_V2_DUMP, sw_interface_tap_v2_dump) \
2970 _(IP_TABLE_ADD_DEL, ip_table_add_del) \
2971 _(MPLS_ROUTE_ADD_DEL, mpls_route_add_del) \
2972 _(MPLS_TABLE_ADD_DEL, mpls_table_add_del) \
2973 _(IP_ROUTE_ADD_DEL, ip_route_add_del) \
2974 _(MPLS_TUNNEL_ADD_DEL, mpls_tunnel_add_del) \
2975 _(SR_MPLS_POLICY_ADD, sr_mpls_policy_add) \
2976 _(SR_MPLS_POLICY_DEL, sr_mpls_policy_del) \
2977 _(SW_INTERFACE_SET_UNNUMBERED, sw_interface_set_unnumbered) \
2978 _(CREATE_VLAN_SUBIF, create_vlan_subif) \
2979 _(CREATE_SUBIF, create_subif) \
2980 _(IP_TABLE_REPLACE_BEGIN, ip_table_replace_begin) \
2981 _(IP_TABLE_FLUSH, ip_table_flush) \
2982 _(IP_TABLE_REPLACE_END, ip_table_replace_end) \
2983 _(SET_IP_FLOW_HASH, set_ip_flow_hash) \
2984 _(L2_PATCH_ADD_DEL, l2_patch_add_del) \
2985 _(SR_LOCALSID_ADD_DEL, sr_localsid_add_del) \
2986 _(SR_STEERING_ADD_DEL, sr_steering_add_del) \
2987 _(SR_POLICY_ADD, sr_policy_add) \
2988 _(SR_POLICY_MOD, sr_policy_mod) \
2989 _(SR_POLICY_DEL, sr_policy_del) \
2990 _(SW_INTERFACE_SET_L2_XCONNECT, sw_interface_set_l2_xconnect) \
2991 _(L2FIB_ADD_DEL, l2fib_add_del) \
2992 _(L2FIB_FLUSH_ALL, l2fib_flush_all) \
2993 _(L2FIB_FLUSH_BD, l2fib_flush_bd) \
2994 _(L2FIB_FLUSH_INT, l2fib_flush_int) \
2995 _(L2_FLAGS, l2_flags) \
2996 _(BRIDGE_FLAGS, bridge_flags) \
2997 _(CLASSIFY_ADD_DEL_TABLE, classify_add_del_table) \
2998 _(CLASSIFY_ADD_DEL_SESSION, classify_add_del_session) \
2999 _(SW_INTERFACE_SET_L2_BRIDGE, sw_interface_set_l2_bridge) \
3000 _(BRIDGE_DOMAIN_ADD_DEL, bridge_domain_add_del) \
3001 _(BRIDGE_DOMAIN_DUMP, bridge_domain_dump) \
3002 _(BRIDGE_DOMAIN_SET_MAC_AGE, bridge_domain_set_mac_age) \
3003 _(CLASSIFY_SET_INTERFACE_IP_TABLE, classify_set_interface_ip_table) \
3004 _(CLASSIFY_SET_INTERFACE_L2_TABLES, classify_set_interface_l2_tables) \
3005 _(ADD_NODE_NEXT, add_node_next) \
3006 _(VXLAN_ADD_DEL_TUNNEL, vxlan_add_del_tunnel) \
3007 _(VXLAN_TUNNEL_DUMP, vxlan_tunnel_dump) \
3008 _(VXLAN_OFFLOAD_RX, vxlan_offload_rx) \
3009 _(L2_FIB_CLEAR_TABLE, l2_fib_clear_table) \
3010 _(L2_INTERFACE_EFP_FILTER, l2_interface_efp_filter) \
3011 _(L2_INTERFACE_VLAN_TAG_REWRITE, l2_interface_vlan_tag_rewrite) \
3012 _(CREATE_VHOST_USER_IF, create_vhost_user_if) \
3013 _(MODIFY_VHOST_USER_IF, modify_vhost_user_if) \
3014 _(CREATE_VHOST_USER_IF_V2, create_vhost_user_if_v2) \
3015 _(MODIFY_VHOST_USER_IF_V2, modify_vhost_user_if_v2) \
3016 _(DELETE_VHOST_USER_IF, delete_vhost_user_if) \
3017 _(SW_INTERFACE_DUMP, sw_interface_dump) \
3018 _(CONTROL_PING, control_ping) \
3019 _(WANT_INTERFACE_EVENTS, want_interface_events) \
3020 _(CLI, cli) \
3021 _(CLI_INBAND, cli_inband) \
3022 _(MEMCLNT_CREATE, memclnt_create) \
3023 _(SOCKCLNT_CREATE, sockclnt_create) \
3024 _(SW_INTERFACE_VHOST_USER_DUMP, sw_interface_vhost_user_dump) \
3025 _(SHOW_VERSION, show_version) \
3026 _(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \
3027 _(VXLAN_GPE_ADD_DEL_TUNNEL, vxlan_gpe_add_del_tunnel) \
3028 _(VXLAN_GPE_TUNNEL_DUMP, vxlan_gpe_tunnel_dump) \
3029 _(VXLAN_GBP_TUNNEL_ADD_DEL, vxlan_gbp_tunnel_add_del) \
3030 _(VXLAN_GBP_TUNNEL_DUMP, vxlan_gbp_tunnel_dump) \
3031 _(SW_INTERFACE_SET_VXLAN_GBP_BYPASS, sw_interface_set_vxlan_gbp_bypass) \
3032 _(INTERFACE_NAME_RENUMBER, interface_name_renumber) \
3033 _(WANT_L2_MACS_EVENTS, want_l2_macs_events) \
3034 _(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \
3035 _(IP_ADDRESS_DUMP, ip_address_dump) \
3036 _(IP_DUMP, ip_dump) \
3037 _(DELETE_LOOPBACK, delete_loopback) \
3038 _(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \
3039 _(BD_IP_MAC_FLUSH, bd_ip_mac_flush) \
3040 _(AF_PACKET_CREATE, af_packet_create) \
3041 _(AF_PACKET_DELETE, af_packet_delete) \
3042 _(AF_PACKET_DUMP, af_packet_dump) \
3043 _(SW_INTERFACE_CLEAR_STATS, sw_interface_clear_stats) \
3044 _(MPLS_TABLE_DUMP, mpls_table_dump) \
3045 _(MPLS_ROUTE_DUMP, mpls_route_dump) \
3046 _(MPLS_TUNNEL_DUMP, mpls_tunnel_dump) \
3047 _(CLASSIFY_TABLE_IDS,classify_table_ids) \
3048 _(CLASSIFY_TABLE_BY_INTERFACE, classify_table_by_interface) \
3049 _(CLASSIFY_TABLE_INFO,classify_table_info) \
3050 _(CLASSIFY_SESSION_DUMP,classify_session_dump) \
3051 _(SET_IPFIX_EXPORTER, set_ipfix_exporter) \
3052 _(IPFIX_EXPORTER_DUMP, ipfix_exporter_dump) \
3053 _(SET_IPFIX_CLASSIFY_STREAM, set_ipfix_classify_stream) \
3054 _(IPFIX_CLASSIFY_STREAM_DUMP, ipfix_classify_stream_dump) \
3055 _(IPFIX_CLASSIFY_TABLE_ADD_DEL, ipfix_classify_table_add_del) \
3056 _(IPFIX_CLASSIFY_TABLE_DUMP, ipfix_classify_table_dump) \
3057 _(SW_INTERFACE_SPAN_ENABLE_DISABLE, sw_interface_span_enable_disable) \
3058 _(SW_INTERFACE_SPAN_DUMP, sw_interface_span_dump) \
3059 _(GET_NEXT_INDEX, get_next_index) \
3060 _(PG_CREATE_INTERFACE,pg_create_interface) \
3061 _(PG_CAPTURE, pg_capture) \
3062 _(PG_ENABLE_DISABLE, pg_enable_disable) \
3063 _(PG_INTERFACE_ENABLE_DISABLE_COALESCE, pg_interface_enable_disable_coalesce) \
3064 _(POLICER_ADD_DEL, policer_add_del) \
3065 _(POLICER_DUMP, policer_dump) \
3066 _(POLICER_CLASSIFY_SET_INTERFACE, policer_classify_set_interface) \
3067 _(POLICER_CLASSIFY_DUMP, policer_classify_dump) \
3068 _(IP_SOURCE_AND_PORT_RANGE_CHECK_ADD_DEL, \
3069  ip_source_and_port_range_check_add_del) \
3070 _(IP_SOURCE_AND_PORT_RANGE_CHECK_INTERFACE_ADD_DEL, \
3071  ip_source_and_port_range_check_interface_add_del) \
3072 _(IPSEC_INTERFACE_ADD_DEL_SPD, ipsec_interface_add_del_spd) \
3073 _(IPSEC_SAD_ENTRY_ADD_DEL, ipsec_sad_entry_add_del) \
3074 _(IPSEC_SPD_ADD_DEL, ipsec_spd_add_del) \
3075 _(IPSEC_SPD_ENTRY_ADD_DEL, ipsec_spd_entry_add_del) \
3076 _(DELETE_SUBIF, delete_subif) \
3077 _(L2_INTERFACE_PBB_TAG_REWRITE, l2_interface_pbb_tag_rewrite) \
3078 _(SET_PUNT, set_punt) \
3079 _(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \
3080 _(FLOW_CLASSIFY_DUMP, flow_classify_dump) \
3081 _(GET_FIRST_MSG_ID, get_first_msg_id) \
3082 _(IOAM_ENABLE, ioam_enable) \
3083 _(IOAM_DISABLE, ioam_disable) \
3084 _(FEATURE_ENABLE_DISABLE, feature_enable_disable) \
3085 _(FEATURE_GSO_ENABLE_DISABLE, feature_gso_enable_disable) \
3086 _(SW_INTERFACE_TAG_ADD_DEL, sw_interface_tag_add_del) \
3087 _(HW_INTERFACE_SET_MTU, hw_interface_set_mtu) \
3088 _(P2P_ETHERNET_ADD, p2p_ethernet_add) \
3089 _(P2P_ETHERNET_DEL, p2p_ethernet_del) \
3090 _(TCP_CONFIGURE_SRC_ADDRESSES, tcp_configure_src_addresses) \
3091 _(APP_NAMESPACE_ADD_DEL, app_namespace_add_del) \
3092 _(SESSION_RULE_ADD_DEL, session_rule_add_del) \
3093 _(OUTPUT_ACL_SET_INTERFACE, output_acl_set_interface) \
3094 _(QOS_RECORD_ENABLE_DISABLE, qos_record_enable_disable) \
3095 _(MEMCLNT_KEEPALIVE_REPLY, memclnt_keepalive_reply)
3096 
3097 void
3099 {
3100 #define _(n,f) am->msg_print_handlers[VL_API_##n] \
3101  = (void *) vl_api_##f##_t_print;
3103 #undef _
3104 }
3105 
3106 /*
3107  * fd.io coding-style-patch-verification: ON
3108  *
3109  * Local Variables:
3110  * eval: (c-set-style "gnu")
3111  * End:
3112  */
vl_api_cli_t_print
static void * vl_api_cli_t_print(vl_api_cli_t *mp, void *handle)
Definition: custom_dump.c:1757
vl_api_tap_create_v2_t::id
u32 id[default=0xffffffff]
Definition: tapv2.api:73
vl_api_sw_interface_span_dump_t_print
static void * vl_api_sw_interface_span_dump_t_print(vl_api_sw_interface_span_dump_t *mp, void *handle)
Definition: custom_dump.c:2348
vl_api_l2_interface_vlan_tag_rewrite_t::push_dot1q
u32 push_dot1q
Definition: l2.api:448
vl_api_bond_create_t::numa_only
bool numa_only
Definition: bond.api:66
vlib.h
vl_api_sr_mpls_policy_add_t::segments
u32 segments[n_segments]
Definition: sr_mpls.api:38
vl_api_ip_dump_t
Definition: ip.api:498
vl_api_sr_policy_mod_t::sr_policy_index
u32 sr_policy_index
Definition: sr.api:104
vl_api_tap_create_v2_t::host_if_name_set
bool host_if_name_set
Definition: tapv2.api:94
vl_api_p2p_ethernet_del_t
Delete a point-to-point (p2p) Ethernet sub-interface.
Definition: p2p_ethernet.api:56
vl_api_set_ipfix_classify_stream_t_print
static void * vl_api_set_ipfix_classify_stream_t_print(vl_api_set_ipfix_classify_stream_t *mp, void *handle)
Definition: custom_dump.c:2269
vl_api_sw_interface_set_l2_xconnect_t::tx_sw_if_index
vl_api_interface_index_t tx_sw_if_index
Definition: l2.api:506
vl_api_mpls_route_add_del_t
MPLS Route Add / del route.
Definition: mpls.api:162
tmp
u32 * tmp
Definition: interface_output.c:1078
vl_api_input_acl_set_interface_t::ip4_table_index
u32 ip4_table_index
Definition: classify.api:417
vl_api_bond_add_member_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: bond.api:170
vl_api_want_l2_macs_events_t_print
static void * vl_api_want_l2_macs_events_t_print(vl_api_want_l2_macs_events_t *mp, void *handle)
Definition: custom_dump.c:1885
vl_api_l2fib_add_del_t::filter_mac
bool filter_mac
Definition: l2.api:139
vl_api_vxlan_add_del_tunnel_t::vni
u32 vni
Definition: vxlan.api:44
SR_BEHAVIOR_DT6
#define SR_BEHAVIOR_DT6
Definition: sr.h:44
vl_api_bd_ip_mac_dump_t_print
static __clib_unused void * vl_api_bd_ip_mac_dump_t_print(vl_api_bd_ip_mac_dump_t *mp, void *handle)
Definition: custom_dump.c:505
vl_api_modify_vhost_user_if_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vhost_user.api:76
vl_api_sw_interface_set_vxlan_bypass_t
Interface set vxlan-bypass request.
Definition: vxlan.api:175
vl_api_sw_interface_set_unnumbered_t_print
static void * vl_api_sw_interface_set_unnumbered_t_print(vl_api_sw_interface_set_unnumbered_t *mp, void *handle)
Definition: custom_dump.c:942
vl_api_af_packet_delete_t::host_if_name
string host_if_name[64]
Definition: af_packet.api:59
vl_api_ip_source_and_port_range_check_add_del_t::vrf_id
u32 vrf_id
Definition: ip.api:623
vl_api_ipfix_classify_stream_dump_t
IPFIX classify stream dump request.
Definition: ipfix_export.api:93
vl_api_show_threads_t
show_threads display the information about vpp threads running on system along with their process id,...
Definition: vpe.api:198
vl_api_bond_create_t::mode
vl_api_bond_mode_t mode
Definition: bond.api:64
vl_api_classify_add_del_session_t_print
static void * vl_api_classify_add_del_session_t_print(vl_api_classify_add_del_session_t *mp, void *handle)
Definition: custom_dump.c:1354
vl_api_ip_route_add_del_t_print
static void * vl_api_ip_route_add_del_t_print(vl_api_ip_route_add_del_t *mp, void *handle)
Definition: custom_dump.c:797
L2_VTR_TRANSLATE_2_2
@ L2_VTR_TRANSLATE_2_2
Definition: l2_vtr.h:38
L2_FWD
@ L2_FWD
Definition: l2_bd.h:157
vl_api_sr_steering_add_del_t::traffic_type
vl_api_sr_steer_t traffic_type
Definition: sr.api:173
format_vl_api_address_family
u8 * format_vl_api_address_family(u8 *s, va_list *args)
Definition: types.c:26
api.h
vl_api_create_subif_t_print
static void * vl_api_create_subif_t_print(vl_api_create_subif_t *mp, void *handle)
Definition: custom_dump.c:985
vl_api_classify_table_by_interface_t
Classify table ids by interface index request.
Definition: classify.api:218
vl_api_bridge_domain_add_del_t::is_add
bool is_add[default=true]
Definition: l2.api:333
vl_api_add_node_next_t::node_name
string node_name[64]
Definition: vpe.api:150
vl_api_modify_vhost_user_if_t::enable_gso
bool enable_gso
Definition: vhost_user.api:80
vl_api_sw_interface_set_bond_weight_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: bond.api:346
vl_api_create_vhost_user_if_v2_t
vhost-user interface create request
Definition: vhost_user.api:99
vl_api_set_ipfix_classify_stream_t::domain_id
u32 domain_id
Definition: ipfix_export.api:85
vl_api_ip_container_proxy_add_del_t::is_add
bool is_add[default=true]
Definition: ip.api:586
vl_api_ipfix_classify_table_add_del_t::ip_version
vl_api_address_family_t ip_version
Definition: ipfix_export.api:120
vl_api_l2_interface_vlan_tag_rewrite_t
L2 interface vlan tag rewrite configure request.
Definition: l2.api:442
ntohs
#define ntohs(x)
Definition: af_xdp.bpf.c:29
vl_api_af_packet_delete_t_print
static void * vl_api_af_packet_delete_t_print(vl_api_af_packet_delete_t *mp, void *handle)
Definition: custom_dump.c:1974
vl_api_sw_interface_set_l2_bridge_t::shg
u8 shg
Definition: l2.api:542
vl_api_session_rule_add_del_t::tag
string tag[64]
Definition: session.api:279
vl_api_sw_interface_rx_placement_dump_t
dump the rx queue placement of interface(s)
Definition: interface.api:467
vl_api_sw_interface_tag_add_del_t::is_add
bool is_add
Definition: interface.api:361
vl_api_sw_bond_interface_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Definition: bond.api:247
vl_api_classify_set_interface_l2_tables_t::is_input
bool is_input
Definition: classify.api:398
QOS_RATE_KBPS
@ QOS_RATE_KBPS
Definition: xlate.h:64
vl_api_l2_fib_clear_table_t
L2 fib clear table request, clear all mac entries in the l2 fib.
Definition: l2.api:79
FINISH
#define FINISH
Definition: custom_dump.c:63
vl_api_classify_table_info_t::table_id
u32 table_id
Definition: classify.api:252
vl_api_pg_capture_t::is_enabled
bool is_enabled[default=true]
Definition: pg.api:80
vl_api_ipsec_interface_add_del_spd_t::spd_id
u32 spd_id
Definition: ipsec.api:57
vl_api_vxlan_gpe_add_del_tunnel_t::is_add
bool is_add[default=true]
Definition: vxlan_gpe.api:32
vl_api_feature_enable_disable_t::enable
bool enable
Definition: feature.api:36
vl_api_classify_table_ids_t
Classify get table IDs request.
Definition: classify.api:194
QOS_POLICER_TYPE_2R3C_RFC_4115
@ QOS_POLICER_TYPE_2R3C_RFC_4115
Definition: xlate.h:35
vl_api_sr_policy_del_t_print
static void * vl_api_sr_policy_del_t_print(vl_api_sr_policy_del_t *mp, void *handle)
Definition: custom_dump.c:1311
vl_api_vxlan_gbp_tunnel_add_del_t::tunnel
vl_api_vxlan_gbp_tunnel_t tunnel
Definition: vxlan_gbp.api:58
vl_api_bridge_flags_t::bd_id
u32 bd_id
Definition: l2.api:416
vl_api_ip_address_dump_t
Definition: ip.api:462
vl_api_session_rule_add_del_t::rmt
vl_api_prefix_t rmt
Definition: session.api:272
vl_api_sr_policy_mod_t::sl_index
u32 sl_index
Definition: sr.api:107
vl_api_sw_interface_event_t_print
static void * vl_api_sw_interface_event_t_print(vl_api_sw_interface_event_t *mp, void *handle)
Definition: custom_dump.c:153
vl_api_create_vlan_subif_t::vlan_id
u32 vlan_id
Definition: interface.api:538
vl_api_classify_add_del_table_t::current_data_offset
i16 current_data_offset[default=0]
Definition: classify.api:59
vl_api_bond_create2_t::enable_gso
bool enable_gso
Definition: bond.api:99
vl_api_policer_classify_set_interface_t
Set/unset policer classify interface.
Definition: classify.api:145
vl_api_sw_interface_dump_t::name_filter
string name_filter[]
Definition: interface.api:223
vl_api_set_ip_flow_hash_t::sport
bool sport
Definition: ip.api:301
BRIDGE_API_FLAG_UU_FLOOD
@ BRIDGE_API_FLAG_UU_FLOOD
Definition: l2.api:400
vl_api_bond_create_t::mac_address
vl_api_mac_address_t mac_address
Definition: bond.api:63
vl_api_classify_table_by_interface_t_print
static void * vl_api_classify_table_by_interface_t_print(vl_api_classify_table_by_interface_t *mp, void *handle)
Definition: custom_dump.c:2203
vl_api_sr_mpls_policy_add_t
MPLS SR policy add.
Definition: sr_mpls.api:30
format_ip4_address
format_function_t format_ip4_address
Definition: format.h:73
vl_api_classify_add_del_table_t::next_table_index
u32 next_table_index[default=0xffffffff]
Definition: classify.api:56
clib_memcpy
#define clib_memcpy(d, s, n)
Definition: string.h:197
vl_api_sr_policy_mod_t
IPv6 SR policy modification.
Definition: sr.api:99
QOS_POLICER_TYPE_2R3C_RFC_2698
@ QOS_POLICER_TYPE_2R3C_RFC_2698
Definition: xlate.h:34
vl_api_sw_interface_span_enable_disable_t::sw_if_index_from
vl_api_interface_index_t sw_if_index_from
Definition: span.api:40
vl_api_sw_interface_set_flags_t::flags
vl_api_if_status_flags_t flags
Definition: interface.api:40
vl_api_tcp_configure_src_addresses_t::last_address
vl_api_address_t last_address
Definition: tcp.api:43
vl_api_show_version_t_print
static void * vl_api_show_version_t_print(vl_api_show_version_t *mp, void *handle)
Definition: custom_dump.c:1801
vl_api_ipsec_sad_entry_add_del_t_print
static void * vl_api_ipsec_sad_entry_add_del_t_print(vl_api_ipsec_sad_entry_add_del_t *mp, void *handle)
Definition: custom_dump.c:2589
vl_api_mpls_tunnel_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Definition: mpls.api:84
vl_api_policer_dump_t::match_name
string match_name[64]
Definition: policer.api:116
vl_api_vxlan_add_del_tunnel_t::src_address
vl_api_address_t src_address
Definition: vxlan.api:39
vl_api_tap_create_v2_t::mac_address
vl_api_mac_address_t mac_address
Definition: tapv2.api:75
vl_api_ipsec_sad_entry_add_del_t
IPsec: Add/delete Security Association Database entry.
Definition: ipsec.api:192
vl_api_sr_localsid_add_del_t::nh_addr
vl_api_address_t nh_addr
Definition: sr.api:63
vl_api_bridge_domain_add_del_t::arp_term
bool arp_term
Definition: l2.api:329
IF_STATUS_API_FLAG_LINK_UP
@ IF_STATUS_API_FLAG_LINK_UP
Definition: interface_types.api:23
vl_api_p2p_ethernet_add_t::parent_if_index
vl_api_interface_index_t parent_if_index
Definition: p2p_ethernet.api:37
vl_api_mpls_route_dump_t
Dump MPLS fib table.
Definition: mpls.api:181
vl_api_sr_policy_mod_t_print
static void * vl_api_sr_policy_mod_t_print(vl_api_sr_policy_mod_t *mp, void *handle)
Definition: custom_dump.c:1272
vl_api_create_loopback_t_print
static void * vl_api_create_loopback_t_print(vl_api_create_loopback_t *mp, void *handle)
Definition: custom_dump.c:71
ip46_address_is_multicast
static uword ip46_address_is_multicast(const ip46_address_t *a)
Definition: ip46_address.h:154
vl_api_ipfix_classify_table_add_del_t
IPFIX add or delete classifier table request.
Definition: ipfix_export.api:116
vl_api_sw_interface_set_l2_xconnect_t::rx_sw_if_index
vl_api_interface_index_t rx_sw_if_index
Definition: l2.api:505
vl_api_sw_interface_span_dump_t::is_l2
bool is_l2
Definition: span.api:54
vl_api_bond_delete_t
Delete bond interface.
Definition: bond.api:122
vl_api_tap_create_v2_t_print
static void * vl_api_tap_create_v2_t_print(vl_api_tap_create_v2_t *mp, void *handle)
Definition: custom_dump.c:515
vl_api_sw_interface_set_vxlan_bypass_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vxlan.api:179
vl_api_app_namespace_add_del_t::sw_if_index
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Definition: session.api:223
vl_api_ipsec_spd_add_del_t::is_add
bool is_add
Definition: ipsec.api:36
vl_api_create_vhost_user_if_t::disable_mrg_rxbuf
bool disable_mrg_rxbuf
Definition: vhost_user.api:41
vl_api_ipsec_spd_entry_add_del_t::is_add
bool is_add
Definition: ipsec.api:126
vl_api_want_interface_events_t
Register for interface events.
Definition: interface.api:116
vl_api_virtio_pci_create_v2_t::pci_addr
vl_api_pci_address_t pci_addr
Definition: virtio.api:81
format_vl_api_prefix
u8 * format_vl_api_prefix(u8 *s, va_list *args)
Definition: types.c:87
vl_api_policer_add_del_t_print
static void * vl_api_policer_add_del_t_print(vl_api_policer_add_del_t *mp, void *handle)
Definition: custom_dump.c:2020
vl_api_sw_interface_tag_add_del_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:362
vl_api_classify_set_interface_l2_tables_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: classify.api:393
vl_api_session_rule_add_del_t
add/del session rule
Definition: session.api:267
vl_api_classify_set_interface_ip_table_t::is_ipv6
bool is_ipv6
Definition: classify.api:376
vl_api_sr_mpls_policy_add_t::weight
u32 weight
Definition: sr_mpls.api:35
vl_api_sr_mpls_policy_del_t::bsid
u32 bsid
Definition: sr_mpls.api:74
vl_api_input_acl_set_interface_t::is_add
bool is_add
Definition: classify.api:420
format_ethernet_address
u8 * format_ethernet_address(u8 *s, va_list *args)
Definition: format.c:44
vl_api_interface_name_renumber_t
Definition: interface.api:500
vl_api_vxlan_gpe_add_del_tunnel_t::decap_vrf_id
u32 decap_vrf_id
Definition: vxlan_gpe.api:29
vl_api_bridge_domain_add_del_t::mac_age
u8 mac_age
Definition: l2.api:331
vl_api_l2_interface_efp_filter_t::enable_disable
bool enable_disable[default=true]
Definition: l2.api:615
vl_api_p2p_ethernet_del_t::parent_if_index
vl_api_interface_index_t parent_if_index
Definition: p2p_ethernet.api:60
vl_api_l2_interface_efp_filter_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: l2.api:614
vl_api_cli_inband_t
Definition: vpe.api:91
vl_api_sr_policy_del_t
IPv6 SR policy deletion.
Definition: sr.api:118
vl_api_tap_create_v2_t::host_ip4_prefix_set
bool host_ip4_prefix_set
Definition: tapv2.api:83
VIRTIO_API_FLAG_CSUM_OFFLOAD
@ VIRTIO_API_FLAG_CSUM_OFFLOAD
Definition: virtio.api:61
vl_api_pg_enable_disable_t_print
static void * vl_api_pg_enable_disable_t_print(vl_api_pg_enable_disable_t *mp, void *handle)
Definition: custom_dump.c:2403
vl_api_l2_interface_pbb_tag_rewrite_t::b_vlanid
u16 b_vlanid
Definition: l2.api:474
vl_api_sw_interface_span_enable_disable_t::state
vl_api_span_state_t state
Definition: span.api:42
vl_api_sw_interface_set_unnumbered_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:333
qos_types.h
vl_api_policer_dump_t::match_name_valid
bool match_name_valid
Definition: policer.api:115
vl_api_ioam_disable_t
iOAM disable
Definition: ip.api:706
vl_api_sw_interface_add_del_address_t::is_add
bool is_add
Definition: interface.api:239
format_hex_bytes
u8 * format_hex_bytes(u8 *s, va_list *va)
Definition: std-formats.c:84
vl_api_create_vhost_user_if_v2_t::custom_dev_instance
u32 custom_dev_instance
Definition: vhost_user.api:111
vl_api_classify_add_del_session_t::match
u8 match[match_len]
Definition: classify.api:131
vl_api_mpls_table_add_del_t
Definition: mpls.api:109
vl_api_vxlan_gpe_add_del_tunnel_t::protocol
vl_api_ip_proto_t protocol
Definition: vxlan_gpe.api:30
vl_api_bd_ip_mac_flush_t
Flush bridge domain IP to MAC entries.
Definition: l2.api:574
SR_BEHAVIOR_X
#define SR_BEHAVIOR_X
Definition: sr.h:38
vl_api_policer_add_del_t::violate_action
vl_api_sse2_qos_action_t violate_action
Definition: policer.api:89
vl_api_bond_create2_t
Initialize a new bond interface with the given paramters.
Definition: bond.api:92
vl_api_flow_classify_set_interface_t::is_add
bool is_add
Definition: classify.api:332
vl_api_sw_interface_set_l2_bridge_t_print
static void * vl_api_sw_interface_set_l2_bridge_t_print(vl_api_sw_interface_set_l2_bridge_t *mp, void *handle)
Definition: custom_dump.c:283
vl_api_classify_add_del_table_t
Add/Delete classification table request.
Definition: classify.api:45
vl_msg_api_custom_dump_configure
void vl_msg_api_custom_dump_configure(api_main_t *am)
Definition: custom_dump.c:3098
vl_api_policer_dump_t
Get list of policers.
Definition: policer.api:110
vl_api_classify_add_del_table_t::skip_n_vectors
u32 skip_n_vectors[default=0]
Definition: classify.api:54
vl_api_virtio_pci_create_t::gso_enabled
bool gso_enabled
Definition: virtio.api:41
vl_api_modify_vhost_user_if_t_print
static void * vl_api_modify_vhost_user_if_t_print(vl_api_modify_vhost_user_if_t *mp, void *handle)
Definition: custom_dump.c:1610
foreach_no_print_function
#define foreach_no_print_function
Definition: custom_dump.c:2936
vl_api_sw_member_interface_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: bond.api:314
vl_api_l2_patch_add_del_t::is_add
bool is_add[default=true]
Definition: l2.api:491
L2_FLOOD
@ L2_FLOOD
Definition: l2_bd.h:158
vl_api_vxlan_add_del_tunnel_t::mcast_sw_if_index
vl_api_interface_index_t mcast_sw_if_index
Definition: vxlan.api:41
sr_mpls.h
Segment Routing MPLS data structures definitions.
vl_api_create_vhost_user_if_t::is_server
bool is_server
Definition: vhost_user.api:38
vl_api_virtio_pci_create_v2_t::features
u64 features
Definition: virtio.api:85
vl_api_bond_delete_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: bond.api:126
vl_api_set_ip_flow_hash_t::is_ipv6
bool is_ipv6
Definition: ip.api:298
vl_api_sw_interface_set_vpath_t::enable
bool enable[default=0xffffffff]
Definition: l2.api:629
vl_api_sw_interface_set_rx_placement_t::worker_id
u32 worker_id
Definition: interface.api:457
vl_api_vxlan_gbp_tunnel_add_del_t
Create or delete a VXLAN-GBP tunnel.
Definition: vxlan_gbp.api:53
vl_api_delete_loopback_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:625
u16
unsigned short u16
Definition: types.h:57
vl_api_get_next_index_t
Query relative index via node names.
Definition: vpe.api:268
vl_api_create_vhost_user_if_v2_t::renumber
bool renumber
Definition: vhost_user.api:105
vl_api_l2_interface_pbb_tag_rewrite_t::b_smac
vl_api_mac_address_t b_smac
Definition: l2.api:473
vl_api_policer_add_del_t::type
vl_api_sse2_qos_policer_type_t type
Definition: policer.api:85
vl_api_create_vhost_user_if_v2_t::disable_mrg_rxbuf
bool disable_mrg_rxbuf
Definition: vhost_user.api:106
vl_api_bond_create_t::id
u32 id[default=0xFFFFFFFF]
Definition: bond.api:61
vl_api_mpls_table_dump_t_print
static void * vl_api_mpls_table_dump_t_print(vl_api_mpls_table_dump_t *mp, void *handle)
Definition: custom_dump.c:2173
vl_api_policer_add_del_t::cb
u64 cb
Definition: policer.api:81
vl_api_input_acl_set_interface_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: classify.api:416
vl_api_classify_add_del_session_t
Classify add / del session request.
Definition: classify.api:119
vl_api_mpls_table_add_del_t::mt_table
vl_api_mpls_table_t mt_table
Definition: mpls.api:114
am
app_main_t * am
Definition: application.c:489
vl_api_modify_vhost_user_if_v2_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vhost_user.api:143
vl_api_ip_source_and_port_range_check_add_del_t::low_ports
u16 low_ports[32]
Definition: ip.api:621
vl_api_input_acl_set_interface_t
Set/unset input ACL interface.
Definition: classify.api:412
fib_prefix_t_::fp_len
u16 fp_len
The mask length.
Definition: fib_types.h:206
vl_api_sw_interface_set_vpath_t
Interface set vpath request.
Definition: l2.api:624
vl_api_virtio_pci_create_v2_t::mac_address
vl_api_mac_address_t mac_address
Definition: virtio.api:83
vl_api_sr_steering_add_del_t::prefix
vl_api_prefix_t prefix
Definition: sr.api:171
vl_api_get_next_index_t::node_name
string node_name[64]
Definition: vpe.api:272
QOS_POLICER_TYPE_1R3C_RFC_2697
@ QOS_POLICER_TYPE_1R3C_RFC_2697
Definition: xlate.h:33
vl_api_virtio_pci_create_t::features
u64 features
Definition: virtio.api:43
api.h
vl_api_vxlan_gbp_tunnel_add_del_t::is_add
bool is_add[default=true]
Definition: vxlan_gbp.api:57
vl_api_app_namespace_add_del_t::ip4_fib_id
u32 ip4_fib_id
Definition: session.api:224
vl_api_ioam_disable_t_print
static void * vl_api_ioam_disable_t_print(vl_api_ioam_disable_t *mp, void *handle)
Definition: custom_dump.c:2758
vl_api_bridge_domain_add_del_t
L2 bridge domain add or delete request.
Definition: l2.api:320
vl_api_tap_create_v2_t::host_mtu_size
u32 host_mtu_size
Definition: tapv2.api:80
vl_api_sw_interface_tap_v2_dump_t
Dump tap interfaces request.
Definition: tapv2.api:128
vl_api_tap_create_v2_t::host_mtu_set
bool host_mtu_set
Definition: tapv2.api:79
vl_api_policer_add_del_t::eir
u32 eir
Definition: policer.api:80
vl_api_af_packet_create_t::use_random_hw_addr
bool use_random_hw_addr
Definition: af_packet.api:34
vl_api_want_interface_events_t::pid
u32 pid
Definition: interface.api:121
vl_api_memclnt_create_t::name
string name[64]
Definition: memclnt.api:37
vl_api_set_ip_flow_hash_t
Set the ip flow hash config for a fib request.
Definition: ip.api:292
vl_api_l2_interface_efp_filter_t_print
static void * vl_api_l2_interface_efp_filter_t_print(vl_api_l2_interface_efp_filter_t *mp, void *handle)
Definition: custom_dump.c:1552
vl_api_modify_vhost_user_if_t::is_server
bool is_server
Definition: vhost_user.api:77
vl_api_vxlan_gbp_tunnel_dump_t
Definition: vxlan_gbp.api:70
vl_api_ip_table_replace_begin_t::table
vl_api_ip_table_t table
Definition: ip.api:92
vl_api_hw_interface_set_mtu_t
Set interface physical MTU.
Definition: interface.api:63
policer.h
vl_api_l2_interface_pbb_tag_rewrite_t_print
static void * vl_api_l2_interface_pbb_tag_rewrite_t_print(vl_api_l2_interface_pbb_tag_rewrite_t *mp, void *handle)
Definition: custom_dump.c:2638
vl_api_classify_table_by_interface_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: classify.api:222
vl_api_bd_ip_mac_add_del_t_print
static void * vl_api_bd_ip_mac_add_del_t_print(vl_api_bd_ip_mac_add_del_t *mp, void *handle)
Definition: custom_dump.c:477
vl_api_sw_interface_set_l2_xconnect_t::enable
bool enable[default=true]
Definition: l2.api:507
vl_api_l2fib_flush_int_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: l2.api:116
vl_api_modify_vhost_user_if_v2_t
vhost-user interface modify request
Definition: vhost_user.api:139
vl_api_modify_vhost_user_if_v2_t::enable_packed
bool enable_packed
Definition: vhost_user.api:148
mpls.h
vl_api_add_node_next_t::next_name
string next_name[64]
Definition: vpe.api:151
vl_api_ip_source_and_port_range_check_interface_add_del_t_print
static void * vl_api_ip_source_and_port_range_check_interface_add_del_t_print(vl_api_ip_source_and_port_range_check_interface_add_del_t *mp, void *handle)
Definition: custom_dump.c:2456
vl_api_pg_capture_t_print
static void * vl_api_pg_capture_t_print(vl_api_pg_capture_t *mp, void *handle)
Definition: custom_dump.c:2387
vl_api_set_punt_t_print
static void * vl_api_set_punt_t_print(vl_api_set_punt_t *mp, void *handle)
Definition: custom_dump.c:2677
vl_api_ipsec_sad_entry_add_del_t::is_add
bool is_add
Definition: ipsec.api:197
vl_api_policer_classify_dump_t
Get list of policer classify interfaces and tables.
Definition: classify.api:170
vl_api_policer_add_del_t::is_add
bool is_add
Definition: policer.api:77
vl_api_delete_vhost_user_if_t_print
static void * vl_api_delete_vhost_user_if_t_print(vl_api_delete_vhost_user_if_t *mp, void *handle)
Definition: custom_dump.c:1682
vl_api_tap_create_v2_t::host_ip6_prefix_set
bool host_ip6_prefix_set
Definition: tapv2.api:85
vl_api_sw_interface_tap_v2_dump_t_print
static void * vl_api_sw_interface_tap_v2_dump_t_print(vl_api_sw_interface_tap_v2_dump_t *mp, void *handle)
Definition: custom_dump.c:589
vl_api_af_packet_delete_t
Delete host-interface.
Definition: af_packet.api:54
vl_api_virtio_pci_create_t::pci_addr
vl_api_pci_address_t pci_addr
Definition: virtio.api:38
vl_api_ip_source_and_port_range_check_interface_add_del_t::tcp_in_vrf_id
u32 tcp_in_vrf_id
Definition: ip.api:639
vl_api_hw_interface_set_mtu_t_print
static void * vl_api_hw_interface_set_mtu_t_print(vl_api_hw_interface_set_mtu_t *mp, void *handle)
Definition: custom_dump.c:2817
vl_api_set_ipfix_exporter_t::vrf_id
u32 vrf_id
Definition: ipfix_export.api:38
vl_api_mpls_tunnel_add_del_t
Definition: mpls.api:54
format_vl_api_fib_path
u8 * format_vl_api_fib_path(u8 *s, va_list *args)
Definition: fib_api.c:501
vl_api_sr_policy_mod_t::bsid_addr
vl_api_ip6_address_t bsid_addr
Definition: sr.api:103
vl_api_set_ipfix_exporter_t::udp_checksum
bool udp_checksum
Definition: ipfix_export.api:41
vl_api_l2_interface_pbb_tag_rewrite_t::b_dmac
vl_api_mac_address_t b_dmac
Definition: l2.api:472
vl_api_create_vhost_user_if_v2_t::is_server
bool is_server
Definition: vhost_user.api:103
vl_api_ipsec_spd_add_del_t
IPsec: Add/delete Security Policy Database.
Definition: ipsec.api:32
vl_api_sw_interface_set_vxlan_gbp_bypass_t::enable
bool enable[default=true]
Definition: vxlan_gbp.api:98
vl_api_tcp_configure_src_addresses_t_print
static void * vl_api_tcp_configure_src_addresses_t_print(vl_api_tcp_configure_src_addresses_t *mp, void *handle)
Definition: custom_dump.c:2853
vl_api_ip_table_replace_end_t_print
static void * vl_api_ip_table_replace_end_t_print(vl_api_ip_table_replace_end_t *mp, void *handle)
Definition: custom_dump.c:1047
foreach_custom_print_function
#define foreach_custom_print_function
Definition: custom_dump.c:2948
vl_api_qos_record_enable_disable_t::enable
bool enable[default=true]
Definition: qos.api:113
vl_api_flow_classify_set_interface_t
Set/unset flow classify interface.
Definition: classify.api:326
VIRTIO_API_FLAG_PACKED
@ VIRTIO_API_FLAG_PACKED
Definition: virtio.api:63
vl_api_create_subif_t::outer_vlan_id
u16 outer_vlan_id
Definition: interface.api:516
vl_api_bridge_domain_set_mac_age_t::mac_age
u8 mac_age
Definition: l2.api:277
ethernet.h
vl_api_tcp_configure_src_addresses_t
Configure TCP source addresses, for active-open TCP sessions.
Definition: tcp.api:38
vl_api_sw_interface_span_enable_disable_t_print
static void * vl_api_sw_interface_span_enable_disable_t_print(vl_api_sw_interface_span_enable_disable_t *mp, void *handle)
Definition: custom_dump.c:2316
vl_api_input_acl_set_interface_t::l2_table_index
u32 l2_table_index
Definition: classify.api:419
vl_api_bridge_domain_dump_t::bd_id
u32 bd_id[default=0xffffffff]
Definition: l2.api:346
vl_api_p2p_ethernet_del_t::remote_mac
vl_api_mac_address_t remote_mac
Definition: p2p_ethernet.api:61
vl_api_policer_classify_set_interface_t::ip4_table_index
u32 ip4_table_index
Definition: classify.api:150
vl_api_create_vhost_user_if_t::custom_dev_instance
u32 custom_dev_instance
Definition: vhost_user.api:45
BRIDGE_API_FLAG_FLOOD
@ BRIDGE_API_FLAG_FLOOD
Definition: l2.api:399
vl_api_pg_interface_enable_disable_coalesce_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: pg.api:62
vl_api_sr_localsid_add_del_t::behavior
vl_api_sr_behavior_t behavior
Definition: sr.api:59
vl_api_ipsec_spd_entry_add_del_t
IPsec: Add/delete Security Policy Database entry.
Definition: ipsec.api:122
vl_api_ipfix_classify_table_add_del_t_print
static void * vl_api_ipfix_classify_table_add_del_t_print(vl_api_ipfix_classify_table_add_del_t *mp, void *handle)
Definition: custom_dump.c:2292
vl_api_mpls_table_add_del_t::mt_is_add
bool mt_is_add[default=true]
Definition: mpls.api:113
vl_api_classify_add_del_table_t::memory_size
u32 memory_size[default=2097152]
Definition: classify.api:53
vl_api_add_node_next_t
Set the next node for a given node request.
Definition: vpe.api:146
vl_api_ipsec_interface_add_del_spd_t_print
static void * vl_api_ipsec_interface_add_del_spd_t_print(vl_api_ipsec_interface_add_del_spd_t *mp, void *handle)
Definition: custom_dump.c:2568
vl_api_mpls_table_add_del_t_print
static void * vl_api_mpls_table_add_del_t_print(vl_api_mpls_table_add_del_t *mp, void *handle)
Definition: custom_dump.c:863
vl_api_p2p_ethernet_add_t::remote_mac
vl_api_mac_address_t remote_mac
Definition: p2p_ethernet.api:39
vl_api_ip_table_add_del_t::table
vl_api_ip_table_t table
Definition: ip.api:57
L2_ARP_TERM
@ L2_ARP_TERM
Definition: l2_bd.h:160
vxlan_gpe.h
VXLAN GPE definitions.
vl_api_bridge_domain_set_mac_age_t_print
static void * vl_api_bridge_domain_set_mac_age_t_print(vl_api_bridge_domain_set_mac_age_t *mp, void *handle)
Definition: custom_dump.c:330
FLOW_CLASSIFY_API_TABLE_IP6
@ FLOW_CLASSIFY_API_TABLE_IP6
Definition: classify.api:338
vl_api_l2fib_flush_int_t
L2 FIB flush interface entries.
Definition: l2.api:112
vl_api_sr_localsid_add_del_t::sw_if_index
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Definition: sr.api:60
vl_api_pg_enable_disable_t
Enable / disable packet generator request.
Definition: pg.api:91
vl_api_ipfix_exporter_dump_t_print
static void * vl_api_ipfix_exporter_dump_t_print(vl_api_ipfix_exporter_dump_t *mp, void *handle)
Definition: custom_dump.c:2259
vl_api_classify_add_del_table_t::table_index
u32 table_index[default=0xffffffff]
Definition: classify.api:51
vl_api_memclnt_create_t
Definition: memclnt.api:33
ip_address_decode
ip46_type_t ip_address_decode(const vl_api_address_t *in, ip46_address_t *out)
Decode/Encode for struct/union types.
Definition: ip_types_api.c:186
vl_api_af_packet_create_t::hw_addr
vl_api_mac_address_t hw_addr
Definition: af_packet.api:33
vl_api_classify_table_ids_t_print
static void * vl_api_classify_table_ids_t_print(vl_api_classify_table_ids_t *mp, void *handle)
Definition: custom_dump.c:2193
vl_api_policer_add_del_t::name
string name[64]
Definition: policer.api:78
vl_api_sw_bond_interface_dump_t
Dump bond interfaces request.
Definition: bond.api:243
vl_api_sw_interface_set_mpls_enable_t
Enable or Disable MPLS on and interface.
Definition: mpls.api:207
vl_api_tap_create_v2_t::tap_flags
vl_api_tap_flags_t tap_flags
Definition: tapv2.api:91
vl_api_want_l2_macs_events_t::max_macs_in_event
u8 max_macs_in_event[default=10]
Definition: l2.api:159
vl_api_pg_interface_enable_disable_coalesce_t
PacketGenerator interface enable/disable packet coalesce.
Definition: pg.api:58
vl_api_bd_ip_mac_flush_t::bd_id
u32 bd_id
Definition: l2.api:578
vl_api_modify_vhost_user_if_t
vhost-user interface modify request
Definition: vhost_user.api:71
vl_api_pg_capture_t::count
u32 count
Definition: pg.api:81
vl_api_vxlan_add_del_tunnel_t_print
static void * vl_api_vxlan_add_del_tunnel_t_print(vl_api_vxlan_add_del_tunnel_t *mp, void *handle)
Definition: custom_dump.c:1432
vl_api_l2_interface_vlan_tag_rewrite_t::vtr_op
u32 vtr_op
Definition: l2.api:447
vl_api_create_loopback_instance_t_print
static void * vl_api_create_loopback_instance_t_print(vl_api_create_loopback_instance_t *mp, void *handle)
Definition: custom_dump.c:82
vl_api_feature_gso_enable_disable_t::enable_disable
bool enable_disable
Definition: gso.api:31
vl_api_classify_table_info_t_print
static void * vl_api_classify_table_info_t_print(vl_api_classify_table_info_t *mp, void *handle)
Definition: custom_dump.c:2215
vl_api_classify_add_del_table_t::match_n_vectors
u32 match_n_vectors[default=1]
Definition: classify.api:55
sr.h
Segment Routing data structures definitions.
vl_api_sw_interface_dump_t
Request all or filtered subset of sw_interface_details.
Definition: interface.api:217
vl_api_ip_source_and_port_range_check_interface_add_del_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ip.api:638
foreach_create_subif_flag
#define foreach_create_subif_flag
Definition: custom_dump.c:974
vl_api_set_ip_flow_hash_t::dst
bool dst
Definition: ip.api:300
vl_api_classify_set_interface_l2_tables_t::ip6_table_index
u32 ip6_table_index
Definition: classify.api:396
vl_api_ioam_enable_t::analyse
bool analyse
Definition: ip.api:695
vl_api_bond_create2_t::mode
vl_api_bond_mode_t mode
Definition: bond.api:96
vl_api_policer_add_del_t::conform_action
vl_api_sse2_qos_action_t conform_action
Definition: policer.api:87
vl_api_sw_member_interface_dump_t
bond member dump
Definition: bond.api:310
vl_api_sw_bond_interface_dump_t_print
static void * vl_api_sw_bond_interface_dump_t_print(vl_api_sw_bond_interface_dump_t *mp, void *handle)
Definition: custom_dump.c:774
vl_api_sw_interface_add_del_address_t
Set or delete one or all ip addresses on a specified interface.
Definition: interface.api:234
SR_STEER_L2
#define SR_STEER_L2
Definition: sr.h:50
SR_BEHAVIOR_LAST
#define SR_BEHAVIOR_LAST
Definition: sr.h:48
vl_api_session_rule_add_del_t::action_index
u32 action_index
Definition: session.api:275
vl_api_classify_table_info_t
Classify table info.
Definition: classify.api:248
vl_api_classify_add_del_session_t::opaque_index
u32 opaque_index[default=0xffffffff]
Definition: classify.api:126
vl_api_tap_create_v2_t::host_ip6_prefix
vl_api_ip6_address_with_prefix_t host_ip6_prefix
Definition: tapv2.api:86
vl_api_sw_interface_set_l2_bridge_t::bd_id
u32 bd_id
Definition: l2.api:540
flow_classify.h
vl_api_classify_add_del_table_t::current_data_flag
u8 current_data_flag[default=0]
Definition: classify.api:58
vl_api_ip_source_and_port_range_check_add_del_t
Configure IP source and L4 port-range check.
Definition: ip.api:614
vl_api_vxlan_offload_rx_t
Offload vxlan rx request.
Definition: vxlan.api:191
VIRTIO_API_FLAG_GRO_COALESCE
@ VIRTIO_API_FLAG_GRO_COALESCE
Definition: virtio.api:62
vl_api_create_vhost_user_if_v2_t::enable_event_idx
bool enable_event_idx
Definition: vhost_user.api:110
POLICER_CLASSIFY_API_TABLE_L2
@ POLICER_CLASSIFY_API_TABLE_L2
Definition: classify.api:160
vl_api_app_namespace_add_del_t::secret
u64 secret
Definition: session.api:222
vl_api_sr_policy_add_t::fib_table
u32 fib_table
Definition: sr.api:84
vl_api_vxlan_gpe_add_del_tunnel_t::mcast_sw_if_index
vl_api_interface_index_t mcast_sw_if_index
Definition: vxlan_gpe.api:27
vl_api_sw_interface_clear_stats_t
Clear interface statistics.
Definition: interface.api:343
vl_api_bd_ip_mac_add_del_t::entry
vl_api_bd_ip_mac_t entry
Definition: l2.api:567
vl_api_ipsec_interface_add_del_spd_t
IPsec: Add/delete SPD from interface.
Definition: ipsec.api:50
vl_api_create_loopback_instance_t
Create loopback interface instance request.
Definition: interface.api:595
vl_api_virtio_pci_create_t
Initialize a new virtio pci interface with the given parameters.
Definition: virtio.api:33
vl_api_ioam_enable_t::pot_enable
bool pot_enable
Definition: ip.api:696
vl_api_classify_add_del_session_t::metadata
u32 metadata[default=0]
Definition: classify.api:129
vl_api_classify_session_dump_t_print
static void * vl_api_classify_session_dump_t_print(vl_api_classify_session_dump_t *mp, void *handle)
Definition: custom_dump.c:2227
vl_api_ip_table_flush_t_print
static void * vl_api_ip_table_flush_t_print(vl_api_ip_table_flush_t *mp, void *handle)
Definition: custom_dump.c:1034
vl_api_sw_interface_rx_placement_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:471
vl_api_sr_steering_add_del_t::is_del
bool is_del[default=false]
Definition: sr.api:167
TAP_API_FLAG_IN_ORDER
@ TAP_API_FLAG_IN_ORDER
Definition: tapv2.api:36
vl_api_sw_interface_virtio_pci_dump_t
Dump virtio pci interfaces request.
Definition: virtio.api:113
vl_api_sw_interface_set_mpls_enable_t_print
static void * vl_api_sw_interface_set_mpls_enable_t_print(vl_api_sw_interface_set_mpls_enable_t *mp, void *handle)
Definition: custom_dump.c:212
vl_api_sw_interface_set_vxlan_bypass_t_print
static void * vl_api_sw_interface_set_vxlan_bypass_t_print(vl_api_sw_interface_set_vxlan_bypass_t *mp, void *handle)
Definition: custom_dump.c:244
format_qos_source
u8 * format_qos_source(u8 *s, va_list *args)
format/unformat QoS source types
Definition: qos_types.c:27
vl_api_get_first_msg_id_t_print
static void * vl_api_get_first_msg_id_t_print(vl_api_get_first_msg_id_t *mp, void *handle)
Definition: custom_dump.c:2726
vl_api_sr_policy_add_t::bsid_addr
vl_api_ip6_address_t bsid_addr
Definition: sr.api:80
vec_add2
#define vec_add2(V, P, N)
Add N elements to end of vector V, return pointer to new elements in P.
Definition: vec.h:644
bd_id
u32 bd_id
Definition: gbp.api:188
vec_add1
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
Definition: vec.h:606
vl_api_want_interface_events_t::enable_disable
u32 enable_disable
Definition: interface.api:120
vl_api_ip_table_replace_end_t::table
vl_api_ip_table_t table
Definition: ip.api:107
vl_api_bond_create2_t::numa_only
bool numa_only
Definition: bond.api:98
vl_api_sw_interface_add_del_address_t_print
static void * vl_api_sw_interface_add_del_address_t_print(vl_api_sw_interface_add_del_address_t *mp, void *handle)
Definition: custom_dump.c:178
vl_api_create_subif_t
Definition: interface.api:508
vl_api_bridge_domain_add_del_t::forward
bool forward
Definition: l2.api:327
vl_api_mpls_table_dump_t
Dump MPLS fib table.
Definition: mpls.api:120
vl_api_l2_patch_add_del_t_print
static void * vl_api_l2_patch_add_del_t_print(vl_api_l2_patch_add_del_t *mp, void *handle)
Definition: custom_dump.c:1095
vl_api_policer_classify_set_interface_t::is_add
bool is_add
Definition: classify.api:153
vl_api_pg_enable_disable_t::is_enabled
bool is_enabled[default=true]
Definition: pg.api:95
vl_api_ip_source_and_port_range_check_interface_add_del_t::tcp_out_vrf_id
u32 tcp_out_vrf_id
Definition: ip.api:640
vl_api_input_acl_set_interface_t::ip6_table_index
u32 ip6_table_index
Definition: classify.api:418
vnet_get_main
vnet_main_t * vnet_get_main(void)
Definition: pnat_test_stubs.h:56
IF_STATUS_API_FLAG_ADMIN_UP
@ IF_STATUS_API_FLAG_ADMIN_UP
Definition: interface_types.api:22
vl_api_vxlan_gpe_add_del_tunnel_t
Definition: vxlan_gpe.api:21
vl_api_tap_create_v2_t::rx_ring_sz
u16 rx_ring_sz[default=256]
Definition: tapv2.api:78
vl_api_classify_session_dump_t::table_id
u32 table_id
Definition: classify.api:291
vl_api_vxlan_gpe_add_del_tunnel_t::local
vl_api_address_t local
Definition: vxlan_gpe.api:25
vl_api_ip_container_proxy_add_del_t
Definition: ip.api:580
vl_api_tap_create_v2_t::host_ip6_gw_set
bool host_ip6_gw_set
Definition: tapv2.api:89
vl_api_classify_set_interface_ip_table_t_print
static void * vl_api_classify_set_interface_ip_table_t_print(vl_api_classify_set_interface_ip_table_t *mp, void *handle)
Definition: custom_dump.c:1388
vl_api_sw_interface_set_bond_weight_t::weight
u32 weight
Definition: bond.api:347
vl_api_delete_vhost_user_if_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vhost_user.api:160
vl_api_delete_subif_t
Delete sub interface request.
Definition: interface.api:558
vl_api_sr_steering_add_del_t::sr_policy_index
u32 sr_policy_index
Definition: sr.api:169
vl_api_sw_interface_set_rx_placement_t
Set an interface's rx-placement Rx-Queue placement on specific thread is operational for only hardwar...
Definition: interface.api:451
vl_api_sr_steering_add_del_t::table_id
u32 table_id
Definition: sr.api:170
vl_api_sw_interface_span_enable_disable_t::is_l2
bool is_l2
Definition: span.api:43
vl_api_mpls_tunnel_dump_t_print
static void * vl_api_mpls_tunnel_dump_t_print(vl_api_mpls_tunnel_dump_t *mp, void *handle)
Definition: custom_dump.c:2162
vl_api_pg_capture_t::interface_id
vl_api_interface_index_t interface_id
Definition: pg.api:79
VIRTIO_API_FLAG_IN_ORDER
@ VIRTIO_API_FLAG_IN_ORDER
Definition: virtio.api:64
vl_api_l2_fib_table_dump_t_print
static void * vl_api_l2_fib_table_dump_t_print(vl_api_l2_fib_table_dump_t *mp, void *handle)
Definition: custom_dump.c:1724
format_vl_api_address
u8 * format_vl_api_address(u8 *s, va_list *args)
Definition: types.c:39
vl_api_flow_classify_dump_t
Get list of flow classify interfaces and tables.
Definition: classify.api:347
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
vl_api_policer_classify_set_interface_t_print
static void * vl_api_policer_classify_set_interface_t_print(vl_api_policer_classify_set_interface_t *mp, void *handle)
Definition: custom_dump.c:2107
vl_api_vxlan_tunnel_dump_t_print
static void * vl_api_vxlan_tunnel_dump_t_print(vl_api_vxlan_tunnel_dump_t *mp, void *handle)
Definition: custom_dump.c:1482
POLICER_CLASSIFY_API_TABLE_IP6
@ POLICER_CLASSIFY_API_TABLE_IP6
Definition: classify.api:159
vl_api_set_punt_t::is_add
bool is_add
Definition: punt.api:89
vl_api_pg_create_interface_t::interface_id
vl_api_interface_index_t interface_id
Definition: pg.api:36
vl_api_set_ipfix_exporter_t::collector_port
u16 collector_port
Definition: ipfix_export.api:36
vl_api_ipsec_spd_add_del_t::spd_id
u32 spd_id
Definition: ipsec.api:37
vl_api_l2_interface_pbb_tag_rewrite_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: l2.api:469
vl_api_create_subif_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:512
vl_api_sw_interface_vhost_user_dump_t_print
static void * vl_api_sw_interface_vhost_user_dump_t_print(vl_api_sw_interface_vhost_user_dump_t *mp, void *handle)
Definition: custom_dump.c:1693
vl_api_get_first_msg_id_t::name
string name[64]
Definition: memclnt.api:105
vl_api_classify_add_del_session_t::advance
i32 advance[default=0]
Definition: classify.api:127
vl_api_ipfix_classify_table_dump_t
IPFIX classify tables dump request.
Definition: ipfix_export.api:129
L2_VTR_DISABLED
@ L2_VTR_DISABLED
Definition: l2_vtr.h:30
vl_api_sw_interface_set_l2_bridge_t::rx_sw_if_index
vl_api_interface_index_t rx_sw_if_index
Definition: l2.api:539
SR_BEHAVIOR_DX6
#define SR_BEHAVIOR_DX6
Definition: sr.h:42
vl_api_sw_interface_clear_stats_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:347
SR_BEHAVIOR_END
#define SR_BEHAVIOR_END
Definition: sr.h:37
vl_api_modify_vhost_user_if_v2_t::is_server
bool is_server
Definition: vhost_user.api:144
vl_api_bridge_domain_add_del_t::uu_flood
bool uu_flood
Definition: l2.api:326
vl_api_pg_interface_enable_disable_coalesce_t::coalesce_enabled
bool coalesce_enabled
Definition: pg.api:63
vl_api_sw_interface_tag_add_del_t_print
static void * vl_api_sw_interface_tag_add_del_t_print(vl_api_sw_interface_tag_add_del_t *mp, void *handle)
Definition: custom_dump.c:2802
vl_api_classify_add_del_session_t::action
vl_api_classify_action_t action[default=0]
Definition: classify.api:128
ip_prefix_decode
void ip_prefix_decode(const vl_api_prefix_t *in, fib_prefix_t *out)
Definition: ip_types_api.c:259
vl_api_vxlan_gbp_tunnel_add_del_t_print
static void * vl_api_vxlan_gbp_tunnel_add_del_t_print(vl_api_vxlan_gbp_tunnel_add_del_t *mp, void *handle)
Definition: custom_dump.c:1494
vl_api_pg_enable_disable_t::stream_name
string stream_name[]
Definition: pg.api:96
vl_api_create_loopback_t
Create loopback interface request.
Definition: interface.api:569
vl_api_sr_localsid_add_del_t::fib_table
u32 fib_table
Definition: sr.api:62
vl_api_pg_capture_t
PacketGenerator capture packets on given interface request.
Definition: pg.api:75
vl_api_bridge_domain_set_mac_age_t
L2 bridge domain set mac age.
Definition: l2.api:272
vl_api_tap_create_v2_t::host_namespace
string host_namespace[64]
Definition: tapv2.api:93
vl_api_classify_set_interface_l2_tables_t_print
static void * vl_api_classify_set_interface_l2_tables_t_print(vl_api_classify_set_interface_l2_tables_t *mp, void *handle)
Definition: custom_dump.c:1404
QOS_POLICER_TYPE_1R2C
@ QOS_POLICER_TYPE_1R2C
Definition: xlate.h:32
l2_vtr.h
vl_api_sr_mpls_policy_add_t::n_segments
u8 n_segments
Definition: sr_mpls.api:37
QOS_ACTION_MARK_AND_TRANSMIT
@ QOS_ACTION_MARK_AND_TRANSMIT
Definition: police.h:31
vl_api_ipfix_classify_table_dump_t_print
static void * vl_api_ipfix_classify_table_dump_t_print(vl_api_ipfix_classify_table_dump_t *mp, void *handle)
Definition: custom_dump.c:2306
vl_api_app_namespace_add_del_t::namespace_id
string namespace_id[]
Definition: session.api:226
vl_api_classify_add_del_table_t::mask
u8 mask[mask_len]
Definition: classify.api:61
vl_api_create_vhost_user_if_t::tag
string tag[64]
Definition: vhost_user.api:48
vl_api_sw_interface_set_flags_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:39
vl_api_vxlan_tunnel_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vxlan.api:132
vl_api_add_node_next_t_print
static void * vl_api_add_node_next_t_print(vl_api_add_node_next_t *mp, void *handle)
Definition: custom_dump.c:1420
vl_api_ip_route_add_del_t::is_add
bool is_add[default=true]
Definition: ip.api:173
vl_api_set_ipfix_exporter_t::src_address
vl_api_address_t src_address
Definition: ipfix_export.api:37
vl_api_l2_fib_clear_table_t_print
static void * vl_api_l2_fib_clear_table_t_print(vl_api_l2_fib_clear_table_t *mp, void *handle)
Definition: custom_dump.c:1542
vl_api_ip_table_replace_end_t
IP table replace end.
Definition: ip.api:103
vl_api_sw_interface_add_del_address_t::del_all
bool del_all
Definition: interface.api:241
vl_api_classify_session_dump_t
Classify sessions dump request.
Definition: classify.api:287
vl_api_vxlan_offload_rx_t_print
static void * vl_api_vxlan_offload_rx_t_print(vl_api_vxlan_offload_rx_t *mp, void *handle)
Definition: custom_dump.c:1468
vl_api_classify_set_interface_l2_tables_t::other_table_index
u32 other_table_index
Definition: classify.api:397
vl_api_sr_steering_add_del_t_print
static void * vl_api_sr_steering_add_del_t_print(vl_api_sr_steering_add_del_t *mp, void *handle)
Definition: custom_dump.c:1192
vl_api_ipfix_classify_table_add_del_t::transport_protocol
vl_api_ip_proto_t transport_protocol
Definition: ipfix_export.api:121
vl_api_bridge_domain_add_del_t::bd_id
u32 bd_id
Definition: l2.api:324
SR_STEER_IPV4
#define SR_STEER_IPV4
Definition: sr_mpls.h:41
xlate.h
vl_api_policer_add_del_t::rate_type
vl_api_sse2_qos_rate_type_t rate_type
Definition: policer.api:83
VIRTIO_API_FLAG_GSO
@ VIRTIO_API_FLAG_GSO
Definition: virtio.api:60
vl_api_vxlan_gbp_tunnel_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Definition: vxlan_gbp.api:74
vl_api_sw_interface_set_rx_placement_t::queue_id
u32 queue_id
Definition: interface.api:456
foreach_ip_dscp
@ foreach_ip_dscp
Definition: ip_packet.h:118
i
sll srl srl sll sra u16x4 i
Definition: vector_sse42.h:261
QOS_ACTION_DROP
@ QOS_ACTION_DROP
Definition: police.h:29
vl_api_app_namespace_add_del_t_print
static void * vl_api_app_namespace_add_del_t_print(vl_api_app_namespace_add_del_t *mp, void *handle)
Definition: custom_dump.c:2869
node.h
vl_api_bridge_domain_add_del_t::bd_tag
string bd_tag[64]
Definition: l2.api:332
vl_api_pg_create_interface_t
PacketGenerator create interface request.
Definition: pg.api:32
vl_api_virtio_pci_delete_t
Delete virtio pci interface.
Definition: virtio.api:105
vl_api_sw_member_interface_dump_t_print
static void * vl_api_sw_member_interface_dump_t_print(vl_api_sw_member_interface_dump_t *mp, void *handle)
Definition: custom_dump.c:786
vl_api_sw_interface_set_l2_bridge_t::enable
bool enable[default=true]
Definition: l2.api:543
QOS_ROUND_TO_DOWN
@ QOS_ROUND_TO_DOWN
Definition: xlate.h:48
vl_api_l2_interface_vlan_tag_rewrite_t::tag2
u32 tag2
Definition: l2.api:450
vl_api_flow_classify_set_interface_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: classify.api:329
vl_api_sr_steering_add_del_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: sr.api:172
vl_api_sw_interface_dump_t_print
static void * vl_api_sw_interface_dump_t_print(vl_api_sw_interface_dump_t *mp, void *handle)
Definition: custom_dump.c:1705
vl_api_sr_localsid_add_del_t::end_psp
bool end_psp
Definition: sr.api:58
vl_api_feature_enable_disable_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: feature.api:35
vl_api_l2_interface_vlan_tag_rewrite_t_print
static void * vl_api_l2_interface_vlan_tag_rewrite_t_print(vl_api_l2_interface_vlan_tag_rewrite_t *mp, void *handle)
Definition: custom_dump.c:1568
vl_api_sw_interface_set_unnumbered_t
Set unnumbered interface add / del request.
Definition: interface.api:329
vl_api_ipsec_spd_add_del_t_print
static void * vl_api_ipsec_spd_add_del_t_print(vl_api_ipsec_spd_add_del_t *mp, void *handle)
Definition: custom_dump.c:2579
vl_api_set_ipfix_classify_stream_t
IPFIX classify stream configure request.
Definition: ipfix_export.api:82
src
vl_api_address_t src
Definition: gre.api:54
vl_api_l2_patch_add_del_t::tx_sw_if_index
vl_api_interface_index_t tx_sw_if_index
Definition: l2.api:490
vl_api_flow_classify_set_interface_t::ip6_table_index
u32 ip6_table_index
Definition: classify.api:331
vl_api_modify_vhost_user_if_t::renumber
bool renumber
Definition: vhost_user.api:79
vl_api_bond_add_member_t_print
static void * vl_api_bond_add_member_t_print(vl_api_bond_add_member_t *mp, void *handle)
Definition: custom_dump.c:735
vl_api_classify_set_interface_l2_tables_t::ip4_table_index
u32 ip4_table_index
Definition: classify.api:395
vl_api_bond_detach_member_t_print
static void * vl_api_bond_detach_member_t_print(vl_api_bond_detach_member_t *mp, void *handle)
Definition: custom_dump.c:763
vl_api_mpls_route_dump_t_print
static void * vl_api_mpls_route_dump_t_print(vl_api_mpls_route_dump_t *mp, void *handle)
Definition: custom_dump.c:2183
vl_api_qos_record_enable_disable_t
Enable/Disable QoS recording The QoS bits from the packet at the specified input layer are copied int...
Definition: qos.api:109
vl_api_l2_interface_pbb_tag_rewrite_t::i_sid
u32 i_sid
Definition: l2.api:475
vl_api_l2_fib_table_dump_t
Dump l2 fib (aka bridge domain) table.
Definition: l2.api:68
vl_api_l2_interface_vlan_tag_rewrite_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: l2.api:446
vl_api_vxlan_offload_rx_t::hw_if_index
vl_api_interface_index_t hw_if_index
Definition: vxlan.api:195
vl_api_sw_interface_set_rx_placement_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:455
vl_api_sw_interface_tag_add_del_t
Set / clear software interface tag.
Definition: interface.api:357
ip4_address_t
Definition: ip4_packet.h:50
vl_api_ioam_enable_t_print
static void * vl_api_ioam_enable_t_print(vl_api_ioam_enable_t *mp, void *handle)
Definition: custom_dump.c:2736
vl_api_sw_interface_dump_t::name_filter_valid
bool name_filter_valid
Definition: interface.api:222
vl_api_sw_interface_set_flags_t
Set flags on the interface.
Definition: interface.api:35
FLOW_CLASSIFY_API_TABLE_IP4
@ FLOW_CLASSIFY_API_TABLE_IP4
Definition: classify.api:337
vl_api_sw_interface_tag_add_del_t::tag
string tag[64]
Definition: interface.api:363
vl_api_virtio_pci_create_v2_t_print
static __clib_unused void * vl_api_virtio_pci_create_v2_t_print(vl_api_virtio_pci_create_v2_t *mp, void *handle)
Definition: custom_dump.c:623
vl_api_l2fib_flush_bd_t
L2 FIB flush bridge domain entries.
Definition: l2.api:100
FIB_PROTOCOL_IP4
@ FIB_PROTOCOL_IP4
Definition: fib_types.h:36
POLICER_CLASSIFY_API_TABLE_IP4
@ POLICER_CLASSIFY_API_TABLE_IP4
Definition: classify.api:158
vl_api_modify_vhost_user_if_v2_t_print
static void * vl_api_modify_vhost_user_if_v2_t_print(vl_api_modify_vhost_user_if_v2_t *mp, void *handle)
Definition: custom_dump.c:1659
vl_api_create_vhost_user_if_t_print
static void * vl_api_create_vhost_user_if_t_print(vl_api_create_vhost_user_if_t *mp, void *handle)
Definition: custom_dump.c:1584
vl_api_create_vhost_user_if_t::disable_indirect_desc
bool disable_indirect_desc
Definition: vhost_user.api:42
vpe_all_api_h.h
vl_api_l2_flags_t
Set interface L2 flags (such as L2_LEARN, L2_FWD, L2_FLOOD, L2_UU_FLOOD, or L2_ARP_TERM bits).
Definition: l2.api:245
vl_api_output_acl_set_interface_t_print
static void * vl_api_output_acl_set_interface_t_print(vl_api_output_acl_set_interface_t *mp, void *handle)
Definition: custom_dump.c:1918
vl_api_l2_interface_efp_filter_t
L2 interface ethernet flow point filtering enable/disable request.
Definition: l2.api:610
fib_api.h
vl_api_sr_mpls_policy_add_t::bsid
u32 bsid
Definition: sr_mpls.api:34
vl_api_bond_add_member_t::bond_sw_if_index
vl_api_interface_index_t bond_sw_if_index
Definition: bond.api:171
vl_api_flow_classify_set_interface_t::ip4_table_index
u32 ip4_table_index
Definition: classify.api:330
vl_api_interface_name_renumber_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:504
vl_api_l2fib_add_del_t::bd_id
u32 bd_id
Definition: l2.api:135
vl_api_af_packet_create_t::host_if_name
string host_if_name[64]
Definition: af_packet.api:35
fib_prefix_t_::fp_addr
ip46_address_t fp_addr
The address type is not deriveable from the fp_addr member.
Definition: fib_types.h:225
vl_api_policer_classify_dump_t::type
vl_api_policer_classify_table_t type
Definition: classify.api:174
vl_api_string_len
u32 vl_api_string_len(vl_api_string_t *astr)
Definition: api_shared.c:1184
vl_api_format_string
u8 * vl_api_format_string(u8 *s, va_list *args)
Definition: api_shared.c:1190
L2_LEARN
@ L2_LEARN
Definition: l2_bd.h:156
vl_api_delete_subif_t_print
static void * vl_api_delete_subif_t_print(vl_api_delete_subif_t *mp, void *handle)
Definition: custom_dump.c:1009
vl_api_feature_enable_disable_t_print
static void * vl_api_feature_enable_disable_t_print(vl_api_feature_enable_disable_t *mp, void *handle)
Definition: custom_dump.c:2772
l2_input.h
vl_api_create_vhost_user_if_t::sock_filename
string sock_filename[256]
Definition: vhost_user.api:39
vl_api_output_acl_set_interface_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: classify.api:438
vl_api_delete_loopback_t_print
static void * vl_api_delete_loopback_t_print(vl_api_delete_loopback_t *mp, void *handle)
Definition: custom_dump.c:94
vl_api_create_vhost_user_if_t::enable_gso
bool enable_gso
Definition: vhost_user.api:43
vl_api_input_acl_set_interface_t_print
static void * vl_api_input_acl_set_interface_t_print(vl_api_input_acl_set_interface_t *mp, void *handle)
Definition: custom_dump.c:1900
vl_api_vxlan_offload_rx_t::enable
bool enable[default=true]
Definition: vxlan.api:197
policer_classify.h
vl_api_bond_detach_member_t
bond detach member
Definition: bond.api:204
vl_api_set_punt_t::punt
vl_api_punt_t punt
Definition: punt.api:90
vl_api_vxlan_gpe_add_del_tunnel_t::encap_vrf_id
u32 encap_vrf_id
Definition: vxlan_gpe.api:28
vl_api_vxlan_add_del_tunnel_t
Create or delete a VXLAN tunnel.
Definition: vxlan.api:33
vl_api_l2_fib_table_dump_t::bd_id
u32 bd_id
Definition: l2.api:72
api_main_t
API main structure, used by both vpp and binary API clients.
Definition: api_common.h:228
vl_api_bond_detach_member_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: bond.api:208
vl_api_sr_policy_add_t
IPv6 SR policy add.
Definition: sr.api:76
vl_api_sw_interface_set_vxlan_gbp_bypass_t
Interface set vxlan-bypass request.
Definition: vxlan_gbp.api:92
vl_api_create_vlan_subif_t_print
static void * vl_api_create_vlan_subif_t_print(vl_api_create_vlan_subif_t *mp, void *handle)
Definition: custom_dump.c:959
vl_api_classify_add_del_table_t::nbuckets
u32 nbuckets[default=2]
Definition: classify.api:52
vl_api_sr_localsid_add_del_t::localsid
vl_api_ip6_address_t localsid
Definition: sr.api:57
vl_api_create_loopback_instance_t::user_instance
u32 user_instance
Definition: interface.api:601
format_vl_api_mac_address
u8 * format_vl_api_mac_address(u8 *s, va_list *args)
Definition: types.c:98
vl_api_classify_set_interface_ip_table_t::table_index
u32 table_index
Definition: classify.api:378
vl_api_classify_set_interface_l2_tables_t
Set/unset l2 classification tables for an interface request.
Definition: classify.api:389
vl_api_delete_loopback_t
Delete loopback interface request.
Definition: interface.api:621
vl_api_want_l2_macs_events_t::enable_disable
bool enable_disable[default=true]
Definition: l2.api:160
vl_api_create_vhost_user_if_v2_t::enable_gso
bool enable_gso
Definition: vhost_user.api:108
vl_api_mpls_route_add_del_t::mr_is_add
bool mr_is_add
Definition: mpls.api:166
vl_api_l2fib_add_del_t
L2 FIB add entry request.
Definition: l2.api:130
vl_api_sr_mpls_policy_del_t_print
static void * vl_api_sr_mpls_policy_del_t_print(vl_api_sr_mpls_policy_del_t *mp, void *handle)
Definition: custom_dump.c:930
vl_api_sw_interface_set_mpls_enable_t::enable
bool enable[default=true]
Definition: mpls.api:212
vl_api_policer_classify_set_interface_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: classify.api:149
vl_api_ioam_enable_t
IOAM enable : Enable in-band OAM.
Definition: ip.api:689
vl_api_set_ip_flow_hash_t::proto
bool proto
Definition: ip.api:303
vl_api_bond_create2_t::mac_address
vl_api_mac_address_t mac_address
Definition: bond.api:101
vl_api_sr_steering_add_del_t::bsid_addr
vl_api_ip6_address_t bsid_addr
Definition: sr.api:168
vl_api_bridge_domain_add_del_t::flood
bool flood
Definition: l2.api:325
vl_api_l2_flags_t::is_set
bool is_set
Definition: l2.api:250
vl_api_pg_create_interface_t::gso_size
u32 gso_size
Definition: pg.api:38
vl_api_bridge_domain_dump_t_print
static void * vl_api_bridge_domain_dump_t_print(vl_api_bridge_domain_dump_t *mp, void *handle)
Definition: custom_dump.c:344
TAP_API_FLAG_PACKED
@ TAP_API_FLAG_PACKED
Definition: tapv2.api:35
vl_api_policer_classify_set_interface_t::l2_table_index
u32 l2_table_index
Definition: classify.api:152
vnet_main_t
Definition: vnet.h:76
vl_api_create_subif_t::inner_vlan_id
u16 inner_vlan_id
Definition: interface.api:517
vec_free
#define vec_free(V)
Free vector's memory (no header).
Definition: vec.h:395
vl_api_l2fib_add_del_t::mac
vl_api_mac_address_t mac
Definition: l2.api:134
BRIDGE_API_FLAG_LEARN
@ BRIDGE_API_FLAG_LEARN
Definition: l2.api:397
vl_api_bond_create_t_print
static void * vl_api_bond_create_t_print(vl_api_bond_create_t *mp, void *handle)
Definition: custom_dump.c:676
vl_api_sw_interface_clear_stats_t_print
static void * vl_api_sw_interface_clear_stats_t_print(vl_api_sw_interface_clear_stats_t *mp, void *handle)
Definition: custom_dump.c:2150
vl_api_sw_interface_set_table_t::vrf_id
u32 vrf_id
Definition: interface.api:295
TAP_API_FLAG_ATTACH
@ TAP_API_FLAG_ATTACH
Definition: tapv2.api:32
vl_api_modify_vhost_user_if_t::custom_dev_instance
u32 custom_dev_instance
Definition: vhost_user.api:82
vl_api_create_vhost_user_if_v2_t::enable_packed
bool enable_packed
Definition: vhost_user.api:109
vl_api_tcp_configure_src_addresses_t::first_address
vl_api_address_t first_address
Definition: tcp.api:42
vl_api_cli_inband_t_print
static void * vl_api_cli_inband_t_print(vl_api_cli_inband_t *mp, void *handle)
Definition: custom_dump.c:1767
vl_api_tap_create_v2_t::tx_ring_sz
u16 tx_ring_sz[default=256]
Definition: tapv2.api:77
vl_api_virtio_pci_delete_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: virtio.api:109
vl_api_ipfix_classify_stream_dump_t_print
static void * vl_api_ipfix_classify_stream_dump_t_print(vl_api_ipfix_classify_stream_dump_t *mp, void *handle)
Definition: custom_dump.c:2282
vl_api_set_ip_flow_hash_t::vrf_id
u32 vrf_id
Definition: ip.api:297
vl_api_policer_add_del_t::round_type
vl_api_sse2_qos_round_type_t round_type
Definition: policer.api:84
vl_api_sw_interface_set_flags_t_print
static void * vl_api_sw_interface_set_flags_t_print(vl_api_sw_interface_set_flags_t *mp, void *handle)
Definition: custom_dump.c:105
vl_api_sw_interface_event_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:105
vl_api_classify_add_del_session_t::hit_next_index
u32 hit_next_index[default=0xffffffff]
Definition: classify.api:125
SR_STEER_IPV6
#define SR_STEER_IPV6
Definition: sr_mpls.h:42
L2_UU_FLOOD
@ L2_UU_FLOOD
Definition: l2_bd.h:159
vl_api_virtio_pci_create_t_print
static __clib_unused void * vl_api_virtio_pci_create_t_print(vl_api_virtio_pci_create_t *mp, void *handle)
Definition: custom_dump.c:600
vl_api_sr_mpls_policy_add_t_print
static void * vl_api_sr_mpls_policy_add_t_print(vl_api_sr_mpls_policy_add_t *mp, void *handle)
Definition: custom_dump.c:905
vl_api_mpls_tunnel_dump_t
Dump mpls eth tunnel table.
Definition: mpls.api:80
vl_api_control_ping_t
Control ping from client to api server request.
Definition: vpe.api:60
vl_api_set_ip_flow_hash_t::src
bool src
Definition: ip.api:299
ip_neighbor.h
vl_api_l2fib_flush_bd_t::bd_id
u32 bd_id
Definition: l2.api:104
vl_api_create_vhost_user_if_t::renumber
bool renumber
Definition: vhost_user.api:40
SR_BEHAVIOR_DX2
#define SR_BEHAVIOR_DX2
Definition: sr.h:41
vl_api_af_packet_create_t
Create host-interface.
Definition: af_packet.api:28
types.h
vl_api_pg_create_interface_t::gso_enabled
bool gso_enabled
Definition: pg.api:37
vl_api_bridge_domain_add_del_t_print
static void * vl_api_bridge_domain_add_del_t_print(vl_api_bridge_domain_add_del_t *mp, void *handle)
Definition: custom_dump.c:307
vl_api_show_version_t
show version
Definition: vpe.api:170
format_vlib_pci_addr
format_function_t format_vlib_pci_addr
Definition: pci.h:326
vl_api_l2fib_add_del_t::bvi_mac
bool bvi_mac
Definition: l2.api:140
vl_api_bond_add_member_t::is_passive
bool is_passive
Definition: bond.api:172
vl_api_interface_name_renumber_t_print
static void * vl_api_interface_name_renumber_t_print(vl_api_interface_name_renumber_t *mp, void *handle)
Definition: custom_dump.c:1871
vl_api_want_l2_macs_events_t::scan_delay
u8 scan_delay[default=10]
Definition: l2.api:158
vl_api_sw_interface_set_table_t::is_ipv6
bool is_ipv6
Definition: interface.api:294
format_fns.h
vl_api_flow_classify_set_interface_t_print
static void * vl_api_flow_classify_set_interface_t_print(vl_api_flow_classify_set_interface_t *mp, void *handle)
Definition: custom_dump.c:2660
vl_api_create_vhost_user_if_v2_t::sock_filename
string sock_filename[256]
Definition: vhost_user.api:104
format_vnet_sw_if_index_name
format_function_t format_vnet_sw_if_index_name
Definition: interface_funcs.h:455
vl_api_tap_create_v2_t::host_ip4_gw_set
bool host_ip4_gw_set
Definition: tapv2.api:87
vl_api_cli_t
Process a vpe parser cli string request.
Definition: vpe.api:85
vl_api_sr_policy_add_t::is_encap
bool is_encap
Definition: sr.api:82
vl_api_modify_vhost_user_if_v2_t::enable_event_idx
bool enable_event_idx
Definition: vhost_user.api:149
format
description fragment has unexpected format
Definition: map.api:433
vl_api_tap_create_v2_t::host_bridge_set
bool host_bridge_set
Definition: tapv2.api:96
vl_api_sw_interface_span_enable_disable_t::sw_if_index_to
vl_api_interface_index_t sw_if_index_to
Definition: span.api:41
L2_API_PORT_TYPE_BVI
@ L2_API_PORT_TYPE_BVI
Definition: l2.api:519
vl_api_bd_ip_mac_flush_t_print
static void * vl_api_bd_ip_mac_flush_t_print(vl_api_bd_ip_mac_flush_t *mp, void *handle)
Definition: custom_dump.c:493
vl_api_show_threads_t_print
static __clib_unused void * vl_api_show_threads_t_print(vl_api_show_threads_t *mp, void *handle)
Definition: custom_dump.c:1812
vl_api_sw_interface_set_rx_placement_t::is_main
bool is_main
Definition: interface.api:458
QOS_ACTION_TRANSMIT
@ QOS_ACTION_TRANSMIT
Definition: police.h:30
vl_api_modify_vhost_user_if_v2_t::renumber
bool renumber
Definition: vhost_user.api:146
format_ip46_address
format_function_t format_ip46_address
Definition: ip46_address.h:50
vl_api_output_acl_set_interface_t::ip6_table_index
u32 ip6_table_index
Definition: classify.api:440
vl_api_create_vhost_user_if_t::enable_packed
bool enable_packed
Definition: vhost_user.api:44
vl_api_ioam_enable_t::trace_enable
bool trace_enable
Definition: ip.api:697
vl_api_feature_gso_enable_disable_t
Enable or disable interface feature gso arc.
Definition: gso.api:26
vl_api_modify_vhost_user_if_v2_t::sock_filename
string sock_filename[256]
Definition: vhost_user.api:145
ip.h
vl_api_ip_source_and_port_range_check_add_del_t::is_add
bool is_add[default=true]
Definition: ip.api:618
u32
unsigned int u32
Definition: types.h:88
vl_api_qos_record_enable_disable_t_print
static void * vl_api_qos_record_enable_disable_t_print(vl_api_qos_record_enable_disable_t *mp, void *handle)
Definition: custom_dump.c:2921
vl_api_l2fib_add_del_t::is_add
bool is_add[default=true]
Definition: l2.api:137
vl_api_policer_dump_t_print
static void * vl_api_policer_dump_t_print(vl_api_policer_dump_t *mp, void *handle)
Definition: custom_dump.c:2095
QOS_ROUND_TO_UP
@ QOS_ROUND_TO_UP
Definition: xlate.h:47
vl_api_ipsec_spd_entry_add_del_t::entry
vl_api_ipsec_spd_entry_t entry
Definition: ipsec.api:127
vl_api_virtio_pci_delete_t_print
static __clib_unused void * vl_api_virtio_pci_delete_t_print(vl_api_virtio_pci_delete_t *mp, void *handle)
Definition: custom_dump.c:654
vl_api_vxlan_gpe_add_del_tunnel_t::vni
u32 vni
Definition: vxlan_gpe.api:31
vl_api_set_ipfix_exporter_t::template_interval
u32 template_interval
Definition: ipfix_export.api:40
vl_api_bond_create_t::lb
vl_api_bond_lb_algo_t lb
Definition: bond.api:65
vl_api_ip_address_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ip.api:466
vl_api_vxlan_gpe_tunnel_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vxlan_gpe.api:46
vl_api_policer_add_del_t::exceed_action
vl_api_sse2_qos_action_t exceed_action
Definition: policer.api:88
vl_api_feature_enable_disable_t
Feature path enable/disable request.
Definition: feature.api:32
vl_api_sr_mpls_policy_del_t
MPLS SR policy deletion.
Definition: sr_mpls.api:70
vl_api_l2_flags_t_print
static void * vl_api_l2_flags_t_print(vl_api_l2_flags_t *mp, void *handle)
Definition: custom_dump.c:423
IPSEC_API_PROTO_AH
@ IPSEC_API_PROTO_AH
Definition: ipsec_types.api:84
vl_api_modify_vhost_user_if_t::sock_filename
string sock_filename[256]
Definition: vhost_user.api:78
vl_api_feature_enable_disable_t::arc_name
string arc_name[64]
Definition: feature.api:37
vl_api_vxlan_add_del_tunnel_t::dst_address
vl_api_address_t dst_address
Definition: vxlan.api:40
vl_api_get_first_msg_id_t
Definition: memclnt.api:102
vl_api_sw_interface_set_vxlan_bypass_t::is_ipv6
bool is_ipv6
Definition: vxlan.api:180
vl_api_l2fib_flush_bd_t_print
static void * vl_api_l2fib_flush_bd_t_print(vl_api_l2fib_flush_bd_t *mp, void *handle)
Definition: custom_dump.c:369
vl_api_ioam_enable_t::seqno
bool seqno
Definition: ip.api:694
dst
vl_api_ip4_address_t dst
Definition: pnat.api:41
vl_api_policer_add_del_t::cir
u32 cir
Definition: policer.api:79
vl_api_bd_ip_mac_add_del_t::is_add
bool is_add[default=true]
Definition: l2.api:566
vl_api_sw_interface_set_l2_bridge_t
Interface bridge mode request.
Definition: l2.api:535
QOS_ROUND_TO_CLOSEST
@ QOS_ROUND_TO_CLOSEST
Definition: xlate.h:46
vl_api_policer_add_del_t::eb
u64 eb
Definition: policer.api:82
vl_api_sockclnt_create_t_print
static void * vl_api_sockclnt_create_t_print(vl_api_sockclnt_create_t *mp, void *handle)
Definition: custom_dump.c:1791
ethernet_types_api.h
vl_api_mpls_route_add_del_t::mr_route
vl_api_mpls_route_t mr_route
Definition: mpls.api:168
vl_api_l2_patch_add_del_t::rx_sw_if_index
vl_api_interface_index_t rx_sw_if_index
Definition: l2.api:489
policy_strs
static const char * policy_strs[]
Definition: custom_dump.c:2490
vl_api_sr_policy_add_t_print
static void * vl_api_sr_policy_add_t_print(vl_api_sr_policy_add_t *mp, void *handle)
Definition: custom_dump.c:1230
vl_api_sw_interface_span_dump_t
SPAN dump request.
Definition: span.api:51
vl_api_tap_create_v2_t::host_namespace_set
bool host_namespace_set
Definition: tapv2.api:92
TAP_API_FLAG_GRO_COALESCE
@ TAP_API_FLAG_GRO_COALESCE
Definition: tapv2.api:34
vl_api_sw_interface_event_t
Interface Event generated by want_interface_events.
Definition: interface.api:101
vl_api_vxlan_gbp_tunnel_dump_t_print
static void * vl_api_vxlan_gbp_tunnel_dump_t_print(vl_api_vxlan_gbp_tunnel_dump_t *mp, void *handle)
Definition: custom_dump.c:1516
vl_api_sw_interface_set_vxlan_bypass_t::enable
bool enable[default=true]
Definition: vxlan.api:181
vpe_msg_enum.h
vl_api_l2_interface_pbb_tag_rewrite_t::vtr_op
u32 vtr_op
Definition: l2.api:470
BRIDGE_API_FLAG_ARP_TERM
@ BRIDGE_API_FLAG_ARP_TERM
Definition: l2.api:401
vl_api_l2_interface_pbb_tag_rewrite_t
L2 interface pbb tag rewrite configure request.
Definition: l2.api:465
vec_foreach
#define vec_foreach(var, vec)
Vector iterator.
Definition: vec_bootstrap.h:213
vl_api_p2p_ethernet_del_t_print
static void * vl_api_p2p_ethernet_del_t_print(vl_api_p2p_ethernet_del_t *mp, void *handle)
Definition: custom_dump.c:2841
vl_api_bond_create2_t::id
u32 id[default=0xFFFFFFFF]
Definition: bond.api:102
pci.h
vl_api_bond_create2_t_print
static void * vl_api_bond_create2_t_print(vl_api_bond_create2_t *mp, void *handle)
Definition: custom_dump.c:699
vl_api_virtio_pci_create_t::checksum_offload_enabled
bool checksum_offload_enabled
Definition: virtio.api:42
vl_api_l2fib_flush_all_t
L2 FIB flush all entries.
Definition: l2.api:89
for
for(i=1;i<=collision_buckets;i++)
Definition: flowhash_template.h:378
vl_api_vxlan_add_del_tunnel_t::instance
u32 instance
Definition: vxlan.api:38
vl_api_delete_subif_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:561
vl_api_want_interface_events_t_print
static void * vl_api_want_interface_events_t_print(vl_api_want_interface_events_t *mp, void *handle)
Definition: custom_dump.c:1746
u32x4
unsigned long long u32x4
Definition: ixge.c:28
vl_api_ip_route_add_del_t::route
vl_api_ip_route_t route
Definition: ip.api:175
vl_api_output_acl_set_interface_t::l2_table_index
u32 l2_table_index
Definition: classify.api:441
vl_api_sw_interface_set_rx_placement_t_print
static __clib_unused void * vl_api_sw_interface_set_rx_placement_t_print(vl_api_sw_interface_set_rx_placement_t *mp, void *handle)
Definition: custom_dump.c:122
vl_api_bridge_flags_t::flags
vl_api_bd_flags_t flags
Definition: l2.api:418
vl_api_session_rule_add_del_t::appns_index
u32 appns_index
Definition: session.api:277
vl_api_modify_vhost_user_if_v2_t::custom_dev_instance
u32 custom_dev_instance
Definition: vhost_user.api:150
vl_api_tap_delete_v2_t_print
static void * vl_api_tap_delete_v2_t_print(vl_api_tap_delete_v2_t *mp, void *handle)
Definition: custom_dump.c:578
to_ip46
static ip46_address_t to_ip46(u32 is_ipv6, u8 *buf)
Definition: ip46_address.h:137
vl_api_policer_add_del_t
Add/del policer.
Definition: policer.api:72
TAP_API_FLAG_GSO
@ TAP_API_FLAG_GSO
Definition: tapv2.api:29
vl_api_session_rule_add_del_t_print
static void * vl_api_session_rule_add_del_t_print(vl_api_session_rule_add_del_t *mp, void *handle)
Definition: custom_dump.c:2883
vl_api_tap_create_v2_t::host_mac_addr
vl_api_mac_address_t host_mac_addr
Definition: tapv2.api:82
vl_api_bridge_flags_t::is_set
bool is_set
Definition: l2.api:417
fib_prefix_t_::fp_proto
fib_protocol_t fp_proto
protocol type
Definition: fib_types.h:211
vl_api_sr_steering_add_del_t
IPv6 SR steering add/del.
Definition: sr.api:163
vl_api_l2fib_add_del_t::static_mac
bool static_mac
Definition: l2.api:138
TAP_API_FLAG_TUN
@ TAP_API_FLAG_TUN
Definition: tapv2.api:33
vl_api_af_packet_dump_t
Dump af_packet interfaces request.
Definition: af_packet.api:76
vl_api_app_namespace_add_del_t
add/del application namespace
Definition: session.api:219
format_policer_action
static u8 * format_policer_action(u8 *s, va_list *va)
Definition: custom_dump.c:1995
vl_api_ip_dump_t::is_ipv6
bool is_ipv6
Definition: ip.api:502
vl_api_classify_add_del_table_t_print
static void * vl_api_classify_add_del_table_t_print(vl_api_classify_add_del_table_t *mp, void *handle)
Definition: custom_dump.c:1321
vl_api_sr_policy_mod_t::weight
u32 weight
Definition: sr.api:108
vl_api_tap_create_v2_t::host_ip4_prefix
vl_api_ip4_address_with_prefix_t host_ip4_prefix
Definition: tapv2.api:84
vl_api_from_api_to_new_vec
u8 * vl_api_from_api_to_new_vec(void *mp, vl_api_string_t *astr)
Definition: api_shared.c:1202
vl_api_modify_vhost_user_if_t::enable_packed
bool enable_packed
Definition: vhost_user.api:81
vl_api_create_vlan_subif_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:537
vl_api_bond_create2_t::lb
vl_api_bond_lb_algo_t lb
Definition: bond.api:97
vl_api_output_acl_set_interface_t::is_add
bool is_add
Definition: classify.api:442
vl_api_sw_interface_add_del_address_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:238
vl_api_sr_policy_add_t::weight
u32 weight
Definition: sr.api:81
vl_api_l2_flags_t::feature_bitmap
u32 feature_bitmap
Definition: l2.api:251
vl_api_create_vhost_user_if_v2_t::disable_indirect_desc
bool disable_indirect_desc
Definition: vhost_user.api:107
vl_api_session_rule_add_del_t::transport_proto
vl_api_transport_proto_t transport_proto
Definition: session.api:270
vl_api_classify_add_del_table_t::is_add
bool is_add
Definition: classify.api:49
vl_api_set_ipfix_exporter_t
Configure IPFIX exporter process request.
Definition: ipfix_export.api:31
vl_api_set_punt_t
Punt traffic to the host.
Definition: punt.api:86
clib_memset
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
vl_api_create_vhost_user_if_v2_t_print
static void * vl_api_create_vhost_user_if_v2_t_print(vl_api_create_vhost_user_if_v2_t *mp, void *handle)
Definition: custom_dump.c:1631
vl_api_pg_create_interface_t_print
static void * vl_api_pg_create_interface_t_print(vl_api_pg_create_interface_t *mp, void *handle)
Definition: custom_dump.c:2374
vl_api_policer_classify_set_interface_t::ip6_table_index
u32 ip6_table_index
Definition: classify.api:151
vl_api_ip_address_dump_t_print
static void * vl_api_ip_address_dump_t_print(vl_api_ip_address_dump_t *mp, void *handle)
Definition: custom_dump.c:1936
algo_strs
static const char * algo_strs[]
Definition: custom_dump.c:2497
vl_api_virtio_pci_create_v2_t::virtio_flags
vl_api_virtio_flags_t virtio_flags
Definition: virtio.api:84
vl_api_create_loopback_t::mac_address
vl_api_mac_address_t mac_address
Definition: interface.api:573
vl_api_ip_dump_t_print
static void * vl_api_ip_dump_t_print(vl_api_ip_dump_t *mp, void *handle)
Definition: custom_dump.c:1948
vl_api_control_ping_t_print
static void * vl_api_control_ping_t_print(vl_api_control_ping_t *mp, void *handle)
Definition: custom_dump.c:1736
vl_api_sr_policy_mod_t::sids
vl_api_srv6_sid_list_t sids
Definition: sr.api:109
vl_api_delete_vhost_user_if_t
vhost-user interface delete request
Definition: vhost_user.api:156
vl_api_af_packet_dump_t_print
static void * vl_api_af_packet_dump_t_print(vl_api_af_packet_dump_t *mp, void *handle)
Definition: custom_dump.c:1985
vl_api_mpls_tunnel_add_del_t_print
static void * vl_api_mpls_tunnel_add_del_t_print(vl_api_mpls_tunnel_add_del_t *mp, void *handle)
Definition: custom_dump.c:878
L2_API_PORT_TYPE_UU_FWD
@ L2_API_PORT_TYPE_UU_FWD
Definition: l2.api:522
vl_api_sw_interface_set_table_t
Associate the specified interface with a fib table.
Definition: interface.api:289
vl_api_classify_add_del_session_t::table_index
u32 table_index
Definition: classify.api:124
u8
unsigned char u8
Definition: types.h:56
vl_api_sw_interface_set_l2_xconnect_t
Set L2 XConnect between two interfaces request.
Definition: l2.api:501
vl_api_ip_source_and_port_range_check_add_del_t::number_of_ranges
u8 number_of_ranges
Definition: ip.api:620
vl_api_vxlan_gpe_tunnel_dump_t
Definition: vxlan_gpe.api:42
vl_api_l2fib_add_del_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: l2.api:136
vl_api_vxlan_offload_rx_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vxlan.api:196
vl_api_create_vhost_user_if_t
vhost-user interface create request
Definition: vhost_user.api:33
vl_api_l2_interface_pbb_tag_rewrite_t::outer_tag
u16 outer_tag
Definition: l2.api:471
unix.h
vl_api_sw_interface_set_vxlan_gbp_bypass_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vxlan_gbp.api:96
vl_api_session_rule_add_del_t::scope
vl_api_session_rule_scope_t scope
Definition: session.api:278
IPSEC_API_PROTO_ESP
@ IPSEC_API_PROTO_ESP
Definition: ipsec_types.api:83
vl_api_set_ipfix_classify_stream_t::src_port
u16 src_port
Definition: ipfix_export.api:86
vl_api_feature_enable_disable_t::feature_name
string feature_name[64]
Definition: feature.api:38
vl_api_sw_interface_set_table_t_print
static void * vl_api_sw_interface_set_table_t_print(vl_api_sw_interface_set_table_t *mp, void *handle)
Definition: custom_dump.c:194
format_ip6_address
format_function_t format_ip6_address
Definition: format.h:91
vl_api_sr_localsid_add_del_t_print
static void * vl_api_sr_localsid_add_del_t_print(vl_api_sr_localsid_add_del_t *mp, void *handle)
Definition: custom_dump.c:1112
vl_api_set_ipfix_exporter_t::path_mtu
u32 path_mtu
Definition: ipfix_export.api:39
vl_api_virtio_pci_create_t::mac_address
vl_api_mac_address_t mac_address
Definition: virtio.api:40
vl_api_bond_create_t
Initialize a new bond interface with the given paramters.
Definition: bond.api:56
vl_api_l2fib_flush_all_t_print
static void * vl_api_l2fib_flush_all_t_print(vl_api_l2fib_flush_all_t *mp, void *handle)
Definition: custom_dump.c:358
vl_api_ip_route_add_del_t
Add / del route request.
Definition: ip.api:169
vl_api_flow_classify_dump_t_print
static void * vl_api_flow_classify_dump_t_print(vl_api_flow_classify_dump_t *mp, void *handle)
Definition: custom_dump.c:2705
vl_api_bond_delete_t_print
static void * vl_api_bond_delete_t_print(vl_api_bond_delete_t *mp, void *handle)
Definition: custom_dump.c:724
vl_api_ipfix_exporter_dump_t
IPFIX exporter dump request.
Definition: ipfix_export.api:48
vl_api_ip_table_flush_t
IP table flush Flush a table of all routes.
Definition: ip.api:116
vl_api_tap_delete_v2_t
Delete tap interface.
Definition: tapv2.api:118
vl_api_ip_source_and_port_range_check_add_del_t_print
static void * vl_api_ip_source_and_port_range_check_add_del_t_print(vl_api_ip_source_and_port_range_check_add_del_t *mp, void *handle)
Definition: custom_dump.c:2434
vl_api_feature_gso_enable_disable_t_print
static void * vl_api_feature_gso_enable_disable_t_print(vl_api_feature_gso_enable_disable_t *mp, void *handle)
Definition: custom_dump.c:2787
SR_BEHAVIOR_DT4
#define SR_BEHAVIOR_DT4
Definition: sr.h:45
vl_api_l2_patch_add_del_t
L2 interface patch add / del request.
Definition: l2.api:485
vl_api_p2p_ethernet_add_t_print
static void * vl_api_p2p_ethernet_add_t_print(vl_api_p2p_ethernet_add_t *mp, void *handle)
Definition: custom_dump.c:2829
vl_api_ip_source_and_port_range_check_interface_add_del_t
Set interface source and L4 port-range request.
Definition: ip.api:633
vl_api_tap_create_v2_t::host_bridge
string host_bridge[64]
Definition: tapv2.api:97
vl_api_pg_capture_t::pcap_file_name
string pcap_file_name[]
Definition: pg.api:82
vl_api_mpls_tunnel_add_del_t::mt_tunnel
vl_api_mpls_tunnel_t mt_tunnel
Definition: mpls.api:59
format_bond_load_balance
static u8 * format_bond_load_balance(u8 *s, va_list *args)
Definition: node.h:477
vl_api_sw_interface_set_bond_weight_t_print
static void * vl_api_sw_interface_set_bond_weight_t_print(vl_api_sw_interface_set_bond_weight_t *mp, void *handle)
Definition: custom_dump.c:751
vl_api_ip_container_proxy_add_del_t_print
static __clib_unused void * vl_api_ip_container_proxy_add_del_t_print(vl_api_ip_container_proxy_add_del_t *mp, void *handle)
Definition: custom_dump.c:2910
vl_api_vxlan_add_del_tunnel_t::encap_vrf_id
u32 encap_vrf_id
Definition: vxlan.api:42
vl_api_sr_mpls_policy_add_t::is_spray
bool is_spray
Definition: sr_mpls.api:36
vl_api_sr_policy_add_t::is_spray
bool is_spray
Definition: sr.api:83
vl_api_create_loopback_instance_t::mac_address
vl_api_mac_address_t mac_address
Definition: interface.api:599
vl_api_tap_create_v2_t
Initialize a new tap interface with the given parameters.
Definition: tapv2.api:69
vl_api_ip_source_and_port_range_check_interface_add_del_t::is_add
bool is_add[default=true]
Definition: ip.api:637
vl_api_sr_policy_add_t::sids
vl_api_srv6_sid_list_t sids
Definition: sr.api:85
QOS_RATE_PPS
@ QOS_RATE_PPS
Definition: xlate.h:65
vl_api_output_acl_set_interface_t::ip4_table_index
u32 ip4_table_index
Definition: classify.api:439
vl_api_feature_gso_enable_disable_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: gso.api:30
vl_api_sw_interface_set_bond_weight_t
Interface set bond weight.
Definition: bond.api:342
vl_api_sw_interface_event_t::flags
vl_api_if_status_flags_t flags
Definition: interface.api:106
vl_api_ipfix_classify_table_add_del_t::table_id
u32 table_id
Definition: ipfix_export.api:119
vl_api_bridge_flags_t
Set bridge flags request.
Definition: l2.api:412
IP46_TYPE_ANY
@ IP46_TYPE_ANY
Definition: ip46_address.h:24
vl_api_classify_set_interface_ip_table_t
Set/unset the classification table for an interface request.
Definition: classify.api:372
vl_api_ip_table_flush_t::table
vl_api_ip_table_t table
Definition: ip.api:120
vl_api_hw_interface_set_mtu_t::mtu
u16 mtu
Definition: interface.api:68
vl_api_ipsec_interface_add_del_spd_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ipsec.api:56
vl_api_vxlan_add_del_tunnel_t::decap_next_index
u32 decap_next_index
Definition: vxlan.api:43
vl_api_sw_interface_set_table_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:293
vl_api_sw_interface_virtio_pci_dump_t_print
static __clib_unused void * vl_api_sw_interface_virtio_pci_dump_t_print(vl_api_sw_interface_virtio_pci_dump_t *mp, void *handle)
Definition: custom_dump.c:666
vl_api_vxlan_add_del_tunnel_t::is_add
bool is_add[default=true]
Definition: vxlan.api:37
vl_api_sr_policy_mod_t::operation
vl_api_sr_policy_op_t operation
Definition: sr.api:106
vl_api_mpls_route_add_del_t_print
static void * vl_api_mpls_route_add_del_t_print(vl_api_mpls_route_add_del_t *mp, void *handle)
Definition: custom_dump.c:814
vl_api_ip_source_and_port_range_check_add_del_t::high_ports
u16 high_ports[32]
Definition: ip.api:622
vl_api_sw_interface_event_t::deleted
bool deleted
Definition: interface.api:107
vl_api_modify_vhost_user_if_v2_t::enable_gso
bool enable_gso
Definition: vhost_user.api:147
vl_api_vxlan_gpe_add_del_tunnel_t_print
static void * vl_api_vxlan_gpe_add_del_tunnel_t_print(vl_api_vxlan_gpe_add_del_tunnel_t *mp, void *handle)
Definition: custom_dump.c:1822
vl_api_get_next_index_t::next_name
string next_name[64]
Definition: vpe.api:273
TAP_API_FLAG_PERSIST
@ TAP_API_FLAG_PERSIST
Definition: tapv2.api:31
vl_api_bridge_flags_t_print
static void * vl_api_bridge_flags_t_print(vl_api_bridge_flags_t *mp, void *handle)
Definition: custom_dump.c:450
vl_api_sw_interface_set_l2_xconnect_t_print
static void * vl_api_sw_interface_set_l2_xconnect_t_print(vl_api_sw_interface_set_l2_xconnect_t *mp, void *handle)
Definition: custom_dump.c:264
vnet.h
TAP_API_FLAG_CSUM_OFFLOAD
@ TAP_API_FLAG_CSUM_OFFLOAD
Definition: tapv2.api:30
vl_api_ip_address_dump_t::is_ipv6
bool is_ipv6
Definition: ip.api:467
vl_api_vxlan_tunnel_dump_t
Definition: vxlan.api:128
vl_api_ip_container_proxy_add_del_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: ip.api:585
vl_api_bd_ip_mac_add_del_t
Definition: l2.api:562
vl_api_flow_classify_dump_t::type
vl_api_flow_classify_table_t type
Definition: classify.api:350
vl_api_bd_ip_mac_dump_t
Dump bridge domain IP to MAC entries.
Definition: l2.api:597
vl_api_l2fib_add_del_t_print
static void * vl_api_l2fib_add_del_t_print(vl_api_l2fib_add_del_t *mp, void *handle)
Definition: custom_dump.c:393
proto
vl_api_ip_proto_t proto
Definition: acl_types.api:51
vl_api_set_ip_flow_hash_t_print
static void * vl_api_set_ip_flow_hash_t_print(vl_api_set_ip_flow_hash_t *mp, void *handle)
Definition: custom_dump.c:1061
vl_api_ip_table_replace_begin_t_print
static void * vl_api_ip_table_replace_begin_t_print(vl_api_ip_table_replace_begin_t *mp, void *handle)
Definition: custom_dump.c:1020
vl_api_tap_delete_v2_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: tapv2.api:122
vl_api_app_namespace_add_del_t::ip6_fib_id
u32 ip6_fib_id
Definition: session.api:225
vl_api_bond_add_member_t
Initialize a new bond interface with the given paramters.
Definition: bond.api:166
vl_api_sr_localsid_add_del_t
IPv6 SR LocalSID add/del request.
Definition: sr.api:52
vl_api_ip_source_and_port_range_check_add_del_t::prefix
vl_api_prefix_t prefix
Definition: ip.api:619
vl_api_sw_interface_set_l2_bridge_t::port_type
vl_api_l2_port_type_t port_type
Definition: l2.api:541
vl_api_pg_interface_enable_disable_coalesce_t_print
static void * vl_api_pg_interface_enable_disable_coalesce_t_print(vl_api_pg_interface_enable_disable_coalesce_t *mp, void *handle)
Definition: custom_dump.c:2419
vl_api_classify_add_del_session_t::is_add
bool is_add
Definition: classify.api:123
vl_api_sw_interface_add_del_address_t::prefix
vl_api_address_with_prefix_t prefix
Definition: interface.api:242
vl_api_ip_table_replace_begin_t
IP table replace being.
Definition: ip.api:88
format_bond_mode
static u8 * format_bond_mode(u8 *s, va_list *args)
Definition: node.h:445
vl_api_sockclnt_create_t::name
string name[64]
Definition: memclnt.api:160
vl_api_sw_interface_vhost_user_dump_t
Vhost-user interface dump request.
Definition: vhost_user.api:191
vl_api_set_ipfix_exporter_t::collector_address
vl_api_address_t collector_address
Definition: ipfix_export.api:35
vl_api_tap_create_v2_t::num_rx_queues
u8 num_rx_queues[default=1]
Definition: tapv2.api:76
vl_api_interface_name_renumber_t::new_show_dev_instance
u32 new_show_dev_instance
Definition: interface.api:505
vl_api_virtio_pci_create_v2_t
Initialize a new virtio pci interface with the given parameters.
Definition: virtio.api:77
SR_BEHAVIOR_DX4
#define SR_BEHAVIOR_DX4
Definition: sr.h:43
vl_api_sw_interface_set_vxlan_gbp_bypass_t::is_ipv6
bool is_ipv6
Definition: vxlan_gbp.api:97
action
vl_api_mac_event_action_t action
Definition: l2.api:211
vl_api_l2fib_flush_int_t_print
static void * vl_api_l2fib_flush_int_t_print(vl_api_l2fib_flush_int_t *mp, void *handle)
Definition: custom_dump.c:381
vl_api_want_l2_macs_events_t::learn_limit
u32 learn_limit[default=1000]
Definition: l2.api:157
vl_api_session_rule_add_del_t::lcl
vl_api_prefix_t lcl
Definition: session.api:271
sw_if_index
vl_api_interface_index_t sw_if_index
Definition: wireguard.api:34
format_vl_api_prefix_t
static u8 * format_vl_api_prefix_t(u8 *s, va_list *args)
Definition: ip_format_fns.h:77
vl_api_create_subif_t::sub_id
u32 sub_id
Definition: interface.api:513
vl_api_ipsec_spd_entry_add_del_t_print
static void * vl_api_ipsec_spd_entry_add_del_t_print(vl_api_ipsec_spd_entry_add_del_t *mp, void *handle)
Definition: custom_dump.c:2524
VIRTIO_API_FLAG_BUFFERING
@ VIRTIO_API_FLAG_BUFFERING
Definition: virtio.api:65
vl_api_qos_record_enable_disable_t::record
vl_api_qos_record_t record
Definition: qos.api:114
vl_api_cli_inband_t::cmd
string cmd[]
Definition: vpe.api:95
vl_api_vxlan_gpe_tunnel_dump_t_print
static void * vl_api_vxlan_gpe_tunnel_dump_t_print(vl_api_vxlan_gpe_tunnel_dump_t *mp, void *handle)
Definition: custom_dump.c:1859
vl_api_ip_source_and_port_range_check_interface_add_del_t::udp_out_vrf_id
u32 udp_out_vrf_id
Definition: ip.api:642
ip_types_api.h
L2_VTR_POP_2
@ L2_VTR_POP_2
Definition: l2_vtr.h:34
vl_api_want_l2_macs_events_t
Register to receive L2 MAC events for learned and aged MAC.
Definition: l2.api:152
vl_api_from_api_to_new_c_string
char * vl_api_from_api_to_new_c_string(vl_api_string_t *astr)
Definition: api_shared.c:1218
vl_api_set_ip_flow_hash_t::dport
bool dport
Definition: ip.api:302
BRIDGE_API_FLAG_FWD
@ BRIDGE_API_FLAG_FWD
Definition: l2.api:398
tuntap.h
Call from VLIB_INIT_FUNCTION to set the Linux kernel inject node name.
vl_api_sw_interface_vhost_user_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Definition: vhost_user.api:195
vl_api_memclnt_create_t_print
static void * vl_api_memclnt_create_t_print(vl_api_memclnt_create_t *mp, void *handle)
Definition: custom_dump.c:1781
vl_api_ipsec_sad_entry_add_del_t::entry
vl_api_ipsec_sad_entry_t entry
Definition: ipsec.api:198
vl_api_sw_interface_set_mpls_enable_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: mpls.api:211
vl_api_ip_table_add_del_t::is_add
bool is_add[default=true]
Definition: ip.api:56
QOS_POLICER_TYPE_2R3C_RFC_MEF5CF1
@ QOS_POLICER_TYPE_2R3C_RFC_MEF5CF1
Definition: xlate.h:36
vl_api_classify_add_del_table_t::miss_next_index
u32 miss_next_index[default=0xffffffff]
Definition: classify.api:57
vl_api_tap_create_v2_t::host_if_name
string host_if_name[64]
Definition: tapv2.api:95
fib_prefix_t_
Aggregate type for a prefix.
Definition: fib_types.h:202
vl_api_bridge_domain_set_mac_age_t::bd_id
u32 bd_id
Definition: l2.api:276
vl_api_p2p_ethernet_add_t
Create a point-to-point (p2p) Ethernet sub-interface.
Definition: p2p_ethernet.api:33
vl_api_policer_classify_dump_t_print
static void * vl_api_policer_classify_dump_t_print(vl_api_policer_classify_dump_t *mp, void *handle)
Definition: custom_dump.c:2126
dscp
vl_api_ip_dscp_t dscp
Definition: dhcp.api:163
PUNT_API_TYPE_L4
@ PUNT_API_TYPE_L4
Definition: punt.api:24
vl_api_sw_interface_set_vxlan_gbp_bypass_t_print
static void * vl_api_sw_interface_set_vxlan_gbp_bypass_t_print(vl_api_sw_interface_set_vxlan_gbp_bypass_t *mp, void *handle)
Definition: custom_dump.c:1528
vl_api_output_acl_set_interface_t
Set/unset output ACL interface.
Definition: classify.api:434
vl_api_policer_add_del_t::color_aware
bool color_aware
Definition: policer.api:86
vl_api_set_ipfix_exporter_t_print
static void * vl_api_set_ipfix_exporter_t_print(vl_api_set_ipfix_exporter_t *mp, void *handle)
Definition: custom_dump.c:2239
vl_api_ip_table_add_del_t
Add / del table request A table can be added multiple times, but need be deleted only once.
Definition: ip.api:52
vl_api_sockclnt_create_t
Definition: memclnt.api:158
vl_api_sw_interface_span_enable_disable_t
Enable/Disable span to mirror traffic from one interface to another.
Definition: span.api:37
vl_api_create_vlan_subif_t
Create a new subinterface with the given vlan id.
Definition: interface.api:533
vl_api_set_ip_flow_hash_t::reverse
bool reverse
Definition: ip.api:304
vl_api_vxlan_gpe_add_del_tunnel_t::remote
vl_api_address_t remote
Definition: vxlan_gpe.api:26
integ_strs
static const char * integ_strs[]
Definition: custom_dump.c:2513
vl_api_ipsec_interface_add_del_spd_t::is_add
bool is_add
Definition: ipsec.api:55
vl_api_hw_interface_set_mtu_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: interface.api:67
vl_api_ip_table_add_del_t_print
static void * vl_api_ip_table_add_del_t_print(vl_api_ip_table_add_del_t *mp, void *handle)
Definition: custom_dump.c:845
vl_api_ip_source_and_port_range_check_interface_add_del_t::udp_in_vrf_id
u32 udp_in_vrf_id
Definition: ip.api:641
vl_api_bridge_domain_add_del_t::learn
bool learn
Definition: l2.api:328
vl_api_sw_interface_set_unnumbered_t::is_add
bool is_add
Definition: interface.api:335
vl_api_sw_interface_set_vpath_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: l2.api:628
vl_api_mpls_tunnel_add_del_t::mt_is_add
bool mt_is_add[default=true]
Definition: mpls.api:58
vl_api_create_vhost_user_if_v2_t::tag
string tag[64]
Definition: vhost_user.api:114
vl_api_bond_add_member_t::is_long_timeout
bool is_long_timeout
Definition: bond.api:173
vl_api_get_next_index_t_print
static void * vl_api_get_next_index_t_print(vl_api_get_next_index_t *mp, void *handle)
Definition: custom_dump.c:2362
vl_api_classify_add_del_table_t::del_chain
bool del_chain
Definition: classify.api:50
vl_api_l2_flags_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: l2.api:249
vl_api_af_packet_create_t_print
static void * vl_api_af_packet_create_t_print(vl_api_af_packet_create_t *mp, void *handle)
Definition: custom_dump.c:1959
vl_api_classify_set_interface_ip_table_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: classify.api:377
vl_api_sw_interface_set_vpath_t_print
static void * vl_api_sw_interface_set_vpath_t_print(vl_api_sw_interface_set_vpath_t *mp, void *handle)
Definition: custom_dump.c:227
vl_api_sw_interface_rx_placement_dump_t_print
static void * vl_api_sw_interface_rx_placement_dump_t_print(vl_api_sw_interface_rx_placement_dump_t *mp, void *handle)
Definition: custom_dump.c:139
vl_api_tcp_configure_src_addresses_t::vrf_id
u32 vrf_id
Definition: tcp.api:41
vl_api_bridge_domain_dump_t
L2 bridge domain request operational state details.
Definition: l2.api:342
vl_api_l2_interface_vlan_tag_rewrite_t::tag1
u32 tag1
Definition: l2.api:449
vl_api_sw_interface_set_unnumbered_t::unnumbered_sw_if_index
vl_api_interface_index_t unnumbered_sw_if_index
Definition: interface.api:334
flags
vl_api_wireguard_peer_flags_t flags
Definition: wireguard.api:105