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
2022 define gre_add_del_tunnel_reply
2029 define gre_tunnel_dump
2036 define gre_tunnel_details
2047 /** \brief L2 interface vlan tag rewrite configure request
2048 @param client_index - opaque cookie to identify the sender
2049 @param context - sender context, to match reply w/ request
2050 @param sw_if_index - interface the operation is applied to
2051 @param vtr_op - Choose from l2_vtr_op_t enum values
2052 @param push_dot1q - first pushed flag dot1q id set, else dot1ad
2053 @param tag1 - Needed for any push or translate vtr op
2054 @param tag2 - Needed for any push 2 or translate x-2 vtr ops
2056 define l2_interface_vlan_tag_rewrite
2062 u32 push_dot1q; // ethertype of first pushed tag is dot1q/dot1ad
2063 u32 tag1; // first pushed tag
2064 u32 tag2; // second pushed tag
2067 /** \brief L2 interface vlan tag rewrite response
2068 @param context - sender context, to match reply w/ request
2069 @param retval - return code for the request
2071 define l2_interface_vlan_tag_rewrite_reply
2077 /** \brief vhost-user interface create request
2078 @param client_index - opaque cookie to identify the sender
2079 @param is_server - our side is socket server
2080 @param sock_filename - unix socket filename, used to speak with frontend
2081 @param use_custom_mac - enable or disable the use of the provided hardware address
2082 @param mac_address - hardware address to use if 'use_custom_mac' is set
2084 define create_vhost_user_if
2089 u8 sock_filename[256];
2091 u32 custom_dev_instance;
2096 /** \brief vhost-user interface create response
2097 @param context - sender context, to match reply w/ request
2098 @param retval - return code for the request
2099 @param sw_if_index - interface the operation is applied to
2101 define create_vhost_user_if_reply
2108 /** \brief vhost-user interface modify request
2109 @param client_index - opaque cookie to identify the sender
2110 @param is_server - our side is socket server
2111 @param sock_filename - unix socket filename, used to speak with frontend
2113 define modify_vhost_user_if
2119 u8 sock_filename[256];
2121 u32 custom_dev_instance;
2124 /** \brief vhost-user interface modify response
2125 @param context - sender context, to match reply w/ request
2126 @param retval - return code for the request
2128 define modify_vhost_user_if_reply
2134 /** \brief vhost-user interface delete request
2135 @param client_index - opaque cookie to identify the sender
2137 define delete_vhost_user_if
2144 /** \brief vhost-user interface delete response
2145 @param context - sender context, to match reply w/ request
2146 @param retval - return code for the request
2148 define delete_vhost_user_if_reply
2161 /* These fields map directly onto the subif template */
2165 u8 dot1ad; // 0 = dot1q, 1=dot1ad
2168 u8 outer_vlan_id_any;
2169 u8 inner_vlan_id_any;
2174 define create_subif_reply
2181 /** \brief show version
2182 @param client_index - opaque cookie to identify the sender
2183 @param context - sender context, to match reply w/ request
2191 /** \brief show version response
2192 @param context - sender context, to match reply w/ request
2193 @param retval - return code for the request
2194 @param program - name of the program (vpe)
2195 @param version - version of the program
2196 @param build_directory - root of the workspace where the program was built
2198 define show_version_reply
2205 u8 build_directory[256];
2208 /** \brief Vhost-user interface details structure (fix this)
2209 @param sw_if_index - index of the interface
2210 @param interface_name - name of interface
2211 @param virtio_net_hdr_sz - net header size
2212 @param features - interface features
2213 @param is_server - vhost-user server socket
2214 @param sock_filename - socket filename
2215 @param num_regions - number of used memory regions
2217 define sw_interface_vhost_user_details
2221 u8 interface_name[64];
2222 u32 virtio_net_hdr_sz;
2225 u8 sock_filename[256];
2231 define sw_interface_vhost_user_dump
2237 define ip_address_details
2245 define ip_address_dump
2266 /** \brief l2 fib table entry structure
2267 @param bd_id - the l2 fib / bridge domain table id
2268 @param mac - the entry's mac address
2269 @param sw_if_index - index of the interface
2270 @param static_mac - the entry is statically configured.
2271 @param filter_mac - the entry is a mac filter entry.
2272 @param bvi_mac - the mac address is a bridge virtual interface
2274 define l2_fib_table_entry
2285 /** \brief Dump l2 fib (aka bridge domain) table
2286 @param client_index - opaque cookie to identify the sender
2287 @param bd_id - the l2 fib / bridge domain table identifier
2289 define l2_fib_table_dump
2296 define vxlan_gpe_add_del_tunnel
2310 define vxlan_gpe_add_del_tunnel_reply
2317 define vxlan_gpe_tunnel_dump
2324 define vxlan_gpe_tunnel_details
2337 /** \brief add or delete locator_set
2338 @param client_index - opaque cookie to identify the sender
2339 @param context - sender context, to match reply w/ request
2340 @param is_add - add address if non-zero, else delete
2341 @param locator_set_name - locator name
2342 @param locator_num - number of locators
2343 @param locators - Lisp locator data
2345 define lisp_add_del_locator_set
2350 u8 locator_set_name[64];
2352 u8 locators[locator_num];
2355 /** \brief Reply for locator_set add/del
2356 @param context - returned sender context, to match reply w/ request
2357 @param retval - return code
2358 @param ls_index - locator set index
2360 define lisp_add_del_locator_set_reply
2367 /** \brief add or delete locator for locator_set
2368 @param client_index - opaque cookie to identify the sender
2369 @param context - sender context, to match reply w/ request
2370 @param is_add - add address if non-zero, else delete
2371 @param locator_set_name - name of locator_set to add/del locator
2372 @param sw_if_index - index of the interface
2373 @param priority - priority of the lisp locator
2374 @param weight - weight of the lisp locator
2376 define lisp_add_del_locator
2381 u8 locator_set_name[64];
2387 /** \brief Reply for locator add/del
2388 @param context - returned sender context, to match reply w/ request
2389 @param retval - return code
2391 define lisp_add_del_locator_reply
2397 /** \brief add or delete lisp eid-table
2398 @param client_index - opaque cookie to identify the sender
2399 @param context - sender context, to match reply w/ request
2400 @param is_add - add address if non-zero, else delete
2405 @param eid - EID can be ip4, ip6 or mac
2406 @param prefix_len - prefix len
2407 @param locator_set_name - name of locator_set to add/del eid-table
2408 @param vni - virtual network instance
2410 define lisp_add_del_local_eid
2418 u8 locator_set_name[64];
2422 /** \brief Reply for local_eid add/del
2423 @param context - returned sender context, to match reply w/ request
2424 @param retval - return code
2426 define lisp_add_del_local_eid_reply
2432 /** \brief add or delete lisp gpe tunnel
2433 @param client_index - opaque cookie to identify the sender
2434 @param context - sender context, to match reply w/ request
2435 @param is_add - add address if non-zero, else delete
2440 @param rmt_eid - remote eid
2441 @param lcl_eid - local eid
2442 @param rmt_len - remote prefix len
2443 @param lcl_len - local prefix len
2444 @param vni - virtual network identifier
2445 @param dp_table - vrf/bridge domain id
2446 @param loc_num - number of locators
2447 @param lcl_locs - array of local locators
2448 @param rmt_locs - array of remote locators
2449 @param action - negative action when 0 locators configured
2451 define lisp_gpe_add_del_fwd_entry
2464 u8 lcl_locs[loc_num];
2465 u8 rmt_locs[loc_num];
2469 /** \brief Reply for gpe_fwd_entry add/del
2470 @param context - returned sender context, to match reply w/ request
2471 @param retval - return code
2473 define lisp_gpe_add_del_fwd_entry_reply
2479 /** \brief add or delete map-resolver
2480 @param client_index - opaque cookie to identify the sender
2481 @param context - sender context, to match reply w/ request
2482 @param is_add - add address if non-zero, else delete
2483 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
2484 @param ip_address - array of address bytes
2486 define lisp_add_del_map_resolver
2495 /** \brief Reply for map_resolver add/del
2496 @param context - returned sender context, to match reply w/ request
2497 @param retval - return code
2499 define lisp_add_del_map_resolver_reply
2505 /** \brief enable or disable lisp-gpe protocol
2506 @param client_index - opaque cookie to identify the sender
2507 @param context - sender context, to match reply w/ request
2508 @param is_en - enable protocol if non-zero, else disable
2510 define lisp_gpe_enable_disable
2517 /** \brief Reply for gpe enable/disable
2518 @param context - returned sender context, to match reply w/ request
2519 @param retval - return code
2521 define lisp_gpe_enable_disable_reply
2527 /** \brief enable or disable LISP feature
2528 @param client_index - opaque cookie to identify the sender
2529 @param context - sender context, to match reply w/ request
2530 @param is_en - enable protocol if non-zero, else disable
2532 define lisp_enable_disable
2539 /** \brief Reply for gpe enable/disable
2540 @param context - returned sender context, to match reply w/ request
2541 @param retval - return code
2543 define lisp_enable_disable_reply
2549 /** \brief add or delete gpe_iface
2550 @param client_index - opaque cookie to identify the sender
2551 @param context - sender context, to match reply w/ request
2552 @param is_add - add address if non-zero, else delete
2554 define lisp_gpe_add_del_iface
2564 /** \brief Reply for gpe_iface add/del
2565 @param context - returned sender context, to match reply w/ request
2566 @param retval - return code
2568 define lisp_gpe_add_del_iface_reply
2574 /** \brief configure or disable LISP PITR node
2575 @param client_index - opaque cookie to identify the sender
2576 @param context - sender context, to match reply w/ request
2577 @param ls_name - locator set name
2578 @param is_add - add locator set if non-zero, else disable pitr
2580 define lisp_pitr_set_locator_set
2588 /** \brief Reply for lisp_pitr_set_locator_set
2589 @param context - returned sender context, to match reply w/ request
2590 @param retval - return code
2592 define lisp_pitr_set_locator_set_reply
2598 /** \brief add or delete remote static mapping
2599 @param client_index - opaque cookie to identify the sender
2600 @param context - sender context, to match reply w/ request
2601 @param is_add - add address if non-zero, else delete
2602 @param is_src_dst - flag indicating src/dst based routing policy
2603 @param del_all - if set, delete all remote mappings
2604 @param vni - virtual network instance
2605 @param action - negative map-reply action
2610 @param deid - dst EID
2611 @param seid - src EID, valid only if is_src_dst is enabled
2612 @param rloc_num - number of remote locators
2613 @param rlocs - remote locator data
2615 define lisp_add_del_remote_mapping
2633 /** \brief Reply for lisp_add_del_remote_mapping
2634 @param context - returned sender context, to match reply w/ request
2635 @param retval - return code
2637 define lisp_add_del_remote_mapping_reply
2643 /** \brief add or delete LISP adjacency adjacency
2644 @param client_index - opaque cookie to identify the sender
2645 @param context - sender context, to match reply w/ request
2646 @param is_add - add address if non-zero, else delete
2647 @param vni - virtual network instance
2652 @param deid - destination EID
2653 @param seid - source EID
2655 define lisp_add_del_adjacency
2668 /** \brief Reply for lisp_add_del_adjacency
2669 @param context - returned sender context, to match reply w/ request
2670 @param retval - return code
2672 define lisp_add_del_adjacency_reply
2678 /** \brief add or delete map request itr rlocs
2679 @param client_index - opaque cookie to identify the sender
2680 @param context - sender context, to match reply w/ request
2681 @param is_add - add address if non-zero, else delete
2682 @param locator_set_name - locator set name
2684 define lisp_add_del_map_request_itr_rlocs
2689 u8 locator_set_name[64];
2692 /** \brief Reply for lisp_add_del_map_request_itr_rlocs
2693 @param context - returned sender context, to match reply w/ request
2694 @param retval - return code
2697 define lisp_add_del_map_request_itr_rlocs_reply
2703 /** \brief map/unmap vni/bd_index to vrf
2704 @param client_index - opaque cookie to identify the sender
2705 @param context - sender context, to match reply w/ request
2706 @param is_add - add or delete mapping
2707 @param dp_table - virtual network id/bridge domain index
2710 define lisp_eid_table_add_del_map
2720 /** \brief Reply for lisp_eid_table_add_del_map
2721 @param context - returned sender context, to match reply w/ request
2722 @param retval - return code
2724 define lisp_eid_table_add_del_map_reply
2730 /** \brief Request for map lisp locator status
2731 @param client_index - opaque cookie to identify the sender
2732 @param context - sender context, to match reply w/ request
2733 @param locator_set_index - index of locator_set
2734 @param ls_name - locator set name
2735 @param is_index_set - flag indicating whether ls_name or ls_index is set
2737 define lisp_locator_dump
2746 /** \brief LISP locator_set status
2747 @param local - if is set, then locator is local
2748 @param locator_set_name - name of the locator_set
2749 @param sw_if_index - sw_if_index of the locator
2750 @param priority - locator priority
2751 @param weight - locator weight
2753 define lisp_locator_details
2764 /** \brief LISP locator_set status
2765 @param context - sender context, to match reply w/ request
2766 @param ls_index - locator set index
2767 @param ls_name - name of the locator set
2769 define lisp_locator_set_details
2776 /** \brief Request for locator_set summary status
2777 @param client_index - opaque cookie to identify the sender
2778 @param context - sender context, to match reply w/ request
2779 @param filter - filter type
2782 1: local locator sets
2783 2: remote locator sets
2785 define lisp_locator_set_dump
2792 /** \brief Dump lisp eid-table
2793 @param client_index - opaque cookie to identify the sender
2794 @param context - sender context, to match reply w/ request
2795 @param locator_set_index - index of locator_set, if ~0 then the mapping
2797 @param action - negative map request action
2798 @param is_local - local if non-zero, else remote
2803 @param is_src_dst - EID is type of source/destination
2804 @param eid - EID can be ip4, ip6 or mac
2805 @param eid_prefix_len - prefix length
2806 @param seid - source EID can be ip4, ip6 or mac
2807 @param seid_prefix_len - source prefix length
2808 @param vni - virtual network instance
2809 @param ttl - time to live
2810 @param authoritative - authoritative
2813 define lisp_eid_table_details
2816 u32 locator_set_index;
2830 /** \brief Request for eid table summary status
2831 @param client_index - opaque cookie to identify the sender
2832 @param context - sender context, to match reply w/ request
2833 @param eid_set - if non-zero request info about specific mapping
2834 @param vni - virtual network instance; valid only if eid_set != 0
2835 @param prefix_length - prefix length if EID is IP address;
2836 valid only if eid_set != 0
2837 @param eid_type - EID type; valid only if eid_set != 0
2841 2: EID is ethernet address
2842 @param eid - endpoint identifier
2843 @param filter - filter type;
2849 define lisp_eid_table_dump
2861 /** \brief Shows relationship between vni and vrf/bd
2862 @param dp_table - VRF index or bridge domain index
2863 @param vni - vitual network instance
2865 define lisp_eid_table_map_details
2872 /** \brief Request for lisp_eid_table_map_details
2873 @param client_index - opaque cookie to identify the sender
2874 @param context - sender context, to match reply w/ request
2875 @param is_l2 - if set dump vni/bd mappings else vni/vrf
2877 define lisp_eid_table_map_dump
2884 /** \brief Dumps all VNIs used in mappings
2885 @param client_index - opaque cookie to identify the sender
2886 @param context - sender context, to match reply w/ request
2888 define lisp_eid_table_vni_dump
2894 /** \brief reply to lisp_eid_table_vni_dump
2895 @param client_index - opaque cookie to identify the sender
2896 @param context - sender context, to match reply w/ request
2897 @param vni - virtual network instance
2899 define lisp_eid_table_vni_details
2906 define lisp_gpe_tunnel_details
2912 u8 destination_ip[16];
2924 /** \brief Request for gpe tunnel summary status
2925 @param client_index - opaque cookie to identify the sender
2926 @param context - sender context, to match reply w/ request
2928 define lisp_gpe_tunnel_dump
2934 /** \brief LISP map resolver status
2935 @param locator_set_name - name of the locator_set
2936 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
2937 @param ip_address - array of address bytes
2939 define lisp_map_resolver_details
2946 /** \brief Request for map resolver summary status
2947 @param client_index - opaque cookie to identify the sender
2948 @param context - sender context, to match reply w/ request
2950 define lisp_map_resolver_dump
2956 /** \brief Request for lisp-gpe protocol status
2957 @param client_index - opaque cookie to identify the sender
2958 @param context - sender context, to match reply w/ request
2960 define show_lisp_status
2966 /** \brief Status of lisp, enable or disable
2967 @param context - sender context, to match reply w/ request
2968 @param feature_status - lisp enable if non-zero, else disable
2969 @param gpe_status - lisp enable if non-zero, else disable
2971 define show_lisp_status_reply
2979 /** \brief Get LISP map request itr rlocs status
2980 @param context - sender context, to match reply w/ request
2981 @param locator_set_name - name of the locator_set
2983 define lisp_get_map_request_itr_rlocs
2989 /** \brief Request for map request itr rlocs summary status
2991 define lisp_get_map_request_itr_rlocs_reply
2995 u8 locator_set_name[64];
2998 /** \brief Request for lisp pitr status
2999 @param client_index - opaque cookie to identify the sender
3000 @param context - sender context, to match reply w/ request
3002 define show_lisp_pitr
3008 /** \brief Status of lisp pitr, enable or disable
3009 @param context - sender context, to match reply w/ request
3010 @param status - lisp pitr enable if non-zero, else disable
3011 @param locator_set_name - name of the locator_set
3013 define show_lisp_pitr_reply
3018 u8 locator_set_name[64];
3021 /* Gross kludge, DGMS */
3022 define interface_name_renumber
3027 u32 new_show_dev_instance;
3030 define interface_name_renumber_reply
3036 /** \brief Register for ip4 arp resolution events
3037 @param client_index - opaque cookie to identify the sender
3038 @param context - sender context, to match reply w/ request
3039 @param enable_disable - 1 => register for events, 0 => cancel registration
3040 @param pid - sender's pid
3041 @param address - the exact ip4 address of interest
3043 define want_ip4_arp_events
3052 /** \brief Reply for interface events registration
3053 @param context - returned sender context, to match reply w/ request
3054 @param retval - return code
3056 define want_ip4_arp_events_reply
3062 /** \brief Tell client about an ip4 arp resolution event
3063 @param client_index - opaque cookie to identify the sender
3064 @param context - sender context, to match reply w/ request
3065 @param address - the exact ip4 address of interest
3066 @param pid - client pid registered to receive notification
3067 @param sw_if_index - interface which received ARP packet
3068 @param new_mac - the new mac address
3069 @param mac_ip - 0: resolution event, 1: mac/ip binding in bd
3071 define ip4_arp_event
3082 /** \brief Register for ip6 nd resolution events
3083 @param client_index - opaque cookie to identify the sender
3084 @param context - sender context, to match reply w/ request
3085 @param enable_disable - 1 => register for events, 0 => cancel registration
3086 @param pid - sender's pid
3087 @param address - the exact ip6 address of interest
3089 define want_ip6_nd_events
3098 /** \brief Reply for ip6 nd resolution events registration
3099 @param context - returned sender context, to match reply w/ request
3100 @param retval - return code
3102 define want_ip6_nd_events_reply
3108 /** \brief Tell client about an ip6 nd resolution or mac/ip event
3109 @param client_index - opaque cookie to identify the sender
3110 @param context - sender context, to match reply w/ request
3111 @param pid - client pid registered to receive notification
3112 @param sw_if_index - interface which received ARP packet
3113 @param address - the exact ip6 address of interest
3114 @param new_mac - the new mac address
3115 @param mac_ip - 0: resolution event, 1: mac/ip binding in bd
3128 /** \brief L2 bridge domain add or delete request
3129 @param client_index - opaque cookie to identify the sender
3130 @param context - sender context, to match reply w/ request
3131 @param bd_id - the bridge domain to create
3132 @param flood - enable/disable bcast/mcast flooding in the bd
3133 @param uu_flood - enable/disable uknown unicast flood in the bd
3134 @param forward - enable/disable forwarding on all interfaces in the bd
3135 @param learn - enable/disable learning on all interfaces in the bd
3136 @param arp_term - enable/disable arp termination in the bd
3137 @param is_add - add or delete flag
3139 define bridge_domain_add_del
3152 /** \brief L2 bridge domain add or delete response
3153 @param context - sender context, to match reply w/ request
3154 @param retval - return code for the set bridge flags request
3156 define bridge_domain_add_del_reply
3162 /** \brief L2 bridge domain request operational state details
3163 @param client_index - opaque cookie to identify the sender
3164 @param context - sender context, to match reply w/ request
3165 @param bd_id - the bridge domain id desired or ~0 to request all bds
3167 define bridge_domain_dump
3174 /** \brief L2 bridge domain operational state response
3175 @param bd_id - the bridge domain id
3176 @param flood - bcast/mcast flooding state on all interfaces in the bd
3177 @param uu_flood - uknown unicast flooding state on all interfaces in the bd
3178 @param forward - forwarding state on all interfaces in the bd
3179 @param learn - learning state on all interfaces in the bd
3180 @param arp_term - arp termination state on all interfaces in the bd
3181 @param n_sw_ifs - number of sw_if_index's in the domain
3183 define bridge_domain_details
3192 u32 bvi_sw_if_index;
3196 /** \brief L2 bridge domain sw interface operational state response
3197 @param bd_id - the bridge domain id
3198 @param sw_if_index - sw_if_index in the domain
3199 @param shg - split horizon group for the interface
3201 define bridge_domain_sw_if_details
3209 /** \brief DHCP Client config add / del request
3210 @param client_index - opaque cookie to identify the sender
3211 @param context - sender context, to match reply w/ request
3212 @param sw_if_index - index of the interface for DHCP client
3213 @param hostname - hostname
3214 @param is_add - add the config if non-zero, else delete
3215 @param want_dhcp_event - DHCP event sent to the sender
3216 via dhcp_compl_event API message if non-zero
3217 @param pid - sender's pid
3219 define dhcp_client_config
3230 /** \brief DHCP Client config response
3231 @param context - sender context, to match reply w/ request
3232 @param retval - return code for the request
3234 define dhcp_client_config_reply
3240 /** \brief Set/unset input ACL interface
3241 @param client_index - opaque cookie to identify the sender
3242 @param context - sender context, to match reply w/ request
3243 @param sw_if_index - interface to set/unset input ACL
3244 @param ip4_table_index - ip4 classify table index (~0 for skip)
3245 @param ip6_table_index - ip6 classify table index (~0 for skip)
3246 @param l2_table_index - l2 classify table index (~0 for skip)
3247 @param is_add - Set input ACL if non-zero, else unset
3248 Note: User is recommeneded to use just one valid table_index per call.
3249 (ip4_table_index, ip6_table_index, or l2_table_index)
3251 define input_acl_set_interface
3256 u32 ip4_table_index;
3257 u32 ip6_table_index;
3262 /** \brief Set/unset input ACL interface response
3263 @param context - sender context, to match reply w/ request
3264 @param retval - return code for the request
3266 define input_acl_set_interface_reply
3272 /** \brief IPsec: Add/delete Security Policy Database
3273 @param client_index - opaque cookie to identify the sender
3274 @param context - sender context, to match reply w/ request
3275 @param is_add - add SPD if non-zero, else delete
3276 @param spd_id - SPD instance id (control plane allocated)
3279 define ipsec_spd_add_del
3287 /** \brief Reply for IPsec: Add/delete Security Policy Database entry
3288 @param context - returned sender context, to match reply w/ request
3289 @param retval - return code
3292 define ipsec_spd_add_del_reply
3298 /** \brief IPsec: Add/delete SPD from interface
3300 @param client_index - opaque cookie to identify the sender
3301 @param context - sender context, to match reply w/ request
3302 @param is_add - add security mode if non-zero, else delete
3303 @param sw_if_index - index of the interface
3304 @param spd_id - SPD instance id to use for lookups
3308 define ipsec_interface_add_del_spd
3318 /** \brief Reply for IPsec: Add/delete SPD from interface
3319 @param context - returned sender context, to match reply w/ request
3320 @param retval - return code
3323 define ipsec_interface_add_del_spd_reply
3329 /** \brief IPsec: Add/delete Security Policy Database entry
3331 See RFC 4301, 4.4.1.1 on how to match packet to selectors
3333 @param client_index - opaque cookie to identify the sender
3334 @param context - sender context, to match reply w/ request
3335 @param is_add - add SPD if non-zero, else delete
3336 @param spd_id - SPD instance id (control plane allocated)
3337 @param priority - priority of SPD entry (non-unique value). Used to order SPD matching - higher priorities match before lower
3338 @param is_outbound - entry applies to outbound traffic if non-zero, otherwise applies to inbound traffic
3339 @param is_ipv6 - remote/local address are IPv6 if non-zero, else IPv4
3340 @param remote_address_start - start of remote address range to match
3341 @param remote_address_stop - end of remote address range to match
3342 @param local_address_start - start of local address range to match
3343 @param local_address_stop - end of local address range to match
3344 @param protocol - protocol type to match [0 means any]
3345 @param remote_port_start - start of remote port range to match ...
3346 @param remote_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
3347 @param local_port_start - start of local port range to match ...
3348 @param local_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
3349 @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)
3350 @param sa_id - SAD instance id (control plane allocated)
3354 define ipsec_spd_add_del_entry
3367 u8 remote_address_start[16];
3368 u8 remote_address_stop[16];
3369 u8 local_address_start[16];
3370 u8 local_address_stop[16];
3374 u16 remote_port_start;
3375 u16 remote_port_stop;
3376 u16 local_port_start;
3377 u16 local_port_stop;
3384 /** \brief Reply for IPsec: Add/delete Security Policy Database entry
3385 @param context - returned sender context, to match reply w/ request
3386 @param retval - return code
3389 define ipsec_spd_add_del_entry_reply
3395 /** \brief IPsec: Add/delete Security Association Database entry
3396 @param client_index - opaque cookie to identify the sender
3397 @param context - sender context, to match reply w/ request
3398 @param is_add - add SAD entry if non-zero, else delete
3400 @param sad_id - sad id
3402 @param spi - security parameter index
3404 @param protocol - 0 = AH, 1 = ESP
3406 @param crypto_algorithm - 0 = Null, 1 = AES-CBC-128, 2 = AES-CBC-192, 3 = AES-CBC-256, 4 = 3DES-CBC
3407 @param crypto_key_length - length of crypto_key in bytes
3408 @param crypto_key - crypto keying material
3410 @param integrity_algorithm - 0 = None, 1 = MD5-96, 2 = SHA1-96, 3 = SHA-256, 4 = SHA-384, 5=SHA-512
3411 @param integrity_key_length - length of integrity_key in bytes
3412 @param integrity_key - integrity keying material
3414 @param use_extended_sequence_number - use ESN when non-zero
3416 @param is_tunnel - IPsec tunnel mode if non-zero, else transport mode
3417 @param is_tunnel_ipv6 - IPsec tunnel mode is IPv6 if non-zero, else IPv4 tunnel only valid if is_tunnel is non-zero
3418 @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
3419 @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
3423 IPsec tunnel address copy mode (to support GDOI)
3426 define ipsec_sad_add_del_entry
3438 u8 crypto_algorithm;
3439 u8 crypto_key_length;
3442 u8 integrity_algorithm;
3443 u8 integrity_key_length;
3444 u8 integrity_key[128];
3446 u8 use_extended_sequence_number;
3450 u8 tunnel_src_address[16];
3451 u8 tunnel_dst_address[16];
3454 /** \brief Reply for IPsec: Add/delete Security Association Database entry
3455 @param context - returned sender context, to match reply w/ request
3456 @param retval - return code
3459 define ipsec_sad_add_del_entry_reply
3465 /** \brief IPsec: Update Security Association keys
3466 @param client_index - opaque cookie to identify the sender
3467 @param context - sender context, to match reply w/ request
3469 @param sa_id - sa id
3471 @param crypto_key_length - length of crypto_key in bytes
3472 @param crypto_key - crypto keying material
3474 @param integrity_key_length - length of integrity_key in bytes
3475 @param integrity_key - integrity keying material
3478 define ipsec_sa_set_key
3485 u8 crypto_key_length;
3488 u8 integrity_key_length;
3489 u8 integrity_key[128];
3492 /** \brief Reply for IPsec: Update Security Association keys
3493 @param context - returned sender context, to match reply w/ request
3494 @param retval - return code
3497 define ipsec_sa_set_key_reply
3503 /** \brief IKEv2: Add/delete profile
3504 @param client_index - opaque cookie to identify the sender
3505 @param context - sender context, to match reply w/ request
3507 @param name - IKEv2 profile name
3508 @param is_add - Add IKEv2 profile if non-zero, else delete
3510 define ikev2_profile_add_del
3519 /** \brief Reply for IKEv2: Add/delete profile
3520 @param context - returned sender context, to match reply w/ request
3521 @param retval - return code
3523 define ikev2_profile_add_del_reply
3529 /** \brief IKEv2: Set IKEv2 profile authentication method
3530 @param client_index - opaque cookie to identify the sender
3531 @param context - sender context, to match reply w/ request
3533 @param name - IKEv2 profile name
3534 @param auth_method - IKEv2 authentication method (shared-key-mic/rsa-sig)
3535 @param is_hex - Authentication data in hex format if non-zero, else string
3536 @param data_len - Authentication data length
3537 @param data - Authentication data (for rsa-sig cert file path)
3539 define ikev2_profile_set_auth
3551 /** \brief Reply for IKEv2: Set IKEv2 profile authentication method
3552 @param context - returned sender context, to match reply w/ request
3553 @param retval - return code
3555 define ikev2_profile_set_auth_reply
3561 /** \brief IKEv2: Set IKEv2 profile local/remote identification
3562 @param client_index - opaque cookie to identify the sender
3563 @param context - sender context, to match reply w/ request
3565 @param name - IKEv2 profile name
3566 @param is_local - Identification is local if non-zero, else remote
3567 @param id_type - Identification type
3568 @param data_len - Identification data length
3569 @param data - Identification data
3571 define ikev2_profile_set_id
3583 /** \brief Reply for IKEv2:
3584 @param context - returned sender context, to match reply w/ request
3585 @param retval - return code
3587 define ikev2_profile_set_id_reply
3593 /** \brief IKEv2: Set IKEv2 profile traffic selector parameters
3594 @param client_index - opaque cookie to identify the sender
3595 @param context - sender context, to match reply w/ request
3597 @param name - IKEv2 profile name
3598 @param is_local - Traffic selector is local if non-zero, else remote
3599 @param proto - Traffic selector IP protocol (if zero not relevant)
3600 @param start_port - The smallest port number allowed by traffic selector
3601 @param end_port - The largest port number allowed by traffic selector
3602 @param start_addr - The smallest address included in traffic selector
3603 @param end_addr - The largest address included in traffic selector
3605 define ikev2_profile_set_ts
3619 /** \brief Reply for IKEv2: Set IKEv2 profile traffic selector parameters
3620 @param context - returned sender context, to match reply w/ request
3621 @param retval - return code
3623 define ikev2_profile_set_ts_reply
3629 /** \brief IKEv2: Set IKEv2 local RSA private key
3630 @param client_index - opaque cookie to identify the sender
3631 @param context - sender context, to match reply w/ request
3633 @param key_file - Key file absolute path
3635 define ikev2_set_local_key
3643 /** \brief Reply for IKEv2: Set IKEv2 local key
3644 @param context - returned sender context, to match reply w/ request
3645 @param retval - return code
3647 define ikev2_set_local_key_reply
3653 /** \brief Tell client about a DHCP completion event
3654 @param client_index - opaque cookie to identify the sender
3655 @param pid - client pid registered to receive notification
3656 @param is_ipv6 - if non-zero the address is ipv6, else ipv4
3657 @param host_address - Host IP address
3658 @param router_address - Router IP address
3659 @param host_mac - Host MAC address
3661 define dhcp_compl_event
3667 u8 host_address[16];
3668 u8 router_address[16];
3672 /** \brief Add MAP domains
3673 @param client_index - opaque cookie to identify the sender
3674 @param context - sender context, to match reply w/ request
3675 @param ip6_prefix - Rule IPv6 prefix
3676 @param ip4_prefix - Rule IPv4 prefix
3677 @param ip6_src - MAP domain IPv6 BR address / Tunnel source
3678 @param ip6_prefix_len - Rule IPv6 prefix length
3679 @param ip4_prefix_len - Rule IPv4 prefix length
3680 @param ea_bits_len - Embedded Address bits length
3681 @param psid_offset - Port Set Identifider (PSID) offset
3682 @param psid_length - PSID length
3683 @param is_translation - MAP-E / MAP-T
3686 define map_add_domain
3695 u8 ip6_src_prefix_len;
3703 /** \brief Reply for MAP domain add
3704 @param context - returned sender context, to match reply w/ request
3705 @param index - MAP domain index
3706 @param retval - return code
3708 define map_add_domain_reply
3715 /** \brief Delete MAP domain
3716 @param client_index - opaque cookie to identify the sender
3717 @param context - sender context, to match reply w/ request
3718 @param index - MAP Domain index
3720 define map_del_domain
3727 /** \brief Reply for MAP domain del
3728 @param context - returned sender context, to match reply w/ request
3729 @param retval - return code
3731 define map_del_domain_reply
3737 /** \brief Add or Delete MAP rule from a domain (Only used for shared IPv4 per subscriber)
3738 @param client_index - opaque cookie to identify the sender
3739 @param context - sender context, to match reply w/ request
3740 @param index - MAP Domain index
3741 @param is_add - If 1 add rule, if 0 delete rule
3742 @param ip6_dst - MAP CE IPv6 address
3743 @param psid - Rule PSID
3745 define map_add_del_rule
3755 /** \brief Reply for MAP rule add/del
3756 @param context - returned sender context, to match reply w/ request
3757 @param retval - return code
3759 define map_add_del_rule_reply
3765 /** \brief Get list of map domains
3766 @param client_index - opaque cookie to identify the sender
3768 define map_domain_dump
3774 define map_domain_details
3792 define map_rule_dump
3799 define map_rule_details
3806 /** \brief Request for a single block of summary stats
3807 @param client_index - opaque cookie to identify the sender
3808 @param context - sender context, to match reply w/ request
3810 define map_summary_stats
3816 /** \brief Reply for map_summary_stats request
3817 @param context - sender context, to match reply w/ request
3818 @param retval - return code for request
3819 @param total_bindings -
3821 @param total_ip4_fragments -
3822 @param total_security_check -
3824 define map_summary_stats_reply
3831 u64 total_ip4_fragments;
3832 u64 total_security_check[2];
3835 /** \brief cop: enable/disable junk filtration features on an interface
3836 @param client_index - opaque cookie to identify the sender
3837 @param context - sender context, to match reply w/ request
3838 @param sw_if_inded - desired interface
3839 @param enable_disable - 1 => enable, 0 => disable
3842 define cop_interface_enable_disable
3850 /** \brief cop: interface enable/disable junk filtration reply
3851 @param context - returned sender context, to match reply w/ request
3852 @param retval - return code
3855 define cop_interface_enable_disable_reply
3861 /** \brief cop: enable/disable whitelist filtration features on an interface
3862 Note: the supplied fib_id must match in order to remove the feature!
3864 @param client_index - opaque cookie to identify the sender
3865 @param context - sender context, to match reply w/ request
3866 @param sw_if_index - interface handle, physical interfaces only
3867 @param fib_id - fib identifier for the whitelist / blacklist fib
3868 @param ip4 - 1 => enable ip4 filtration, 0=> disable ip4 filtration
3869 @param ip6 - 1 => enable ip6 filtration, 0=> disable ip6 filtration
3870 @param default_cop - 1 => enable non-ip4, non-ip6 filtration 0=> disable it
3873 define cop_whitelist_enable_disable
3884 /** \brief cop: interface enable/disable junk filtration reply
3885 @param context - returned sender context, to match reply w/ request
3886 @param retval - return code
3889 define cop_whitelist_enable_disable_reply
3895 /** \brief get_node_graph - get a copy of the vpp node graph
3896 including the current set of graph arcs.
3898 @param client_index - opaque cookie to identify the sender
3899 @param context - sender context, to match reply w/ request
3902 define get_node_graph
3908 /** \brief get_node_graph_reply
3909 @param context - returned sender context, to match reply w/ request
3910 @param retval - return code
3911 @param reply_in_shmem - result from vlib_node_serialize, in shared
3912 memory. Process with vlib_node_unserialize, remember to switch
3913 heaps and free the result.
3916 define get_node_graph_reply
3923 /** \brief Clear interface statistics
3924 @param client_index - opaque cookie to identify the sender
3925 @param context - sender context, to match reply w/ request
3926 @param sw_if_index - index of the interface to clear statistics
3928 define sw_interface_clear_stats
3935 /** \brief Reply to sw_interface_clear_stats
3936 @param context - sender context which was passed in the request
3937 @param retval - return code of the set flags request
3939 define sw_interface_clear_stats_reply
3945 /** \brief IOAM enable : Enable in-band OAM
3946 @param id - profile id
3947 @param trace_ppc - Trace PPC (none/encap/decap)
3948 @param pow_enable - Proof of Work enabled or not flag
3949 @param trace_enable - iOAM Trace enabled or not flag
3962 /** \brief iOAM Trace profile add / del response
3963 @param context - sender context, to match reply w/ request
3964 @param retval - return value for request
3966 define ioam_enable_reply
3972 /** \brief iOAM disable
3973 @param client_index - opaque cookie to identify the sender
3974 @param context - sender context, to match reply w/ request
3975 @param index - MAP Domain index
3984 /** \brief iOAM disable response
3985 @param context - sender context, to match reply w/ request
3986 @param retval - return value for request
3988 define ioam_disable_reply
3994 /** \brief Create host-interface
3995 @param client_index - opaque cookie to identify the sender
3996 @param context - sender context, to match reply w/ request
3997 @param host_if_name - interface name
3998 @param hw_addr - interface MAC
3999 @param use_random_hw_addr - use random generated MAC
4001 define af_packet_create
4006 u8 host_if_name[64];
4008 u8 use_random_hw_addr;
4011 /** \brief Create host-interface response
4012 @param context - sender context, to match reply w/ request
4013 @param retval - return value for request
4015 define af_packet_create_reply
4022 /** \brief Delete host-interface
4023 @param client_index - opaque cookie to identify the sender
4024 @param context - sender context, to match reply w/ request
4025 @param host_if_name - interface name
4027 define af_packet_delete
4032 u8 host_if_name[64];
4035 /** \brief Delete host-interface response
4036 @param context - sender context, to match reply w/ request
4037 @param retval - return value for request
4039 define af_packet_delete_reply
4045 /** \brief Add/del policer
4046 @param client_index - opaque cookie to identify the sender
4047 @param context - sender context, to match reply w/ request
4048 @param is_add - add policer if non-zero, else delete
4049 @param name - policer name
4052 @param cb - Committed Burst
4053 @param eb - Excess or Peak Burst
4054 @param rate_type - rate type
4055 @param round_type - rounding type
4056 @param type - policer algorithm
4057 @param color_aware - 0=color-blind, 1=color-aware
4058 @param conform_action_type - conform action type
4059 @param conform_dscp - DSCP for conform mar-and-transmit action
4060 @param exceed_action_type - exceed action type
4061 @param exceed_dscp - DSCP for exceed mar-and-transmit action
4062 @param violate_action_type - violate action type
4063 @param violate_dscp - DSCP for violate mar-and-transmit action
4065 define policer_add_del
4080 u8 conform_action_type;
4082 u8 exceed_action_type;
4084 u8 violate_action_type;
4088 /** \brief Add/del policer response
4089 @param context - sender context, to match reply w/ request
4090 @param retval - return value for request
4091 @param policer_index - for add, returned index of the new policer
4093 define policer_add_del_reply
4100 /** \brief Get list of policers
4101 @param client_index - opaque cookie to identify the sender
4102 @param context - sender context, to match reply w/ request
4103 @param match_name_valid - if 0 request all policers otherwise use match_name
4104 @param match_name - policer name
4111 u8 match_name_valid;
4115 /** \brief Policer operational state response.
4116 @param context - sender context, to match reply w/ request
4117 @param name - policer name
4120 @param cb - Committed Burst
4121 @param eb - Excess or Peak Burst
4122 @param rate_type - rate type
4123 @param round_type - rounding type
4124 @param type - policer algorithm
4125 @param conform_action_type - conform action type
4126 @param conform_dscp - DSCP for conform mar-and-transmit action
4127 @param exceed_action_type - exceed action type
4128 @param exceed_dscp - DSCP for exceed mar-and-transmit action
4129 @param violate_action_type - violate action type
4130 @param violate_dscp - DSCP for violate mar-and-transmit action
4131 @param single_rate - 1 = single rate policer, 0 = two rate policer
4132 @param color_aware - for hierarchical policing
4133 @param scale - power-of-2 shift amount for lower rates
4134 @param cir_tokens_per_period - number of tokens for each period
4135 @param pir_tokens_per_period - number of tokens for each period for 2-rate policer
4136 @param current_limit - current limit
4137 @param current_bucket - current bucket
4138 @param extended_limit - extended limit
4139 @param extended_bucket - extended bucket
4140 @param last_update_time - last update time
4142 define policer_details
4154 u8 conform_action_type;
4156 u8 exceed_action_type;
4158 u8 violate_action_type;
4163 u32 cir_tokens_per_period;
4164 u32 pir_tokens_per_period;
4168 u32 extended_bucket;
4169 u64 last_update_time;
4172 /** \brief Set/unset policer classify interface
4173 @param client_index - opaque cookie to identify the sender
4174 @param context - sender context, to match reply w/ request
4175 @param sw_if_index - interface to set/unset policer classify
4176 @param ip4_table_index - ip4 classify table index (~0 for skip)
4177 @param ip6_table_index - ip6 classify table index (~0 for skip)
4178 @param l2_table_index - l2 classify table index (~0 for skip)
4179 @param is_add - Set if non-zero, else unset
4180 Note: User is recommeneded to use just one valid table_index per call.
4181 (ip4_table_index, ip6_table_index, or l2_table_index)
4183 define policer_classify_set_interface
4188 u32 ip4_table_index;
4189 u32 ip6_table_index;
4194 /** \brief Set/unset policer classify interface response
4195 @param context - sender context, to match reply w/ request
4196 @param retval - return value for request
4198 define policer_classify_set_interface_reply
4204 /** \brief Get list of policer classify interfaces and tables
4205 @param client_index - opaque cookie to identify the sender
4206 @param context - sender context, to match reply w/ request
4207 @param type - classify table type
4209 define policer_classify_dump
4216 /** \brief Policer iclassify operational state response.
4217 @param context - sender context, to match reply w/ request
4218 @param sw_if_index - software interface index
4219 @param table_index - classify table index
4221 define policer_classify_details
4228 /** \brief Create netmap
4229 @param client_index - opaque cookie to identify the sender
4230 @param context - sender context, to match reply w/ request
4231 @param netmap_if_name - interface name
4232 @param hw_addr - interface MAC
4233 @param use_random_hw_addr - use random generated MAC
4234 @param is_pipe - is pipe
4235 @param is_master - 0=slave, 1=master
4237 define netmap_create
4242 u8 netmap_if_name[64];
4244 u8 use_random_hw_addr;
4249 /** \brief Create netmap response
4250 @param context - sender context, to match reply w/ request
4251 @param retval - return value for request
4253 define netmap_create_reply
4259 /** \brief Delete netmap
4260 @param client_index - opaque cookie to identify the sender
4261 @param context - sender context, to match reply w/ request
4262 @param netmap_if_name - interface name
4264 define netmap_delete
4269 u8 netmap_if_name[64];
4272 /** \brief Delete netmap response
4273 @param context - sender context, to match reply w/ request
4274 @param retval - return value for request
4276 define netmap_delete_reply
4282 /** \brief Dump mpls gre tunnel table
4283 @param client_index - opaque cookie to identify the sender
4284 @param tunnel_index - gre tunnel identifier or -1 in case of all tunnels
4286 define mpls_gre_tunnel_dump
4293 /** \brief mpls gre tunnel operational state response
4294 @param tunnel_index - gre tunnel identifier
4295 @param intfc_address - interface ipv4 addr
4296 @param mask_width - interface ipv4 addr mask
4297 @param hw_if_index - interface id
4299 @param tunnel_src - tunnel source ipv4 addr
4300 @param tunnel_dst - tunnel destination ipv4 addr
4301 @param outer_fib_index - gre tunnel identifier
4302 @param encap_index - reference to mpls label table
4303 @param nlabels - number of resolved labels
4304 @param labels - resolved labels
4306 define mpls_gre_tunnel_details
4312 u32 inner_fib_index;
4319 u32 outer_fib_index;
4321 u32 labels[nlabels];
4324 /** \brief Dump mpls eth tunnel table
4325 @param client_index - opaque cookie to identify the sender
4326 @param tunnel_index - eth tunnel identifier or -1 in case of all tunnels
4328 define mpls_eth_tunnel_dump
4335 /** \brief mpls eth tunnel operational state response
4336 @param tunnel_index - eth tunnel identifier
4337 @param intfc_address - interface ipv4 addr
4338 @param mask_width - interface ipv4 addr mask
4339 @param hw_if_index - interface id
4341 @param tunnel_dst_mac -
4342 @param tx_sw_if_index -
4343 @param encap_index - reference to mpls label table
4344 @param nlabels - number of resolved labels
4345 @param labels - resolved labels
4347 define mpls_eth_tunnel_details
4353 u32 inner_fib_index;
4358 u8 tunnel_dst_mac[6];
4361 u32 labels[nlabels];
4364 /** \brief Dump mpls fib table
4365 @param client_index - opaque cookie to identify the sender
4366 @param fib_index - mpls fib entry identifier or -1 in case of all entries
4368 define mpls_fib_encap_dump
4374 /** \brief mpls fib encap table response
4375 @param fib_index - fib table id
4376 @param dest - destination ipv4 addr
4378 @param entry_index - reference to mpls label table
4379 @param nlabels - number of resolved labels
4380 @param labels - resolved labels
4382 define mpls_fib_encap_details
4391 u32 labels[nlabels];
4394 /** \brief Dump mpls fib decap table
4395 @param client_index - opaque cookie to identify the sender
4396 @param fib_index - mpls fib entry identifier or -1 in case of all entries
4398 define mpls_fib_decap_dump
4404 /** \brief mpls fib decap table response
4405 @param fib_index - fib table id
4406 @param entry_index - reference to mpls label table
4407 @param dest - destination ipv4 addr
4409 @param label - mpls labels
4410 @param rx_table_id - rx fib id
4411 @param tx_table_id - tx fib id
4414 define mpls_fib_decap_details
4428 /** \brief Classify get table IDs request
4429 @param client_index - opaque cookie to identify the sender
4430 @param context - sender context, to match reply w/ request
4432 define classify_table_ids
4438 /** \brief Reply for classify get table IDs request
4439 @param context - sender context which was passed in the request
4440 @param count - number of ids returned in response
4441 @param ids - array of classify table ids
4443 define classify_table_ids_reply
4451 /** \brief Classify table ids by interface index request
4452 @param client_index - opaque cookie to identify the sender
4453 @param context - sender context, to match reply w/ request
4454 @param sw_if_index - index of the interface
4456 define classify_table_by_interface
4463 /** \brief Reply for classify table id by interface index request
4464 @param context - sender context which was passed in the request
4465 @param count - number of ids returned in response
4466 @param sw_if_index - index of the interface
4467 @param l2_table_id - l2 classify table index
4468 @param ip4_table_id - ip4 classify table index
4469 @param ip6_table_id - ip6 classify table index
4471 define classify_table_by_interface_reply
4481 /** \brief Classify table info
4482 @param client_index - opaque cookie to identify the sender
4483 @param context - sender context, to match reply w/ request
4484 @param table_id - classify table index
4486 define classify_table_info
4493 /** \brief Reply for classify table info request
4494 @param context - sender context which was passed in the request
4495 @param count - number of ids returned in response
4496 @param table_id - classify table index
4497 @param nbuckets - number of buckets when adding a table
4498 @param match_n_vectors - number of match vectors
4499 @param skip_n_vectors - number of skip_n_vectors
4500 @param active_sessions - number of sessions (active entries)
4501 @param next_table_index - index of next table
4502 @param miss_next_index - index of miss table
4503 @param mask[] - match mask
4505 define classify_table_info_reply
4511 u32 match_n_vectors;
4513 u32 active_sessions;
4514 u32 next_table_index;
4515 u32 miss_next_index;
4517 u8 mask[mask_length];
4520 /** \brief Classify sessions dump request
4521 @param client_index - opaque cookie to identify the sender
4522 @param context - sender context, to match reply w/ request
4523 @param table_id - classify table index
4525 define classify_session_dump
4532 /** \brief Reply for classify table session dump request
4533 @param context - sender context which was passed in the request
4534 @param count - number of ids returned in response
4535 @param table_id - classify table index
4536 @param hit_next_index - hit_next_index of session
4537 @param opaque_index - for add, opaque_index of session
4538 @param advance - advance value of session
4539 @param match[] - match value for session
4541 define classify_session_details
4550 u8 match[match_length];
4553 /** \brief Configure IPFIX exporter process request
4554 @param client_index - opaque cookie to identify the sender
4555 @param context - sender context, to match reply w/ request
4556 @param collector_address - address of IPFIX collector
4557 @param collector_port - port of IPFIX collector
4558 @param src_address - address of IPFIX exporter
4559 @param vrf_id - VRF / fib table ID
4560 @param path_mtu - Path MTU between exporter and collector
4561 @param template_interval - number of seconds after which to resend template
4562 @param udp_checksum - UDP checksum calculation enable flag
4564 define set_ipfix_exporter
4568 u8 collector_address[16];
4573 u32 template_interval;
4577 /** \brief Reply to IPFIX exporter configure request
4578 @param context - sender context which was passed in the request
4580 define set_ipfix_exporter_reply
4586 /** \brief IPFIX exporter dump request
4587 @param client_index - opaque cookie to identify the sender
4588 @param context - sender context, to match reply w/ request
4590 define ipfix_exporter_dump
4596 /** \brief Reply to IPFIX exporter dump request
4597 @param context - sender context which was passed in the request
4598 @param collector_address - address of IPFIX collector
4599 @param collector_port - port of IPFIX collector
4600 @param src_address - address of IPFIX exporter
4601 @param fib_index - fib table index
4602 @param path_mtu - Path MTU between exporter and collector
4603 @param template_interval - number of seconds after which to resend template
4604 @param udp_checksum - UDP checksum calculation enable flag
4606 define ipfix_exporter_details
4609 u8 collector_address[16];
4614 u32 template_interval;
4618 /** \brief IPFIX classify stream configure request
4619 @param client_index - opaque cookie to identify the sender
4620 @param context - sender context, to match reply w/ request
4621 @param domain_id - domain ID reported in IPFIX messages for classify stream
4622 @param src_port - source port of UDP session for classify stream
4624 define set_ipfix_classify_stream {
4631 /** \brief IPFIX classify stream configure response
4632 @param context - sender context, to match reply w/ request
4633 @param retval - return value for request
4635 define set_ipfix_classify_stream_reply {
4640 /** \brief IPFIX classify stream dump request
4641 @param client_index - opaque cookie to identify the sender
4642 @param context - sender context, to match reply w/ request
4644 define ipfix_classify_stream_dump {
4649 /** \brief Reply to IPFIX classify stream dump request
4650 @param context - sender context, to match reply w/ request
4651 @param domain_id - domain ID reported in IPFIX messages for classify stream
4652 @param src_port - source port of UDP session for classify stream
4654 define ipfix_classify_stream_details {
4660 /** \brief IPFIX add or delete classifier table request
4661 @param client_index - opaque cookie to identify the sender
4662 @param context - sender context, to match reply w/ request
4663 @param table_id - classifier table ID
4664 @param ip_version - version of IP used in the classifier table
4665 @param transport_protocol - transport protocol used in the classifier table or 255 for unspecified
4667 define ipfix_classify_table_add_del {
4672 u8 transport_protocol;
4676 /** \brief IPFIX add classifier table response
4677 @param context - sender context which was passed in the request
4679 define ipfix_classify_table_add_del_reply {
4684 /** \brief IPFIX classify tables dump request
4685 @param client_index - opaque cookie to identify the sender
4686 @param context - sender context, to match reply w/ request
4688 define ipfix_classify_table_dump {
4693 /** \brief Reply to IPFIX classify tables dump request
4694 @param context - sender context, to match reply w/ request
4695 @param table_id - classifier table ID
4696 @param ip_version - version of IP used in the classifier table
4697 @param transport_protocol - transport protocol used in the classifier table or 255 for unspecified
4699 define ipfix_classify_table_details {
4703 u8 transport_protocol;
4706 /** \brief Query relative index via node names
4707 @param client_index - opaque cookie to identify the sender
4708 @param context - sender context, to match reply w/ request
4709 @param node_name - name of node to find relative index from
4710 @param next_name - next node from node_name to find relative index of
4712 define get_next_index
4720 /** \brief Reply for get next node index
4721 @param context - sender context which was passed in the request
4722 @param retval - return value
4723 @param next_index - index of the next_node
4725 define get_next_index_reply
4732 /** \brief PacketGenerator create interface request
4733 @param client_index - opaque cookie to identify the sender
4734 @param context - sender context, to match reply w/ request
4735 @param interface_id - interface index
4737 define pg_create_interface
4744 /** \brief PacketGenerator create interface response
4745 @param context - sender context, to match reply w/ request
4746 @param retval - return value for request
4748 define pg_create_interface_reply
4755 /** \brief PacketGenerator capture packets on given interface request
4756 @param client_index - opaque cookie to identify the sender
4757 @param context - sender context, to match reply w/ request
4758 @param interface_id - pg interface index
4759 @param is_enabled - 1 if enabling streams, 0 if disabling
4760 @param count - number of packets to be captured
4761 @param pcap_file - pacp file name to store captured packets
4770 u32 pcap_name_length;
4771 u8 pcap_file_name[pcap_name_length];
4774 /** \brief PacketGenerator capture packets response
4775 @param context - sender context, to match reply w/ request
4776 @param retval - return value for request
4778 define pg_capture_reply
4784 /** \brief Enable / disable packet generator request
4785 @param client_index - opaque cookie to identify the sender
4786 @param context - sender context, to match reply w/ request
4787 @param is_enabled - 1 if enabling streams, 0 if disabling
4788 @param stream - stream name to be enable/disabled, if not specified handle all streams
4790 define pg_enable_disable
4795 u32 stream_name_length;
4796 u8 stream_name[stream_name_length];
4799 /** \brief Reply for enable / disable packet generator
4800 @param context - returned sender context, to match reply w/ request
4801 @param retval - return code
4803 define pg_enable_disable_reply
4809 /** \brief Configure IP source and L4 port-range check
4810 @param client_index - opaque cookie to identify the sender
4811 @param context - sender context, to match reply w/ request
4812 @param is_ip6 - 1 if source address type is IPv6
4813 @param is_add - 1 if add, 0 if delete
4814 @param mask_length - mask length for address entry
4815 @param address - array of address bytes
4816 @param number_of_ranges - length of low_port and high_port arrays (must match)
4817 @param low_ports[32] - up to 32 low end of port range entries (must have corresponding high_ports entry)
4818 @param high_ports[32] - up to 32 high end of port range entries (must have corresponding low_ports entry)
4819 @param vrf_id - fib table/vrf id to associate the source and port-range check with
4820 @note To specify a single port set low_port and high_port entry the same
4822 define ip_source_and_port_range_check_add_del
4830 u8 number_of_ranges;
4836 /** \brief Configure IP source and L4 port-range check reply
4837 @param context - returned sender context, to match reply w/ request
4838 @param retval - return code
4840 define ip_source_and_port_range_check_add_del_reply
4846 /** \brief Set interface source and L4 port-range request
4847 @param client_index - opaque cookie to identify the sender
4848 @param context - sender context, to match reply w/ request
4849 @param interface_id - interface index
4850 @param tcp_vrf_id - VRF associated with source and TCP port-range check
4851 @param udp_vrf_id - VRF associated with source and TCP port-range check
4853 define ip_source_and_port_range_check_interface_add_del
4865 /** \brief Set interface source and L4 port-range response
4866 @param context - sender context, to match reply w/ request
4867 @param retval - return value for request
4869 define ip_source_and_port_range_check_interface_add_del_reply
4875 /** \brief Add / del ipsec gre tunnel request
4876 @param client_index - opaque cookie to identify the sender
4877 @param context - sender context, to match reply w/ request
4878 @param local_sa_id - local SA id
4879 @param remote_sa_id - remote SA id
4880 @param is_add - 1 if adding the tunnel, 0 if deleting
4881 @param src_address - tunnel source address
4882 @param dst_address - tunnel destination address
4884 define ipsec_gre_add_del_tunnel {
4894 /** \brief Reply for add / del ipsec gre tunnel request
4895 @param context - returned sender context, to match reply w/ request
4896 @param retval - return code
4897 @param sw_if_index - software index of the new ipsec gre tunnel
4899 define ipsec_gre_add_del_tunnel_reply {
4905 /** \brief Dump ipsec gre tunnel table
4906 @param client_index - opaque cookie to identify the sender
4907 @param context - sender context, to match reply w/ request
4908 @param tunnel_index - gre tunnel identifier or -1 in case of all tunnels
4910 define ipsec_gre_tunnel_dump {
4916 /** \brief mpls gre tunnel operational state response
4917 @param context - returned sender context, to match reply w/ request
4918 @param sw_if_index - software index of the ipsec gre tunnel
4919 @param local_sa_id - local SA id
4920 @param remote_sa_id - remote SA id
4921 @param src_address - tunnel source address
4922 @param dst_address - tunnel destination address
4924 define ipsec_gre_tunnel_details {
4933 /** \brief Delete sub interface request
4934 @param client_index - opaque cookie to identify the sender
4935 @param context - sender context, to match reply w/ request
4936 @param sw_if_index - sw index of the interface that was created by create_subif
4938 define delete_subif {
4944 /** \brief Delete sub interface response
4945 @param context - sender context, to match reply w/ request
4946 @param retval - return code for the request
4948 define delete_subif_reply {