2 * Copyright (c) 2015-2016 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
18 This file defines vpe control-plane API messages which are generally
19 called through a shared memory interface.
23 * Note: API placement cleanup in progress
24 * If you're looking for interface APIs, please
25 * see .../vnet/vnet/{interface.api,interface_api.c}
28 /** \brief Initialize a new tap interface with the given paramters
29 @param client_index - opaque cookie to identify the sender
30 @param context - sender context, to match reply w/ request
31 @param use_random_mac - let the system generate a unique mac address
32 @param tap_name - name to associate with the new interface
33 @param mac_address - mac addr to assign to the interface if use_radom not set
43 u32 custom_dev_instance;
47 /** \brief Reply for tap connect request
48 @param context - returned sender context, to match reply w/ request
49 @param retval - return code
50 @param sw_if_index - software index allocated for the new tap interface
52 define tap_connect_reply
59 /** \brief Modify a tap interface with the given paramters
60 @param client_index - opaque cookie to identify the sender
61 @param context - sender context, to match reply w/ request
62 @param sw_if_index - interface index of existing tap interface
63 @param use_random_mac - let the system generate a unique mac address
64 @param tap_name - name to associate with the new interface
65 @param mac_address - mac addr to assign to the interface if use_radom not set
76 u32 custom_dev_instance;
79 /** \brief Reply for tap modify request
80 @param context - returned sender context, to match reply w/ request
81 @param retval - return code
82 @param sw_if_index - software index if the modified tap interface
84 define tap_modify_reply
91 /** \brief Delete tap interface
92 @param client_index - opaque cookie to identify the sender
93 @param context - sender context, to match reply w/ request
94 @param sw_if_index - interface index of existing tap interface
103 /** \brief Reply for tap delete request
104 @param context - returned sender context, to match reply w/ request
105 @param retval - return code
107 define tap_delete_reply
113 /** \brief Dump tap interfaces request */
114 define sw_interface_tap_dump
120 /** \brief Reply for tap dump request
121 @param sw_if_index - software index of tap interface
122 @param dev_name - Linux tap device name
124 define sw_interface_tap_details
131 /** \brief Create a new subinterface with the given vlan id
132 @param client_index - opaque cookie to identify the sender
133 @param context - sender context, to match reply w/ request
134 @param sw_if_index - software index of the new vlan's parent interface
135 @param vlan_id - vlan tag of the new interface
137 define create_vlan_subif
145 /** \brief Reply for the vlan subinterface create request
146 @param context - returned sender context, to match reply w/ request
147 @param retval - return code
148 @param sw_if_index - software index allocated for the new subinterface
150 define create_vlan_subif_reply
157 /** \brief Enable or Disable MPLS on and interface
158 @param client_index - opaque cookie to identify the sender
159 @param context - sender context, to match reply w/ request
160 @param sw_if_index - index of the interface
161 @param enable - if non-zero enable, else disable
163 define sw_interface_set_mpls_enable
171 /** \brief Reply for MPLS state on an interface
172 @param context - returned sender context, to match reply w/ request
173 @param retval - return code
175 define sw_interface_set_mpls_enable_reply
181 /** \brief MPLS Route Add / del route
182 @param client_index - opaque cookie to identify the sender
183 @param context - sender context, to match reply w/ request
184 @param mr_label - The MPLS label value
185 @param mr_eos - The End of stack bit
186 @param mr_table_id - The MPLS table-id the route is added in
187 @param mr_classify_table_index - If this is a classify route,
188 this is the classify table index
189 @param mr_create_table_if_needed - If the MPLS or IP tables do not exist,
191 @param mr_is_add - Is this a route add or delete
192 @param mr_is_classify - Is this route result a classify
193 @param mr_is_multipath - Is this route update a multipath - i.e. is this
194 a path addition to an existing route
195 @param mr_is_resolve_host - Recurse resolution constraint via a host prefix
196 @param mr_is_resolve_attached - Recurse resolution constraint via attached prefix
197 @param mr_next_hop_proto_is_ip4 - The next-hop is IPV4
198 @param mr_next_hop_weight - The weight, for UCMP
199 @param mr_next_hop[16] - the nextop address
200 @param mr_next_hop_sw_if_index - the next-hop SW interface
201 @param mr_next_hop_table_id - the next-hop table-id (if appropriate)
202 @param mr_next_hop_n_out_labels - the number of labels in the label stack
203 @param mr_next_hop_out_label_stack - the next-hop output label stack, outer most first
204 @param next_hop_via_label - The next-hop is a resolved via a local label
206 define mpls_route_add_del
213 u32 mr_classify_table_index;
214 u8 mr_create_table_if_needed;
218 u8 mr_is_resolve_host;
219 u8 mr_is_resolve_attached;
220 u8 mr_next_hop_proto_is_ip4;
221 u8 mr_next_hop_weight;
223 u8 mr_next_hop_n_out_labels;
224 u32 mr_next_hop_sw_if_index;
225 u32 mr_next_hop_table_id;
226 u32 mr_next_hop_via_label;
227 u32 mr_next_hop_out_label_stack[mr_next_hop_n_out_labels];
230 /** \brief Reply for MPLS route add / del request
231 @param context - returned sender context, to match reply w/ request
232 @param retval - return code
234 define mpls_route_add_del_reply
240 /** \brief Dump MPLS fib table
241 @param client_index - opaque cookie to identify the sender
250 @param sw_if_index - index of the interface
251 @param weight - The weight, for UCMP
252 @param is_local - local if non-zero, else remote
253 @param is_drop - Drop the packet
254 @param is_unreach - Drop the packet and rate limit send ICMP unreachable
255 @param is_prohibit - Drop the packet and rate limit send ICMP prohibited
256 @param afi - the afi of the next hop, IP46_TYPE_IP4=1, IP46_TYPE_IP6=2
257 @param next_hop[16] - the next hop address
259 typeonly manual_print manual_endian define fib_path
271 /** \brief mpls FIB table response
272 @param table_id - MPLS fib table id
273 @param s_bit - End-of-stack bit
274 @param label - MPLS label value
275 @param count - the number of fib_path in path
276 @param path - array of of fib_path structures
278 manual_endian manual_print define mpls_fib_details
285 vl_api_fib_path_t path[count];
288 /** \brief Dump IP6 fib table
289 @param client_index - opaque cookie to identify the sender
297 /** \brief IP6 FIB table response
298 @param table_id - IP6 fib table id
299 @address_length - mask length
300 @address - ip6 prefix
301 @param count - the number of fib_path in path
302 @param path - array of of fib_path structures
304 manual_endian manual_print define ip6_fib_details
311 vl_api_fib_path_t path[count];
314 /** \brief Dump IP fib table
315 @param client_index - opaque cookie to identify the sender
323 /** \brief IP FIB table response
324 @param table_id - IP fib table id
325 @address_length - mask length
326 @address - ip4 prefix
327 @param count - the number of fib_path in path
328 @param path - array of of fib_path structures
330 manual_endian manual_print define ip_fib_details
337 vl_api_fib_path_t path[count];
340 /** \brief Bind/Unbind an MPLS local label to an IP prefix. i.e. create
341 a per-prefix label entry.
342 @param client_index - opaque cookie to identify the sender
343 @param context - sender context, to match reply w/ request
344 @param mb_mpls_table_id - The MPLS table-id the MPLS entry will be added in
345 @param mb_label - The MPLS label value to bind
346 @param mb_ip_table_id - The IP table-id of the IP prefix to bind to.
347 @param mb_create_table_if_needed - Create either/both tables if required.
348 @param mb_is_bind - Bind or unbind
349 @param mb_is_ip4 - The prefix to bind to is IPv4
350 @param mb_address_length - Length of IP prefix
351 @param mb_address[16] - IP prefix/
353 define mpls_ip_bind_unbind
357 u32 mb_mpls_table_id;
360 u8 mb_create_table_if_needed;
363 u8 mb_address_length;
367 /** \brief Reply for MPLS IP bind/unbind request
368 @param context - returned sender context, to match reply w/ request
369 @param retval - return code
371 define mpls_ip_bind_unbind_reply
377 /** \brief MPLS tunnel Add / del route
378 @param client_index - opaque cookie to identify the sender
379 @param context - sender context, to match reply w/ request
380 @param mt_is_add - Is this a route add or delete
381 @param mt_sw_if_index - The SW interface index of the tunnel to delete
382 @param mt_next_hop_proto_is_ip4 - The next-hop is IPV4
383 @param mt_next_hop_weight - The weight, for UCMP
384 @param mt_next_hop[16] - the nextop address
385 @param mt_next_hop_sw_if_index - the next-hop SW interface
386 @param mt_next_hop_table_id - the next-hop table-id (if appropriate)
387 @param mt_next_hop_n_out_labels - the number of next-hop output labels
388 @param mt_next_hop_out_label_stack - the next-hop output label stack, outer most first
390 define mpls_tunnel_add_del
397 u8 mt_next_hop_proto_is_ip4;
398 u8 mt_next_hop_weight;
400 u8 mt_next_hop_n_out_labels;
401 u32 mt_next_hop_sw_if_index;
402 u32 mt_next_hop_table_id;
403 u32 mt_next_hop_out_label_stack[mt_next_hop_n_out_labels];
406 /** \brief Reply for MPLS tunnel add / del request
407 @param context - returned sender context, to match reply w/ request
408 @param retval - return code
409 @param sw_if_index - SW interface index of the tunnel created
411 define mpls_tunnel_add_del_reply
418 /** \brief Dump mpls eth tunnel table
419 @param client_index - opaque cookie to identify the sender
420 @param tunnel_index - eth tunnel identifier or -1 in case of all tunnels
422 define mpls_tunnel_dump
429 /** \brief mpls eth tunnel operational state response
430 @param tunnel_index - eth tunnel identifier
431 @param intfc_address - interface ipv4 addr
432 @param mask_width - interface ipv4 addr mask
433 @param hw_if_index - interface id
435 @param tunnel_dst_mac -
436 @param tx_sw_if_index -
437 @param encap_index - reference to mpls label table
438 @param nlabels - number of resolved labels
439 @param labels - resolved labels
441 define mpls_tunnel_details
447 u8 mt_next_hop_proto_is_ip4;
449 u32 mt_next_hop_sw_if_index;
450 u32 mt_next_hop_table_id;
451 u32 mt_next_hop_n_labels;
452 u32 mt_next_hop_out_labels[mt_next_hop_n_labels];
455 /** \brief Add / del route request
456 @param client_index - opaque cookie to identify the sender
457 @param context - sender context, to match reply w/ request
458 @param sw_if_index - software index of the new vlan's parent interface
459 @param vrf_id - fib table /vrf associated with the route
460 @param lookup_in_vrf -
461 @param classify_table_index -
462 @param create_vrf_if_needed -
463 @param is_add - 1 if adding the route, 0 if deleting
464 @param is_drop - Drop the packet
465 @param is_unreach - Drop the packet and rate limit send ICMP unreachable
466 @param is_prohibit - Drop the packet and rate limit send ICMP prohibited
467 @param is_ipv6 - 0 if an ip4 route, else ip6
470 @param is_multipath - Set to 1 if this is a multipath route, else 0
471 @param not_last - Is last or not last msg in group of multiple add/del msgs
472 @param next_hop_weight -
473 @param dst_address_length -
474 @param dst_address[16] -
475 @param next_hop_address[16] -
476 @param next_hop_n_out_labels - the number of labels in the label stack
477 @param next_hop_out_label_stack - the next-hop output label stack, outer most first
478 @param next_hop_via_label - The next-hop is a resolved via a local label
480 define ip_add_del_route
484 u32 next_hop_sw_if_index;
486 u32 classify_table_index;
487 u32 next_hop_table_id;
488 u8 create_vrf_if_needed;
498 u8 is_resolve_attached;
499 /* Is last/not-last message in group of multiple add/del messages. */
502 u8 dst_address_length;
504 u8 next_hop_address[16];
505 u8 next_hop_n_out_labels;
506 u32 next_hop_via_label;
507 u32 next_hop_out_label_stack[next_hop_n_out_labels];
510 /** \brief Reply for add / del route request
511 @param context - returned sender context, to match reply w/ request
512 @param retval - return code
514 define ip_add_del_route_reply
520 /** \brief Proxy ARP add / del request
521 @param client_index - opaque cookie to identify the sender
522 @param context - sender context, to match reply w/ request
523 @param vrf_id - VRF / Fib table ID
524 @param is_add - 1 if adding the Proxy ARP range, 0 if deleting
525 @param low_address[4] - Low address of the Proxy ARP range
526 @param hi_address[4] - High address of the Proxy ARP range
528 define proxy_arp_add_del
538 /** \brief Reply for proxy arp add / del request
539 @param context - returned sender context, to match reply w/ request
540 @param retval - return code
542 define proxy_arp_add_del_reply
548 /** \brief Proxy ARP add / del request
549 @param client_index - opaque cookie to identify the sender
550 @param context - sender context, to match reply w/ request
551 @param sw_if_index - Which interface to enable / disable Proxy Arp on
552 @param enable_disable - 1 to enable Proxy ARP on interface, 0 to disable
554 define proxy_arp_intfc_enable_disable
559 /* 1 = on, 0 = off */
563 /** \brief Reply for Proxy ARP interface enable / disable request
564 @param context - returned sender context, to match reply w/ request
565 @param retval - return code
567 define proxy_arp_intfc_enable_disable_reply
573 /** \brief IP neighbor add / del request
574 @param client_index - opaque cookie to identify the sender
575 @param context - sender context, to match reply w/ request
576 @param vrf_id - vrf_id, only for IP4
577 @param sw_if_index - interface used to reach neighbor
578 @param is_add - 1 to add neighbor, 0 to delete
579 @param is_ipv6 - 1 for IPv6 neighbor, 0 for IPv4
581 @param mac_address - l2 address of the neighbor
582 @param dst_address - ip4 or ip6 address of the neighbor
584 define ip_neighbor_add_del
588 u32 vrf_id; /* only makes sense for ip4 */
590 /* 1 = add, 0 = delete */
598 /** \brief Reply for IP Neighbor add / delete request
599 @param context - returned sender context, to match reply w/ request
600 @param retval - return code
602 define ip_neighbor_add_del_reply
608 /** \brief Reset VRF (remove all routes etc) request
609 @param client_index - opaque cookie to identify the sender
610 @param context - sender context, to match reply w/ request
611 @param is_ipv6 - 1 for IPv6 neighbor, 0 for IPv4
612 @param vrf_id - ID of th FIB table / VRF to reset
622 /** \brief Reply for Reset VRF request
623 @param context - returned sender context, to match reply w/ request
624 @param retval - return code
626 define reset_vrf_reply
632 /** \brief Is Address Reachable request - DISABLED
633 @param client_index - opaque cookie to identify the sender
634 @param context - sender context, to match reply w/ request
635 @param next_hop_sw_if_index - index of interface used to get to next hop
636 @param is_ipv6 - 1 for IPv6, 0 for IPv4
637 @param is_error - address not found or does not match intf
638 @param address[] - Address in question
640 define is_address_reachable
642 u32 client_index; /* (api_main_t *) am->my_client_index */
644 u32 next_hop_sw_if_index;
645 u8 is_known; /* on reply, this is the answer */
647 u8 is_error; /* address not found or does not match intf */
651 /** \brief Want Stats, register for stats updates
652 @param client_index - opaque cookie to identify the sender
653 @param context - sender context, to match reply w/ request
654 @param enable_disable - 1 = enable stats, 0 = disable
655 @param pid - pid of process requesting stats updates
665 /** \brief Reply for Want Stats request
666 @param context - returned sender context, to match reply w/ request
667 @param retval - return code
669 define want_stats_reply
675 typeonly manual_print manual_endian define ip4_fib_counter
683 manual_print manual_endian define vnet_ip4_fib_counters
687 vl_api_ip4_fib_counter_t c[count];
690 typeonly manual_print manual_endian define ip6_fib_counter
698 manual_print manual_endian define vnet_ip6_fib_counters
702 vl_api_ip6_fib_counter_t c[count];
705 /** \brief Request for a single block of summary stats
706 @param client_index - opaque cookie to identify the sender
707 @param context - sender context, to match reply w/ request
709 define vnet_get_summary_stats
715 /** \brief Reply for vnet_get_summary_stats request
716 @param context - sender context, to match reply w/ request
717 @param retval - return code for request
722 define vnet_summary_stats_reply
731 /** \brief OAM event structure
732 @param dst_address[] -
741 /** \brief Want OAM events request
742 @param client_index - opaque cookie to identify the sender
743 @param context - sender context, to match reply w/ request
744 @param enable_disable- enable if non-zero, else disable
745 @param pid - pid of the requesting process
747 define want_oam_events
755 /** \brief Want OAM events response
756 @param context - sender context, to match reply w/ request
757 @param retval - return code for the want oam stats request
759 define want_oam_events_reply
765 /** \brief OAM add / del target request
766 @param client_index - opaque cookie to identify the sender
767 @param context - sender context, to match reply w/ request
768 @param vrf_id - vrf_id of the target
769 @param src_address[] - source address to use for the updates
770 @param dst_address[] - destination address of the target
771 @param is_add - add target if non-zero, else delete
783 /** \brief OAM add / del target response
784 @param context - sender context, to match reply w/ request
785 @param retval - return code of the request
787 define oam_add_del_reply
793 /** \brief Reset fib table request
794 @param client_index - opaque cookie to identify the sender
795 @param context - sender context, to match reply w/ request
796 @param vrf_id - vrf/table id of the fib table to reset
797 @param is_ipv6 - an ipv6 fib to reset if non-zero, else ipv4
807 /** \brief Reset fib response
808 @param context - sender context, to match reply w/ request
809 @param retval - return code for the reset bfib request
811 define reset_fib_reply
817 /** \brief DHCP Proxy config add / del request
818 @param client_index - opaque cookie to identify the sender
819 @param context - sender context, to match reply w/ request
820 @param vrf_id - vrf id
821 @param if_ipv6 - ipv6 if non-zero, else ipv4
822 @param is_add - add the config if non-zero, else delete
823 @param insert_circuit_id - option82 suboption 1 fib number
824 @param dhcp_server[] - server address
825 @param dhcp_src_address[] - <fix this, need details>
827 define dhcp_proxy_config
834 u8 insert_circuit_id;
836 u8 dhcp_src_address[16];
839 /** \brief DHCP Proxy config response
840 @param context - sender context, to match reply w/ request
841 @param retval - return code for the request
843 define dhcp_proxy_config_reply
849 /** \brief DHCP Proxy set / unset vss request
850 @param client_index - opaque cookie to identify the sender
851 @param context - sender context, to match reply w/ request
852 @param tbl_id - table id
853 @param oui - first part of vpn id
854 @param fib_id - second part of vpn id
855 @param is_ipv6 - ip6 if non-zero, else ip4
856 @param is_add - set vss if non-zero, else delete
858 define dhcp_proxy_set_vss
869 /** \brief DHCP proxy set / unset vss response
870 @param context - sender context, to match reply w/ request
871 @param retval - return code for the request
873 define dhcp_proxy_set_vss_reply
879 /** \brief Set the ip flow hash config for a fib request
880 @param client_index - opaque cookie to identify the sender
881 @param context - sender context, to match reply w/ request
882 @param vrf_id - vrf/fib id
883 @param is_ipv6 - if non-zero the fib is ip6, else ip4
884 @param src - if non-zero include src in flow hash
885 @param dst - if non-zero include dst in flow hash
886 @param sport - if non-zero include sport in flow hash
887 @param dport - if non-zero include dport in flow hash
888 @param proto -if non-zero include proto in flow hash
889 @param reverse - if non-zero include reverse in flow hash
891 define set_ip_flow_hash
905 /** \brief Set the ip flow hash config for a fib response
906 @param context - sender context, to match reply w/ request
907 @param retval - return code for the request
909 define set_ip_flow_hash_reply
915 /** \brief IPv6 router advertisement config request
916 @param client_index - opaque cookie to identify the sender
917 @param context - sender context, to match reply w/ request
922 @param send_unicast -
925 @param default_router -
926 @param max_interval -
927 @param min_interval -
929 @param initial_count -
930 @param initial_interval -
932 define sw_interface_ip6nd_ra_config
949 u32 initial_interval;
952 /** \brief IPv6 router advertisement config response
953 @param context - sender context, to match reply w/ request
954 @param retval - return code for the request
956 define sw_interface_ip6nd_ra_config_reply
962 /** \brief IPv6 router advertisement prefix config request
963 @param client_index - opaque cookie to identify the sender
964 @param context - sender context, to match reply w/ request
967 @param address_length -
969 @param no_advertise -
971 @param no_autoconfig -
974 @param val_lifetime -
975 @param pref_lifetime -
977 define sw_interface_ip6nd_ra_prefix
994 /** \brief IPv6 router advertisement prefix config response
995 @param context - sender context, to match reply w/ request
996 @param retval - return code for the request
998 define sw_interface_ip6nd_ra_prefix_reply
1004 /** \brief IPv6 interface enable / disable request
1005 @param client_index - opaque cookie to identify the sender
1006 @param context - sender context, to match reply w/ request
1007 @param sw_if_index - interface used to reach neighbor
1008 @param enable - if non-zero enable ip6 on interface, else disable
1010 define sw_interface_ip6_enable_disable
1015 u8 enable; /* set to true if enable */
1018 /** \brief IPv6 interface enable / disable response
1019 @param context - sender context, to match reply w/ request
1020 @param retval - return code for the request
1022 define sw_interface_ip6_enable_disable_reply
1028 /** \brief IPv6 set link local address on interface request
1029 @param client_index - opaque cookie to identify the sender
1030 @param context - sender context, to match reply w/ request
1031 @param sw_if_index - interface to set link local on
1032 @param address[] - the new link local address
1033 @param address_length - link local address length
1035 define sw_interface_ip6_set_link_local_address
1044 /** \brief IPv6 set link local address on interface response
1045 @param context - sender context, to match reply w/ request
1046 @param retval - error code for the request
1048 define sw_interface_ip6_set_link_local_address_reply
1054 /** \brief Create loopback interface request
1055 @param client_index - opaque cookie to identify the sender
1056 @param context - sender context, to match reply w/ request
1057 @param mac_address - mac addr to assign to the interface if none-zero
1059 define create_loopback
1066 /** \brief Create loopback interface response
1067 @param context - sender context, to match reply w/ request
1068 @param sw_if_index - sw index of the interface that was created
1069 @param retval - return code for the request
1071 define create_loopback_reply
1078 /** \brief Delete loopback interface request
1079 @param client_index - opaque cookie to identify the sender
1080 @param context - sender context, to match reply w/ request
1081 @param sw_if_index - sw index of the interface that was created
1083 define delete_loopback
1090 /** \brief Delete loopback interface response
1091 @param context - sender context, to match reply w/ request
1092 @param retval - return code for the request
1094 define delete_loopback_reply
1100 /** \brief Control ping from client to api server request
1101 @param client_index - opaque cookie to identify the sender
1102 @param context - sender context, to match reply w/ request
1110 /** \brief Control ping from the client to the server response
1111 @param client_index - opaque cookie to identify the sender
1112 @param context - sender context, to match reply w/ request
1113 @param retval - return code for the request
1114 @param vpe_pid - the pid of the vpe, returned by the server
1116 define control_ping_reply
1124 /** \brief Process a vpe parser cli string request
1125 @param client_index - opaque cookie to identify the sender
1126 @param context - sender context, to match reply w/ request
1127 @param cmd_in_shmem - pointer to cli command string
1143 /** \brief vpe parser cli string response
1144 @param context - sender context, to match reply w/ request
1145 @param retval - return code for request
1146 @param reply_in_shmem - Reply string from cli processing if any
1154 define cli_inband_reply
1162 /** \brief Set max allowed ARP or ip6 neighbor entries request
1163 @param client_index - opaque cookie to identify the sender
1164 @param context - sender context, to match reply w/ request
1165 @param is_ipv6 - neighbor limit if non-zero, else ARP limit
1166 @param arp_neighbor_limit - the new limit, defaults are ~ 50k
1168 define set_arp_neighbor_limit
1173 u32 arp_neighbor_limit;
1176 /** \brief Set max allowed ARP or ip6 neighbor entries response
1177 @param context - sender context, to match reply w/ request
1178 @param retval - return code for request
1180 define set_arp_neighbor_limit_reply
1186 /** \brief L2 interface patch add / del request
1187 @param client_index - opaque cookie to identify the sender
1188 @param context - sender context, to match reply w/ request
1189 @param rx_sw_if_index - receive side interface
1190 @param tx_sw_if_index - transmit side interface
1191 @param is_add - if non-zero set up the interface patch, else remove it
1193 define l2_patch_add_del
1202 /** \brief L2 interface patch add / del response
1203 @param context - sender context, to match reply w/ request
1204 @param retval - return code for the request
1206 define l2_patch_add_del_reply
1212 /** \brief IPv6 segment routing tunnel add / del request
1213 @param client_index - opaque cookie to identify the sender
1214 @param context - sender context, to match reply w/ request
1215 @param is_add - add the tunnel if non-zero, else delete it
1216 @param name[] - tunnel name (len. 64)
1217 @param src_address[] -
1218 @param dst_address[] -
1219 @param dst_mask_width -
1220 @param inner_vrf_id -
1221 @param outer_vrf_id -
1222 @param flags_net_byte_order -
1225 @param segs_and_tags[] -
1226 @param policy_name[] - name of policy to associate this tunnel to (len. 64)
1228 define sr_tunnel_add_del
1239 u16 flags_net_byte_order;
1242 u8 segs_and_tags[0];
1246 /** \brief IPv6 segment routing tunnel add / del response
1247 @param context - sender context, to match reply w/ request
1248 @param retval - return value for request
1250 define sr_tunnel_add_del_reply
1256 /** \brief IPv6 segment routing policy add / del request
1257 @param client_index - opaque cookie to identify the sender
1258 @param context - sender context, to match reply w/ request
1259 @param is_add - add the tunnel if non-zero, else delete it
1260 @param name[] - policy name (len. 64)
1261 @param tunnel_names[] -
1263 define sr_policy_add_del
1272 /** \brief IPv6 segment routing policy add / del response
1273 @param context - sender context, to match reply w/ request
1274 @param retval - return value for request
1276 define sr_policy_add_del_reply
1282 /** \brief IPv6 segment routing multicast map to policy add / del request
1283 @param client_index - opaque cookie to identify the sender
1284 @param context - sender context, to match reply w/ request
1285 @param is_add - add the tunnel if non-zero, else delete it
1286 @param multicast_address[] - IP6 multicast address
1287 @param policy_name[] = policy name (len.64)
1289 define sr_multicast_map_add_del
1294 u8 multicast_address[16];
1298 /** \brief IPv6 segment routing multicast map to policy add / del response
1299 @param context - sender context, to match reply w/ request
1300 @param retval - return value for request
1302 define sr_multicast_map_add_del_reply
1308 /** \brief Interface set vpath request
1309 @param client_index - opaque cookie to identify the sender
1310 @param context - sender context, to match reply w/ request
1311 @param sw_if_index - interface used to reach neighbor
1312 @param enable - if non-zero enable, else disable
1314 define sw_interface_set_vpath
1322 /** \brief Interface set vpath response
1323 @param context - sender context, to match reply w/ request
1324 @param retval - return code for the request
1326 define sw_interface_set_vpath_reply
1332 /** \brief Interface set vxlan-bypass request
1333 @param client_index - opaque cookie to identify the sender
1334 @param context - sender context, to match reply w/ request
1335 @param sw_if_index - interface used to reach neighbor
1336 @param is_ipv6 - if non-zero, enable ipv6-vxlan-bypass, else ipv4-vxlan-bypass
1337 @param enable - if non-zero enable, else disable
1339 define sw_interface_set_vxlan_bypass
1348 /** \brief Interface set vxlan-bypass response
1349 @param context - sender context, to match reply w/ request
1350 @param retval - return code for the request
1352 define sw_interface_set_vxlan_bypass_reply
1358 /** \brief Set L2 XConnect between two interfaces request
1359 @param client_index - opaque cookie to identify the sender
1360 @param context - sender context, to match reply w/ request
1361 @param rx_sw_if_index - Receive interface index
1362 @param tx_sw_if_index - Transmit interface index
1363 @param enable - enable xconnect if not 0, else set to L3 mode
1365 define sw_interface_set_l2_xconnect
1374 /** \brief Set L2 XConnect response
1375 @param context - sender context, to match reply w/ request
1376 @param retval - L2 XConnect request return code
1378 define sw_interface_set_l2_xconnect_reply
1384 /** \brief Interface bridge mode request
1385 @param client_index - opaque cookie to identify the sender
1386 @param context - sender context, to match reply w/ request
1387 @param rx_sw_if_index - the interface
1388 @param bd_id - bridge domain id
1389 @param bvi - Setup interface as a bvi, bridge mode only
1390 @param shg - Shared horizon group, for bridge mode only
1391 @param enable - Enable beige mode if not 0, else set to L3 mode
1393 define sw_interface_set_l2_bridge
1404 /** \brief Interface bridge mode response
1405 @param context - sender context, to match reply w/ request
1406 @param retval - Bridge mode request return code
1408 define sw_interface_set_l2_bridge_reply
1414 /** \brief L2 FIB add entry request
1415 @param client_index - opaque cookie to identify the sender
1416 @param context - sender context, to match reply w/ request
1417 @param mac - the entry's mac address
1418 @param bd_id - the entry's bridge domain id
1419 @param sw_if_index - the interface
1420 @param is_add - If non zero add the entry, else delete it
1424 define l2fib_add_del
1437 /** \brief L2 FIB add entry response
1438 @param context - sender context, to match reply w/ request
1439 @param retval - return code for the add l2fib entry request
1441 define l2fib_add_del_reply
1447 /** \brief Set L2 flags request !!! TODO - need more info, feature bits in l2_input.h
1448 @param client_index - opaque cookie to identify the sender
1449 @param context - sender context, to match reply w/ request
1450 @param sw_if_index - interface
1451 @param is_set - if non-zero, set the bits, else clear them
1452 @param feature_bitmap - non-zero bits to set or clear
1463 /** \brief Set L2 bits response
1464 @param context - sender context, to match reply w/ request
1465 @param retval - return code for the set l2 bits request
1467 define l2_flags_reply
1471 u32 resulting_feature_bitmap;
1474 /** \brief Set bridge flags (such as L2_LEARN, L2_FWD, L2_FLOOD,
1475 L2_UU_FLOOD, or L2_ARP_TERM) request
1476 @param client_index - opaque cookie to identify the sender
1477 @param context - sender context, to match reply w/ request
1478 @param bd_id - the bridge domain to set the flags for
1479 @param is_set - if non-zero, set the flags, else clear them
1480 @param feature_bitmap - bits that are non-zero to set or clear
1491 /** \brief Set bridge flags response
1492 @param context - sender context, to match reply w/ request
1493 @param retval - return code for the set bridge flags request
1494 @param resulting_feature_bitmap - the feature bitmap value after the request is implemented
1496 define bridge_flags_reply
1500 u32 resulting_feature_bitmap;
1503 /** \brief Set bridge domain ip to mac entry request
1504 @param client_index - opaque cookie to identify the sender
1505 @param context - sender context, to match reply w/ request
1506 @param bd_id - the bridge domain to set the flags for
1507 @param is_add - if non-zero, add the entry, else clear it
1508 @param is_ipv6 - if non-zero, ipv6 address, else ipv4 address
1509 @param mac_address - MAC address
1512 define bd_ip_mac_add_del
1523 /** \brief Set bridge domain ip to mac entry response
1524 @param context - sender context, to match reply w/ request
1525 @param retval - return code for the set bridge flags request
1527 define bd_ip_mac_add_del_reply
1533 /** \brief Add/Delete classification table request
1534 @param client_index - opaque cookie to identify the sender
1535 @param context - sender context, to match reply w/ request
1536 @param is_add- if non-zero add the table, else delete it
1537 @param table_index - if add, reuturns index of the created table, else specifies the table to delete
1538 @param nbuckets - number of buckets when adding a table
1539 @param memory_size - memory size when adding a table
1540 @param match_n_vectors - number of match vectors
1541 @param next_table_index - index of next table
1542 @param miss_next_index - index of miss table
1543 @param current_data_flag - option to use current node's packet payload
1544 as the starting point from where packets are classified,
1545 This option is only valid for L2/L3 input ACL for now.
1546 0: by default, classify data from the buffer's start location
1547 1: classify packets from VPP node’s current data pointer
1548 @param current_data_offset - a signed value to shift the start location of
1549 the packet to be classified
1550 For example, if input IP ACL node is used, L2 header’s first byte
1551 can be accessible by configuring current_data_offset to -14
1552 if there is no vlan tag.
1553 This is valid only if current_data_flag is set to 1.
1554 @param mask[] - match mask
1556 define classify_add_del_table
1565 u32 match_n_vectors;
1566 u32 next_table_index;
1567 u32 miss_next_index;
1568 u32 current_data_flag;
1569 i32 current_data_offset;
1573 /** \brief Add/Delete classification table response
1574 @param context - sender context, to match reply w/ request
1575 @param retval - return code for the table add/del requst
1576 @param new_table_index - for add, returned index of the new table
1577 @param skip_n_vectors - for add, returned value of skip_n_vectors in table
1578 @param match_n_vectors -for add, returned value of match_n_vectors in table
1580 define classify_add_del_table_reply
1584 u32 new_table_index;
1586 u32 match_n_vectors;
1589 /** \brief Classify add / del session request
1590 @param client_index - opaque cookie to identify the sender
1591 @param context - sender context, to match reply w/ request
1592 @param is_add - add session if non-zero, else delete
1593 @param table_index - index of the table to add/del the session, required
1594 @param hit_next_index - for add, hit_next_index of new session, required
1595 @param opaque_index - for add, opaque_index of new session
1596 @param advance -for add, advance value for session
1598 0: no action (by default)
1599 metadata is not used.
1600 1: Classified IP packets will be looked up from the
1601 specified ipv4 fib table (configured by metadata as VRF id).
1602 Only valid for L3 input ACL node
1603 2: Classified IP packets will be looked up from the
1604 specified ipv6 fib table (configured by metadata as VRF id).
1605 Only valid for L3 input ACL node
1606 @param metadata - valid only if action != 0
1607 VRF id if action is 1 or 2.
1608 @param match[] - for add, match value for session, required
1610 define classify_add_del_session
1624 /** \brief Classify add / del session response
1625 @param context - sender context, to match reply w/ request
1626 @param retval - return code for the add/del session request
1628 define classify_add_del_session_reply
1634 /** \brief Set/unset the classification table for an interface request
1635 @param client_index - opaque cookie to identify the sender
1636 @param context - sender context, to match reply w/ request
1637 @param is_ipv6 - ipv6 if non-zero, else ipv4
1638 @param sw_if_index - interface to associate with the table
1639 @param table_index - index of the table, if ~0 unset the table
1641 define classify_set_interface_ip_table
1647 u32 table_index; /* ~0 => off */
1650 /** \brief Set/unset interface classification table response
1651 @param context - sender context, to match reply w/ request
1652 @param retval - return code
1654 define classify_set_interface_ip_table_reply
1660 /** \brief Set/unset l2 classification tables for an interface request
1661 @param client_index - opaque cookie to identify the sender
1662 @param context - sender context, to match reply w/ request
1663 @param sw_if_index - interface to set/unset tables for
1664 @param ip4_table_index - ip4 index, use ~0 for all 3 indexes to unset
1665 @param ip6_table_index - ip6 index
1666 @param other_table_index - other index
1668 define classify_set_interface_l2_tables
1674 u32 ip4_table_index;
1675 u32 ip6_table_index;
1676 u32 other_table_index;
1680 /** \brief Set/unset l2 classification tables for an interface response
1681 @param context - sender context, to match reply w/ request
1682 @param retval - return code for the request
1684 define classify_set_interface_l2_tables_reply
1690 /** \brief Get node index using name request
1691 @param client_index - opaque cookie to identify the sender
1692 @param context - sender context, to match reply w/ request
1693 @param node_name[] - name of the node
1695 define get_node_index
1702 /** \brief Get node index using name request
1703 @param context - sender context, to match reply w/ request
1704 @param retval - return code for the request
1705 @param node_index - index of the desired node if found, else ~0
1707 define get_node_index_reply
1714 /** \brief Set the next node for a given node request
1715 @param client_index - opaque cookie to identify the sender
1716 @param context - sender context, to match reply w/ request
1717 @param node_name[] - node to add the next node to
1718 @param next_name[] - node to add as the next node
1720 define add_node_next
1728 /** \brief IP Set the next node for a given node response
1729 @param context - sender context, to match reply w/ request
1730 @param retval - return code for the add next node request
1731 @param next_index - the index of the next node if success, else ~0
1733 define add_node_next_reply
1740 /** \brief DHCP Proxy config 2 add / del request
1741 @param client_index - opaque cookie to identify the sender
1742 @param context - sender context, to match reply w/ request
1743 @param rx_vrf_id - receive vrf id
1744 @param server_vrf_id - server vrf id
1745 @param if_ipv6 - ipv6 if non-zero, else ipv4
1746 @param is_add - add the config if non-zero, else delete
1747 @param insert_circuit_id - option82 suboption 1 fib number
1748 @param dhcp_server[] - server address
1749 @param dhcp_src_address[] - <fix this, need details>
1751 define dhcp_proxy_config_2
1759 u8 insert_circuit_id;
1761 u8 dhcp_src_address[16];
1764 /** \brief DHCP Proxy config 2 add / del response
1765 @param context - sender context, to match reply w/ request
1766 @param retval - return code for request
1768 define dhcp_proxy_config_2_reply
1774 /** \brief l2tpv3 tunnel interface create request
1775 @param client_index - opaque cookie to identify the sender
1776 @param context - sender context, to match reply w/ request
1777 @param client_address - remote client tunnel ip address
1778 @param client_address - local tunnel ip address
1779 @param is_ipv6 - ipv6 if non-zero, else ipv4
1780 @param local_session_id - local tunnel session id
1781 @param remote_session_id - remote tunnel session id
1782 @param local_cookie - local tunnel cookie
1783 @param l2_sublayer_present - l2 sublayer is present in packets if non-zero
1784 @param encap_vrf_id - fib identifier used for outgoing encapsulated packets
1786 define l2tpv3_create_tunnel
1790 u8 client_address[16];
1793 u32 local_session_id;
1794 u32 remote_session_id;
1797 u8 l2_sublayer_present;
1801 /** \brief l2tpv3 tunnel interface create response
1802 @param context - sender context, to match reply w/ request
1803 @param retval - return code for the request
1804 @param sw_if_index - index of the new tunnel interface
1806 define l2tpv3_create_tunnel_reply
1813 define l2tpv3_set_tunnel_cookies
1818 u64 new_local_cookie;
1819 u64 new_remote_cookie;
1822 /** \brief L2TP tunnel set cookies response
1823 @param context - sender context, to match reply w/ request
1824 @param retval - return code for the request
1826 define l2tpv3_set_tunnel_cookies_reply
1832 define sw_if_l2tpv3_tunnel_details
1836 u8 interface_name[64];
1837 u8 client_address[16];
1839 u32 local_session_id;
1840 u32 remote_session_id;
1841 u64 local_cookie[2];
1843 u8 l2_sublayer_present;
1846 define sw_if_l2tpv3_tunnel_dump
1852 /** \brief L2 fib clear table request, clear all mac entries in the l2 fib
1853 @param client_index - opaque cookie to identify the sender
1854 @param context - sender context, to match reply w/ request
1856 define l2_fib_clear_table
1862 /** \brief L2 fib clear table response
1863 @param context - sender context, to match reply w/ request
1864 @param retval - return code for the request
1866 define l2_fib_clear_table_reply
1872 /** \brief L2 interface ethernet flow point filtering enable/disable request
1873 @param client_index - opaque cookie to identify the sender
1874 @param context - sender context, to match reply w/ request
1875 @param sw_if_index - interface to enable/disable filtering on
1876 @param enable_disable - if non-zero enable filtering, else disable
1878 define l2_interface_efp_filter
1886 /** \brief L2 interface ethernet flow point filtering response
1887 @param context - sender context, to match reply w/ request
1888 @param retval - return code for the request
1890 define l2_interface_efp_filter_reply
1896 define l2tpv3_interface_enable_disable
1904 define l2tpv3_interface_enable_disable_reply
1910 define l2tpv3_set_lookup_key
1914 /* 0 = ip6 src_address, 1 = ip6 dst_address, 2 = session_id */
1918 define l2tpv3_set_lookup_key_reply
1924 define vxlan_add_del_tunnel
1932 u32 mcast_sw_if_index;
1934 u32 decap_next_index;
1938 define vxlan_add_del_tunnel_reply
1945 define vxlan_tunnel_dump
1952 define vxlan_tunnel_details
1958 u32 mcast_sw_if_index;
1960 u32 decap_next_index;
1965 define gre_add_del_tunnel
1977 define gre_add_del_tunnel_reply
1984 define gre_tunnel_dump
1991 define gre_tunnel_details
2002 /** \brief L2 interface vlan tag rewrite configure request
2003 @param client_index - opaque cookie to identify the sender
2004 @param context - sender context, to match reply w/ request
2005 @param sw_if_index - interface the operation is applied to
2006 @param vtr_op - Choose from l2_vtr_op_t enum values
2007 @param push_dot1q - first pushed flag dot1q id set, else dot1ad
2008 @param tag1 - Needed for any push or translate vtr op
2009 @param tag2 - Needed for any push 2 or translate x-2 vtr ops
2011 define l2_interface_vlan_tag_rewrite
2017 u32 push_dot1q; // ethertype of first pushed tag is dot1q/dot1ad
2018 u32 tag1; // first pushed tag
2019 u32 tag2; // second pushed tag
2022 /** \brief L2 interface vlan tag rewrite response
2023 @param context - sender context, to match reply w/ request
2024 @param retval - return code for the request
2026 define l2_interface_vlan_tag_rewrite_reply
2032 /** \brief vhost-user interface create request
2033 @param client_index - opaque cookie to identify the sender
2034 @param is_server - our side is socket server
2035 @param sock_filename - unix socket filename, used to speak with frontend
2036 @param use_custom_mac - enable or disable the use of the provided hardware address
2037 @param mac_address - hardware address to use if 'use_custom_mac' is set
2039 define create_vhost_user_if
2044 u8 sock_filename[256];
2046 u32 custom_dev_instance;
2052 /** \brief vhost-user interface create response
2053 @param context - sender context, to match reply w/ request
2054 @param retval - return code for the request
2055 @param sw_if_index - interface the operation is applied to
2057 define create_vhost_user_if_reply
2064 /** \brief vhost-user interface modify request
2065 @param client_index - opaque cookie to identify the sender
2066 @param is_server - our side is socket server
2067 @param sock_filename - unix socket filename, used to speak with frontend
2069 define modify_vhost_user_if
2075 u8 sock_filename[256];
2077 u32 custom_dev_instance;
2080 /** \brief vhost-user interface modify response
2081 @param context - sender context, to match reply w/ request
2082 @param retval - return code for the request
2084 define modify_vhost_user_if_reply
2090 /** \brief vhost-user interface delete request
2091 @param client_index - opaque cookie to identify the sender
2093 define delete_vhost_user_if
2100 /** \brief vhost-user interface delete response
2101 @param context - sender context, to match reply w/ request
2102 @param retval - return code for the request
2104 define delete_vhost_user_if_reply
2117 /* These fields map directly onto the subif template */
2121 u8 dot1ad; // 0 = dot1q, 1=dot1ad
2124 u8 outer_vlan_id_any;
2125 u8 inner_vlan_id_any;
2130 define create_subif_reply
2137 /** \brief show version
2138 @param client_index - opaque cookie to identify the sender
2139 @param context - sender context, to match reply w/ request
2147 /** \brief show version response
2148 @param context - sender context, to match reply w/ request
2149 @param retval - return code for the request
2150 @param program - name of the program (vpe)
2151 @param version - version of the program
2152 @param build_directory - root of the workspace where the program was built
2154 define show_version_reply
2161 u8 build_directory[256];
2164 /** \brief Vhost-user interface details structure (fix this)
2165 @param sw_if_index - index of the interface
2166 @param interface_name - name of interface
2167 @param virtio_net_hdr_sz - net header size
2168 @param features - interface features
2169 @param is_server - vhost-user server socket
2170 @param sock_filename - socket filename
2171 @param num_regions - number of used memory regions
2173 define sw_interface_vhost_user_details
2177 u8 interface_name[64];
2178 u32 virtio_net_hdr_sz;
2181 u8 sock_filename[256];
2187 define sw_interface_vhost_user_dump
2193 define ip_address_details
2201 define ip_address_dump
2222 /** \brief l2 fib table entry structure
2223 @param bd_id - the l2 fib / bridge domain table id
2224 @param mac - the entry's mac address
2225 @param sw_if_index - index of the interface
2226 @param static_mac - the entry is statically configured.
2227 @param filter_mac - the entry is a mac filter entry.
2228 @param bvi_mac - the mac address is a bridge virtual interface
2230 define l2_fib_table_entry
2241 /** \brief Dump l2 fib (aka bridge domain) table
2242 @param client_index - opaque cookie to identify the sender
2243 @param bd_id - the l2 fib / bridge domain table identifier
2245 define l2_fib_table_dump
2252 define vxlan_gpe_add_del_tunnel
2266 define vxlan_gpe_add_del_tunnel_reply
2273 define vxlan_gpe_tunnel_dump
2280 define vxlan_gpe_tunnel_details
2293 /** \brief add or delete locator_set
2294 @param client_index - opaque cookie to identify the sender
2295 @param context - sender context, to match reply w/ request
2296 @param is_add - add address if non-zero, else delete
2297 @param locator_set_name - locator name
2298 @param locator_num - number of locators
2299 @param locators - LISP locator records
2300 Structure of one locator record is as follows:
2308 define lisp_add_del_locator_set
2313 u8 locator_set_name[64];
2318 /** \brief Reply for locator_set add/del
2319 @param context - returned sender context, to match reply w/ request
2320 @param retval - return code
2321 @param ls_index - locator set index
2323 define lisp_add_del_locator_set_reply
2330 /** \brief add or delete locator for locator_set
2331 @param client_index - opaque cookie to identify the sender
2332 @param context - sender context, to match reply w/ request
2333 @param is_add - add address if non-zero, else delete
2334 @param locator_set_name - name of locator_set to add/del locator
2335 @param sw_if_index - index of the interface
2336 @param priority - priority of the lisp locator
2337 @param weight - weight of the lisp locator
2339 define lisp_add_del_locator
2344 u8 locator_set_name[64];
2350 /** \brief Reply for locator add/del
2351 @param context - returned sender context, to match reply w/ request
2352 @param retval - return code
2354 define lisp_add_del_locator_reply
2360 /** \brief add or delete lisp eid-table
2361 @param client_index - opaque cookie to identify the sender
2362 @param context - sender context, to match reply w/ request
2363 @param is_add - add address if non-zero, else delete
2368 @param eid - EID can be ip4, ip6 or mac
2369 @param prefix_len - prefix len
2370 @param locator_set_name - name of locator_set to add/del eid-table
2371 @param vni - virtual network instance
2373 define lisp_add_del_local_eid
2381 u8 locator_set_name[64];
2385 /** \brief Reply for local_eid add/del
2386 @param context - returned sender context, to match reply w/ request
2387 @param retval - return code
2389 define lisp_add_del_local_eid_reply
2395 /** \brief add or delete lisp gpe tunnel
2396 @param client_index - opaque cookie to identify the sender
2397 @param context - sender context, to match reply w/ request
2398 @param is_add - add address if non-zero, else delete
2403 @param rmt_eid - remote eid
2404 @param lcl_eid - local eid
2405 @param rmt_len - remote prefix len
2406 @param lcl_len - local prefix len
2407 @param vni - virtual network identifier
2408 @param dp_table - vrf/bridge domain id
2409 @param loc_num - number of locators
2410 @param lcl_locs - array of local locators
2411 @param rmt_locs - array of remote locators
2412 @param action - negative action when 0 locators configured
2414 define lisp_gpe_add_del_fwd_entry
2427 u8 lcl_locs[loc_num];
2428 u8 rmt_locs[loc_num];
2432 /** \brief Reply for gpe_fwd_entry add/del
2433 @param context - returned sender context, to match reply w/ request
2434 @param retval - return code
2436 define lisp_gpe_add_del_fwd_entry_reply
2442 /** \brief add or delete map-resolver
2443 @param client_index - opaque cookie to identify the sender
2444 @param context - sender context, to match reply w/ request
2445 @param is_add - add address if non-zero, else delete
2446 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
2447 @param ip_address - array of address bytes
2449 define lisp_add_del_map_resolver
2458 /** \brief Reply for map_resolver add/del
2459 @param context - returned sender context, to match reply w/ request
2460 @param retval - return code
2462 define lisp_add_del_map_resolver_reply
2468 /** \brief enable or disable lisp-gpe protocol
2469 @param client_index - opaque cookie to identify the sender
2470 @param context - sender context, to match reply w/ request
2471 @param is_en - enable protocol if non-zero, else disable
2473 define lisp_gpe_enable_disable
2480 /** \brief Reply for gpe enable/disable
2481 @param context - returned sender context, to match reply w/ request
2482 @param retval - return code
2484 define lisp_gpe_enable_disable_reply
2490 /** \brief enable or disable LISP feature
2491 @param client_index - opaque cookie to identify the sender
2492 @param context - sender context, to match reply w/ request
2493 @param is_en - enable protocol if non-zero, else disable
2495 define lisp_enable_disable
2502 /** \brief Reply for gpe enable/disable
2503 @param context - returned sender context, to match reply w/ request
2504 @param retval - return code
2506 define lisp_enable_disable_reply
2512 /** \brief add or delete gpe_iface
2513 @param client_index - opaque cookie to identify the sender
2514 @param context - sender context, to match reply w/ request
2515 @param is_add - add address if non-zero, else delete
2517 define lisp_gpe_add_del_iface
2527 /** \brief Reply for gpe_iface add/del
2528 @param context - returned sender context, to match reply w/ request
2529 @param retval - return code
2531 define lisp_gpe_add_del_iface_reply
2537 /** \brief configure or disable LISP PITR node
2538 @param client_index - opaque cookie to identify the sender
2539 @param context - sender context, to match reply w/ request
2540 @param ls_name - locator set name
2541 @param is_add - add locator set if non-zero, else disable pitr
2543 define lisp_pitr_set_locator_set
2551 /** \brief Reply for lisp_pitr_set_locator_set
2552 @param context - returned sender context, to match reply w/ request
2553 @param retval - return code
2555 define lisp_pitr_set_locator_set_reply
2561 /** \brief set LISP map-request mode. Based on configuration VPP will send
2562 src/dest or just normal destination map requests.
2563 @param client_index - opaque cookie to identify the sender
2564 @param context - sender context, to match reply w/ request
2565 @param mode - new map-request mode. Supported values are:
2566 0 - destination only
2567 1 - source/destaination
2569 define lisp_map_request_mode
2576 /** \brief Reply for lisp_map_request_mode
2577 @param context - returned sender context, to match reply w/ request
2578 @param retval - return code
2580 define lisp_map_request_mode_reply
2586 /** \brief Request for LISP map-request mode
2587 @param client_index - opaque cookie to identify the sender
2588 @param context - sender context, to match reply w/ request
2590 define show_lisp_map_request_mode
2596 /** \brief Reply for show_lisp_map_request_mode
2597 @param context - returned sender context, to match reply w/ request
2598 @param retval - return code
2599 @param mode - map-request mode
2601 define show_lisp_map_request_mode_reply
2608 /** \brief add or delete remote static mapping
2609 @param client_index - opaque cookie to identify the sender
2610 @param context - sender context, to match reply w/ request
2611 @param is_add - add address if non-zero, else delete
2612 @param is_src_dst - flag indicating src/dst based routing policy
2613 @param del_all - if set, delete all remote mappings
2614 @param vni - virtual network instance
2615 @param action - negative map-reply action
2620 @param deid - dst EID
2621 @param seid - src EID, valid only if is_src_dst is enabled
2622 @param rloc_num - number of remote locators
2623 @param rlocs - remote locator records
2624 Structure of remote locator:
2633 define lisp_add_del_remote_mapping
2651 /** \brief Reply for lisp_add_del_remote_mapping
2652 @param context - returned sender context, to match reply w/ request
2653 @param retval - return code
2655 define lisp_add_del_remote_mapping_reply
2661 /** \brief add or delete LISP adjacency adjacency
2662 @param client_index - opaque cookie to identify the sender
2663 @param context - sender context, to match reply w/ request
2664 @param is_add - add address if non-zero, else delete
2665 @param vni - virtual network instance
2670 @param reid - remote EID
2671 @param leid - local EID
2673 define lisp_add_del_adjacency
2686 /** \brief Reply for lisp_add_del_adjacency
2687 @param context - returned sender context, to match reply w/ request
2688 @param retval - return code
2690 define lisp_add_del_adjacency_reply
2696 /** \brief add or delete map request itr rlocs
2697 @param client_index - opaque cookie to identify the sender
2698 @param context - sender context, to match reply w/ request
2699 @param is_add - add address if non-zero, else delete
2700 @param locator_set_name - locator set name
2702 define lisp_add_del_map_request_itr_rlocs
2707 u8 locator_set_name[64];
2710 /** \brief Reply for lisp_add_del_map_request_itr_rlocs
2711 @param context - returned sender context, to match reply w/ request
2712 @param retval - return code
2715 define lisp_add_del_map_request_itr_rlocs_reply
2721 /** \brief map/unmap vni/bd_index to vrf
2722 @param client_index - opaque cookie to identify the sender
2723 @param context - sender context, to match reply w/ request
2724 @param is_add - add or delete mapping
2725 @param dp_table - virtual network id/bridge domain index
2728 define lisp_eid_table_add_del_map
2738 /** \brief Reply for lisp_eid_table_add_del_map
2739 @param context - returned sender context, to match reply w/ request
2740 @param retval - return code
2742 define lisp_eid_table_add_del_map_reply
2748 /** \brief Request for map lisp locator status
2749 @param client_index - opaque cookie to identify the sender
2750 @param context - sender context, to match reply w/ request
2751 @param locator_set_index - index of locator_set
2752 @param ls_name - locator set name
2753 @param is_index_set - flag indicating whether ls_name or ls_index is set
2755 define lisp_locator_dump
2764 /** \brief LISP locator_set status
2765 @param local - if is set, then locator is local
2766 @param locator_set_name - name of the locator_set
2767 @param sw_if_index - sw_if_index of the locator
2768 @param priority - locator priority
2769 @param weight - locator weight
2771 define lisp_locator_details
2782 /** \brief LISP locator_set status
2783 @param context - sender context, to match reply w/ request
2784 @param ls_index - locator set index
2785 @param ls_name - name of the locator set
2787 define lisp_locator_set_details
2794 /** \brief Request for locator_set summary status
2795 @param client_index - opaque cookie to identify the sender
2796 @param context - sender context, to match reply w/ request
2797 @param filter - filter type
2800 1: local locator sets
2801 2: remote locator sets
2803 define lisp_locator_set_dump
2810 /** \brief Dump lisp eid-table
2811 @param client_index - opaque cookie to identify the sender
2812 @param context - sender context, to match reply w/ request
2813 @param locator_set_index - index of locator_set, if ~0 then the mapping
2815 @param action - negative map request action
2816 @param is_local - local if non-zero, else remote
2821 @param is_src_dst - EID is type of source/destination
2822 @param eid - EID can be ip4, ip6 or mac
2823 @param eid_prefix_len - prefix length
2824 @param seid - source EID can be ip4, ip6 or mac
2825 @param seid_prefix_len - source prefix length
2826 @param vni - virtual network instance
2827 @param ttl - time to live
2828 @param authoritative - authoritative
2831 define lisp_eid_table_details
2834 u32 locator_set_index;
2848 /** \brief Request for eid table summary status
2849 @param client_index - opaque cookie to identify the sender
2850 @param context - sender context, to match reply w/ request
2851 @param eid_set - if non-zero request info about specific mapping
2852 @param vni - virtual network instance; valid only if eid_set != 0
2853 @param prefix_length - prefix length if EID is IP address;
2854 valid only if eid_set != 0
2855 @param eid_type - EID type; valid only if eid_set != 0
2859 2: EID is ethernet address
2860 @param eid - endpoint identifier
2861 @param filter - filter type;
2867 define lisp_eid_table_dump
2879 /** \brief LISP adjacency
2884 @param reid - remote EID
2885 @param leid - local EID
2886 @param reid_prefix_len - remote EID IP prefix length
2887 @param leid_prefix_len - local EID IP prefix length
2889 typeonly manual_print manual_endian define lisp_adjacency
2898 /** \brief LISP adjacency reply
2899 @param count - number of adjacencies
2900 @param adjacencies - array of adjacencies
2902 manual_endian manual_print define lisp_adjacencies_get_reply
2907 vl_api_lisp_adjacency_t adjacencies[count];
2910 /** \brief Request for LISP adjacencies
2911 @param client_index - opaque cookie to identify the sender
2912 @param context - sender context, to match reply w/ request
2913 @param vni - filter adjacencies by VNI
2915 define lisp_adjacencies_get
2922 /** \brief Shows relationship between vni and vrf/bd
2923 @param dp_table - VRF index or bridge domain index
2924 @param vni - vitual network instance
2926 define lisp_eid_table_map_details
2933 /** \brief Request for lisp_eid_table_map_details
2934 @param client_index - opaque cookie to identify the sender
2935 @param context - sender context, to match reply w/ request
2936 @param is_l2 - if set dump vni/bd mappings else vni/vrf
2938 define lisp_eid_table_map_dump
2945 /** \brief Dumps all VNIs used in mappings
2946 @param client_index - opaque cookie to identify the sender
2947 @param context - sender context, to match reply w/ request
2949 define lisp_eid_table_vni_dump
2955 /** \brief reply to lisp_eid_table_vni_dump
2956 @param client_index - opaque cookie to identify the sender
2957 @param context - sender context, to match reply w/ request
2958 @param vni - virtual network instance
2960 define lisp_eid_table_vni_details
2967 define lisp_gpe_tunnel_details
2973 u8 destination_ip[16];
2985 /** \brief Request for gpe tunnel summary status
2986 @param client_index - opaque cookie to identify the sender
2987 @param context - sender context, to match reply w/ request
2989 define lisp_gpe_tunnel_dump
2995 /** \brief LISP map resolver status
2996 @param locator_set_name - name of the locator_set
2997 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
2998 @param ip_address - array of address bytes
3000 define lisp_map_resolver_details
3007 /** \brief Request for map resolver summary status
3008 @param client_index - opaque cookie to identify the sender
3009 @param context - sender context, to match reply w/ request
3011 define lisp_map_resolver_dump
3017 /** \brief Request for lisp-gpe protocol status
3018 @param client_index - opaque cookie to identify the sender
3019 @param context - sender context, to match reply w/ request
3021 define show_lisp_status
3027 /** \brief Status of lisp, enable or disable
3028 @param context - sender context, to match reply w/ request
3029 @param feature_status - lisp enable if non-zero, else disable
3030 @param gpe_status - lisp enable if non-zero, else disable
3032 define show_lisp_status_reply
3040 /** \brief Get LISP map request itr rlocs status
3041 @param context - sender context, to match reply w/ request
3042 @param locator_set_name - name of the locator_set
3044 define lisp_get_map_request_itr_rlocs
3050 /** \brief Request for map request itr rlocs summary status
3052 define lisp_get_map_request_itr_rlocs_reply
3056 u8 locator_set_name[64];
3059 /** \brief Request for lisp pitr status
3060 @param client_index - opaque cookie to identify the sender
3061 @param context - sender context, to match reply w/ request
3063 define show_lisp_pitr
3069 /** \brief Status of lisp pitr, enable or disable
3070 @param context - sender context, to match reply w/ request
3071 @param status - lisp pitr enable if non-zero, else disable
3072 @param locator_set_name - name of the locator_set
3074 define show_lisp_pitr_reply
3079 u8 locator_set_name[64];
3082 /* Gross kludge, DGMS */
3083 define interface_name_renumber
3088 u32 new_show_dev_instance;
3091 define interface_name_renumber_reply
3097 /** \brief Register for ip4 arp resolution events
3098 @param client_index - opaque cookie to identify the sender
3099 @param context - sender context, to match reply w/ request
3100 @param enable_disable - 1 => register for events, 0 => cancel registration
3101 @param pid - sender's pid
3102 @param address - the exact ip4 address of interest
3104 define want_ip4_arp_events
3113 /** \brief Reply for interface events registration
3114 @param context - returned sender context, to match reply w/ request
3115 @param retval - return code
3117 define want_ip4_arp_events_reply
3123 /** \brief Tell client about an ip4 arp resolution event
3124 @param client_index - opaque cookie to identify the sender
3125 @param context - sender context, to match reply w/ request
3126 @param address - the exact ip4 address of interest
3127 @param pid - client pid registered to receive notification
3128 @param sw_if_index - interface which received ARP packet
3129 @param new_mac - the new mac address
3130 @param mac_ip - 0: resolution event, 1: mac/ip binding in bd
3132 define ip4_arp_event
3143 /** \brief Register for ip6 nd resolution events
3144 @param client_index - opaque cookie to identify the sender
3145 @param context - sender context, to match reply w/ request
3146 @param enable_disable - 1 => register for events, 0 => cancel registration
3147 @param pid - sender's pid
3148 @param address - the exact ip6 address of interest
3150 define want_ip6_nd_events
3159 /** \brief Reply for ip6 nd resolution events registration
3160 @param context - returned sender context, to match reply w/ request
3161 @param retval - return code
3163 define want_ip6_nd_events_reply
3169 /** \brief Tell client about an ip6 nd resolution or mac/ip event
3170 @param client_index - opaque cookie to identify the sender
3171 @param context - sender context, to match reply w/ request
3172 @param pid - client pid registered to receive notification
3173 @param sw_if_index - interface which received ARP packet
3174 @param address - the exact ip6 address of interest
3175 @param new_mac - the new mac address
3176 @param mac_ip - 0: resolution event, 1: mac/ip binding in bd
3189 /** \brief L2 bridge domain add or delete request
3190 @param client_index - opaque cookie to identify the sender
3191 @param context - sender context, to match reply w/ request
3192 @param bd_id - the bridge domain to create
3193 @param flood - enable/disable bcast/mcast flooding in the bd
3194 @param uu_flood - enable/disable uknown unicast flood in the bd
3195 @param forward - enable/disable forwarding on all interfaces in the bd
3196 @param learn - enable/disable learning on all interfaces in the bd
3197 @param arp_term - enable/disable arp termination in the bd
3198 @param is_add - add or delete flag
3200 define bridge_domain_add_del
3213 /** \brief L2 bridge domain add or delete response
3214 @param context - sender context, to match reply w/ request
3215 @param retval - return code for the set bridge flags request
3217 define bridge_domain_add_del_reply
3223 /** \brief L2 bridge domain request operational state details
3224 @param client_index - opaque cookie to identify the sender
3225 @param context - sender context, to match reply w/ request
3226 @param bd_id - the bridge domain id desired or ~0 to request all bds
3228 define bridge_domain_dump
3235 /** \brief L2 bridge domain operational state response
3236 @param bd_id - the bridge domain id
3237 @param flood - bcast/mcast flooding state on all interfaces in the bd
3238 @param uu_flood - uknown unicast flooding state on all interfaces in the bd
3239 @param forward - forwarding state on all interfaces in the bd
3240 @param learn - learning state on all interfaces in the bd
3241 @param arp_term - arp termination state on all interfaces in the bd
3242 @param n_sw_ifs - number of sw_if_index's in the domain
3244 define bridge_domain_details
3253 u32 bvi_sw_if_index;
3257 /** \brief L2 bridge domain sw interface operational state response
3258 @param bd_id - the bridge domain id
3259 @param sw_if_index - sw_if_index in the domain
3260 @param shg - split horizon group for the interface
3262 define bridge_domain_sw_if_details
3270 /** \brief DHCP Client config add / del request
3271 @param client_index - opaque cookie to identify the sender
3272 @param context - sender context, to match reply w/ request
3273 @param sw_if_index - index of the interface for DHCP client
3274 @param hostname - hostname
3275 @param is_add - add the config if non-zero, else delete
3276 @param want_dhcp_event - DHCP event sent to the sender
3277 via dhcp_compl_event API message if non-zero
3278 @param pid - sender's pid
3280 define dhcp_client_config
3291 /** \brief DHCP Client config response
3292 @param context - sender context, to match reply w/ request
3293 @param retval - return code for the request
3295 define dhcp_client_config_reply
3301 /** \brief Set/unset input ACL interface
3302 @param client_index - opaque cookie to identify the sender
3303 @param context - sender context, to match reply w/ request
3304 @param sw_if_index - interface to set/unset input ACL
3305 @param ip4_table_index - ip4 classify table index (~0 for skip)
3306 @param ip6_table_index - ip6 classify table index (~0 for skip)
3307 @param l2_table_index - l2 classify table index (~0 for skip)
3308 @param is_add - Set input ACL if non-zero, else unset
3309 Note: User is recommeneded to use just one valid table_index per call.
3310 (ip4_table_index, ip6_table_index, or l2_table_index)
3312 define input_acl_set_interface
3317 u32 ip4_table_index;
3318 u32 ip6_table_index;
3323 /** \brief Set/unset input ACL interface response
3324 @param context - sender context, to match reply w/ request
3325 @param retval - return code for the request
3327 define input_acl_set_interface_reply
3333 /** \brief IPsec: Add/delete Security Policy Database
3334 @param client_index - opaque cookie to identify the sender
3335 @param context - sender context, to match reply w/ request
3336 @param is_add - add SPD if non-zero, else delete
3337 @param spd_id - SPD instance id (control plane allocated)
3340 define ipsec_spd_add_del
3348 /** \brief Reply for IPsec: Add/delete Security Policy Database entry
3349 @param context - returned sender context, to match reply w/ request
3350 @param retval - return code
3353 define ipsec_spd_add_del_reply
3359 /** \brief IPsec: Add/delete SPD from interface
3361 @param client_index - opaque cookie to identify the sender
3362 @param context - sender context, to match reply w/ request
3363 @param is_add - add security mode if non-zero, else delete
3364 @param sw_if_index - index of the interface
3365 @param spd_id - SPD instance id to use for lookups
3369 define ipsec_interface_add_del_spd
3379 /** \brief Reply for IPsec: Add/delete SPD from interface
3380 @param context - returned sender context, to match reply w/ request
3381 @param retval - return code
3384 define ipsec_interface_add_del_spd_reply
3390 /** \brief IPsec: Add/delete Security Policy Database entry
3392 See RFC 4301, 4.4.1.1 on how to match packet to selectors
3394 @param client_index - opaque cookie to identify the sender
3395 @param context - sender context, to match reply w/ request
3396 @param is_add - add SPD if non-zero, else delete
3397 @param spd_id - SPD instance id (control plane allocated)
3398 @param priority - priority of SPD entry (non-unique value). Used to order SPD matching - higher priorities match before lower
3399 @param is_outbound - entry applies to outbound traffic if non-zero, otherwise applies to inbound traffic
3400 @param is_ipv6 - remote/local address are IPv6 if non-zero, else IPv4
3401 @param remote_address_start - start of remote address range to match
3402 @param remote_address_stop - end of remote address range to match
3403 @param local_address_start - start of local address range to match
3404 @param local_address_stop - end of local address range to match
3405 @param protocol - protocol type to match [0 means any]
3406 @param remote_port_start - start of remote port range to match ...
3407 @param remote_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
3408 @param local_port_start - start of local port range to match ...
3409 @param local_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
3410 @param policy - 0 = bypass (no IPsec processing), 1 = discard (discard packet with ICMP processing), 2 = resolve (send request to control plane for SA resolving, and discard without ICMP processing), 3 = protect (apply IPsec policy using following parameters)
3411 @param sa_id - SAD instance id (control plane allocated)
3415 define ipsec_spd_add_del_entry
3428 u8 remote_address_start[16];
3429 u8 remote_address_stop[16];
3430 u8 local_address_start[16];
3431 u8 local_address_stop[16];
3435 u16 remote_port_start;
3436 u16 remote_port_stop;
3437 u16 local_port_start;
3438 u16 local_port_stop;
3445 /** \brief Reply for IPsec: Add/delete Security Policy Database entry
3446 @param context - returned sender context, to match reply w/ request
3447 @param retval - return code
3450 define ipsec_spd_add_del_entry_reply
3456 /** \brief IPsec: Add/delete Security Association Database entry
3457 @param client_index - opaque cookie to identify the sender
3458 @param context - sender context, to match reply w/ request
3459 @param is_add - add SAD entry if non-zero, else delete
3461 @param sad_id - sad id
3463 @param spi - security parameter index
3465 @param protocol - 0 = AH, 1 = ESP
3467 @param crypto_algorithm - 0 = Null, 1 = AES-CBC-128, 2 = AES-CBC-192, 3 = AES-CBC-256, 4 = 3DES-CBC
3468 @param crypto_key_length - length of crypto_key in bytes
3469 @param crypto_key - crypto keying material
3471 @param integrity_algorithm - 0 = None, 1 = MD5-96, 2 = SHA1-96, 3 = SHA-256, 4 = SHA-384, 5=SHA-512
3472 @param integrity_key_length - length of integrity_key in bytes
3473 @param integrity_key - integrity keying material
3475 @param use_extended_sequence_number - use ESN when non-zero
3477 @param is_tunnel - IPsec tunnel mode if non-zero, else transport mode
3478 @param is_tunnel_ipv6 - IPsec tunnel mode is IPv6 if non-zero, else IPv4 tunnel only valid if is_tunnel is non-zero
3479 @param tunnel_src_address - IPsec tunnel source address IPv6 if is_tunnel_ipv6 is non-zero, else IPv4. Only valid if is_tunnel is non-zero
3480 @param tunnel_dst_address - IPsec tunnel destination address IPv6 if is_tunnel_ipv6 is non-zero, else IPv4. Only valid if is_tunnel is non-zero
3484 IPsec tunnel address copy mode (to support GDOI)
3487 define ipsec_sad_add_del_entry
3499 u8 crypto_algorithm;
3500 u8 crypto_key_length;
3503 u8 integrity_algorithm;
3504 u8 integrity_key_length;
3505 u8 integrity_key[128];
3507 u8 use_extended_sequence_number;
3511 u8 tunnel_src_address[16];
3512 u8 tunnel_dst_address[16];
3515 /** \brief Reply for IPsec: Add/delete Security Association Database entry
3516 @param context - returned sender context, to match reply w/ request
3517 @param retval - return code
3520 define ipsec_sad_add_del_entry_reply
3526 /** \brief IPsec: Update Security Association keys
3527 @param client_index - opaque cookie to identify the sender
3528 @param context - sender context, to match reply w/ request
3530 @param sa_id - sa id
3532 @param crypto_key_length - length of crypto_key in bytes
3533 @param crypto_key - crypto keying material
3535 @param integrity_key_length - length of integrity_key in bytes
3536 @param integrity_key - integrity keying material
3539 define ipsec_sa_set_key
3546 u8 crypto_key_length;
3549 u8 integrity_key_length;
3550 u8 integrity_key[128];
3553 /** \brief Reply for IPsec: Update Security Association keys
3554 @param context - returned sender context, to match reply w/ request
3555 @param retval - return code
3558 define ipsec_sa_set_key_reply
3564 /** \brief IKEv2: Add/delete profile
3565 @param client_index - opaque cookie to identify the sender
3566 @param context - sender context, to match reply w/ request
3568 @param name - IKEv2 profile name
3569 @param is_add - Add IKEv2 profile if non-zero, else delete
3571 define ikev2_profile_add_del
3580 /** \brief Reply for IKEv2: Add/delete profile
3581 @param context - returned sender context, to match reply w/ request
3582 @param retval - return code
3584 define ikev2_profile_add_del_reply
3590 /** \brief IKEv2: Set IKEv2 profile authentication method
3591 @param client_index - opaque cookie to identify the sender
3592 @param context - sender context, to match reply w/ request
3594 @param name - IKEv2 profile name
3595 @param auth_method - IKEv2 authentication method (shared-key-mic/rsa-sig)
3596 @param is_hex - Authentication data in hex format if non-zero, else string
3597 @param data_len - Authentication data length
3598 @param data - Authentication data (for rsa-sig cert file path)
3600 define ikev2_profile_set_auth
3612 /** \brief Reply for IKEv2: Set IKEv2 profile authentication method
3613 @param context - returned sender context, to match reply w/ request
3614 @param retval - return code
3616 define ikev2_profile_set_auth_reply
3622 /** \brief IKEv2: Set IKEv2 profile local/remote identification
3623 @param client_index - opaque cookie to identify the sender
3624 @param context - sender context, to match reply w/ request
3626 @param name - IKEv2 profile name
3627 @param is_local - Identification is local if non-zero, else remote
3628 @param id_type - Identification type
3629 @param data_len - Identification data length
3630 @param data - Identification data
3632 define ikev2_profile_set_id
3644 /** \brief Reply for IKEv2:
3645 @param context - returned sender context, to match reply w/ request
3646 @param retval - return code
3648 define ikev2_profile_set_id_reply
3654 /** \brief IKEv2: Set IKEv2 profile traffic selector parameters
3655 @param client_index - opaque cookie to identify the sender
3656 @param context - sender context, to match reply w/ request
3658 @param name - IKEv2 profile name
3659 @param is_local - Traffic selector is local if non-zero, else remote
3660 @param proto - Traffic selector IP protocol (if zero not relevant)
3661 @param start_port - The smallest port number allowed by traffic selector
3662 @param end_port - The largest port number allowed by traffic selector
3663 @param start_addr - The smallest address included in traffic selector
3664 @param end_addr - The largest address included in traffic selector
3666 define ikev2_profile_set_ts
3680 /** \brief Reply for IKEv2: Set IKEv2 profile traffic selector parameters
3681 @param context - returned sender context, to match reply w/ request
3682 @param retval - return code
3684 define ikev2_profile_set_ts_reply
3690 /** \brief IKEv2: Set IKEv2 local RSA private key
3691 @param client_index - opaque cookie to identify the sender
3692 @param context - sender context, to match reply w/ request
3694 @param key_file - Key file absolute path
3696 define ikev2_set_local_key
3704 /** \brief Reply for IKEv2: Set IKEv2 local key
3705 @param context - returned sender context, to match reply w/ request
3706 @param retval - return code
3708 define ikev2_set_local_key_reply
3714 /** \brief Tell client about a DHCP completion event
3715 @param client_index - opaque cookie to identify the sender
3716 @param pid - client pid registered to receive notification
3717 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
3718 @param host_address - Host IP address
3719 @param router_address - Router IP address
3720 @param host_mac - Host MAC address
3722 define dhcp_compl_event
3728 u8 host_address[16];
3729 u8 router_address[16];
3733 /** \brief Add MAP domains
3734 @param client_index - opaque cookie to identify the sender
3735 @param context - sender context, to match reply w/ request
3736 @param ip6_prefix - Rule IPv6 prefix
3737 @param ip4_prefix - Rule IPv4 prefix
3738 @param ip6_src - MAP domain IPv6 BR address / Tunnel source
3739 @param ip6_prefix_len - Rule IPv6 prefix length
3740 @param ip4_prefix_len - Rule IPv4 prefix length
3741 @param ea_bits_len - Embedded Address bits length
3742 @param psid_offset - Port Set Identifider (PSID) offset
3743 @param psid_length - PSID length
3744 @param is_translation - MAP-E / MAP-T
3747 define map_add_domain
3756 u8 ip6_src_prefix_len;
3764 /** \brief Reply for MAP domain add
3765 @param context - returned sender context, to match reply w/ request
3766 @param index - MAP domain index
3767 @param retval - return code
3769 define map_add_domain_reply
3776 /** \brief Delete MAP domain
3777 @param client_index - opaque cookie to identify the sender
3778 @param context - sender context, to match reply w/ request
3779 @param index - MAP Domain index
3781 define map_del_domain
3788 /** \brief Reply for MAP domain del
3789 @param context - returned sender context, to match reply w/ request
3790 @param retval - return code
3792 define map_del_domain_reply
3798 /** \brief Add or Delete MAP rule from a domain (Only used for shared IPv4 per subscriber)
3799 @param client_index - opaque cookie to identify the sender
3800 @param context - sender context, to match reply w/ request
3801 @param index - MAP Domain index
3802 @param is_add - If 1 add rule, if 0 delete rule
3803 @param ip6_dst - MAP CE IPv6 address
3804 @param psid - Rule PSID
3806 define map_add_del_rule
3816 /** \brief Reply for MAP rule add/del
3817 @param context - returned sender context, to match reply w/ request
3818 @param retval - return code
3820 define map_add_del_rule_reply
3826 /** \brief Get list of map domains
3827 @param client_index - opaque cookie to identify the sender
3829 define map_domain_dump
3835 define map_domain_details
3853 define map_rule_dump
3860 define map_rule_details
3867 /** \brief Request for a single block of summary stats
3868 @param client_index - opaque cookie to identify the sender
3869 @param context - sender context, to match reply w/ request
3871 define map_summary_stats
3877 /** \brief Reply for map_summary_stats request
3878 @param context - sender context, to match reply w/ request
3879 @param retval - return code for request
3880 @param total_bindings -
3882 @param total_ip4_fragments -
3883 @param total_security_check -
3885 define map_summary_stats_reply
3892 u64 total_ip4_fragments;
3893 u64 total_security_check[2];
3896 /** \brief cop: enable/disable junk filtration features on an interface
3897 @param client_index - opaque cookie to identify the sender
3898 @param context - sender context, to match reply w/ request
3899 @param sw_if_inded - desired interface
3900 @param enable_disable - 1 => enable, 0 => disable
3903 define cop_interface_enable_disable
3911 /** \brief cop: interface enable/disable junk filtration reply
3912 @param context - returned sender context, to match reply w/ request
3913 @param retval - return code
3916 define cop_interface_enable_disable_reply
3922 /** \brief cop: enable/disable whitelist filtration features on an interface
3923 Note: the supplied fib_id must match in order to remove the feature!
3925 @param client_index - opaque cookie to identify the sender
3926 @param context - sender context, to match reply w/ request
3927 @param sw_if_index - interface handle, physical interfaces only
3928 @param fib_id - fib identifier for the whitelist / blacklist fib
3929 @param ip4 - 1 => enable ip4 filtration, 0=> disable ip4 filtration
3930 @param ip6 - 1 => enable ip6 filtration, 0=> disable ip6 filtration
3931 @param default_cop - 1 => enable non-ip4, non-ip6 filtration 0=> disable it
3934 define cop_whitelist_enable_disable
3945 /** \brief cop: interface enable/disable junk filtration reply
3946 @param context - returned sender context, to match reply w/ request
3947 @param retval - return code
3950 define cop_whitelist_enable_disable_reply
3956 /** \brief get_node_graph - get a copy of the vpp node graph
3957 including the current set of graph arcs.
3959 @param client_index - opaque cookie to identify the sender
3960 @param context - sender context, to match reply w/ request
3963 define get_node_graph
3969 /** \brief get_node_graph_reply
3970 @param context - returned sender context, to match reply w/ request
3971 @param retval - return code
3972 @param reply_in_shmem - result from vlib_node_serialize, in shared
3973 memory. Process with vlib_node_unserialize, remember to switch
3974 heaps and free the result.
3977 define get_node_graph_reply
3984 /** \brief IOAM enable : Enable in-band OAM
3985 @param id - profile id
3986 @param seqno - To enable Seqno Processing
3987 @param analyse - Enabling analysis of iOAM at decap node
3988 @param pow_enable - Proof of Work enabled or not flag
3989 @param trace_enable - iOAM Trace enabled or not flag
4003 /** \brief iOAM Trace profile add / del response
4004 @param context - sender context, to match reply w/ request
4005 @param retval - return value for request
4007 define ioam_enable_reply
4013 /** \brief iOAM disable
4014 @param client_index - opaque cookie to identify the sender
4015 @param context - sender context, to match reply w/ request
4016 @param index - MAP Domain index
4025 /** \brief iOAM disable response
4026 @param context - sender context, to match reply w/ request
4027 @param retval - return value for request
4029 define ioam_disable_reply
4035 /** \brief Create host-interface
4036 @param client_index - opaque cookie to identify the sender
4037 @param context - sender context, to match reply w/ request
4038 @param host_if_name - interface name
4039 @param hw_addr - interface MAC
4040 @param use_random_hw_addr - use random generated MAC
4042 define af_packet_create
4047 u8 host_if_name[64];
4049 u8 use_random_hw_addr;
4052 /** \brief Create host-interface response
4053 @param context - sender context, to match reply w/ request
4054 @param retval - return value for request
4056 define af_packet_create_reply
4063 /** \brief Delete host-interface
4064 @param client_index - opaque cookie to identify the sender
4065 @param context - sender context, to match reply w/ request
4066 @param host_if_name - interface name
4068 define af_packet_delete
4073 u8 host_if_name[64];
4076 /** \brief Delete host-interface response
4077 @param context - sender context, to match reply w/ request
4078 @param retval - return value for request
4080 define af_packet_delete_reply
4086 /** \brief Add/del policer
4087 @param client_index - opaque cookie to identify the sender
4088 @param context - sender context, to match reply w/ request
4089 @param is_add - add policer if non-zero, else delete
4090 @param name - policer name
4093 @param cb - Committed Burst
4094 @param eb - Excess or Peak Burst
4095 @param rate_type - rate type
4096 @param round_type - rounding type
4097 @param type - policer algorithm
4098 @param color_aware - 0=color-blind, 1=color-aware
4099 @param conform_action_type - conform action type
4100 @param conform_dscp - DSCP for conform mar-and-transmit action
4101 @param exceed_action_type - exceed action type
4102 @param exceed_dscp - DSCP for exceed mar-and-transmit action
4103 @param violate_action_type - violate action type
4104 @param violate_dscp - DSCP for violate mar-and-transmit action
4106 define policer_add_del
4121 u8 conform_action_type;
4123 u8 exceed_action_type;
4125 u8 violate_action_type;
4129 /** \brief Add/del policer response
4130 @param context - sender context, to match reply w/ request
4131 @param retval - return value for request
4132 @param policer_index - for add, returned index of the new policer
4134 define policer_add_del_reply
4141 /** \brief Get list of policers
4142 @param client_index - opaque cookie to identify the sender
4143 @param context - sender context, to match reply w/ request
4144 @param match_name_valid - if 0 request all policers otherwise use match_name
4145 @param match_name - policer name
4152 u8 match_name_valid;
4156 /** \brief Policer operational state response.
4157 @param context - sender context, to match reply w/ request
4158 @param name - policer name
4161 @param cb - Committed Burst
4162 @param eb - Excess or Peak Burst
4163 @param rate_type - rate type
4164 @param round_type - rounding type
4165 @param type - policer algorithm
4166 @param conform_action_type - conform action type
4167 @param conform_dscp - DSCP for conform mar-and-transmit action
4168 @param exceed_action_type - exceed action type
4169 @param exceed_dscp - DSCP for exceed mar-and-transmit action
4170 @param violate_action_type - violate action type
4171 @param violate_dscp - DSCP for violate mar-and-transmit action
4172 @param single_rate - 1 = single rate policer, 0 = two rate policer
4173 @param color_aware - for hierarchical policing
4174 @param scale - power-of-2 shift amount for lower rates
4175 @param cir_tokens_per_period - number of tokens for each period
4176 @param pir_tokens_per_period - number of tokens for each period for 2-rate policer
4177 @param current_limit - current limit
4178 @param current_bucket - current bucket
4179 @param extended_limit - extended limit
4180 @param extended_bucket - extended bucket
4181 @param last_update_time - last update time
4183 define policer_details
4195 u8 conform_action_type;
4197 u8 exceed_action_type;
4199 u8 violate_action_type;
4204 u32 cir_tokens_per_period;
4205 u32 pir_tokens_per_period;
4209 u32 extended_bucket;
4210 u64 last_update_time;
4213 /** \brief Set/unset policer classify interface
4214 @param client_index - opaque cookie to identify the sender
4215 @param context - sender context, to match reply w/ request
4216 @param sw_if_index - interface to set/unset policer classify
4217 @param ip4_table_index - ip4 classify table index (~0 for skip)
4218 @param ip6_table_index - ip6 classify table index (~0 for skip)
4219 @param l2_table_index - l2 classify table index (~0 for skip)
4220 @param is_add - Set if non-zero, else unset
4221 Note: User is recommeneded to use just one valid table_index per call.
4222 (ip4_table_index, ip6_table_index, or l2_table_index)
4224 define policer_classify_set_interface
4229 u32 ip4_table_index;
4230 u32 ip6_table_index;
4235 /** \brief Set/unset policer classify interface response
4236 @param context - sender context, to match reply w/ request
4237 @param retval - return value for request
4239 define policer_classify_set_interface_reply
4245 /** \brief Get list of policer classify interfaces and tables
4246 @param client_index - opaque cookie to identify the sender
4247 @param context - sender context, to match reply w/ request
4248 @param type - classify table type
4250 define policer_classify_dump
4257 /** \brief Policer iclassify operational state response.
4258 @param context - sender context, to match reply w/ request
4259 @param sw_if_index - software interface index
4260 @param table_index - classify table index
4262 define policer_classify_details
4269 /** \brief Create netmap
4270 @param client_index - opaque cookie to identify the sender
4271 @param context - sender context, to match reply w/ request
4272 @param netmap_if_name - interface name
4273 @param hw_addr - interface MAC
4274 @param use_random_hw_addr - use random generated MAC
4275 @param is_pipe - is pipe
4276 @param is_master - 0=slave, 1=master
4278 define netmap_create
4283 u8 netmap_if_name[64];
4285 u8 use_random_hw_addr;
4290 /** \brief Create netmap response
4291 @param context - sender context, to match reply w/ request
4292 @param retval - return value for request
4294 define netmap_create_reply
4300 /** \brief Delete netmap
4301 @param client_index - opaque cookie to identify the sender
4302 @param context - sender context, to match reply w/ request
4303 @param netmap_if_name - interface name
4305 define netmap_delete
4310 u8 netmap_if_name[64];
4313 /** \brief Delete netmap response
4314 @param context - sender context, to match reply w/ request
4315 @param retval - return value for request
4317 define netmap_delete_reply
4323 /** \brief Classify get table IDs request
4324 @param client_index - opaque cookie to identify the sender
4325 @param context - sender context, to match reply w/ request
4327 define classify_table_ids
4333 /** \brief Reply for classify get table IDs request
4334 @param context - sender context which was passed in the request
4335 @param count - number of ids returned in response
4336 @param ids - array of classify table ids
4338 define classify_table_ids_reply
4346 /** \brief Classify table ids by interface index request
4347 @param client_index - opaque cookie to identify the sender
4348 @param context - sender context, to match reply w/ request
4349 @param sw_if_index - index of the interface
4351 define classify_table_by_interface
4358 /** \brief Reply for classify table id by interface index request
4359 @param context - sender context which was passed in the request
4360 @param count - number of ids returned in response
4361 @param sw_if_index - index of the interface
4362 @param l2_table_id - l2 classify table index
4363 @param ip4_table_id - ip4 classify table index
4364 @param ip6_table_id - ip6 classify table index
4366 define classify_table_by_interface_reply
4376 /** \brief Classify table info
4377 @param client_index - opaque cookie to identify the sender
4378 @param context - sender context, to match reply w/ request
4379 @param table_id - classify table index
4381 define classify_table_info
4388 /** \brief Reply for classify table info request
4389 @param context - sender context which was passed in the request
4390 @param count - number of ids returned in response
4391 @param table_id - classify table index
4392 @param nbuckets - number of buckets when adding a table
4393 @param match_n_vectors - number of match vectors
4394 @param skip_n_vectors - number of skip_n_vectors
4395 @param active_sessions - number of sessions (active entries)
4396 @param next_table_index - index of next table
4397 @param miss_next_index - index of miss table
4398 @param mask[] - match mask
4400 define classify_table_info_reply
4406 u32 match_n_vectors;
4408 u32 active_sessions;
4409 u32 next_table_index;
4410 u32 miss_next_index;
4412 u8 mask[mask_length];
4415 /** \brief Classify sessions dump request
4416 @param client_index - opaque cookie to identify the sender
4417 @param context - sender context, to match reply w/ request
4418 @param table_id - classify table index
4420 define classify_session_dump
4427 /** \brief Reply for classify table session dump request
4428 @param context - sender context which was passed in the request
4429 @param count - number of ids returned in response
4430 @param table_id - classify table index
4431 @param hit_next_index - hit_next_index of session
4432 @param opaque_index - for add, opaque_index of session
4433 @param advance - advance value of session
4434 @param match[] - match value for session
4436 define classify_session_details
4445 u8 match[match_length];
4448 /** \brief Configure IPFIX exporter process request
4449 @param client_index - opaque cookie to identify the sender
4450 @param context - sender context, to match reply w/ request
4451 @param collector_address - address of IPFIX collector
4452 @param collector_port - port of IPFIX collector
4453 @param src_address - address of IPFIX exporter
4454 @param vrf_id - VRF / fib table ID
4455 @param path_mtu - Path MTU between exporter and collector
4456 @param template_interval - number of seconds after which to resend template
4457 @param udp_checksum - UDP checksum calculation enable flag
4459 define set_ipfix_exporter
4463 u8 collector_address[16];
4468 u32 template_interval;
4472 /** \brief Reply to IPFIX exporter configure request
4473 @param context - sender context which was passed in the request
4475 define set_ipfix_exporter_reply
4481 /** \brief IPFIX exporter dump request
4482 @param client_index - opaque cookie to identify the sender
4483 @param context - sender context, to match reply w/ request
4485 define ipfix_exporter_dump
4491 /** \brief Reply to IPFIX exporter dump request
4492 @param context - sender context which was passed in the request
4493 @param collector_address - address of IPFIX collector
4494 @param collector_port - port of IPFIX collector
4495 @param src_address - address of IPFIX exporter
4496 @param fib_index - fib table index
4497 @param path_mtu - Path MTU between exporter and collector
4498 @param template_interval - number of seconds after which to resend template
4499 @param udp_checksum - UDP checksum calculation enable flag
4501 define ipfix_exporter_details
4504 u8 collector_address[16];
4509 u32 template_interval;
4513 /** \brief IPFIX classify stream configure request
4514 @param client_index - opaque cookie to identify the sender
4515 @param context - sender context, to match reply w/ request
4516 @param domain_id - domain ID reported in IPFIX messages for classify stream
4517 @param src_port - source port of UDP session for classify stream
4519 define set_ipfix_classify_stream {
4526 /** \brief IPFIX classify stream configure response
4527 @param context - sender context, to match reply w/ request
4528 @param retval - return value for request
4530 define set_ipfix_classify_stream_reply {
4535 /** \brief IPFIX classify stream dump request
4536 @param client_index - opaque cookie to identify the sender
4537 @param context - sender context, to match reply w/ request
4539 define ipfix_classify_stream_dump {
4544 /** \brief Reply to IPFIX classify stream dump request
4545 @param context - sender context, to match reply w/ request
4546 @param domain_id - domain ID reported in IPFIX messages for classify stream
4547 @param src_port - source port of UDP session for classify stream
4549 define ipfix_classify_stream_details {
4555 /** \brief IPFIX add or delete classifier table request
4556 @param client_index - opaque cookie to identify the sender
4557 @param context - sender context, to match reply w/ request
4558 @param table_id - classifier table ID
4559 @param ip_version - version of IP used in the classifier table
4560 @param transport_protocol - transport protocol used in the classifier table or 255 for unspecified
4562 define ipfix_classify_table_add_del {
4567 u8 transport_protocol;
4571 /** \brief IPFIX add classifier table response
4572 @param context - sender context which was passed in the request
4574 define ipfix_classify_table_add_del_reply {
4579 /** \brief IPFIX classify tables dump request
4580 @param client_index - opaque cookie to identify the sender
4581 @param context - sender context, to match reply w/ request
4583 define ipfix_classify_table_dump {
4588 /** \brief Reply to IPFIX classify tables dump request
4589 @param context - sender context, to match reply w/ request
4590 @param table_id - classifier table ID
4591 @param ip_version - version of IP used in the classifier table
4592 @param transport_protocol - transport protocol used in the classifier table or 255 for unspecified
4594 define ipfix_classify_table_details {
4598 u8 transport_protocol;
4601 /** \brief Set/unset flow classify interface
4602 @param client_index - opaque cookie to identify the sender
4603 @param context - sender context, to match reply w/ request
4604 @param sw_if_index - interface to set/unset flow classify
4605 @param ip4_table_index - ip4 classify table index (~0 for skip)
4606 @param ip6_table_index - ip6 classify table index (~0 for skip)
4607 @param l2_table_index - l2 classify table index (~0 for skip)
4608 @param is_add - Set if non-zero, else unset
4609 Note: User is recommeneded to use just one valid table_index per call.
4610 (ip4_table_index, ip6_table_index, or l2_table_index)
4612 define flow_classify_set_interface {
4616 u32 ip4_table_index;
4617 u32 ip6_table_index;
4621 /** \brief Set/unset flow classify interface response
4622 @param context - sender context, to match reply w/ request
4623 @param retval - return value for request
4625 define flow_classify_set_interface_reply {
4630 /** \brief Get list of flow classify interfaces and tables
4631 @param client_index - opaque cookie to identify the sender
4632 @param context - sender context, to match reply w/ request
4633 @param type - classify table type
4635 define flow_classify_dump {
4641 /** \brief Flow classify operational state response.
4642 @param context - sender context, to match reply w/ request
4643 @param sw_if_index - software interface index
4644 @param table_index - classify table index
4646 define flow_classify_details {
4652 /** \brief Enable/Disable span to mirror traffic from one interface to another
4653 @param client_index - opaque cookie to identify the sender
4654 @param context - sender context which was passed in the request
4655 @param sw_if_index_from - interface to be mirorred
4656 @param sw_if_index_to - interface where the traffic is mirrored
4657 @param enable - 1 enable SPAN, 0 SPAN on given interface
4659 define sw_interface_span_enable_disable{
4662 u32 sw_if_index_from;
4667 /** \brief Reply to SPAN enable/disable request
4668 @param context - sender context which was passed in the request
4670 define sw_interface_span_enable_disable_reply {
4675 /** \brief SPAN dump request
4676 @param client_index - opaque cookie to identify the sender
4677 @param context - sender context, to match reply w/ request
4679 define sw_interface_span_dump {
4684 /** \brief Reply to SPAN dump request
4685 @param context - sender context which was passed in the request
4686 @param sw_if_index_from - mirorred interface
4687 @param sw_if_index_to - interface where the traffic is mirrored
4689 define sw_interface_span_details {
4691 u32 sw_if_index_from;
4695 /** \brief Query relative index via node names
4696 @param client_index - opaque cookie to identify the sender
4697 @param context - sender context, to match reply w/ request
4698 @param node_name - name of node to find relative index from
4699 @param next_name - next node from node_name to find relative index of
4701 define get_next_index
4709 /** \brief Reply for get next node index
4710 @param context - sender context which was passed in the request
4711 @param retval - return value
4712 @param next_index - index of the next_node
4714 define get_next_index_reply
4721 /** \brief PacketGenerator create interface request
4722 @param client_index - opaque cookie to identify the sender
4723 @param context - sender context, to match reply w/ request
4724 @param interface_id - interface index
4726 define pg_create_interface
4733 /** \brief PacketGenerator create interface response
4734 @param context - sender context, to match reply w/ request
4735 @param retval - return value for request
4737 define pg_create_interface_reply
4744 /** \brief PacketGenerator capture packets on given interface request
4745 @param client_index - opaque cookie to identify the sender
4746 @param context - sender context, to match reply w/ request
4747 @param interface_id - pg interface index
4748 @param is_enabled - 1 if enabling streams, 0 if disabling
4749 @param count - number of packets to be captured
4750 @param pcap_file - pacp file name to store captured packets
4759 u32 pcap_name_length;
4760 u8 pcap_file_name[pcap_name_length];
4763 /** \brief PacketGenerator capture packets response
4764 @param context - sender context, to match reply w/ request
4765 @param retval - return value for request
4767 define pg_capture_reply
4773 /** \brief Enable / disable packet generator request
4774 @param client_index - opaque cookie to identify the sender
4775 @param context - sender context, to match reply w/ request
4776 @param is_enabled - 1 if enabling streams, 0 if disabling
4777 @param stream - stream name to be enable/disabled, if not specified handle all streams
4779 define pg_enable_disable
4784 u32 stream_name_length;
4785 u8 stream_name[stream_name_length];
4788 /** \brief Reply for enable / disable packet generator
4789 @param context - returned sender context, to match reply w/ request
4790 @param retval - return code
4792 define pg_enable_disable_reply
4798 /** \brief Configure IP source and L4 port-range check
4799 @param client_index - opaque cookie to identify the sender
4800 @param context - sender context, to match reply w/ request
4801 @param is_ip6 - 1 if source address type is IPv6
4802 @param is_add - 1 if add, 0 if delete
4803 @param mask_length - mask length for address entry
4804 @param address - array of address bytes
4805 @param number_of_ranges - length of low_port and high_port arrays (must match)
4806 @param low_ports[32] - up to 32 low end of port range entries (must have corresponding high_ports entry)
4807 @param high_ports[32] - up to 32 high end of port range entries (must have corresponding low_ports entry)
4808 @param vrf_id - fib table/vrf id to associate the source and port-range check with
4809 @note To specify a single port set low_port and high_port entry the same
4811 define ip_source_and_port_range_check_add_del
4819 u8 number_of_ranges;
4825 /** \brief Configure IP source and L4 port-range check reply
4826 @param context - returned sender context, to match reply w/ request
4827 @param retval - return code
4829 define ip_source_and_port_range_check_add_del_reply
4835 /** \brief Set interface source and L4 port-range request
4836 @param client_index - opaque cookie to identify the sender
4837 @param context - sender context, to match reply w/ request
4838 @param interface_id - interface index
4839 @param tcp_vrf_id - VRF associated with source and TCP port-range check
4840 @param udp_vrf_id - VRF associated with source and TCP port-range check
4842 define ip_source_and_port_range_check_interface_add_del
4854 /** \brief Set interface source and L4 port-range response
4855 @param context - sender context, to match reply w/ request
4856 @param retval - return value for request
4858 define ip_source_and_port_range_check_interface_add_del_reply
4864 /** \brief Add / del ipsec gre tunnel request
4865 @param client_index - opaque cookie to identify the sender
4866 @param context - sender context, to match reply w/ request
4867 @param local_sa_id - local SA id
4868 @param remote_sa_id - remote SA id
4869 @param is_add - 1 if adding the tunnel, 0 if deleting
4870 @param src_address - tunnel source address
4871 @param dst_address - tunnel destination address
4873 define ipsec_gre_add_del_tunnel {
4883 /** \brief Reply for add / del ipsec gre tunnel request
4884 @param context - returned sender context, to match reply w/ request
4885 @param retval - return code
4886 @param sw_if_index - software index of the new ipsec gre tunnel
4888 define ipsec_gre_add_del_tunnel_reply {
4894 /** \brief Dump ipsec gre tunnel table
4895 @param client_index - opaque cookie to identify the sender
4896 @param context - sender context, to match reply w/ request
4897 @param tunnel_index - gre tunnel identifier or -1 in case of all tunnels
4899 define ipsec_gre_tunnel_dump {
4905 /** \brief mpls gre tunnel operational state response
4906 @param context - returned sender context, to match reply w/ request
4907 @param sw_if_index - software index of the ipsec gre tunnel
4908 @param local_sa_id - local SA id
4909 @param remote_sa_id - remote SA id
4910 @param src_address - tunnel source address
4911 @param dst_address - tunnel destination address
4913 define ipsec_gre_tunnel_details {
4922 /** \brief Delete sub interface request
4923 @param client_index - opaque cookie to identify the sender
4924 @param context - sender context, to match reply w/ request
4925 @param sw_if_index - sw index of the interface that was created by create_subif
4927 define delete_subif {
4933 /** \brief Delete sub interface response
4934 @param context - sender context, to match reply w/ request
4935 @param retval - return code for the request
4937 define delete_subif_reply {
4942 /** \brief DPDK interface HQoS pipe profile set request
4943 @param client_index - opaque cookie to identify the sender
4944 @param context - sender context, to match reply w/ request
4945 @param sw_if_index - the interface
4946 @param subport - subport ID
4947 @param pipe - pipe ID within its subport
4948 @param profile - pipe profile ID
4950 define sw_interface_set_dpdk_hqos_pipe {
4959 /** \brief DPDK interface HQoS pipe profile set reply
4960 @param context - sender context, to match reply w/ request
4961 @param retval - request return code
4963 define sw_interface_set_dpdk_hqos_pipe_reply {
4968 /** \brief DPDK interface HQoS subport parameters set request
4969 @param client_index - opaque cookie to identify the sender
4970 @param context - sender context, to match reply w/ request
4971 @param sw_if_index - the interface
4972 @param subport - subport ID
4973 @param tb_rate - subport token bucket rate (measured in bytes/second)
4974 @param tb_size - subport token bucket size (measured in credits)
4975 @param tc_rate - subport traffic class 0 .. 3 rates (measured in bytes/second)
4976 @param tc_period - enforcement period for rates (measured in milliseconds)
4978 define sw_interface_set_dpdk_hqos_subport {
4989 /** \brief DPDK interface HQoS subport parameters set reply
4990 @param context - sender context, to match reply w/ request
4991 @param retval - request return code
4993 define sw_interface_set_dpdk_hqos_subport_reply {
4998 /** \brief DPDK interface HQoS tctbl entry set request
4999 @param client_index - opaque cookie to identify the sender
5000 @param context - sender context, to match reply w/ request
5001 @param sw_if_index - the interface
5002 @param entry - entry index ID
5003 @param tc - traffic class (0 .. 3)
5004 @param queue - traffic class queue (0 .. 3)
5006 define sw_interface_set_dpdk_hqos_tctbl {
5015 /** \brief DPDK interface HQoS tctbl entry set reply
5016 @param context - sender context, to match reply w/ request
5017 @param retval - request return code
5019 define sw_interface_set_dpdk_hqos_tctbl_reply {
5024 /** \brief L2 interface pbb tag rewrite configure request
5025 @param client_index - opaque cookie to identify the sender
5026 @param context - sender context, to match reply w/ request
5027 @param sw_if_index - interface the operation is applied to
5028 @param vtr_op - Choose from l2_vtr_op_t enum values
5029 @param inner_tag - needed for translate_qinq vtr op only
5030 @param outer_tag - needed for translate_qinq vtr op only
5031 @param b_dmac - B-tag remote mac address, needed for any push or translate_qinq vtr op
5032 @param b_smac - B-tag local mac address, needed for any push or translate qinq vtr op
5033 @param b_vlanid - B-tag vlanid, needed for any push or translate qinq vtr op
5034 @param i_sid - I-tag service id, needed for any push or translate qinq vtr op
5036 define l2_interface_pbb_tag_rewrite
5049 /** \brief L2 interface pbb tag rewrite response
5050 @param context - sender context, to match reply w/ request
5051 @param retval - return code for the request
5053 define l2_interface_pbb_tag_rewrite_reply
5059 /** \brief Punt traffic to the host
5060 @param client_index - opaque cookie to identify the sender
5061 @param context - sender context, to match reply w/ request
5062 @param is_add - add punt if non-zero, else delete
5063 @param ipv - L3 protocol 4 - IPv4, 6 - IPv6, ~0 - All
5064 @param l4_protocol - L4 protocol to be punted, only UDP (0x11) is supported
5065 @param l4_port - TCP/UDP port to be punted
5076 /** \brief Reply to the punt request
5077 @param context - sender context which was passed in the request
5078 @param retval - return code of punt request
5086 /** \brief Dump ipsec policy database data
5087 @param client_index - opaque cookie to identify the sender
5088 @param context - sender context, to match reply w/ request
5089 @param spd_id - SPD instance id
5090 @param sa_id - SA id, optional, set to ~0 to see all policies in SPD
5092 define ipsec_spd_dump {
5099 /** \brief IPsec policy database response
5100 @param context - sender context which was passed in the request
5101 @param spd_id - SPD instance id
5102 @param priority - numeric value to control policy evaluation order
5103 @param is_outbound - [1|0] to indicate if direction is [out|in]bound
5104 @param is_ipv6 - [1|0] to indicate if address family is ipv[6|4]
5105 @param local_start_addr - first address in local traffic selector range
5106 @param local_stop_addr - last address in local traffic selector range
5107 @param local_start_port - first port in local traffic selector range
5108 @param local_stop_port - last port in local traffic selector range
5109 @param remote_start_addr - first address in remote traffic selector range
5110 @param remote_stop_addr - last address in remote traffic selector range
5111 @param remote_start_port - first port in remote traffic selector range
5112 @param remote_stop_port - last port in remote traffic selector range
5113 @param protocol - traffic selector protocol
5114 @param policy - policy action
5115 @param sa_id - SA id
5116 @param bytes - byte count of packets matching this policy
5117 @param packets - count of packets matching this policy
5120 define ipsec_spd_details {
5126 u8 local_start_addr[16];
5127 u8 local_stop_addr[16];
5128 u16 local_start_port;
5129 u16 local_stop_port;
5130 u8 remote_start_addr[16];
5131 u8 remote_stop_addr[16];
5132 u16 remote_start_port;
5133 u16 remote_stop_port;
5141 /** \brief Feature path enable/disable request
5142 @param client_index - opaque cookie to identify the sender
5143 @param context - sender context, to match reply w/ request
5144 @param sw_if_index - the interface
5145 @param enable - 1 = on, 0 = off
5147 define feature_enable_disable {
5153 u8 feature_name[64];
5156 /** \brief Reply to the eature path enable/disable request
5157 @param context - sender context which was passed in the request
5158 @param retval - return code for the request
5160 define feature_enable_disable_reply
5167 * eval: (c-set-style "gnu")