1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2015 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 This file defines vpe control-plane API messages which are generally
20 called through a shared memory interface.
24 /** \brief Register for interface events
25 @param client_index - opaque cookie to identify the sender
26 @param context - sender context, to match reply w/ request
27 @param enable_disable - 1 => register for events, 0 => cancel registration
28 @param pid - sender's pid
30 define want_interface_events
38 /** \brief Reply for interface events registration
39 @param context - returned sender context, to match reply w/ request
40 @param retval - return code
42 define want_interface_events_reply
48 /** \brief Interface details structure (fix this)
49 @param sw_if_index - index of the interface
50 @param sup_sw_if_index - index of parent interface if any, else same as sw_if_index
51 @param l2_address_length - length of the interface's l2 address
52 @param pid - the interface's l2 address
53 @param interface_name - name of the interface
54 @param link_duplex - 1 if half duplex, 2 if full duplex
55 @param link_speed - 1 = 10M, 2 = 100M, 4 = 1G, 8 = 10G, 16 = 40G, 32 = 100G
56 @param link_MTU - max. transmittion unit
57 @param sub_if_id - A number 0-N to uniquely identify this subif on super if
58 @param sub_dot1ad - 0 = dot1q, 1=dot1ad
59 @param sub_number_of_tags - Number of tags (0 - 2)
60 @param sub_outer_vlan_id
61 @param sub_inner_vlan_id
62 @param sub_exact_match
64 @param sub_outer_vlan_id_any
65 @param sub_inner_vlan_id_any
66 @param vtr_op - vlan tag rewrite operation
71 define sw_interface_details
76 /* index of sup interface (e.g. hw interface).
77 equal to sw_if_index for super hw interface. */
80 /* Layer 2 address, if applicable */
81 u32 l2_address_length;
85 u8 interface_name[64];
87 /* 1 = up, 0 = down */
91 /* 1 = half duplex, 2 = full duplex */
94 /* 1 = 10M, 2 = 100M, 4 = 1G, 8 = 10G, 16 = 40G, 32 = 100G */
100 /* Subinterface ID. A number 0-N to uniquely identify this subinterface under the super interface */
103 /* 0 = dot1q, 1=dot1ad */
106 /* Number of tags 0-2 */
107 u8 sub_number_of_tags;
108 u16 sub_outer_vlan_id;
109 u16 sub_inner_vlan_id;
112 u8 sub_outer_vlan_id_any;
113 u8 sub_inner_vlan_id_any;
115 /* vlan tag rewrite state */
117 u32 vtr_push_dot1q; // ethertype of first pushed tag is dot1q/dot1ad
118 u32 vtr_tag1; // first pushed tag
119 u32 vtr_tag2; // second pushed tag
122 /** \brief Set flags on the interface
123 @param client_index - opaque cookie to identify the sender
124 @param context - sender context, to match reply w/ request
125 @param sw_if_index - index of the interface to set flags on
126 @param admin_up_down - set the admin state, 1 = up, 0 = down
127 @param link_up_down - Oper state sent on change event, not used in config.
128 @param deleted - interface was deleted
130 define sw_interface_set_flags
135 /* 1 = up, 0 = down */
141 /** \brief Reply to sw_interface_set_flags
142 @param context - sender context which was passed in the request
143 @param retval - return code of the set flags request
145 define sw_interface_set_flags_reply
152 define sw_interface_dump
156 u8 name_filter_valid;
160 /** \brief Set or delete one or all ip addresses on a specified interface
161 @param client_index - opaque cookie to identify the sender
162 @param context - sender context, to match reply w/ request
163 @param sw_if_index - index of the interface to add/del addresses
164 @param is_add - add address if non-zero, else delete
165 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
166 @param del_all - if non-zero delete all addresses on the interface
167 @param address_length - address length in bytes, 4 for ip4, 16 for ip6
168 @param address - array of address bytes
170 define sw_interface_add_del_address
182 /** \brief Reply for interface events registration
183 @param context - returned sender context, to match reply w/ request
184 @param retval - return code
186 define sw_interface_add_del_address_reply
192 /** \brief Associate the specified interface with a fib table
193 @param client_index - opaque cookie to identify the sender
194 @param context - sender context, to match reply w/ request
195 @param sw_if_index - index of the interface
196 @param is_ipv6 - if non-zero ipv6, else ipv4
197 @param vrf_id - fib table/vrd id to associate the interface with
199 define sw_interface_set_table
208 /** \brief Reply for interface events registration
209 @param context - returned sender context, to match reply w/ request
210 @param retval - return code
212 define sw_interface_set_table_reply
218 /** \brief Initialize a new tap interface with the given paramters
219 @param client_index - opaque cookie to identify the sender
220 @param context - sender context, to match reply w/ request
221 @param use_random_mac - let the system generate a unique mac address
222 @param tap_name - name to associate with the new interface
223 @param mac_address - mac addr to assign to the interface if use_radom not set
233 u32 custom_dev_instance;
236 /** \brief Reply for tap connect request
237 @param context - returned sender context, to match reply w/ request
238 @param retval - return code
239 @param sw_if_index - software index allocated for the new tap interface
241 define tap_connect_reply
248 /** \brief Modify a tap interface with the given paramters
249 @param client_index - opaque cookie to identify the sender
250 @param context - sender context, to match reply w/ request
251 @param sw_if_index - interface index of existing tap interface
252 @param use_random_mac - let the system generate a unique mac address
253 @param tap_name - name to associate with the new interface
254 @param mac_address - mac addr to assign to the interface if use_radom not set
265 u32 custom_dev_instance;
268 /** \brief Reply for tap modify request
269 @param context - returned sender context, to match reply w/ request
270 @param retval - return code
271 @param sw_if_index - software index if the modified tap interface
273 define tap_modify_reply
280 /** \brief Delete tap interface
281 @param client_index - opaque cookie to identify the sender
282 @param context - sender context, to match reply w/ request
283 @param sw_if_index - interface index of existing tap interface
292 /** \brief Reply for tap delete request
293 @param context - returned sender context, to match reply w/ request
294 @param retval - return code
296 define tap_delete_reply
302 /** \brief Dump tap interfaces request */
303 define sw_interface_tap_dump
309 /** \brief Reply for tap dump request
310 @param sw_if_index - software index of tap interface
311 @param dev_name - Linux tap device name
313 define sw_interface_tap_details
320 /** \brief Create a new subinterface with the given vlan id
321 @param client_index - opaque cookie to identify the sender
322 @param context - sender context, to match reply w/ request
323 @param sw_if_index - software index of the new vlan's parent interface
324 @param vlan_id - vlan tag of the new interface
326 define create_vlan_subif
334 /** \brief Reply for the vlan subinterface create request
335 @param context - returned sender context, to match reply w/ request
336 @param retval - return code
337 @param sw_if_index - software index allocated for the new subinterface
339 define create_vlan_subif_reply
346 /** \brief Add / del route request
347 @param client_index - opaque cookie to identify the sender
348 @param context - sender context, to match reply w/ request
349 @param sw_if_index - software index of the new vlan's parent interface
350 @param vrf_id - fib table /vrf associated with the route
351 @param lookup_in_vrf -
352 @param resolve_attempts -
353 @param classify_table_index -
354 @param create_vrf_if_needed -
355 @param resolve_if_needed -
356 @param is_add - 1 if adding the route, 0 if deleting
358 @param is_ipv6 - 0 if an ip4 route, else ip6
361 @param is_multipath - Set to 1 if this is a multipath route, else 0
362 @param not_last - Is last or not last msg in group of multiple add/del msgs
363 @param next_hop_weight -
364 @param dst_address_length -
365 @param dst_address[16] -
366 @param next_hop_address[16] -
368 define ip_add_del_route
372 u32 next_hop_sw_if_index;
375 u32 resolve_attempts;
376 u32 classify_table_index;
377 u8 create_vrf_if_needed;
378 u8 resolve_if_needed;
384 /* Is last/not-last message in group of multiple add/del messages. */
388 u8 dst_address_length;
390 u8 next_hop_address[16];
393 /** \brief Reply for add / del route request
394 @param context - returned sender context, to match reply w/ request
395 @param retval - return code
397 define ip_add_del_route_reply
404 /** \brief Add / del gre tunnel request
405 @param client_index - opaque cookie to identify the sender
406 @param context - sender context, to match reply w/ request
407 @param sw_if_index - software index of the new vlan's parent interface
408 @param inner_vrf_id -
409 @param outer_vrf_id -
410 @param is_add - 1 if adding the tunnel, 0 if deleting
411 @param src_address[4] - tunnel source address
412 @param dst_address[4] - tunnel destination address
413 @param intf_address -
414 @param intf_address_length -
416 define mpls_gre_add_del_tunnel
427 u8 intfc_address_length;
430 /** \brief Reply for add / del tunnel request
431 @param context - returned sender context, to match reply w/ request
432 @param retval - return code
434 define mpls_gre_add_del_tunnel_reply
438 u32 tunnel_sw_if_index;
441 /** \brief Add / del MPLS encapsulation request
442 @param client_index - opaque cookie to identify the sender
443 @param context - sender context, to match reply w/ request
444 @param vrf_id - vrf id
445 @param dst_address[4] -
446 @param is_add - 1 if adding the encap, 0 if deleting
447 @param nlabels - number of labels
448 @param labels - array of labels
450 define mpls_add_del_encap
456 /* 1 = add, 0 = delete */
462 /** \brief Reply for add / del encapsulation request
463 @param context - returned sender context, to match reply w/ request
464 @param retval - return code
466 define mpls_add_del_encap_reply
472 /** \brief Add / del MPLS decapsulation request
473 @param client_index - opaque cookie to identify the sender
474 @param context - sender context, to match reply w/ request
475 @param rx_vrf_id - receive vrf
476 @param tx_vrf_id - transmit vrf
480 @param is_add - 1 if adding the encap, 0 if deleting
482 define mpls_add_del_decap
494 /** \brief Reply for MPLS decap add / del request
495 @param context - returned sender context, to match reply w/ request
496 @param retval - return code
498 define mpls_add_del_decap_reply
504 /** \brief Proxy ARP add / del request
505 @param client_index - opaque cookie to identify the sender
506 @param context - sender context, to match reply w/ request
507 @param vrf_id - VRF / Fib table ID
508 @param is_add - 1 if adding the Proxy ARP range, 0 if deleting
509 @param low_address[4] - Low address of the Proxy ARP range
510 @param hi_address[4] - High address of the Proxy ARP range
512 define proxy_arp_add_del
522 /** \brief Reply for proxy arp add / del request
523 @param context - returned sender context, to match reply w/ request
524 @param retval - return code
526 define proxy_arp_add_del_reply
532 /** \brief Proxy ARP add / del request
533 @param client_index - opaque cookie to identify the sender
534 @param context - sender context, to match reply w/ request
535 @param sw_if_index - Which interface to enable / disable Proxy Arp on
536 @param enable_disable - 1 to enable Proxy ARP on interface, 0 to disable
538 define proxy_arp_intfc_enable_disable
543 /* 1 = on, 0 = off */
547 /** \brief Reply for Proxy ARP interface enable / disable request
548 @param context - returned sender context, to match reply w/ request
549 @param retval - return code
551 define proxy_arp_intfc_enable_disable_reply
557 /** \brief IP neighbor add / del request
558 @param client_index - opaque cookie to identify the sender
559 @param context - sender context, to match reply w/ request
560 @param vrf_id - vrf_id, only for IP4
561 @param sw_if_index - interface used to reach neighbor
562 @param is_add - 1 to add neighbor, 0 to delete
563 @param is_ipv6 - 1 for IPv6 neighbor, 0 for IPv4
565 @param mac_address - l2 address of the neighbor
566 @param dst_address - ip4 or ip6 address of the neighbor
568 define ip_neighbor_add_del
572 u32 vrf_id; /* only makes sense for ip4 */
574 /* 1 = add, 0 = delete */
582 /** \brief Reply for IP Neighbor add / delete request
583 @param context - returned sender context, to match reply w/ request
584 @param retval - return code
586 define ip_neighbor_add_del_reply
592 /** \brief Reset VRF (remove all routes etc) request
593 @param client_index - opaque cookie to identify the sender
594 @param context - sender context, to match reply w/ request
595 @param is_ipv6 - 1 for IPv6 neighbor, 0 for IPv4
596 @param vrf_id - ID of th FIB table / VRF to reset
606 /** \brief Reply for Reset VRF request
607 @param context - returned sender context, to match reply w/ request
608 @param retval - return code
610 define reset_vrf_reply
616 /** \brief Is Address Reachable request - DISABLED
617 @param client_index - opaque cookie to identify the sender
618 @param context - sender context, to match reply w/ request
619 @param next_hop_sw_if_index - index of interface used to get to next hop
620 @param is_ipv6 - 1 for IPv6, 0 for IPv4
621 @param is_error - address not found or does not match intf
622 @param address[] - Address in question
624 define is_address_reachable
626 u32 client_index; /* (api_main_t *) am->my_client_index */
628 u32 next_hop_sw_if_index;
629 u8 is_known; /* on reply, this is the answer */
631 u8 is_error; /* address not found or does not match intf */
635 /** \brief Want Stats, register for stats updates
636 @param client_index - opaque cookie to identify the sender
637 @param context - sender context, to match reply w/ request
638 @param enable_disable - 1 = enable stats, 0 = disable
639 @param pid - pid of process requesting stats updates
649 /** \brief Reply for Want Stats request
650 @param context - returned sender context, to match reply w/ request
651 @param retval - return code
653 define want_stats_reply
659 /** \brief Want stats counters structure
660 @param vnet_counter_type- such as ip4, ip6, punts, etc
661 @param is_combined - rx & tx total (all types) counts
662 @param first_sw_if_index - first sw index in block of index, counts
663 @param count - number of interfaces this stats block includes counters for
664 @param data - contiguous block of vlib_counter_t structures
666 define vnet_interface_counters
668 /* enums - plural - in vnet/interface.h */
669 u8 vnet_counter_type;
671 u32 first_sw_if_index;
676 typeonly manual_print manual_endian define ip4_fib_counter
684 manual_print manual_endian define vnet_ip4_fib_counters
688 vl_api_ip4_fib_counter_t c[count];
691 typeonly manual_print manual_endian define ip6_fib_counter
699 manual_print manual_endian define vnet_ip6_fib_counters
703 vl_api_ip6_fib_counter_t c[count];
706 /** \brief Request for a single block of summary stats
707 @param client_index - opaque cookie to identify the sender
708 @param context - sender context, to match reply w/ request
710 define vnet_get_summary_stats
716 /** \brief Reply for vnet_get_summary_stats request
717 @param context - sender context, to match reply w/ request
718 @param retval - return code for request
723 define vnet_summary_stats_reply
732 /** \brief OAM event structure
733 @param dst_address[] -
742 /** \brief Want OAM events request
743 @param client_index - opaque cookie to identify the sender
744 @param context - sender context, to match reply w/ request
745 @param enable_disable- enable if non-zero, else disable
746 @param pid - pid of the requesting process
748 define want_oam_events
756 /** \brief Want OAM events response
757 @param context - sender context, to match reply w/ request
758 @param retval - return code for the want oam stats request
760 define want_oam_events_reply
766 /** \brief OAM add / del target request
767 @param client_index - opaque cookie to identify the sender
768 @param context - sender context, to match reply w/ request
769 @param vrf_id - vrf_id of the target
770 @param src_address[] - source address to use for the updates
771 @param dst_address[] - destination address of the target
772 @param is_add - add target if non-zero, else delete
784 /** \brief OAM add / del target response
785 @param context - sender context, to match reply w/ request
786 @param retval - return code of the request
788 define oam_add_del_reply
794 /** \brief Reset fib table request
795 @param client_index - opaque cookie to identify the sender
796 @param context - sender context, to match reply w/ request
797 @param vrf_id - vrf/table id of the fib table to reset
798 @param is_ipv6 - an ipv6 fib to reset if non-zero, else ipv4
808 /** \brief Reset fib response
809 @param context - sender context, to match reply w/ request
810 @param retval - return code for the reset bfib request
812 define reset_fib_reply
818 /** \brief DHCP Proxy config add / del request
819 @param client_index - opaque cookie to identify the sender
820 @param context - sender context, to match reply w/ request
821 @param vrf_id - vrf id
822 @param if_ipv6 - ipv6 if non-zero, else ipv4
823 @param is_add - add the config if non-zero, else delete
824 @param insert_circuit_id - option82 suboption 1 fib number
825 @param dhcp_server[] - server address
826 @param dhcp_src_address[] - <fix this, need details>
828 define dhcp_proxy_config
835 u8 insert_circuit_id;
837 u8 dhcp_src_address[16];
840 /** \brief DHCP Proxy config response
841 @param context - sender context, to match reply w/ request
842 @param retval - return code for the request
844 define dhcp_proxy_config_reply
850 /** \brief DHCP Proxy set / unset vss request
851 @param client_index - opaque cookie to identify the sender
852 @param context - sender context, to match reply w/ request
853 @param tbl_id - table id
854 @param oui - first part of vpn id
855 @param fib_id - second part of vpn id
856 @param is_ipv6 - ip6 if non-zero, else ip4
857 @param is_add - set vss if non-zero, else delete
859 define dhcp_proxy_set_vss
870 /** \brief DHCP proxy set / unset vss response
871 @param context - sender context, to match reply w/ request
872 @param retval - return code for the request
874 define dhcp_proxy_set_vss_reply
880 /** \brief Set the ip flow hash config for a fib request
881 @param client_index - opaque cookie to identify the sender
882 @param context - sender context, to match reply w/ request
883 @param vrf_id - vrf/fib id
884 @param is_ipv6 - if non-zero the fib is ip6, else ip4
885 @param src - if non-zero include src in flow hash
886 @param dst - if non-zero include dst in flow hash
887 @param sport - if non-zero include sport in flow hash
888 @param dport - if non-zero include dport in flow hash
889 @param proto -if non-zero include proto in flow hash
890 @param reverse - if non-zero include reverse in flow hash
892 define set_ip_flow_hash
906 /** \brief Set the ip flow hash config for a fib response
907 @param context - sender context, to match reply w/ request
908 @param retval - return code for the request
910 define set_ip_flow_hash_reply
916 /** \brief IPv6 router advertisement config request
917 @param client_index - opaque cookie to identify the sender
918 @param context - sender context, to match reply w/ request
923 @param send_unicast -
926 @param default_router -
927 @param max_interval -
928 @param min_interval -
930 @param initial_count -
931 @param initial_interval -
933 define sw_interface_ip6nd_ra_config
950 u32 initial_interval;
953 /** \brief IPv6 router advertisement config response
954 @param context - sender context, to match reply w/ request
955 @param retval - return code for the request
957 define sw_interface_ip6nd_ra_config_reply
963 /** \brief IPv6 router advertisement prefix config request
964 @param client_index - opaque cookie to identify the sender
965 @param context - sender context, to match reply w/ request
968 @param address_length -
970 @param no_advertise -
972 @param no_autoconfig -
975 @param val_lifetime -
976 @param pref_lifetime -
978 define sw_interface_ip6nd_ra_prefix
995 /** \brief IPv6 router advertisement prefix config response
996 @param context - sender context, to match reply w/ request
997 @param retval - return code for the request
999 define sw_interface_ip6nd_ra_prefix_reply
1005 /** \brief IPv6 interface enable / disable request
1006 @param client_index - opaque cookie to identify the sender
1007 @param context - sender context, to match reply w/ request
1008 @param sw_if_index - interface used to reach neighbor
1009 @param enable - if non-zero enable ip6 on interface, else disable
1011 define sw_interface_ip6_enable_disable
1016 u8 enable; /* set to true if enable */
1019 /** \brief IPv6 interface enable / disable response
1020 @param context - sender context, to match reply w/ request
1021 @param retval - return code for the request
1023 define sw_interface_ip6_enable_disable_reply
1029 /** \brief IPv6 set link local address on interface request
1030 @param client_index - opaque cookie to identify the sender
1031 @param context - sender context, to match reply w/ request
1032 @param sw_if_index - interface to set link local on
1033 @param address[] - the new link local address
1034 @param address_length - link local address length
1036 define sw_interface_ip6_set_link_local_address
1045 /** \brief IPv6 set link local address on interface response
1046 @param context - sender context, to match reply w/ request
1047 @param retval - error code for the request
1049 define sw_interface_ip6_set_link_local_address_reply
1055 /** \brief Set unnumbered interface add / del request
1056 @param client_index - opaque cookie to identify the sender
1057 @param context - sender context, to match reply w/ request
1058 @param sw_if_index - interface with an IP address
1059 @param unnumbered_sw_if_index - interface which will use the address
1060 @param is_add - if non-zero set the association, else unset it
1062 define sw_interface_set_unnumbered
1066 u32 sw_if_index; /* use this intfc address */
1067 u32 unnumbered_sw_if_index; /* on this interface */
1071 /** \brief Set unnumbered interface add / del response
1072 @param context - sender context, to match reply w/ request
1073 @param retval - return code for the request
1075 define sw_interface_set_unnumbered_reply
1081 /** \brief Create loopback interface request
1082 @param client_index - opaque cookie to identify the sender
1083 @param context - sender context, to match reply w/ request
1084 @param mac_address - mac addr to assign to the interface if none-zero
1086 define create_loopback
1093 /** \brief Create loopback interface response
1094 @param context - sender context, to match reply w/ request
1095 @param sw_if_index - sw index of the interface that was created
1096 @param retval - return code for the request
1098 define create_loopback_reply
1105 /** \brief Delete loopback interface request
1106 @param client_index - opaque cookie to identify the sender
1107 @param context - sender context, to match reply w/ request
1108 @param sw_if_index - sw index of the interface that was created
1110 define delete_loopback
1117 /** \brief Delete loopback interface response
1118 @param context - sender context, to match reply w/ request
1119 @param retval - return code for the request
1121 define delete_loopback_reply
1127 /** \brief Control ping from client to api server request
1128 @param client_index - opaque cookie to identify the sender
1129 @param context - sender context, to match reply w/ request
1137 /** \brief Control ping from the client to the server response
1138 @param client_index - opaque cookie to identify the sender
1139 @param context - sender context, to match reply w/ request
1140 @param retval - return code for the request
1141 @param vpe_pid - the pid of the vpe, returned by the server
1143 define control_ping_reply
1151 /** \brief Process a vpe parser cli string request
1152 @param client_index - opaque cookie to identify the sender
1153 @param context - sender context, to match reply w/ request
1154 @param cmd_in_shmem - pointer to cli command string
1170 /** \brief vpe parser cli string response
1171 @param context - sender context, to match reply w/ request
1172 @param retval - return code for request
1173 @param reply_in_shmem - Reply string from cli processing if any
1181 define cli_inband_reply
1189 /** \brief Set max allowed ARP or ip6 neighbor entries request
1190 @param client_index - opaque cookie to identify the sender
1191 @param context - sender context, to match reply w/ request
1192 @param is_ipv6 - neighbor limit if non-zero, else ARP limit
1193 @param arp_neighbor_limit - the new limit, defaults are ~ 50k
1195 define set_arp_neighbor_limit
1200 u32 arp_neighbor_limit;
1203 /** \brief Set max allowed ARP or ip6 neighbor entries response
1204 @param context - sender context, to match reply w/ request
1205 @param retval - return code for request
1207 define set_arp_neighbor_limit_reply
1213 /** \brief L2 interface patch add / del request
1214 @param client_index - opaque cookie to identify the sender
1215 @param context - sender context, to match reply w/ request
1216 @param rx_sw_if_index - receive side interface
1217 @param tx_sw_if_index - transmit side interface
1218 @param is_add - if non-zero set up the interface patch, else remove it
1220 define l2_patch_add_del
1229 /** \brief L2 interface patch add / del response
1230 @param context - sender context, to match reply w/ request
1231 @param retval - return code for the request
1233 define l2_patch_add_del_reply
1239 /** \brief IPv6 segment routing tunnel add / del request
1240 @param client_index - opaque cookie to identify the sender
1241 @param context - sender context, to match reply w/ request
1242 @param is_add - add the tunnel if non-zero, else delete it
1243 @param name[] - tunnel name (len. 64)
1244 @param src_address[] -
1245 @param dst_address[] -
1246 @param dst_mask_width -
1247 @param inner_vrf_id -
1248 @param outer_vrf_id -
1249 @param flags_net_byte_order -
1252 @param segs_and_tags[] -
1253 @param policy_name[] - name of policy to associate this tunnel to (len. 64)
1255 define sr_tunnel_add_del
1266 u16 flags_net_byte_order;
1269 u8 segs_and_tags[0];
1273 /** \brief IPv6 segment routing tunnel add / del response
1274 @param context - sender context, to match reply w/ request
1275 @param retval - return value for request
1277 define sr_tunnel_add_del_reply
1283 /** \brief IPv6 segment routing policy add / del request
1284 @param client_index - opaque cookie to identify the sender
1285 @param context - sender context, to match reply w/ request
1286 @param is_add - add the tunnel if non-zero, else delete it
1287 @param name[] - policy name (len. 64)
1288 @param tunnel_names[] -
1290 define sr_policy_add_del
1299 /** \brief IPv6 segment routing policy add / del response
1300 @param context - sender context, to match reply w/ request
1301 @param retval - return value for request
1303 define sr_policy_add_del_reply
1309 /** \brief IPv6 segment routing multicast map to policy add / del request
1310 @param client_index - opaque cookie to identify the sender
1311 @param context - sender context, to match reply w/ request
1312 @param is_add - add the tunnel if non-zero, else delete it
1313 @param multicast_address[] - IP6 multicast address
1314 @param policy_name[] = policy name (len.64)
1316 define sr_multicast_map_add_del
1321 u8 multicast_address[16];
1325 /** \brief IPv6 segment routing multicast map to policy add / del response
1326 @param context - sender context, to match reply w/ request
1327 @param retval - return value for request
1329 define sr_multicast_map_add_del_reply
1335 /** \brief Interface set vpath request
1336 @param client_index - opaque cookie to identify the sender
1337 @param context - sender context, to match reply w/ request
1338 @param sw_if_index - interface used to reach neighbor
1339 @param enable - if non-zero enable, else disable
1341 define sw_interface_set_vpath
1349 /** \brief Interface set vpath response
1350 @param context - sender context, to match reply w/ request
1351 @param retval - return code for the request
1353 define sw_interface_set_vpath_reply
1359 /** \brief MPLS Ethernet add / del tunnel request
1360 @param client_index - opaque cookie to identify the sender
1361 @param context - sender context, to match reply w/ request
1362 @param vrf_id - vrf_id, only for IP4
1363 @param sw_if_index - interface used to reach neighbor
1364 @param is_add - add if set, tunnel delete if 0
1365 @param dst_mac_address -
1366 @param adj_address -
1367 @param adj_address_length -
1369 define mpls_ethernet_add_del_tunnel
1377 u8 dst_mac_address[6];
1379 u8 adj_address_length;
1382 /** \brief Reply for MPLS Ethernet add / delete tunnel request
1383 @param context - sender context, to match reply w/ request
1384 @param retval - return code for the request
1386 define mpls_ethernet_add_del_tunnel_reply
1390 u32 tunnel_sw_if_index;
1392 /** \brief MPLS Ethernet add/ del tunnel 2
1393 @param client_index - opaque cookie to identify the sender
1394 @param context - sender context, to match reply w/ request
1395 @param inner_vrf_id -
1396 @param outer_vrf_id -
1397 @param resolve_attempts -
1398 @param resolve_opaque -
1399 @param resolve_if_needed -
1401 @param adj_address -
1402 @param adj_address_length -
1403 @param next_hop_ip4_address_in_outer_vrf -
1405 define mpls_ethernet_add_del_tunnel_2
1411 u32 resolve_attempts;
1412 u32 resolve_opaque; /* no need to set this */
1413 u8 resolve_if_needed;
1417 u8 adj_address_length;
1418 u8 next_hop_ip4_address_in_outer_vrf[4];
1421 /** \brief MPLS Ethernet add/ del tunnel 2
1422 @param context - sender context, to match reply w/ request
1423 @param retval - return code for add /del request
1425 define mpls_ethernet_add_del_tunnel_2_reply
1431 /** \brief Set L2 XConnect between two interfaces request
1432 @param client_index - opaque cookie to identify the sender
1433 @param context - sender context, to match reply w/ request
1434 @param rx_sw_if_index - Receive interface index
1435 @param tx_sw_if_index - Transmit interface index
1436 @param enable - enable xconnect if not 0, else set to L3 mode
1438 define sw_interface_set_l2_xconnect
1447 /** \brief Set L2 XConnect response
1448 @param context - sender context, to match reply w/ request
1449 @param retval - L2 XConnect request return code
1451 define sw_interface_set_l2_xconnect_reply
1457 /** \brief Interface bridge mode request
1458 @param client_index - opaque cookie to identify the sender
1459 @param context - sender context, to match reply w/ request
1460 @param rx_sw_if_index - the interface
1461 @param bd_id - bridge domain id
1462 @param bvi - Setup interface as a bvi, bridge mode only
1463 @param shg - Shared horizon group, for bridge mode only
1464 @param enable - Enable beige mode if not 0, else set to L3 mode
1466 define sw_interface_set_l2_bridge
1477 /** \brief Interface bridge mode response
1478 @param context - sender context, to match reply w/ request
1479 @param retval - Bridge mode request return code
1481 define sw_interface_set_l2_bridge_reply
1487 /** \brief L2 FIB add entry request
1488 @param client_index - opaque cookie to identify the sender
1489 @param context - sender context, to match reply w/ request
1490 @param mac - the entry's mac address
1491 @param bd_id - the entry's bridge domain id
1492 @param sw_if_index - the interface
1493 @param is_add - If non zero add the entry, else delete it
1497 define l2fib_add_del
1510 /** \brief L2 FIB add entry response
1511 @param context - sender context, to match reply w/ request
1512 @param retval - return code for the add l2fib entry request
1514 define l2fib_add_del_reply
1520 /** \brief Set L2 flags request !!! TODO - need more info, feature bits in l2_input.h
1521 @param client_index - opaque cookie to identify the sender
1522 @param context - sender context, to match reply w/ request
1523 @param sw_if_index - interface
1524 @param is_set - if non-zero, set the bits, else clear them
1525 @param feature_bitmap - non-zero bits to set or clear
1536 /** \brief Set L2 bits response
1537 @param context - sender context, to match reply w/ request
1538 @param retval - return code for the set l2 bits request
1540 define l2_flags_reply
1544 u32 resulting_feature_bitmap;
1547 /** \brief Set bridge flags (such as L2_LEARN, L2_FWD, L2_FLOOD,
1548 L2_UU_FLOOD, or L2_ARP_TERM) request
1549 @param client_index - opaque cookie to identify the sender
1550 @param context - sender context, to match reply w/ request
1551 @param bd_id - the bridge domain to set the flags for
1552 @param is_set - if non-zero, set the flags, else clear them
1553 @param feature_bitmap - bits that are non-zero to set or clear
1564 /** \brief Set bridge flags response
1565 @param context - sender context, to match reply w/ request
1566 @param retval - return code for the set bridge flags request
1567 @param resulting_feature_bitmap - the feature bitmap value after the request is implemented
1569 define bridge_flags_reply
1573 u32 resulting_feature_bitmap;
1576 /** \brief Set bridge domain ip to mac entry request
1577 @param client_index - opaque cookie to identify the sender
1578 @param context - sender context, to match reply w/ request
1579 @param bd_id - the bridge domain to set the flags for
1580 @param is_add - if non-zero, add the entry, else clear it
1581 @param is_ipv6 - if non-zero, ipv6 address, else ipv4 address
1582 @param mac_address - MAC address
1585 define bd_ip_mac_add_del
1596 /** \brief Set bridge domain ip to mac entry response
1597 @param context - sender context, to match reply w/ request
1598 @param retval - return code for the set bridge flags request
1600 define bd_ip_mac_add_del_reply
1606 /** \brief Add/Delete classification table request
1607 @param client_index - opaque cookie to identify the sender
1608 @param context - sender context, to match reply w/ request
1609 @param is_add- if non-zero add the table, else delete it
1610 @param table_index - if add, reuturns index of the created table, else specifies the table to delete
1611 @param nbuckets - number of buckets when adding a table
1612 @param memory_size - memory size when adding a table
1613 @param match_n_vectors - number of match vectors
1614 @param next_table_index - index of next table
1615 @param miss_next_index - index of miss table
1616 @param mask[] - match mask
1618 define classify_add_del_table
1627 u32 match_n_vectors;
1628 u32 next_table_index;
1629 u32 miss_next_index;
1633 /** \brief Add/Delete classification table response
1634 @param context - sender context, to match reply w/ request
1635 @param retval - return code for the table add/del requst
1636 @param new_table_index - for add, returned index of the new table
1637 @param skip_n_vectors - for add, returned value of skip_n_vectors in table
1638 @param match_n_vectors -for add, returned value of match_n_vectors in table
1640 define classify_add_del_table_reply
1644 u32 new_table_index;
1646 u32 match_n_vectors;
1649 /** \brief Classify add / del session request
1650 @param client_index - opaque cookie to identify the sender
1651 @param context - sender context, to match reply w/ request
1652 @param is_add - add session if non-zero, else delete
1653 @param table_index - index of the table to add/del the session, required
1654 @param hit_next_index - for add, hit_next_index of new session, required
1655 @param opaque_index - for add, opaque_index of new session
1656 @param advance -for add, advance value for session
1657 @param match[] - for add, match value for session, required
1659 define classify_add_del_session
1671 /** \brief Classify add / del session response
1672 @param context - sender context, to match reply w/ request
1673 @param retval - return code for the add/del session request
1675 define classify_add_del_session_reply
1681 /** \brief Set/unset the classification table for an interface request
1682 @param client_index - opaque cookie to identify the sender
1683 @param context - sender context, to match reply w/ request
1684 @param is_ipv6 - ipv6 if non-zero, else ipv4
1685 @param sw_if_index - interface to associate with the table
1686 @param table_index - index of the table, if ~0 unset the table
1688 define classify_set_interface_ip_table
1694 u32 table_index; /* ~0 => off */
1697 /** \brief Set/unset interface classification table response
1698 @param context - sender context, to match reply w/ request
1699 @param retval - return code
1701 define classify_set_interface_ip_table_reply
1707 /** \brief Set/unset l2 classification tables for an interface request
1708 @param client_index - opaque cookie to identify the sender
1709 @param context - sender context, to match reply w/ request
1710 @param sw_if_index - interface to set/unset tables for
1711 @param ip4_table_index - ip4 index, use ~0 for all 3 indexes to unset
1712 @param ip6_table_index - ip6 index
1713 @param other_table_index - other index
1715 define classify_set_interface_l2_tables
1721 u32 ip4_table_index;
1722 u32 ip6_table_index;
1723 u32 other_table_index;
1727 /** \brief Set/unset l2 classification tables for an interface response
1728 @param context - sender context, to match reply w/ request
1729 @param retval - return code for the request
1731 define classify_set_interface_l2_tables_reply
1737 /** \brief Get node index using name request
1738 @param client_index - opaque cookie to identify the sender
1739 @param context - sender context, to match reply w/ request
1740 @param node_name[] - name of the node
1742 define get_node_index
1749 /** \brief Get node index using name request
1750 @param context - sender context, to match reply w/ request
1751 @param retval - return code for the request
1752 @param node_index - index of the desired node if found, else ~0
1754 define get_node_index_reply
1761 /** \brief Set the next node for a given node request
1762 @param client_index - opaque cookie to identify the sender
1763 @param context - sender context, to match reply w/ request
1764 @param node_name[] - node to add the next node to
1765 @param next_name[] - node to add as the next node
1767 define add_node_next
1775 /** \brief IP Set the next node for a given node response
1776 @param context - sender context, to match reply w/ request
1777 @param retval - return code for the add next node request
1778 @param next_index - the index of the next node if success, else ~0
1780 define add_node_next_reply
1787 /** \brief DHCP Proxy config 2 add / del request
1788 @param client_index - opaque cookie to identify the sender
1789 @param context - sender context, to match reply w/ request
1790 @param rx_vrf_id - receive vrf id
1791 @param server_vrf_id - server vrf id
1792 @param if_ipv6 - ipv6 if non-zero, else ipv4
1793 @param is_add - add the config if non-zero, else delete
1794 @param insert_circuit_id - option82 suboption 1 fib number
1795 @param dhcp_server[] - server address
1796 @param dhcp_src_address[] - <fix this, need details>
1798 define dhcp_proxy_config_2
1806 u8 insert_circuit_id;
1808 u8 dhcp_src_address[16];
1811 /** \brief DHCP Proxy config 2 add / del response
1812 @param context - sender context, to match reply w/ request
1813 @param retval - return code for request
1815 define dhcp_proxy_config_2_reply
1821 /** \brief l2tpv3 tunnel interface create request
1822 @param client_index - opaque cookie to identify the sender
1823 @param context - sender context, to match reply w/ request
1824 @param client_address - remote client tunnel ip address
1825 @param client_address - local tunnel ip address
1826 @param is_ipv6 - ipv6 if non-zero, else ipv4
1827 @param local_session_id - local tunnel session id
1828 @param remote_session_id - remote tunnel session id
1829 @param local_cookie - local tunnel cookie
1830 @param l2_sublayer_present - l2 sublayer is present in packets if non-zero
1831 @param encap_vrf_id - fib identifier used for outgoing encapsulated packets
1833 define l2tpv3_create_tunnel
1837 u8 client_address[16];
1840 u32 local_session_id;
1841 u32 remote_session_id;
1844 u8 l2_sublayer_present;
1848 /** \brief l2tpv3 tunnel interface create response
1849 @param context - sender context, to match reply w/ request
1850 @param retval - return code for the request
1851 @param sw_if_index - index of the new tunnel interface
1853 define l2tpv3_create_tunnel_reply
1860 define l2tpv3_set_tunnel_cookies
1865 u64 new_local_cookie;
1866 u64 new_remote_cookie;
1869 /** \brief L2TP tunnel set cookies response
1870 @param context - sender context, to match reply w/ request
1871 @param retval - return code for the request
1873 define l2tpv3_set_tunnel_cookies_reply
1879 define sw_if_l2tpv3_tunnel_details
1883 u8 interface_name[64];
1884 u8 client_address[16];
1886 u32 local_session_id;
1887 u32 remote_session_id;
1888 u64 local_cookie[2];
1890 u8 l2_sublayer_present;
1893 define sw_if_l2tpv3_tunnel_dump
1899 /** \brief L2 fib clear table request, clear all mac entries in the l2 fib
1900 @param client_index - opaque cookie to identify the sender
1901 @param context - sender context, to match reply w/ request
1903 define l2_fib_clear_table
1909 /** \brief L2 fib clear table response
1910 @param context - sender context, to match reply w/ request
1911 @param retval - return code for the request
1913 define l2_fib_clear_table_reply
1919 /** \brief L2 interface ethernet flow point filtering enable/disable request
1920 @param client_index - opaque cookie to identify the sender
1921 @param context - sender context, to match reply w/ request
1922 @param sw_if_index - interface to enable/disable filtering on
1923 @param enable_disable - if non-zero enable filtering, else disable
1925 define l2_interface_efp_filter
1933 /** \brief L2 interface ethernet flow point filtering response
1934 @param context - sender context, to match reply w/ request
1935 @param retval - return code for the request
1937 define l2_interface_efp_filter_reply
1943 define l2tpv3_interface_enable_disable
1951 define l2tpv3_interface_enable_disable_reply
1957 define l2tpv3_set_lookup_key
1961 /* 0 = ip6 src_address, 1 = ip6 dst_address, 2 = session_id */
1965 define l2tpv3_set_lookup_key_reply
1971 define vxlan_add_del_tunnel
1980 u32 decap_next_index;
1984 define vxlan_add_del_tunnel_reply
1991 define vxlan_tunnel_dump
1998 define vxlan_tunnel_details
2005 u32 decap_next_index;
2010 define gre_add_del_tunnel
2021 define gre_add_del_tunnel_reply
2028 define gre_tunnel_dump
2035 define gre_tunnel_details
2045 /** \brief L2 interface vlan tag rewrite configure request
2046 @param client_index - opaque cookie to identify the sender
2047 @param context - sender context, to match reply w/ request
2048 @param sw_if_index - interface the operation is applied to
2049 @param vtr_op - Choose from l2_vtr_op_t enum values
2050 @param push_dot1q - first pushed flag dot1q id set, else dot1ad
2051 @param tag1 - Needed for any push or translate vtr op
2052 @param tag2 - Needed for any push 2 or translate x-2 vtr ops
2054 define l2_interface_vlan_tag_rewrite
2060 u32 push_dot1q; // ethertype of first pushed tag is dot1q/dot1ad
2061 u32 tag1; // first pushed tag
2062 u32 tag2; // second pushed tag
2065 /** \brief L2 interface vlan tag rewrite response
2066 @param context - sender context, to match reply w/ request
2067 @param retval - return code for the request
2069 define l2_interface_vlan_tag_rewrite_reply
2075 /** \brief vhost-user interface create request
2076 @param client_index - opaque cookie to identify the sender
2077 @param is_server - our side is socket server
2078 @param sock_filename - unix socket filename, used to speak with frontend
2079 @param use_custom_mac - enable or disable the use of the provided hardware address
2080 @param mac_address - hardware address to use if 'use_custom_mac' is set
2082 define create_vhost_user_if
2087 u8 sock_filename[256];
2089 u32 custom_dev_instance;
2094 /** \brief vhost-user interface create response
2095 @param context - sender context, to match reply w/ request
2096 @param retval - return code for the request
2097 @param sw_if_index - interface the operation is applied to
2099 define create_vhost_user_if_reply
2106 /** \brief vhost-user interface modify request
2107 @param client_index - opaque cookie to identify the sender
2108 @param is_server - our side is socket server
2109 @param sock_filename - unix socket filename, used to speak with frontend
2111 define modify_vhost_user_if
2117 u8 sock_filename[256];
2119 u32 custom_dev_instance;
2122 /** \brief vhost-user interface modify response
2123 @param context - sender context, to match reply w/ request
2124 @param retval - return code for the request
2126 define modify_vhost_user_if_reply
2132 /** \brief vhost-user interface delete request
2133 @param client_index - opaque cookie to identify the sender
2135 define delete_vhost_user_if
2142 /** \brief vhost-user interface delete response
2143 @param context - sender context, to match reply w/ request
2144 @param retval - return code for the request
2146 define delete_vhost_user_if_reply
2159 /* These fields map directly onto the subif template */
2163 u8 dot1ad; // 0 = dot1q, 1=dot1ad
2166 u8 outer_vlan_id_any;
2167 u8 inner_vlan_id_any;
2172 define create_subif_reply
2179 /** \brief show version
2180 @param client_index - opaque cookie to identify the sender
2181 @param context - sender context, to match reply w/ request
2189 /** \brief show version response
2190 @param context - sender context, to match reply w/ request
2191 @param retval - return code for the request
2192 @param program - name of the program (vpe)
2193 @param version - version of the program
2194 @param build_directory - root of the workspace where the program was built
2196 define show_version_reply
2203 u8 build_directory[256];
2206 /** \brief Vhost-user interface details structure (fix this)
2207 @param sw_if_index - index of the interface
2208 @param interface_name - name of interface
2209 @param virtio_net_hdr_sz - net header size
2210 @param features - interface features
2211 @param is_server - vhost-user server socket
2212 @param sock_filename - socket filename
2213 @param num_regions - number of used memory regions
2215 define sw_interface_vhost_user_details
2219 u8 interface_name[64];
2220 u32 virtio_net_hdr_sz;
2223 u8 sock_filename[256];
2229 define sw_interface_vhost_user_dump
2235 define ip_address_details
2243 define ip_address_dump
2264 /** \brief l2 fib table entry structure
2265 @param bd_id - the l2 fib / bridge domain table id
2266 @param mac - the entry's mac address
2267 @param sw_if_index - index of the interface
2268 @param static_mac - the entry is statically configured.
2269 @param filter_mac - the entry is a mac filter entry.
2270 @param bvi_mac - the mac address is a bridge virtual interface
2272 define l2_fib_table_entry
2283 /** \brief Dump l2 fib (aka bridge domain) table
2284 @param client_index - opaque cookie to identify the sender
2285 @param bd_id - the l2 fib / bridge domain table identifier
2287 define l2_fib_table_dump
2294 define vxlan_gpe_add_del_tunnel
2308 define vxlan_gpe_add_del_tunnel_reply
2315 define vxlan_gpe_tunnel_dump
2322 define vxlan_gpe_tunnel_details
2335 /** \brief add or delete locator_set
2336 @param client_index - opaque cookie to identify the sender
2337 @param context - sender context, to match reply w/ request
2338 @param is_add - add address if non-zero, else delete
2339 @param locator_set_name - locator name
2340 @param locator_num - number of locators
2341 @param locators - Lisp locator data
2343 define lisp_add_del_locator_set
2348 u8 locator_set_name[64];
2350 u8 locators[locator_num];
2353 /** \brief Reply for locator_set add/del
2354 @param context - returned sender context, to match reply w/ request
2355 @param retval - return code
2356 @param ls_index - locator set index
2358 define lisp_add_del_locator_set_reply
2365 /** \brief add or delete locator for locator_set
2366 @param client_index - opaque cookie to identify the sender
2367 @param context - sender context, to match reply w/ request
2368 @param is_add - add address if non-zero, else delete
2369 @param locator_set_name - name of locator_set to add/del locator
2370 @param sw_if_index - index of the interface
2371 @param priority - priority of the lisp locator
2372 @param weight - weight of the lisp locator
2374 define lisp_add_del_locator
2379 u8 locator_set_name[64];
2385 /** \brief Reply for locator add/del
2386 @param context - returned sender context, to match reply w/ request
2387 @param retval - return code
2389 define lisp_add_del_locator_reply
2395 /** \brief add or delete lisp eid-table
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 eid - EID can be ip4, ip6 or mac
2404 @param prefix_len - prefix len
2405 @param locator_set_name - name of locator_set to add/del eid-table
2406 @param vni - virtual network instance
2408 define lisp_add_del_local_eid
2416 u8 locator_set_name[64];
2420 /** \brief Reply for local_eid add/del
2421 @param context - returned sender context, to match reply w/ request
2422 @param retval - return code
2424 define lisp_add_del_local_eid_reply
2430 /** \brief add or delete lisp gpe tunnel
2431 @param client_index - opaque cookie to identify the sender
2432 @param context - sender context, to match reply w/ request
2433 @param is_add - add address if non-zero, else delete
2438 @param rmt_eid - remote eid
2439 @param lcl_eid - local eid
2440 @param rmt_len - remote prefix len
2441 @param lcl_len - local prefix len
2442 @param vni - virtual network identifier
2443 @param dp_table - vrf/bridge domain id
2444 @param loc_num - number of locators
2445 @param lcl_locs - array of local locators
2446 @param rmt_locs - array of remote locators
2447 @param action - negative action when 0 locators configured
2449 define lisp_gpe_add_del_fwd_entry
2462 u8 lcl_locs[loc_num];
2463 u8 rmt_locs[loc_num];
2467 /** \brief Reply for gpe_fwd_entry add/del
2468 @param context - returned sender context, to match reply w/ request
2469 @param retval - return code
2471 define lisp_gpe_add_del_fwd_entry_reply
2477 /** \brief add or delete map-resolver
2478 @param client_index - opaque cookie to identify the sender
2479 @param context - sender context, to match reply w/ request
2480 @param is_add - add address if non-zero, else delete
2481 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
2482 @param ip_address - array of address bytes
2484 define lisp_add_del_map_resolver
2493 /** \brief Reply for map_resolver add/del
2494 @param context - returned sender context, to match reply w/ request
2495 @param retval - return code
2497 define lisp_add_del_map_resolver_reply
2503 /** \brief enable or disable lisp-gpe protocol
2504 @param client_index - opaque cookie to identify the sender
2505 @param context - sender context, to match reply w/ request
2506 @param is_en - enable protocol if non-zero, else disable
2508 define lisp_gpe_enable_disable
2515 /** \brief Reply for gpe enable/disable
2516 @param context - returned sender context, to match reply w/ request
2517 @param retval - return code
2519 define lisp_gpe_enable_disable_reply
2525 /** \brief enable or disable LISP feature
2526 @param client_index - opaque cookie to identify the sender
2527 @param context - sender context, to match reply w/ request
2528 @param is_en - enable protocol if non-zero, else disable
2530 define lisp_enable_disable
2537 /** \brief Reply for gpe enable/disable
2538 @param context - returned sender context, to match reply w/ request
2539 @param retval - return code
2541 define lisp_enable_disable_reply
2547 /** \brief add or delete gpe_iface
2548 @param client_index - opaque cookie to identify the sender
2549 @param context - sender context, to match reply w/ request
2550 @param is_add - add address if non-zero, else delete
2552 define lisp_gpe_add_del_iface
2562 /** \brief Reply for gpe_iface add/del
2563 @param context - returned sender context, to match reply w/ request
2564 @param retval - return code
2566 define lisp_gpe_add_del_iface_reply
2572 /** \brief configure or disable LISP PITR node
2573 @param client_index - opaque cookie to identify the sender
2574 @param context - sender context, to match reply w/ request
2575 @param ls_name - locator set name
2576 @param is_add - add locator set if non-zero, else disable pitr
2578 define lisp_pitr_set_locator_set
2586 /** \brief Reply for lisp_pitr_set_locator_set
2587 @param context - returned sender context, to match reply w/ request
2588 @param retval - return code
2590 define lisp_pitr_set_locator_set_reply
2596 /** \brief add or delete remote static mapping
2597 @param client_index - opaque cookie to identify the sender
2598 @param context - sender context, to match reply w/ request
2599 @param is_add - add address if non-zero, else delete
2600 @param is_src_dst - flag indicating src/dst based routing policy
2601 @param del_all - if set, delete all remote mappings
2602 @param vni - virtual network instance
2603 @param action - negative map-reply action
2608 @param deid - dst EID
2609 @param seid - src EID, valid only if is_src_dst is enabled
2610 @param rloc_num - number of remote locators
2611 @param rlocs - remote locator data
2613 define lisp_add_del_remote_mapping
2631 /** \brief Reply for lisp_add_del_remote_mapping
2632 @param context - returned sender context, to match reply w/ request
2633 @param retval - return code
2635 define lisp_add_del_remote_mapping_reply
2641 /** \brief add or delete LISP adjacency adjacency
2642 @param client_index - opaque cookie to identify the sender
2643 @param context - sender context, to match reply w/ request
2644 @param is_add - add address if non-zero, else delete
2645 @param vni - virtual network instance
2650 @param deid - destination EID
2651 @param seid - source EID
2653 define lisp_add_del_adjacency
2666 /** \brief Reply for lisp_add_del_adjacency
2667 @param context - returned sender context, to match reply w/ request
2668 @param retval - return code
2670 define lisp_add_del_adjacency_reply
2676 /** \brief add or delete map request itr rlocs
2677 @param client_index - opaque cookie to identify the sender
2678 @param context - sender context, to match reply w/ request
2679 @param is_add - add address if non-zero, else delete
2680 @param locator_set_name - locator set name
2682 define lisp_add_del_map_request_itr_rlocs
2687 u8 locator_set_name[64];
2690 /** \brief Reply for lisp_add_del_map_request_itr_rlocs
2691 @param context - returned sender context, to match reply w/ request
2692 @param retval - return code
2695 define lisp_add_del_map_request_itr_rlocs_reply
2701 /** \brief map/unmap vni/bd_index to vrf
2702 @param client_index - opaque cookie to identify the sender
2703 @param context - sender context, to match reply w/ request
2704 @param is_add - add or delete mapping
2705 @param dp_table - virtual network id/bridge domain index
2708 define lisp_eid_table_add_del_map
2718 /** \brief Reply for lisp_eid_table_add_del_map
2719 @param context - returned sender context, to match reply w/ request
2720 @param retval - return code
2722 define lisp_eid_table_add_del_map_reply
2728 /** \brief Request for map lisp locator status
2729 @param client_index - opaque cookie to identify the sender
2730 @param context - sender context, to match reply w/ request
2731 @param locator_set_index - index of locator_set
2732 @param ls_name - locator set name
2733 @param is_index_set - flag indicating whether ls_name or ls_index is set
2735 define lisp_locator_dump
2744 /** \brief LISP locator_set status
2745 @param local - if is set, then locator is local
2746 @param locator_set_name - name of the locator_set
2747 @param sw_if_index - sw_if_index of the locator
2748 @param priority - locator priority
2749 @param weight - locator weight
2751 define lisp_locator_details
2762 /** \brief LISP locator_set status
2763 @param context - sender context, to match reply w/ request
2764 @param ls_index - locator set index
2765 @param ls_name - name of the locator set
2767 define lisp_locator_set_details
2774 /** \brief Request for locator_set summary status
2775 @param client_index - opaque cookie to identify the sender
2776 @param context - sender context, to match reply w/ request
2777 @param filter - filter type
2780 1: local locator sets
2781 2: remote locator sets
2783 define lisp_locator_set_dump
2790 /** \brief Dump lisp eid-table
2791 @param client_index - opaque cookie to identify the sender
2792 @param context - sender context, to match reply w/ request
2793 @param locator_set_index - index of locator_set, if ~0 then the mapping
2795 @param action - negative map request action
2796 @param is_local - local if non-zero, else remote
2801 @param is_src_dst - EID is type of source/destination
2802 @param eid - EID can be ip4, ip6 or mac
2803 @param eid_prefix_len - prefix length
2804 @param seid - source EID can be ip4, ip6 or mac
2805 @param seid_prefix_len - source prefix length
2806 @param vni - virtual network instance
2807 @param ttl - time to live
2808 @param authoritative - authoritative
2811 define lisp_eid_table_details
2814 u32 locator_set_index;
2828 /** \brief Request for eid table summary status
2829 @param client_index - opaque cookie to identify the sender
2830 @param context - sender context, to match reply w/ request
2831 @param eid_set - if non-zero request info about specific mapping
2832 @param vni - virtual network instance; valid only if eid_set != 0
2833 @param prefix_length - prefix length if EID is IP address;
2834 valid only if eid_set != 0
2835 @param eid_type - EID type; valid only if eid_set != 0
2839 2: EID is ethernet address
2840 @param eid - endpoint identifier
2841 @param filter - filter type;
2847 define lisp_eid_table_dump
2859 /** \brief Shows relationship between vni and vrf/bd
2860 @param dp_table - VRF index or bridge domain index
2861 @param vni - vitual network instance
2863 define lisp_eid_table_map_details
2870 /** \brief Request for lisp_eid_table_map_details
2871 @param client_index - opaque cookie to identify the sender
2872 @param context - sender context, to match reply w/ request
2873 @param is_l2 - if set dump vni/bd mappings else vni/vrf
2875 define lisp_eid_table_map_dump
2882 /** \brief Dumps all VNIs used in mappings
2883 @param client_index - opaque cookie to identify the sender
2884 @param context - sender context, to match reply w/ request
2886 define lisp_eid_table_vni_dump
2892 /** \brief reply to lisp_eid_table_vni_dump
2893 @param client_index - opaque cookie to identify the sender
2894 @param context - sender context, to match reply w/ request
2895 @param vni - virtual network instance
2897 define lisp_eid_table_vni_details
2904 define lisp_gpe_tunnel_details
2910 u8 destination_ip[16];
2922 /** \brief Request for gpe tunnel summary status
2923 @param client_index - opaque cookie to identify the sender
2924 @param context - sender context, to match reply w/ request
2926 define lisp_gpe_tunnel_dump
2932 /** \brief LISP map resolver status
2933 @param locator_set_name - name of the locator_set
2934 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
2935 @param ip_address - array of address bytes
2937 define lisp_map_resolver_details
2944 /** \brief Request for map resolver summary status
2945 @param client_index - opaque cookie to identify the sender
2946 @param context - sender context, to match reply w/ request
2948 define lisp_map_resolver_dump
2954 /** \brief Request for lisp-gpe protocol status
2955 @param client_index - opaque cookie to identify the sender
2956 @param context - sender context, to match reply w/ request
2958 define show_lisp_status
2964 /** \brief Status of lisp, enable or disable
2965 @param context - sender context, to match reply w/ request
2966 @param feature_status - lisp enable if non-zero, else disable
2967 @param gpe_status - lisp enable if non-zero, else disable
2969 define show_lisp_status_reply
2977 /** \brief Get LISP map request itr rlocs status
2978 @param context - sender context, to match reply w/ request
2979 @param locator_set_name - name of the locator_set
2981 define lisp_get_map_request_itr_rlocs
2987 /** \brief Request for map request itr rlocs summary status
2989 define lisp_get_map_request_itr_rlocs_reply
2993 u8 locator_set_name[64];
2996 /** \brief Request for lisp pitr status
2997 @param client_index - opaque cookie to identify the sender
2998 @param context - sender context, to match reply w/ request
3000 define show_lisp_pitr
3006 /** \brief Status of lisp pitr, enable or disable
3007 @param context - sender context, to match reply w/ request
3008 @param status - lisp pitr enable if non-zero, else disable
3009 @param locator_set_name - name of the locator_set
3011 define show_lisp_pitr_reply
3016 u8 locator_set_name[64];
3019 /* Gross kludge, DGMS */
3020 define interface_name_renumber
3025 u32 new_show_dev_instance;
3028 define interface_name_renumber_reply
3034 /** \brief Register for ip4 arp resolution events
3035 @param client_index - opaque cookie to identify the sender
3036 @param context - sender context, to match reply w/ request
3037 @param enable_disable - 1 => register for events, 0 => cancel registration
3038 @param pid - sender's pid
3039 @param address - the exact ip4 address of interest
3041 define want_ip4_arp_events
3050 /** \brief Reply for interface events registration
3051 @param context - returned sender context, to match reply w/ request
3052 @param retval - return code
3054 define want_ip4_arp_events_reply
3060 /** \brief Tell client about an ip4 arp resolution event
3061 @param client_index - opaque cookie to identify the sender
3062 @param context - sender context, to match reply w/ request
3063 @param address - the exact ip4 address of interest
3064 @param pid - client pid registered to receive notification
3065 @param sw_if_index - interface which received ARP packet
3066 @param new_mac - the new mac address
3067 @param mac_ip - 0: resolution event, 1: mac/ip binding in bd
3069 define ip4_arp_event
3080 /** \brief Register for ip6 nd resolution events
3081 @param client_index - opaque cookie to identify the sender
3082 @param context - sender context, to match reply w/ request
3083 @param enable_disable - 1 => register for events, 0 => cancel registration
3084 @param pid - sender's pid
3085 @param address - the exact ip6 address of interest
3087 define want_ip6_nd_events
3096 /** \brief Reply for ip6 nd resolution events registration
3097 @param context - returned sender context, to match reply w/ request
3098 @param retval - return code
3100 define want_ip6_nd_events_reply
3106 /** \brief Tell client about an ip6 nd resolution or mac/ip event
3107 @param client_index - opaque cookie to identify the sender
3108 @param context - sender context, to match reply w/ request
3109 @param pid - client pid registered to receive notification
3110 @param sw_if_index - interface which received ARP packet
3111 @param address - the exact ip6 address of interest
3112 @param new_mac - the new mac address
3113 @param mac_ip - 0: resolution event, 1: mac/ip binding in bd
3126 /** \brief L2 bridge domain add or delete request
3127 @param client_index - opaque cookie to identify the sender
3128 @param context - sender context, to match reply w/ request
3129 @param bd_id - the bridge domain to create
3130 @param flood - enable/disable bcast/mcast flooding in the bd
3131 @param uu_flood - enable/disable uknown unicast flood in the bd
3132 @param forward - enable/disable forwarding on all interfaces in the bd
3133 @param learn - enable/disable learning on all interfaces in the bd
3134 @param arp_term - enable/disable arp termination in the bd
3135 @param is_add - add or delete flag
3137 define bridge_domain_add_del
3150 /** \brief L2 bridge domain add or delete response
3151 @param context - sender context, to match reply w/ request
3152 @param retval - return code for the set bridge flags request
3154 define bridge_domain_add_del_reply
3160 /** \brief L2 bridge domain request operational state details
3161 @param client_index - opaque cookie to identify the sender
3162 @param context - sender context, to match reply w/ request
3163 @param bd_id - the bridge domain id desired or ~0 to request all bds
3165 define bridge_domain_dump
3172 /** \brief L2 bridge domain operational state response
3173 @param bd_id - the bridge domain id
3174 @param flood - bcast/mcast flooding state on all interfaces in the bd
3175 @param uu_flood - uknown unicast flooding state on all interfaces in the bd
3176 @param forward - forwarding state on all interfaces in the bd
3177 @param learn - learning state on all interfaces in the bd
3178 @param arp_term - arp termination state on all interfaces in the bd
3179 @param n_sw_ifs - number of sw_if_index's in the domain
3181 define bridge_domain_details
3190 u32 bvi_sw_if_index;
3194 /** \brief L2 bridge domain sw interface operational state response
3195 @param bd_id - the bridge domain id
3196 @param sw_if_index - sw_if_index in the domain
3197 @param shg - split horizon group for the interface
3199 define bridge_domain_sw_if_details
3207 /** \brief DHCP Client config add / del request
3208 @param client_index - opaque cookie to identify the sender
3209 @param context - sender context, to match reply w/ request
3210 @param sw_if_index - index of the interface for DHCP client
3211 @param hostname - hostname
3212 @param is_add - add the config if non-zero, else delete
3213 @param want_dhcp_event - DHCP event sent to the sender
3214 via dhcp_compl_event API message if non-zero
3215 @param pid - sender's pid
3217 define dhcp_client_config
3228 /** \brief DHCP Client config response
3229 @param context - sender context, to match reply w/ request
3230 @param retval - return code for the request
3232 define dhcp_client_config_reply
3238 /** \brief Set/unset input ACL interface
3239 @param client_index - opaque cookie to identify the sender
3240 @param context - sender context, to match reply w/ request
3241 @param sw_if_index - interface to set/unset input ACL
3242 @param ip4_table_index - ip4 classify table index (~0 for skip)
3243 @param ip6_table_index - ip6 classify table index (~0 for skip)
3244 @param l2_table_index - l2 classify table index (~0 for skip)
3245 @param is_add - Set input ACL if non-zero, else unset
3246 Note: User is recommeneded to use just one valid table_index per call.
3247 (ip4_table_index, ip6_table_index, or l2_table_index)
3249 define input_acl_set_interface
3254 u32 ip4_table_index;
3255 u32 ip6_table_index;
3260 /** \brief Set/unset input ACL interface response
3261 @param context - sender context, to match reply w/ request
3262 @param retval - return code for the request
3264 define input_acl_set_interface_reply
3270 /** \brief IPsec: Add/delete Security Policy Database
3271 @param client_index - opaque cookie to identify the sender
3272 @param context - sender context, to match reply w/ request
3273 @param is_add - add SPD if non-zero, else delete
3274 @param spd_id - SPD instance id (control plane allocated)
3277 define ipsec_spd_add_del
3285 /** \brief Reply for IPsec: Add/delete Security Policy Database entry
3286 @param context - returned sender context, to match reply w/ request
3287 @param retval - return code
3290 define ipsec_spd_add_del_reply
3296 /** \brief IPsec: Add/delete SPD from interface
3298 @param client_index - opaque cookie to identify the sender
3299 @param context - sender context, to match reply w/ request
3300 @param is_add - add security mode if non-zero, else delete
3301 @param sw_if_index - index of the interface
3302 @param spd_id - SPD instance id to use for lookups
3306 define ipsec_interface_add_del_spd
3316 /** \brief Reply for IPsec: Add/delete SPD from interface
3317 @param context - returned sender context, to match reply w/ request
3318 @param retval - return code
3321 define ipsec_interface_add_del_spd_reply
3327 /** \brief IPsec: Add/delete Security Policy Database entry
3329 See RFC 4301, 4.4.1.1 on how to match packet to selectors
3331 @param client_index - opaque cookie to identify the sender
3332 @param context - sender context, to match reply w/ request
3333 @param is_add - add SPD if non-zero, else delete
3334 @param spd_id - SPD instance id (control plane allocated)
3335 @param priority - priority of SPD entry (non-unique value). Used to order SPD matching - higher priorities match before lower
3336 @param is_outbound - entry applies to outbound traffic if non-zero, otherwise applies to inbound traffic
3337 @param is_ipv6 - remote/local address are IPv6 if non-zero, else IPv4
3338 @param remote_address_start - start of remote address range to match
3339 @param remote_address_stop - end of remote address range to match
3340 @param local_address_start - start of local address range to match
3341 @param local_address_stop - end of local address range to match
3342 @param protocol - protocol type to match [0 means any]
3343 @param remote_port_start - start of remote port range to match ...
3344 @param remote_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
3345 @param local_port_start - start of local port range to match ...
3346 @param local_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
3347 @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)
3348 @param sa_id - SAD instance id (control plane allocated)
3352 define ipsec_spd_add_del_entry
3365 u8 remote_address_start[16];
3366 u8 remote_address_stop[16];
3367 u8 local_address_start[16];
3368 u8 local_address_stop[16];
3372 u16 remote_port_start;
3373 u16 remote_port_stop;
3374 u16 local_port_start;
3375 u16 local_port_stop;
3382 /** \brief Reply for IPsec: Add/delete Security Policy Database entry
3383 @param context - returned sender context, to match reply w/ request
3384 @param retval - return code
3387 define ipsec_spd_add_del_entry_reply
3393 /** \brief IPsec: Add/delete Security Association Database entry
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 SAD entry if non-zero, else delete
3398 @param sad_id - sad id
3400 @param spi - security parameter index
3402 @param protocol - 0 = AH, 1 = ESP
3404 @param crypto_algorithm - 0 = Null, 1 = AES-CBC-128, 2 = AES-CBC-192, 3 = AES-CBC-256, 4 = 3DES-CBC
3405 @param crypto_key_length - length of crypto_key in bytes
3406 @param crypto_key - crypto keying material
3408 @param integrity_algorithm - 0 = None, 1 = MD5-96, 2 = SHA1-96, 3 = SHA-256, 4 = SHA-384, 5=SHA-512
3409 @param integrity_key_length - length of integrity_key in bytes
3410 @param integrity_key - integrity keying material
3412 @param use_extended_sequence_number - use ESN when non-zero
3414 @param is_tunnel - IPsec tunnel mode if non-zero, else transport mode
3415 @param is_tunnel_ipv6 - IPsec tunnel mode is IPv6 if non-zero, else IPv4 tunnel only valid if is_tunnel is non-zero
3416 @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
3417 @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
3421 IPsec tunnel address copy mode (to support GDOI)
3424 define ipsec_sad_add_del_entry
3436 u8 crypto_algorithm;
3437 u8 crypto_key_length;
3440 u8 integrity_algorithm;
3441 u8 integrity_key_length;
3442 u8 integrity_key[128];
3444 u8 use_extended_sequence_number;
3448 u8 tunnel_src_address[16];
3449 u8 tunnel_dst_address[16];
3452 /** \brief Reply for IPsec: Add/delete Security Association Database entry
3453 @param context - returned sender context, to match reply w/ request
3454 @param retval - return code
3457 define ipsec_sad_add_del_entry_reply
3463 /** \brief IPsec: Update Security Association keys
3464 @param client_index - opaque cookie to identify the sender
3465 @param context - sender context, to match reply w/ request
3467 @param sa_id - sa id
3469 @param crypto_key_length - length of crypto_key in bytes
3470 @param crypto_key - crypto keying material
3472 @param integrity_key_length - length of integrity_key in bytes
3473 @param integrity_key - integrity keying material
3476 define ipsec_sa_set_key
3483 u8 crypto_key_length;
3486 u8 integrity_key_length;
3487 u8 integrity_key[128];
3490 /** \brief Reply for IPsec: Update Security Association keys
3491 @param context - returned sender context, to match reply w/ request
3492 @param retval - return code
3495 define ipsec_sa_set_key_reply
3501 /** \brief IKEv2: Add/delete profile
3502 @param client_index - opaque cookie to identify the sender
3503 @param context - sender context, to match reply w/ request
3505 @param name - IKEv2 profile name
3506 @param is_add - Add IKEv2 profile if non-zero, else delete
3508 define ikev2_profile_add_del
3517 /** \brief Reply for IKEv2: Add/delete profile
3518 @param context - returned sender context, to match reply w/ request
3519 @param retval - return code
3521 define ikev2_profile_add_del_reply
3527 /** \brief IKEv2: Set IKEv2 profile authentication method
3528 @param client_index - opaque cookie to identify the sender
3529 @param context - sender context, to match reply w/ request
3531 @param name - IKEv2 profile name
3532 @param auth_method - IKEv2 authentication method (shared-key-mic/rsa-sig)
3533 @param is_hex - Authentication data in hex format if non-zero, else string
3534 @param data_len - Authentication data length
3535 @param data - Authentication data (for rsa-sig cert file path)
3537 define ikev2_profile_set_auth
3549 /** \brief Reply for IKEv2: Set IKEv2 profile authentication method
3550 @param context - returned sender context, to match reply w/ request
3551 @param retval - return code
3553 define ikev2_profile_set_auth_reply
3559 /** \brief IKEv2: Set IKEv2 profile local/remote identification
3560 @param client_index - opaque cookie to identify the sender
3561 @param context - sender context, to match reply w/ request
3563 @param name - IKEv2 profile name
3564 @param is_local - Identification is local if non-zero, else remote
3565 @param id_type - Identification type
3566 @param data_len - Identification data length
3567 @param data - Identification data
3569 define ikev2_profile_set_id
3581 /** \brief Reply for IKEv2:
3582 @param context - returned sender context, to match reply w/ request
3583 @param retval - return code
3585 define ikev2_profile_set_id_reply
3591 /** \brief IKEv2: Set IKEv2 profile traffic selector parameters
3592 @param client_index - opaque cookie to identify the sender
3593 @param context - sender context, to match reply w/ request
3595 @param name - IKEv2 profile name
3596 @param is_local - Traffic selector is local if non-zero, else remote
3597 @param proto - Traffic selector IP protocol (if zero not relevant)
3598 @param start_port - The smallest port number allowed by traffic selector
3599 @param end_port - The largest port number allowed by traffic selector
3600 @param start_addr - The smallest address included in traffic selector
3601 @param end_addr - The largest address included in traffic selector
3603 define ikev2_profile_set_ts
3617 /** \brief Reply for IKEv2: Set IKEv2 profile traffic selector parameters
3618 @param context - returned sender context, to match reply w/ request
3619 @param retval - return code
3621 define ikev2_profile_set_ts_reply
3627 /** \brief IKEv2: Set IKEv2 local RSA private key
3628 @param client_index - opaque cookie to identify the sender
3629 @param context - sender context, to match reply w/ request
3631 @param key_file - Key file absolute path
3633 define ikev2_set_local_key
3641 /** \brief Reply for IKEv2: Set IKEv2 local key
3642 @param context - returned sender context, to match reply w/ request
3643 @param retval - return code
3645 define ikev2_set_local_key_reply
3651 /** \brief Tell client about a DHCP completion event
3652 @param client_index - opaque cookie to identify the sender
3653 @param pid - client pid registered to receive notification
3654 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
3655 @param host_address - Host IP address
3656 @param router_address - Router IP address
3657 @param host_mac - Host MAC address
3659 define dhcp_compl_event
3665 u8 host_address[16];
3666 u8 router_address[16];
3670 /** \brief Add MAP domains
3671 @param client_index - opaque cookie to identify the sender
3672 @param context - sender context, to match reply w/ request
3673 @param ip6_prefix - Rule IPv6 prefix
3674 @param ip4_prefix - Rule IPv4 prefix
3675 @param ip6_src - MAP domain IPv6 BR address / Tunnel source
3676 @param ip6_prefix_len - Rule IPv6 prefix length
3677 @param ip4_prefix_len - Rule IPv4 prefix length
3678 @param ea_bits_len - Embedded Address bits length
3679 @param psid_offset - Port Set Identifider (PSID) offset
3680 @param psid_length - PSID length
3681 @param is_translation - MAP-E / MAP-T
3684 define map_add_domain
3693 u8 ip6_src_prefix_len;
3701 /** \brief Reply for MAP domain add
3702 @param context - returned sender context, to match reply w/ request
3703 @param index - MAP domain index
3704 @param retval - return code
3706 define map_add_domain_reply
3713 /** \brief Delete MAP domain
3714 @param client_index - opaque cookie to identify the sender
3715 @param context - sender context, to match reply w/ request
3716 @param index - MAP Domain index
3718 define map_del_domain
3725 /** \brief Reply for MAP domain del
3726 @param context - returned sender context, to match reply w/ request
3727 @param retval - return code
3729 define map_del_domain_reply
3735 /** \brief Add or Delete MAP rule from a domain (Only used for shared IPv4 per subscriber)
3736 @param client_index - opaque cookie to identify the sender
3737 @param context - sender context, to match reply w/ request
3738 @param index - MAP Domain index
3739 @param is_add - If 1 add rule, if 0 delete rule
3740 @param ip6_dst - MAP CE IPv6 address
3741 @param psid - Rule PSID
3743 define map_add_del_rule
3753 /** \brief Reply for MAP rule add/del
3754 @param context - returned sender context, to match reply w/ request
3755 @param retval - return code
3757 define map_add_del_rule_reply
3763 /** \brief Get list of map domains
3764 @param client_index - opaque cookie to identify the sender
3766 define map_domain_dump
3772 define map_domain_details
3790 define map_rule_dump
3797 define map_rule_details
3804 /** \brief Request for a single block of summary stats
3805 @param client_index - opaque cookie to identify the sender
3806 @param context - sender context, to match reply w/ request
3808 define map_summary_stats
3814 /** \brief Reply for map_summary_stats request
3815 @param context - sender context, to match reply w/ request
3816 @param retval - return code for request
3817 @param total_bindings -
3819 @param total_ip4_fragments -
3820 @param total_security_check -
3822 define map_summary_stats_reply
3829 u64 total_ip4_fragments;
3830 u64 total_security_check[2];
3833 /** \brief cop: enable/disable junk filtration features on an interface
3834 @param client_index - opaque cookie to identify the sender
3835 @param context - sender context, to match reply w/ request
3836 @param sw_if_inded - desired interface
3837 @param enable_disable - 1 => enable, 0 => disable
3840 define cop_interface_enable_disable
3848 /** \brief cop: interface enable/disable junk filtration reply
3849 @param context - returned sender context, to match reply w/ request
3850 @param retval - return code
3853 define cop_interface_enable_disable_reply
3859 /** \brief cop: enable/disable whitelist filtration features on an interface
3860 Note: the supplied fib_id must match in order to remove the feature!
3862 @param client_index - opaque cookie to identify the sender
3863 @param context - sender context, to match reply w/ request
3864 @param sw_if_index - interface handle, physical interfaces only
3865 @param fib_id - fib identifier for the whitelist / blacklist fib
3866 @param ip4 - 1 => enable ip4 filtration, 0=> disable ip4 filtration
3867 @param ip6 - 1 => enable ip6 filtration, 0=> disable ip6 filtration
3868 @param default_cop - 1 => enable non-ip4, non-ip6 filtration 0=> disable it
3871 define cop_whitelist_enable_disable
3882 /** \brief cop: interface enable/disable junk filtration reply
3883 @param context - returned sender context, to match reply w/ request
3884 @param retval - return code
3887 define cop_whitelist_enable_disable_reply
3893 /** \brief get_node_graph - get a copy of the vpp node graph
3894 including the current set of graph arcs.
3896 @param client_index - opaque cookie to identify the sender
3897 @param context - sender context, to match reply w/ request
3900 define get_node_graph
3906 /** \brief get_node_graph_reply
3907 @param context - returned sender context, to match reply w/ request
3908 @param retval - return code
3909 @param reply_in_shmem - result from vlib_node_serialize, in shared
3910 memory. Process with vlib_node_unserialize, remember to switch
3911 heaps and free the result.
3914 define get_node_graph_reply
3921 /** \brief Clear interface statistics
3922 @param client_index - opaque cookie to identify the sender
3923 @param context - sender context, to match reply w/ request
3924 @param sw_if_index - index of the interface to clear statistics
3926 define sw_interface_clear_stats
3933 /** \brief Reply to sw_interface_clear_stats
3934 @param context - sender context which was passed in the request
3935 @param retval - return code of the set flags request
3937 define sw_interface_clear_stats_reply
3943 /** \brief IOAM enable : Enable in-band OAM
3944 @param id - profile id
3945 @param trace_ppc - Trace PPC (none/encap/decap)
3946 @param pow_enable - Proof of Work enabled or not flag
3947 @param trace_enable - iOAM Trace enabled or not flag
3960 /** \brief iOAM Trace profile add / del response
3961 @param context - sender context, to match reply w/ request
3962 @param retval - return value for request
3964 define ioam_enable_reply
3970 /** \brief iOAM disable
3971 @param client_index - opaque cookie to identify the sender
3972 @param context - sender context, to match reply w/ request
3973 @param index - MAP Domain index
3982 /** \brief iOAM disable response
3983 @param context - sender context, to match reply w/ request
3984 @param retval - return value for request
3986 define ioam_disable_reply
3992 /** \brief Create host-interface
3993 @param client_index - opaque cookie to identify the sender
3994 @param context - sender context, to match reply w/ request
3995 @param host_if_name - interface name
3996 @param hw_addr - interface MAC
3997 @param use_random_hw_addr - use random generated MAC
3999 define af_packet_create
4004 u8 host_if_name[64];
4006 u8 use_random_hw_addr;
4009 /** \brief Create host-interface response
4010 @param context - sender context, to match reply w/ request
4011 @param retval - return value for request
4013 define af_packet_create_reply
4020 /** \brief Delete host-interface
4021 @param client_index - opaque cookie to identify the sender
4022 @param context - sender context, to match reply w/ request
4023 @param host_if_name - interface name
4025 define af_packet_delete
4030 u8 host_if_name[64];
4033 /** \brief Delete host-interface response
4034 @param context - sender context, to match reply w/ request
4035 @param retval - return value for request
4037 define af_packet_delete_reply
4043 /** \brief Add/del policer
4044 @param client_index - opaque cookie to identify the sender
4045 @param context - sender context, to match reply w/ request
4046 @param is_add - add policer if non-zero, else delete
4047 @param name - policer name
4050 @param cb - Committed Burst
4051 @param eb - Excess or Peak Burst
4052 @param rate_type - rate type
4053 @param round_type - rounding type
4054 @param type - policer algorithm
4055 @param color_aware - 0=color-blind, 1=color-aware
4056 @param conform_action_type - conform action type
4057 @param conform_dscp - DSCP for conform mar-and-transmit action
4058 @param exceed_action_type - exceed action type
4059 @param exceed_dscp - DSCP for exceed mar-and-transmit action
4060 @param violate_action_type - violate action type
4061 @param violate_dscp - DSCP for violate mar-and-transmit action
4063 define policer_add_del
4078 u8 conform_action_type;
4080 u8 exceed_action_type;
4082 u8 violate_action_type;
4086 /** \brief Add/del policer response
4087 @param context - sender context, to match reply w/ request
4088 @param retval - return value for request
4089 @param policer_index - for add, returned index of the new policer
4091 define policer_add_del_reply
4098 /** \brief Get list of policers
4099 @param client_index - opaque cookie to identify the sender
4100 @param context - sender context, to match reply w/ request
4101 @param match_name_valid - if 0 request all policers otherwise use match_name
4102 @param match_name - policer name
4109 u8 match_name_valid;
4113 /** \brief Policer operational state response.
4114 @param context - sender context, to match reply w/ request
4115 @param name - policer name
4118 @param cb - Committed Burst
4119 @param eb - Excess or Peak Burst
4120 @param rate_type - rate type
4121 @param round_type - rounding type
4122 @param type - policer algorithm
4123 @param conform_action_type - conform action type
4124 @param conform_dscp - DSCP for conform mar-and-transmit action
4125 @param exceed_action_type - exceed action type
4126 @param exceed_dscp - DSCP for exceed mar-and-transmit action
4127 @param violate_action_type - violate action type
4128 @param violate_dscp - DSCP for violate mar-and-transmit action
4129 @param single_rate - 1 = single rate policer, 0 = two rate policer
4130 @param color_aware - for hierarchical policing
4131 @param scale - power-of-2 shift amount for lower rates
4132 @param cir_tokens_per_period - number of tokens for each period
4133 @param pir_tokens_per_period - number of tokens for each period for 2-rate policer
4134 @param current_limit - current limit
4135 @param current_bucket - current bucket
4136 @param extended_limit - extended limit
4137 @param extended_bucket - extended bucket
4138 @param last_update_time - last update time
4140 define policer_details
4152 u8 conform_action_type;
4154 u8 exceed_action_type;
4156 u8 violate_action_type;
4161 u32 cir_tokens_per_period;
4162 u32 pir_tokens_per_period;
4166 u32 extended_bucket;
4167 u64 last_update_time;
4170 /** \brief Set/unset policer classify interface
4171 @param client_index - opaque cookie to identify the sender
4172 @param context - sender context, to match reply w/ request
4173 @param sw_if_index - interface to set/unset policer classify
4174 @param ip4_table_index - ip4 classify table index (~0 for skip)
4175 @param ip6_table_index - ip6 classify table index (~0 for skip)
4176 @param l2_table_index - l2 classify table index (~0 for skip)
4177 @param is_add - Set if non-zero, else unset
4178 Note: User is recommeneded to use just one valid table_index per call.
4179 (ip4_table_index, ip6_table_index, or l2_table_index)
4181 define policer_classify_set_interface
4186 u32 ip4_table_index;
4187 u32 ip6_table_index;
4192 /** \brief Set/unset policer classify interface response
4193 @param context - sender context, to match reply w/ request
4194 @param retval - return value for request
4196 define policer_classify_set_interface_reply
4202 /** \brief Get list of policer classify interfaces and tables
4203 @param client_index - opaque cookie to identify the sender
4204 @param context - sender context, to match reply w/ request
4205 @param type - classify table type
4207 define policer_classify_dump
4214 /** \brief Policer iclassify operational state response.
4215 @param context - sender context, to match reply w/ request
4216 @param sw_if_index - software interface index
4217 @param table_index - classify table index
4219 define policer_classify_details
4226 /** \brief Create netmap
4227 @param client_index - opaque cookie to identify the sender
4228 @param context - sender context, to match reply w/ request
4229 @param netmap_if_name - interface name
4230 @param hw_addr - interface MAC
4231 @param use_random_hw_addr - use random generated MAC
4232 @param is_pipe - is pipe
4233 @param is_master - 0=slave, 1=master
4235 define netmap_create
4240 u8 netmap_if_name[64];
4242 u8 use_random_hw_addr;
4247 /** \brief Create netmap response
4248 @param context - sender context, to match reply w/ request
4249 @param retval - return value for request
4251 define netmap_create_reply
4257 /** \brief Delete netmap
4258 @param client_index - opaque cookie to identify the sender
4259 @param context - sender context, to match reply w/ request
4260 @param netmap_if_name - interface name
4262 define netmap_delete
4267 u8 netmap_if_name[64];
4270 /** \brief Delete netmap response
4271 @param context - sender context, to match reply w/ request
4272 @param retval - return value for request
4274 define netmap_delete_reply
4280 /** \brief Dump mpls gre tunnel table
4281 @param client_index - opaque cookie to identify the sender
4282 @param tunnel_index - gre tunnel identifier or -1 in case of all tunnels
4284 define mpls_gre_tunnel_dump
4291 /** \brief mpls gre tunnel operational state response
4292 @param tunnel_index - gre tunnel identifier
4293 @param intfc_address - interface ipv4 addr
4294 @param mask_width - interface ipv4 addr mask
4295 @param hw_if_index - interface id
4297 @param tunnel_src - tunnel source ipv4 addr
4298 @param tunnel_dst - tunnel destination ipv4 addr
4299 @param outer_fib_index - gre tunnel identifier
4300 @param encap_index - reference to mpls label table
4301 @param nlabels - number of resolved labels
4302 @param labels - resolved labels
4304 define mpls_gre_tunnel_details
4310 u32 inner_fib_index;
4317 u32 outer_fib_index;
4319 u32 labels[nlabels];
4322 /** \brief Dump mpls eth tunnel table
4323 @param client_index - opaque cookie to identify the sender
4324 @param tunnel_index - eth tunnel identifier or -1 in case of all tunnels
4326 define mpls_eth_tunnel_dump
4333 /** \brief mpls eth tunnel operational state response
4334 @param tunnel_index - eth tunnel identifier
4335 @param intfc_address - interface ipv4 addr
4336 @param mask_width - interface ipv4 addr mask
4337 @param hw_if_index - interface id
4339 @param tunnel_dst_mac -
4340 @param tx_sw_if_index -
4341 @param encap_index - reference to mpls label table
4342 @param nlabels - number of resolved labels
4343 @param labels - resolved labels
4345 define mpls_eth_tunnel_details
4351 u32 inner_fib_index;
4356 u8 tunnel_dst_mac[6];
4359 u32 labels[nlabels];
4362 /** \brief Dump mpls fib table
4363 @param client_index - opaque cookie to identify the sender
4364 @param fib_index - mpls fib entry identifier or -1 in case of all entries
4366 define mpls_fib_encap_dump
4372 /** \brief mpls fib encap table response
4373 @param fib_index - fib table id
4374 @param dest - destination ipv4 addr
4376 @param entry_index - reference to mpls label table
4377 @param nlabels - number of resolved labels
4378 @param labels - resolved labels
4380 define mpls_fib_encap_details
4389 u32 labels[nlabels];
4392 /** \brief Dump mpls fib decap table
4393 @param client_index - opaque cookie to identify the sender
4394 @param fib_index - mpls fib entry identifier or -1 in case of all entries
4396 define mpls_fib_decap_dump
4402 /** \brief mpls fib decap table response
4403 @param fib_index - fib table id
4404 @param entry_index - reference to mpls label table
4405 @param dest - destination ipv4 addr
4407 @param label - mpls labels
4408 @param rx_table_id - rx fib id
4409 @param tx_table_id - tx fib id
4412 define mpls_fib_decap_details
4426 /** \brief Classify get table IDs request
4427 @param client_index - opaque cookie to identify the sender
4428 @param context - sender context, to match reply w/ request
4430 define classify_table_ids
4436 /** \brief Reply for classify get table IDs request
4437 @param context - sender context which was passed in the request
4438 @param count - number of ids returned in response
4439 @param ids - array of classify table ids
4441 define classify_table_ids_reply
4449 /** \brief Classify table ids by interface index request
4450 @param client_index - opaque cookie to identify the sender
4451 @param context - sender context, to match reply w/ request
4452 @param sw_if_index - index of the interface
4454 define classify_table_by_interface
4461 /** \brief Reply for classify table id by interface index request
4462 @param context - sender context which was passed in the request
4463 @param count - number of ids returned in response
4464 @param sw_if_index - index of the interface
4465 @param l2_table_id - l2 classify table index
4466 @param ip4_table_id - ip4 classify table index
4467 @param ip6_table_id - ip6 classify table index
4469 define classify_table_by_interface_reply
4479 /** \brief Classify table info
4480 @param client_index - opaque cookie to identify the sender
4481 @param context - sender context, to match reply w/ request
4482 @param table_id - classify table index
4484 define classify_table_info
4491 /** \brief Reply for classify table info request
4492 @param context - sender context which was passed in the request
4493 @param count - number of ids returned in response
4494 @param table_id - classify table index
4495 @param nbuckets - number of buckets when adding a table
4496 @param match_n_vectors - number of match vectors
4497 @param skip_n_vectors - number of skip_n_vectors
4498 @param active_sessions - number of sessions (active entries)
4499 @param next_table_index - index of next table
4500 @param miss_next_index - index of miss table
4501 @param mask[] - match mask
4503 define classify_table_info_reply
4509 u32 match_n_vectors;
4511 u32 active_sessions;
4512 u32 next_table_index;
4513 u32 miss_next_index;
4515 u8 mask[mask_length];
4518 /** \brief Classify sessions dump request
4519 @param client_index - opaque cookie to identify the sender
4520 @param context - sender context, to match reply w/ request
4521 @param table_id - classify table index
4523 define classify_session_dump
4530 /** \brief Reply for classify table session dump request
4531 @param context - sender context which was passed in the request
4532 @param count - number of ids returned in response
4533 @param table_id - classify table index
4534 @param hit_next_index - hit_next_index of session
4535 @param opaque_index - for add, opaque_index of session
4536 @param advance - advance value of session
4537 @param match[] - match value for session
4539 define classify_session_details
4548 u8 match[match_length];
4551 /** \brief Configure IPFIX exporter process request
4552 @param client_index - opaque cookie to identify the sender
4553 @param context - sender context, to match reply w/ request
4554 @param collector_address - address of IPFIX collector
4555 @param collector_port - port of IPFIX collector
4556 @param src_address - address of IPFIX exporter
4557 @param vrf_id - VRF / fib table ID
4558 @param path_mtu - Path MTU between exporter and collector
4559 @param template_interval - number of seconds after which to resend template
4560 @param udp_checksum - UDP checksum calculation enable flag
4562 define set_ipfix_exporter
4566 u8 collector_address[16];
4571 u32 template_interval;
4575 /** \brief Reply to IPFIX exporter configure request
4576 @param context - sender context which was passed in the request
4578 define set_ipfix_exporter_reply
4584 /** \brief IPFIX exporter dump request
4585 @param client_index - opaque cookie to identify the sender
4586 @param context - sender context, to match reply w/ request
4588 define ipfix_exporter_dump
4594 /** \brief Reply to IPFIX exporter dump request
4595 @param context - sender context which was passed in the request
4596 @param collector_address - address of IPFIX collector
4597 @param collector_port - port of IPFIX collector
4598 @param src_address - address of IPFIX exporter
4599 @param fib_index - fib table index
4600 @param path_mtu - Path MTU between exporter and collector
4601 @param template_interval - number of seconds after which to resend template
4602 @param udp_checksum - UDP checksum calculation enable flag
4604 define ipfix_exporter_details
4607 u8 collector_address[16];
4612 u32 template_interval;
4616 /** \brief IPFIX classify stream configure request
4617 @param client_index - opaque cookie to identify the sender
4618 @param context - sender context, to match reply w/ request
4619 @param domain_id - domain ID reported in IPFIX messages for classify stream
4620 @param src_port - source port of UDP session for classify stream
4622 define set_ipfix_classify_stream {
4629 /** \brief IPFIX classify stream configure response
4630 @param context - sender context, to match reply w/ request
4631 @param retval - return value for request
4633 define set_ipfix_classify_stream_reply {
4638 /** \brief IPFIX classify stream dump request
4639 @param client_index - opaque cookie to identify the sender
4640 @param context - sender context, to match reply w/ request
4642 define ipfix_classify_stream_dump {
4647 /** \brief Reply to IPFIX classify stream dump request
4648 @param context - sender context, to match reply w/ request
4649 @param domain_id - domain ID reported in IPFIX messages for classify stream
4650 @param src_port - source port of UDP session for classify stream
4652 define ipfix_classify_stream_details {
4658 /** \brief IPFIX add or delete classifier table request
4659 @param client_index - opaque cookie to identify the sender
4660 @param context - sender context, to match reply w/ request
4661 @param table_id - classifier table ID
4662 @param ip_version - version of IP used in the classifier table
4663 @param transport_protocol - transport protocol used in the classifier table or 255 for unspecified
4665 define ipfix_classify_table_add_del {
4670 u8 transport_protocol;
4674 /** \brief IPFIX add classifier table response
4675 @param context - sender context which was passed in the request
4677 define ipfix_classify_table_add_del_reply {
4682 /** \brief IPFIX classify tables dump request
4683 @param client_index - opaque cookie to identify the sender
4684 @param context - sender context, to match reply w/ request
4686 define ipfix_classify_table_dump {
4691 /** \brief Reply to IPFIX classify tables dump request
4692 @param context - sender context, to match reply w/ request
4693 @param table_id - classifier table ID
4694 @param ip_version - version of IP used in the classifier table
4695 @param transport_protocol - transport protocol used in the classifier table or 255 for unspecified
4697 define ipfix_classify_table_details {
4701 u8 transport_protocol;
4704 /** \brief Query relative index via node names
4705 @param client_index - opaque cookie to identify the sender
4706 @param context - sender context, to match reply w/ request
4707 @param node_name - name of node to find relative index from
4708 @param next_name - next node from node_name to find relative index of
4710 define get_next_index
4718 /** \brief Reply for get next node index
4719 @param context - sender context which was passed in the request
4720 @param retval - return value
4721 @param next_index - index of the next_node
4723 define get_next_index_reply
4730 /** \brief PacketGenerator create interface request
4731 @param client_index - opaque cookie to identify the sender
4732 @param context - sender context, to match reply w/ request
4733 @param interface_id - interface index
4735 define pg_create_interface
4742 /** \brief PacketGenerator create interface response
4743 @param context - sender context, to match reply w/ request
4744 @param retval - return value for request
4746 define pg_create_interface_reply
4753 /** \brief PacketGenerator capture packets on given interface request
4754 @param client_index - opaque cookie to identify the sender
4755 @param context - sender context, to match reply w/ request
4756 @param interface_id - pg interface index
4757 @param is_enabled - 1 if enabling streams, 0 if disabling
4758 @param count - number of packets to be captured
4759 @param pcap_file - pacp file name to store captured packets
4768 u32 pcap_name_length;
4769 u8 pcap_file_name[pcap_name_length];
4772 /** \brief PacketGenerator capture packets response
4773 @param context - sender context, to match reply w/ request
4774 @param retval - return value for request
4776 define pg_capture_reply
4782 /** \brief Enable / disable packet generator request
4783 @param client_index - opaque cookie to identify the sender
4784 @param context - sender context, to match reply w/ request
4785 @param is_enabled - 1 if enabling streams, 0 if disabling
4786 @param stream - stream name to be enable/disabled, if not specified handle all streams
4788 define pg_enable_disable
4793 u32 stream_name_length;
4794 u8 stream_name[stream_name_length];
4797 /** \brief Reply for enable / disable packet generator
4798 @param context - returned sender context, to match reply w/ request
4799 @param retval - return code
4801 define pg_enable_disable_reply
4807 /** \brief Configure IP source and L4 port-range check
4808 @param client_index - opaque cookie to identify the sender
4809 @param context - sender context, to match reply w/ request
4810 @param is_ip6 - 1 if source address type is IPv6
4811 @param is_add - 1 if add, 0 if delete
4812 @param mask_length - mask length for address entry
4813 @param address - array of address bytes
4814 @param number_of_ranges - length of low_port and high_port arrays (must match)
4815 @param low_ports[32] - up to 32 low end of port range entries (must have corresponding high_ports entry)
4816 @param high_ports[32] - up to 32 high end of port range entries (must have corresponding low_ports entry)
4817 @param vrf_id - fib table/vrf id to associate the source and port-range check with
4818 @note To specify a single port set low_port and high_port entry the same
4820 define ip_source_and_port_range_check_add_del
4828 u8 number_of_ranges;
4834 /** \brief Configure IP source and L4 port-range check reply
4835 @param context - returned sender context, to match reply w/ request
4836 @param retval - return code
4838 define ip_source_and_port_range_check_add_del_reply
4844 /** \brief Set interface source and L4 port-range request
4845 @param client_index - opaque cookie to identify the sender
4846 @param context - sender context, to match reply w/ request
4847 @param interface_id - interface index
4848 @param tcp_vrf_id - VRF associated with source and TCP port-range check
4849 @param udp_vrf_id - VRF associated with source and TCP port-range check
4851 define ip_source_and_port_range_check_interface_add_del
4863 /** \brief Set interface source and L4 port-range response
4864 @param context - sender context, to match reply w/ request
4865 @param retval - return value for request
4867 define ip_source_and_port_range_check_interface_add_del_reply
4873 /** \brief Add / del ipsec gre tunnel request
4874 @param client_index - opaque cookie to identify the sender
4875 @param context - sender context, to match reply w/ request
4876 @param local_sa_id - local SA id
4877 @param remote_sa_id - remote SA id
4878 @param is_add - 1 if adding the tunnel, 0 if deleting
4879 @param src_address - tunnel source address
4880 @param dst_address - tunnel destination address
4882 define ipsec_gre_add_del_tunnel {
4892 /** \brief Reply for add / del ipsec gre tunnel request
4893 @param context - returned sender context, to match reply w/ request
4894 @param retval - return code
4895 @param sw_if_index - software index of the new ipsec gre tunnel
4897 define ipsec_gre_add_del_tunnel_reply {
4903 /** \brief Dump ipsec gre tunnel table
4904 @param client_index - opaque cookie to identify the sender
4905 @param context - sender context, to match reply w/ request
4906 @param tunnel_index - gre tunnel identifier or -1 in case of all tunnels
4908 define ipsec_gre_tunnel_dump {
4914 /** \brief mpls gre tunnel operational state response
4915 @param context - returned sender context, to match reply w/ request
4916 @param sw_if_index - software index of the ipsec gre tunnel
4917 @param local_sa_id - local SA id
4918 @param remote_sa_id - remote SA id
4919 @param src_address - tunnel source address
4920 @param dst_address - tunnel destination address
4922 define ipsec_gre_tunnel_details {
4931 /** \brief Delete sub interface request
4932 @param client_index - opaque cookie to identify the sender
4933 @param context - sender context, to match reply w/ request
4934 @param sw_if_index - sw index of the interface that was created by create_subif
4936 define delete_subif {
4942 /** \brief Delete sub interface response
4943 @param context - sender context, to match reply w/ request
4944 @param retval - return code for the request
4946 define delete_subif_reply {