FD.io VPP  v16.06
Vector Packet Processing
vpe.api
Go to the documentation of this file.
1 /* Hey Emacs use -*- mode: C -*- */
2 /*
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:
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 
17 /** \file
18 
19  This file defines vpe control-plane API messages which are generally
20  called through a shared memory interface.
21 */
22 
23 
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
29 */
30 define want_interface_events {
35 };
36 
37 /** \brief Reply for interface events registration
38  @param context - returned sender context, to match reply w/ request
39  @param retval - return code
40 */
41 define want_interface_events_reply {
44 };
45 
46 /** \brief Interface details structure (fix this)
47  @param sw_if_index - index of the interface
48  @param sup_sw_if_index - index of parent interface if any, else same as sw_if_index
49  @param l2_address_length - length of the interface's l2 address
50  @param pid - the interface's l2 address
51  @param interface_name - name of the interface
52  @param link_duplex - 1 if half duplex, 2 if full duplex
53  @param link_speed - 1 = 10M, 2 = 100M, 4 = 1G, 8 = 10G, 16 = 40G, 32 = 100G
54  @param link_MTU - max. transmittion unit
55  @param sub_if_id - A number 0-N to uniquely identify this subif on super if
56  @param sub_dot1ad - 0 = dot1q, 1=dot1ad
57  @param sub_number_of_tags - Number of tags (0 - 2)
58  @param sub_outer_vlan_id
59  @param sub_inner_vlan_id
60  @param sub_exact_match
61  @param sub_default
62  @param sub_outer_vlan_id_any
63  @param sub_inner_vlan_id_any
64  @param vtr_op - vlan tag rewrite operation
65  @param vtr_push_dot1q
66  @param vtr_tag1
67  @param vtr_tag2
68 */
69 manual_java define sw_interface_details {
72 
73  /* index of sup interface (e.g. hw interface).
74  equal to sw_if_index for super hw interface. */
76 
77  /* Layer 2 address, if applicable */
79  u8 l2_address[8];
80 
81  /* Interface name */
82  u8 interface_name[64];
83 
84  /* 1 = up, 0 = down */
87 
88  /* 1 = half duplex, 2 = full duplex */
90 
91  /* 1 = 10M, 2 = 100M, 4 = 1G, 8 = 10G, 16 = 40G, 32 = 100G */
93 
94  /* MTU */
96 
97  /* Subinterface ID. A number 0-N to uniquely identify this subinterface under the super interface*/
99 
100  /* 0 = dot1q, 1=dot1ad */
102 
103  /* Number of tags 0-2 */
111 
112  /* vlan tag rewrite state */
114  u32 vtr_push_dot1q; // ethertype of first pushed tag is dot1q/dot1ad
115  u32 vtr_tag1; // first pushed tag
116  u32 vtr_tag2; // second pushed tag
117 };
118 
119 /** \brief Set flags on the interface
120  @param client_index - opaque cookie to identify the sender
121  @param context - sender context, to match reply w/ request
122  @param sw_if_index - index of the interface to set flags on
123  @param admin_up_down - set the admin state, 1 = up, 0 = down
124  @param link_up_down - Oper state sent on change event, not used in config.
125  @param deleted - interface was deleted
126 */
127 define sw_interface_set_flags {
131  /* 1 = up, 0 = down */
135 };
136 
137 /** \brief Reply to sw_interface_set_flags
138  @param context - sender context which was passed in the request
139  @param retval - return code of the set flags request
140 */
141 define sw_interface_set_flags_reply {
144 };
145 
146 /* works */
147 manual_java define sw_interface_dump {
151  u8 name_filter[49];
152 };
153 
154 /** \brief Set or delete one or all ip addresses on a specified interface
155  @param client_index - opaque cookie to identify the sender
156  @param context - sender context, to match reply w/ request
157  @param sw_if_index - index of the interface to add/del addresses
158  @param is_add - add address if non-zero, else delete
159  @param is_ipv6 - if non-zero the address is ipv6, else ipv4
160  @param del_all - if non-zero delete all addresses on the interface
161  @param address_length - address length in bytes, 4 for ip4, 16 for ip6
162  @param address - array of address bytes
163 */
164 define sw_interface_add_del_address {
172  u8 address[16];
173 };
174 
175 /** \brief Reply for interface events registration
176  @param context - returned sender context, to match reply w/ request
177  @param retval - return code
178 */
179 define sw_interface_add_del_address_reply {
182 };
183 
184 /** \brief Associate the specified interface with a fib table
185  @param client_index - opaque cookie to identify the sender
186  @param context - sender context, to match reply w/ request
187  @param sw_if_index - index of the interface
188  @param is_ipv6 - if non-zero ipv6, else ipv4
189  @param vrf_id - fib table/vrd id to associate the interface with
190 */
191 define sw_interface_set_table {
197 };
198 
199 /** \brief Reply for interface events registration
200  @param context - returned sender context, to match reply w/ request
201  @param retval - return code
202 */
203 define sw_interface_set_table_reply {
206 };
207 
208 /** \brief Initialize a new tap interface with the given paramters
209  @param client_index - opaque cookie to identify the sender
210  @param context - sender context, to match reply w/ request
211  @param use_random_mac - let the system generate a unique mac address
212  @param tap_name - name to associate with the new interface
213  @param mac_address - mac addr to assign to the interface if use_radom not set
214 */
215 define tap_connect {
219  u8 tap_name [64];
220  u8 mac_address[6];
223 };
224 
225 /** \brief Reply for tap connect request
226  @param context - returned sender context, to match reply w/ request
227  @param retval - return code
228  @param sw_if_index - software index allocated for the new tap interface
229 */
230 define tap_connect_reply {
234 };
235 
236 /** \brief Modify a tap interface with the given paramters
237  @param client_index - opaque cookie to identify the sender
238  @param context - sender context, to match reply w/ request
239  @param sw_if_index - interface index of existing tap interface
240  @param use_random_mac - let the system generate a unique mac address
241  @param tap_name - name to associate with the new interface
242  @param mac_address - mac addr to assign to the interface if use_radom not set
243 */
244 define tap_modify {
249  u8 tap_name [64];
250  u8 mac_address[6];
253 };
254 
255 /** \brief Reply for tap modify request
256  @param context - returned sender context, to match reply w/ request
257  @param retval - return code
258  @param sw_if_index - software index if the modified tap interface
259 */
260 define tap_modify_reply {
264 };
265 
266 /** \brief Delete tap interface
267  @param client_index - opaque cookie to identify the sender
268  @param context - sender context, to match reply w/ request
269  @param sw_if_index - interface index of existing tap interface
270 */
271 define tap_delete {
275 };
276 
277 /** \brief Reply for tap delete request
278  @param context - returned sender context, to match reply w/ request
279  @param retval - return code
280 */
281 define tap_delete_reply {
284 };
285 
286 /** \brief Dump tap interfaces request */
287 define sw_interface_tap_dump {
290 };
291 
292 /** \brief Reply for tap dump request
293  @param sw_if_index - software index of tap interface
294  @param dev_name - Linux tap device name
295 */
296 manual_java define sw_interface_tap_details {
299  u8 dev_name[64];
300 };
301 
302 /** \brief Create a new subinterface with the given vlan id
303  @param client_index - opaque cookie to identify the sender
304  @param context - sender context, to match reply w/ request
305  @param sw_if_index - software index of the new vlan's parent interface
306  @param vlan_id - vlan tag of the new interface
307 */
308 define create_vlan_subif {
313 };
314 
315 /** \brief Reply for the vlan subinterface create request
316  @param context - returned sender context, to match reply w/ request
317  @param retval - return code
318  @param sw_if_index - software index allocated for the new subinterface
319 */
320 define create_vlan_subif_reply {
324 };
325 
326 /** \brief Add / del route request
327  @param client_index - opaque cookie to identify the sender
328  @param context - sender context, to match reply w/ request
329  @param sw_if_index - software index of the new vlan's parent interface
330  @param vrf_id - fib table /vrf associated with the route
331  @param lookup_in_vrf -
332  @param resolve_attempts -
333  @param classify_table_index -
334  @param create_vrf_if_needed -
335  @param resolve_if_needed -
336  @param is_add - 1 if adding the route, 0 if deleting
337  @param is_drop -
338  @param is_ipv6 - 0 if an ip4 route, else ip6
339  @param is_local -
340  @param is_classify -
341  @param is_multipath - Set to 1 if this is a multipath route, else 0
342  @param not_last - Is last or not last msg in group of multiple add/del msgs
343  @param next_hop_weight -
344  @param dst_address_length -
345  @param dst_address[16] -
346  @param next_hop_address[16] -
347 */
348 define ip_add_del_route {
363  /* Is last/not-last message in group of multiple add/del messages. */
368  u8 dst_address[16];
369  u8 next_hop_address[16];
370 };
371 
372 /** \brief Reply for add / del route request
373  @param context - returned sender context, to match reply w/ request
374  @param retval - return code
375 */
376 define ip_add_del_route_reply {
379 };
380 
381 /* works */
382 /** \brief Add / del gre tunnel request
383  @param client_index - opaque cookie to identify the sender
384  @param context - sender context, to match reply w/ request
385  @param sw_if_index - software index of the new vlan's parent interface
386  @param inner_vrf_id -
387  @param outer_vrf_id -
388  @param is_add - 1 if adding the tunnel, 0 if deleting
389  @param src_address[4] - tunnel source address
390  @param dst_address[4] - tunnel destination address
391  @param intf_address -
392  @param intf_address_length -
393 */
394 define mpls_gre_add_del_tunnel {
401  u8 src_address[4];
402  u8 dst_address[4];
403  u8 intfc_address[4];
405 };
406 
407 /** \brief Reply for add / del tunnel request
408  @param context - returned sender context, to match reply w/ request
409  @param retval - return code
410 */
411 define mpls_gre_add_del_tunnel_reply {
415 };
416 
417 /** \brief Add / del MPLS encapsulation request
418  @param client_index - opaque cookie to identify the sender
419  @param context - sender context, to match reply w/ request
420  @param vrf_id - vrf id
421  @param dst_address[4] -
422  @param is_add - 1 if adding the encap, 0 if deleting
423  @param nlabels - number of labels
424  @param labels - array of labels
425 */
426 define mpls_add_del_encap {
430  u8 dst_address[4];
431  /* 1 = add, 0 = delete */
434  u32 labels[0];
435 };
436 
437 /** \brief Reply for add / del encapsulation request
438  @param context - returned sender context, to match reply w/ request
439  @param retval - return code
440 */
441 define mpls_add_del_encap_reply {
444 };
445 
446 /** \brief Add / del MPLS decapsulation request
447  @param client_index - opaque cookie to identify the sender
448  @param context - sender context, to match reply w/ request
449  @param rx_vrf_id - receive vrf
450  @param tx_vrf_id - transmit vrf
451  @param label -
452  @param next_index -
453  @param s_bit -
454  @param is_add - 1 if adding the encap, 0 if deleting
455 */
456 define mpls_add_del_decap {
465 };
466 
467 /** \brief Reply for MPLS decap add / del request
468  @param context - returned sender context, to match reply w/ request
469  @param retval - return code
470 */
471 define mpls_add_del_decap_reply {
474 };
475 
476 /** \brief Proxy ARP add / del request
477  @param client_index - opaque cookie to identify the sender
478  @param context - sender context, to match reply w/ request
479  @param vrf_id - VRF / Fib table ID
480  @param is_add - 1 if adding the Proxy ARP range, 0 if deleting
481  @param low_address[4] - Low address of the Proxy ARP range
482  @param hi_address[4] - High address of the Proxy ARP range
483 */
484 define proxy_arp_add_del {
489  u8 low_address[4];
490  u8 hi_address[4];
491 };
492 
493 /** \brief Reply for proxy arp add / del request
494  @param context - returned sender context, to match reply w/ request
495  @param retval - return code
496 */
497 define proxy_arp_add_del_reply {
500 };
501 
502 /** \brief Proxy ARP add / del request
503  @param client_index - opaque cookie to identify the sender
504  @param context - sender context, to match reply w/ request
505  @param sw_if_index - Which interface to enable / disable Proxy Arp on
506  @param enable_disable - 1 to enable Proxy ARP on interface, 0 to disable
507 */
508 define proxy_arp_intfc_enable_disable {
512  /* 1 = on, 0 = off */
514 };
515 
516 /** \brief Reply for Proxy ARP interface enable / disable request
517  @param context - returned sender context, to match reply w/ request
518  @param retval - return code
519 */
520 define proxy_arp_intfc_enable_disable_reply {
523 };
524 
525 /** \brief IP neighbor add / del request
526  @param client_index - opaque cookie to identify the sender
527  @param context - sender context, to match reply w/ request
528  @param vrf_id - vrf_id, only for IP4
529  @param sw_if_index - interface used to reach neighbor
530  @param is_add - 1 to add neighbor, 0 to delete
531  @param is_ipv6 - 1 for IPv6 neighbor, 0 for IPv4
532  @param is_static -
533  @param mac_address - l2 address of the neighbor
534  @param dst_address - ip4 or ip6 address of the neighbor
535 */
536 define ip_neighbor_add_del {
539  u32 vrf_id; /* only makes sense for ip4 */
541  /* 1 = add, 0 = delete */
545  u8 mac_address[6];
546  u8 dst_address[16];
547 };
548 
549 /** \brief Reply for IP Neighbor add / delete request
550  @param context - returned sender context, to match reply w/ request
551  @param retval - return code
552 */
553 define ip_neighbor_add_del_reply {
556 };
557 
558 /** \brief Reset VRF (remove all routes etc) request
559  @param client_index - opaque cookie to identify the sender
560  @param context - sender context, to match reply w/ request
561  @param is_ipv6 - 1 for IPv6 neighbor, 0 for IPv4
562  @param vrf_id - ID of th FIB table / VRF to reset
563 */
564 define reset_vrf {
569 };
570 
571 /** \brief Reply for Reset VRF request
572  @param context - returned sender context, to match reply w/ request
573  @param retval - return code
574 */
575 define reset_vrf_reply {
578 };
579 
580 /** \brief Is Address Reachable request - DISABLED
581  @param client_index - opaque cookie to identify the sender
582  @param context - sender context, to match reply w/ request
583  @param next_hop_sw_if_index - index of interface used to get to next hop
584  @param is_ipv6 - 1 for IPv6, 0 for IPv4
585  @param is_error - address not found or does not match intf
586  @param address[] - Address in question
587 */
588 define is_address_reachable {
589  u32 client_index; /* (api_main_t *) am->my_client_index */
592  u8 is_known; /* on reply, this is the answer */
594  u8 is_error; /* address not found or does not match intf */
595  u8 address[16];
596 };
597 
598 /** \brief Want Stats, register for stats updates
599  @param client_index - opaque cookie to identify the sender
600  @param context - sender context, to match reply w/ request
601  @param enable_disable - 1 = enable stats, 0 = disable
602  @param pid - pid of process requesting stats updates
603 */
604 define want_stats {
609 };
610 
611 /** \brief Reply for Want Stats request
612  @param context - returned sender context, to match reply w/ request
613  @param retval - return code
614 */
615 manual_java define want_stats_reply {
618 };
619 
620 /** \brief Want stats counters structure
621  @param vnet_counter_type- such as ip4, ip6, punts, etc
622  @param is_combined - rx & tx total (all types) counts
623  @param first_sw_if_index - first sw index in block of index, counts
624  @param count - number of interfaces this stats block includes counters for
625  @param data - contiguous block of vlib_counter_t structures
626 */
627 manual_java define vnet_interface_counters {
628  /* enums - plural - in vnet/interface.h */
633  u8 data[0];
634 };
635 
636 typeonly manual_print manual_endian define ip4_fib_counter {
641 };
642 
643 manual_java manual_print manual_endian define vnet_ip4_fib_counters {
647 };
648 
649 typeonly manual_print manual_endian define ip6_fib_counter {
650  u64 address[2];
654 };
655 
656 manual_java manual_print manual_endian define vnet_ip6_fib_counters {
660 };
661 
662 /** \brief Request for a single block of summary stats
663  @param client_index - opaque cookie to identify the sender
664  @param context - sender context, to match reply w/ request
665 */
666 define vnet_get_summary_stats {
669 };
670 
671 /** \brief Reply for vnet_get_summary_stats request
672  @param context - sender context, to match reply w/ request
673  @param retval - return code for request
674  @param total_pkts -
675  @param total_bytes -
676  @param vector_rate -
677 */
678 define vnet_summary_stats_reply {
681  u64 total_pkts[2];
682  u64 total_bytes[2];
684 };
685 
686 /** \brief OAM event structure
687  @param dst_address[] -
688  @param state
689 */
690 manual_java define oam_event {
691  u8 dst_address[4];
693 };
694 
695 /** \brief Want OAM events request
696  @param client_index - opaque cookie to identify the sender
697  @param context - sender context, to match reply w/ request
698  @param enable_disable- enable if non-zero, else disable
699  @param pid - pid of the requesting process
700 */
701 define want_oam_events {
706 };
707 
708 /** \brief Want OAM events response
709  @param context - sender context, to match reply w/ request
710  @param retval - return code for the want oam stats request
711 */
712 define want_oam_events_reply {
715 };
716 
717 /** \brief OAM add / del target request
718  @param client_index - opaque cookie to identify the sender
719  @param context - sender context, to match reply w/ request
720  @param vrf_id - vrf_id of the target
721  @param src_address[] - source address to use for the updates
722  @param dst_address[] - destination address of the target
723  @param is_add - add target if non-zero, else delete
724 */
725 define oam_add_del {
729  u8 src_address[4];
730  u8 dst_address[4];
732 };
733 
734 /** \brief OAM add / del target response
735  @param context - sender context, to match reply w/ request
736  @param retval - return code of the request
737 */
738 define oam_add_del_reply {
741 };
742 
743 /** \brief Reset fib table request
744  @param client_index - opaque cookie to identify the sender
745  @param context - sender context, to match reply w/ request
746  @param vrf_id - vrf/table id of the fib table to reset
747  @param is_ipv6 - an ipv6 fib to reset if non-zero, else ipv4
748 */
749 define reset_fib {
754 };
755 
756 /** \brief Reset fib response
757  @param context - sender context, to match reply w/ request
758  @param retval - return code for the reset bfib request
759 */
760 define reset_fib_reply {
763 };
764 
765 /** \brief DHCP Proxy config add / del request
766  @param client_index - opaque cookie to identify the sender
767  @param context - sender context, to match reply w/ request
768  @param vrf_id - vrf id
769  @param if_ipv6 - ipv6 if non-zero, else ipv4
770  @param is_add - add the config if non-zero, else delete
771  @param insert_circuit_id - option82 suboption 1 fib number
772  @param dhcp_server[] - server address
773  @param dhcp_src_address[] - <fix this, need details>
774 */
775 define dhcp_proxy_config {
782  u8 dhcp_server[16];
783  u8 dhcp_src_address[16];
784 };
785 
786 /** \brief DHCP Proxy config response
787  @param context - sender context, to match reply w/ request
788  @param retval - return code for the request
789 */
790 define dhcp_proxy_config_reply {
793 };
794 
795 /** \brief DHCP Proxy set / unset vss request
796  @param client_index - opaque cookie to identify the sender
797  @param context - sender context, to match reply w/ request
798  @param tbl_id - table id
799  @param oui - first part of vpn id
800  @param fib_id - second part of vpn id
801  @param is_ipv6 - ip6 if non-zero, else ip4
802  @param is_add - set vss if non-zero, else delete
803 */
804 define dhcp_proxy_set_vss {
812 };
813 
814 /** \brief DHCP proxy set / unset vss response
815  @param context - sender context, to match reply w/ request
816  @param retval - return code for the request
817 */
818 define dhcp_proxy_set_vss_reply {
821 };
822 
823 /** \brief Set the ip flow hash config for a fib request
824  @param client_index - opaque cookie to identify the sender
825  @param context - sender context, to match reply w/ request
826  @param vrf_id - vrf/fib id
827  @param is_ipv6 - if non-zero the fib is ip6, else ip4
828  @param src - if non-zero include src in flow hash
829  @param dst - if non-zero include dst in flow hash
830  @param sport - if non-zero include sport in flow hash
831  @param dport - if non-zero include dport in flow hash
832  @param proto -if non-zero include proto in flow hash
833  @param reverse - if non-zero include reverse in flow hash
834 */
835 define set_ip_flow_hash {
846 };
847 
848 /** \brief Set the ip flow hash config for a fib response
849  @param context - sender context, to match reply w/ request
850  @param retval - return code for the request
851 */
852 define set_ip_flow_hash_reply {
855 };
856 
857 /** \brief IPv6 router advertisement config request
858  @param client_index - opaque cookie to identify the sender
859  @param context - sender context, to match reply w/ request
860  @param surpress -
861  @param managed -
862  @param other -
863  @param ll_option -
864  @param send_unicast -
865  @param cease -
866  @param is_no -
867  @param default_router -
868  @param max_interval -
869  @param min_interval -
870  @param lifetime -
871  @param initial_count -
872  @param initial_interval -
873 */
874 define sw_interface_ip6nd_ra_config {
891 };
892 
893 /** \brief IPv6 router advertisement config response
894  @param context - sender context, to match reply w/ request
895  @param retval - return code for the request
896 */
897 define sw_interface_ip6nd_ra_config_reply {
900 };
901 
902 /** \brief IPv6 router advertisement prefix config request
903  @param client_index - opaque cookie to identify the sender
904  @param context - sender context, to match reply w/ request
905  @param sw_if_index -
906  @param address[] -
907  @param address_length -
908  @param use_default -
909  @param no_advertise -
910  @param off_link -
911  @param no_autoconfig -
912  @param no_onlink -
913  @param is_no -
914  @param val_lifetime -
915  @param pref_lifetime -
916 */
917 define sw_interface_ip6nd_ra_prefix {
921  u8 address[16];
931 };
932 
933 /** \brief IPv6 router advertisement prefix config response
934  @param context - sender context, to match reply w/ request
935  @param retval - return code for the request
936 */
937 define sw_interface_ip6nd_ra_prefix_reply {
940 };
941 
942 /** \brief IPv6 interface enable / disable request
943  @param client_index - opaque cookie to identify the sender
944  @param context - sender context, to match reply w/ request
945  @param sw_if_index - interface used to reach neighbor
946  @param enable - if non-zero enable ip6 on interface, else disable
947 */
948 define sw_interface_ip6_enable_disable {
952  u8 enable; /* set to true if enable*/
953 };
954 
955 /** \brief IPv6 interface enable / disable response
956  @param context - sender context, to match reply w/ request
957  @param retval - return code for the request
958 */
959 define sw_interface_ip6_enable_disable_reply {
962 };
963 
964 /** \brief IPv6 set link local address on interface request
965  @param client_index - opaque cookie to identify the sender
966  @param context - sender context, to match reply w/ request
967  @param sw_if_index - interface to set link local on
968  @param address[] - the new link local address
969  @param address_length - link local address length
970 */
971 define sw_interface_ip6_set_link_local_address {
975  u8 address[16];
977 };
978 
979 /** \brief IPv6 set link local address on interface response
980  @param context - sender context, to match reply w/ request
981  @param retval - error code for the request
982 */
983 define sw_interface_ip6_set_link_local_address_reply {
986 };
987 
988 /** \brief Set unnumbered interface add / del request
989  @param client_index - opaque cookie to identify the sender
990  @param context - sender context, to match reply w/ request
991  @param sw_if_index - interface with an IP address
992  @param unnumbered_sw_if_index - interface which will use the address
993  @param is_add - if non-zero set the association, else unset it
994 */
995 define sw_interface_set_unnumbered {
998  u32 sw_if_index; /* use this intfc address */
999  u32 unnumbered_sw_if_index; /* on this interface */
1001 };
1002 
1003 /** \brief Set unnumbered interface add / del response
1004  @param context - sender context, to match reply w/ request
1005  @param retval - return code for the request
1006 */
1007 define sw_interface_set_unnumbered_reply {
1010 };
1011 
1012 /** \brief Create loopback interface request
1013  @param client_index - opaque cookie to identify the sender
1014  @param context - sender context, to match reply w/ request
1015  @param mac_address - mac addr to assign to the interface if none-zero
1016 */
1017 define create_loopback {
1020  u8 mac_address[6];
1021 };
1022 
1023 /** \brief Create loopback interface response
1024  @param context - sender context, to match reply w/ request
1025  @param sw_if_index - sw index of the interface that was created
1026  @param retval - return code for the request
1027 */
1028 define create_loopback_reply {
1032 };
1033 
1034 /** \brief Delete loopback interface request
1035  @param client_index - opaque cookie to identify the sender
1036  @param context - sender context, to match reply w/ request
1037  @param sw_if_index - sw index of the interface that was created
1038 */
1039 define delete_loopback {
1043 };
1044 
1045 /** \brief Delete loopback interface response
1046  @param context - sender context, to match reply w/ request
1047  @param retval - return code for the request
1048 */
1049 define delete_loopback_reply {
1052 };
1053 
1054 /** \brief Control ping from client to api server request
1055  @param client_index - opaque cookie to identify the sender
1056  @param context - sender context, to match reply w/ request
1057 */
1058 manual_java define control_ping {
1061 };
1062 
1063 /** \brief Control ping from the client to the server response
1064  @param client_index - opaque cookie to identify the sender
1065  @param context - sender context, to match reply w/ request
1066  @param retval - return code for the request
1067  @param vpe_pid - the pid of the vpe, returned by the server
1068 */
1069 manual_java define control_ping_reply {
1074 };
1075 
1076 /** \brief Process a vpe parser cli string request
1077  @param client_index - opaque cookie to identify the sender
1078  @param context - sender context, to match reply w/ request
1079  @param cmd_in_shmem - pointer to cli command string
1080 */
1081 define cli_request {
1085 };
1086 
1087 /** \brief vpe parser cli string response
1088  @param context - sender context, to match reply w/ request
1089  @param retval - return code for request
1090  @param reply_in_shmem - Reply string from cli processing if any
1091 */
1092 define cli_reply {
1096 };
1097 
1098 /** \brief Set max allowed ARP or ip6 neighbor entries request
1099  @param client_index - opaque cookie to identify the sender
1100  @param context - sender context, to match reply w/ request
1101  @param is_ipv6 - neighbor limit if non-zero, else ARP limit
1102  @param arp_neighbor_limit - the new limit, defaults are ~ 50k
1103 */
1104 define set_arp_neighbor_limit {
1109 };
1110 
1111 /** \brief Set max allowed ARP or ip6 neighbor entries response
1112  @param context - sender context, to match reply w/ request
1113  @param retval - return code for request
1114 */
1115 define set_arp_neighbor_limit_reply {
1118 };
1119 
1120 /** \brief L2 interface patch add / del request
1121  @param client_index - opaque cookie to identify the sender
1122  @param context - sender context, to match reply w/ request
1123  @param rx_sw_if_index - receive side interface
1124  @param tx_sw_if_index - transmit side interface
1125  @param is_add - if non-zero set up the interface patch, else remove it
1126 */
1127 define l2_patch_add_del {
1133 };
1134 
1135 /** \brief L2 interface patch add / del response
1136  @param context - sender context, to match reply w/ request
1137  @param retval - return code for the request
1138 */
1139 define l2_patch_add_del_reply {
1142 };
1143 
1144 /** \brief IPv6 segment routing tunnel add / del request
1145  @param client_index - opaque cookie to identify the sender
1146  @param context - sender context, to match reply w/ request
1147  @param is_add - add the tunnel if non-zero, else delete it
1148  @param name[] - tunnel name (len. 64)
1149  @param src_address[] -
1150  @param dst_address[] -
1151  @param dst_mask_width -
1152  @param inner_vrf_id -
1153  @param outer_vrf_id -
1154  @param flags_net_byte_order -
1155  @param n_segments -
1156  @param n_tags -
1157  @param segs_and_tags[] -
1158  @param policy_name[] - name of policy to associate this tunnel to (len. 64)
1159 */
1160 define sr_tunnel_add_del {
1164  u8 name[64];
1165  u8 src_address[16];
1166  u8 dst_address[16];
1173  u8 segs_and_tags[0];
1174  u8 policy_name[64];
1175 };
1176 
1177 /** \brief IPv6 segment routing tunnel add / del response
1178  @param context - sender context, to match reply w/ request
1179  @param retval - return value for request
1180 */
1181 define sr_tunnel_add_del_reply {
1184 };
1185 
1186 /** \brief IPv6 segment routing policy add / del request
1187  @param client_index - opaque cookie to identify the sender
1188  @param context - sender context, to match reply w/ request
1189  @param is_add - add the tunnel if non-zero, else delete it
1190  @param name[] - policy name (len. 64)
1191  @param tunnel_names[] -
1192 */
1193 define sr_policy_add_del {
1197  u8 name[64];
1198  u8 tunnel_names[0];
1199 };
1200 
1201 /** \brief IPv6 segment routing policy add / del response
1202  @param context - sender context, to match reply w/ request
1203  @param retval - return value for request
1204 */
1205 define sr_policy_add_del_reply {
1208 };
1209 
1210 /** \brief IPv6 segment routing multicast map to policy add / del request
1211  @param client_index - opaque cookie to identify the sender
1212  @param context - sender context, to match reply w/ request
1213  @param is_add - add the tunnel if non-zero, else delete it
1214  @param multicast_address[] - IP6 multicast address
1215  @param policy_name[] = policy name (len.64)
1216 */
1217 define sr_multicast_map_add_del {
1221  u8 multicast_address[16];
1222  u8 policy_name[64];
1223 };
1224 
1225 /** \brief IPv6 segment routing multicast map to policy add / del response
1226  @param context - sender context, to match reply w/ request
1227  @param retval - return value for request
1228 */
1229 define sr_multicast_map_add_del_reply {
1232 };
1233 
1234 /** \brief Interface set vpath request
1235  @param client_index - opaque cookie to identify the sender
1236  @param context - sender context, to match reply w/ request
1237  @param sw_if_index - interface used to reach neighbor
1238  @param enable - if non-zero enable, else disable
1239 */
1240 define sw_interface_set_vpath {
1245 };
1246 
1247 /** \brief Interface set vpath response
1248  @param context - sender context, to match reply w/ request
1249  @param retval - return code for the request
1250 */
1251 define sw_interface_set_vpath_reply {
1254 };
1255 
1256 /** \brief MPLS Ethernet add / del tunnel request
1257  @param client_index - opaque cookie to identify the sender
1258  @param context - sender context, to match reply w/ request
1259  @param vrf_id - vrf_id, only for IP4
1260  @param sw_if_index - interface used to reach neighbor
1261  @param is_add - add if set, tunnel delete if 0
1262  @param dst_mac_address -
1263  @param adj_address -
1264  @param adj_address_length -
1265 */
1266 define mpls_ethernet_add_del_tunnel {
1273  u8 dst_mac_address[6];
1274  u8 adj_address[4];
1276 };
1277 
1278 /** \brief Reply for MPLS Ethernet add / delete tunnel request
1279  @param context - sender context, to match reply w/ request
1280  @param retval - return code for the request
1281 */
1282 define mpls_ethernet_add_del_tunnel_reply {
1286 };
1287 /** \brief MPLS Ethernet add/ del tunnel 2
1288  @param client_index - opaque cookie to identify the sender
1289  @param context - sender context, to match reply w/ request
1290  @param inner_vrf_id -
1291  @param outer_vrf_id -
1292  @param resolve_attempts -
1293  @param resolve_opaque -
1294  @param resolve_if_needed -
1295  @param is_add -
1296  @param adj_address -
1297  @param adj_address_length -
1298  @param next_hop_ip4_address_in_outer_vrf -
1299 */
1300 define mpls_ethernet_add_del_tunnel_2 {
1306  u32 resolve_opaque; /* no need to set this */
1310  u8 adj_address[4];
1312  u8 next_hop_ip4_address_in_outer_vrf [4];
1313 };
1314 
1315 /** \brief MPLS Ethernet add/ del tunnel 2
1316  @param context - sender context, to match reply w/ request
1317  @param retval - return code for add /del request
1318 */
1319 define mpls_ethernet_add_del_tunnel_2_reply {
1322 };
1323 
1324 /** \brief Set L2 XConnect between two interfaces request
1325  @param client_index - opaque cookie to identify the sender
1326  @param context - sender context, to match reply w/ request
1327  @param rx_sw_if_index - Receive interface index
1328  @param tx_sw_if_index - Transmit interface index
1329  @param enable - enable xconnect if not 0, else set to L3 mode
1330 */
1331 define sw_interface_set_l2_xconnect {
1337 };
1338 
1339 /** \brief Set L2 XConnect response
1340  @param context - sender context, to match reply w/ request
1341  @param retval - L2 XConnect request return code
1342 */
1343 define sw_interface_set_l2_xconnect_reply {
1346 };
1347 
1348 /** \brief Interface bridge mode request
1349  @param client_index - opaque cookie to identify the sender
1350  @param context - sender context, to match reply w/ request
1351  @param rx_sw_if_index - the interface
1352  @param bd_id - bridge domain id
1353  @param bvi - Setup interface as a bvi, bridge mode only
1354  @param shg - Shared horizon group, for bridge mode only
1355  @param enable - Enable beige mode if not 0, else set to L3 mode
1356 */
1357 define sw_interface_set_l2_bridge {
1365 };
1366 
1367 /** \brief Interface bridge mode response
1368  @param context - sender context, to match reply w/ request
1369  @param retval - Bridge mode request return code
1370 */
1371 define sw_interface_set_l2_bridge_reply {
1374 };
1375 
1376 /** \brief L2 FIB add entry request
1377  @param client_index - opaque cookie to identify the sender
1378  @param context - sender context, to match reply w/ request
1379  @param mac - the entry's mac address
1380  @param bd_id - the entry's bridge domain id
1381  @param sw_if_index - the interface
1382  @param is_add - If non zero add the entry, else delete it
1383  @param static_mac -
1384  @param filter_mac -
1385 */
1386 define l2fib_add_del {
1395 };
1396 
1397 /** \brief L2 FIB add entry response
1398  @param context - sender context, to match reply w/ request
1399  @param retval - return code for the add l2fib entry request
1400 */
1401 define l2fib_add_del_reply {
1404 };
1405 
1406 /** \brief Set L2 flags request !!! TODO - need more info, feature bits in l2_input.h
1407  @param client_index - opaque cookie to identify the sender
1408  @param context - sender context, to match reply w/ request
1409  @param sw_if_index - interface
1410  @param is_set - if non-zero, set the bits, else clear them
1411  @param feature_bitmap - non-zero bits to set or clear
1412 */
1413 define l2_flags {
1419 };
1420 
1421 /** \brief Set L2 bits response
1422  @param context - sender context, to match reply w/ request
1423  @param retval - return code for the set l2 bits request
1424 */
1425 define l2_flags_reply {
1429 };
1430 
1431 /** \brief Set bridge flags (such as L2_LEARN, L2_FWD, L2_FLOOD,
1432  L2_UU_FLOOD, or L2_ARP_TERM) request
1433  @param client_index - opaque cookie to identify the sender
1434  @param context - sender context, to match reply w/ request
1435  @param bd_id - the bridge domain to set the flags for
1436  @param is_set - if non-zero, set the flags, else clear them
1437  @param feature_bitmap - bits that are non-zero to set or clear
1438 */
1439 define bridge_flags {
1445 };
1446 
1447 /** \brief Set bridge flags response
1448  @param context - sender context, to match reply w/ request
1449  @param retval - return code for the set bridge flags request
1450  @param resulting_feature_bitmap - the feature bitmap value after the request is implemented
1451 */
1452 define bridge_flags_reply {
1456 };
1457 
1458 /** \brief Set bridge domain ip to mac entry request
1459  @param client_index - opaque cookie to identify the sender
1460  @param context - sender context, to match reply w/ request
1461  @param bd_id - the bridge domain to set the flags for
1462  @param is_add - if non-zero, add the entry, else clear it
1463  @param is_ipv6 - if non-zero, ipv6 address, else ipv4 address
1464  @param mac_address - MAC address
1465  @param
1466 */
1467 define bd_ip_mac_add_del {
1473  u8 ip_address[16];
1474  u8 mac_address[6];
1475 };
1476 
1477 /** \brief Set bridge domain ip to mac entry response
1478  @param context - sender context, to match reply w/ request
1479  @param retval - return code for the set bridge flags request
1480 */
1481 define bd_ip_mac_add_del_reply {
1484 };
1485 
1486 /** \brief Add/Delete classification table request
1487  @param client_index - opaque cookie to identify the sender
1488  @param context - sender context, to match reply w/ request
1489  @param is_add- if non-zero add the table, else delete it
1490  @param table_index - if add, reuturns index of the created table, else specifies the table to delete
1491  @param nbuckets - number of buckets when adding a table
1492  @param memory_size - memory size when adding a table
1493  @param match_n_vectors - number of match vectors
1494  @param next_table_index - index of next table
1495  @param miss_next_index - index of miss table
1496  @param mask[] - match mask
1497 */
1498 define classify_add_del_table {
1509  u8 mask[0];
1510 };
1511 
1512 /** \brief Add/Delete classification table response
1513  @param context - sender context, to match reply w/ request
1514  @param retval - return code for the table add/del requst
1515  @param new_table_index - for add, returned index of the new table
1516  @param skip_n_vectors - for add, returned value of skip_n_vectors in table
1517  @param match_n_vectors -for add, returned value of match_n_vectors in table
1518 */
1519 define classify_add_del_table_reply {
1525 };
1526 
1527 /** \brief Classify add / del session request
1528  @param client_index - opaque cookie to identify the sender
1529  @param context - sender context, to match reply w/ request
1530  @param is_add - add session if non-zero, else delete
1531  @param table_index - index of the table to add/del the session, required
1532  @param hit_next_index - for add, hit_next_index of new session, required
1533  @param opaque_index - for add, opaque_index of new session
1534  @param advance -for add, advance value for session
1535  @param match[] - for add, match value for session, required
1536 */
1537 define classify_add_del_session {
1545  u8 match[0];
1546 };
1547 
1548 /** \brief Classify add / del session response
1549  @param context - sender context, to match reply w/ request
1550  @param retval - return code for the add/del session request
1551 */
1552 define classify_add_del_session_reply {
1555 };
1556 
1557 /** \brief Set/unset the classification table for an interface request
1558  @param client_index - opaque cookie to identify the sender
1559  @param context - sender context, to match reply w/ request
1560  @param is_ipv6 - ipv6 if non-zero, else ipv4
1561  @param sw_if_index - interface to associate with the table
1562  @param table_index - index of the table, if ~0 unset the table
1563 */
1564 define classify_set_interface_ip_table {
1569  u32 table_index; /* ~0 => off */
1570 };
1571 
1572 /** \brief Set/unset interface classification table response
1573  @param context - sender context, to match reply w/ request
1574  @param retval - return code
1575 */
1576 define classify_set_interface_ip_table_reply {
1579 };
1580 
1581 /** \brief Set/unset l2 classification tables for an interface request
1582  @param client_index - opaque cookie to identify the sender
1583  @param context - sender context, to match reply w/ request
1584  @param sw_if_index - interface to set/unset tables for
1585  @param ip4_table_index - ip4 index, use ~0 for all 3 indexes to unset
1586  @param ip6_table_index - ip6 index
1587  @param other_table_index - other index
1588 */
1589 define classify_set_interface_l2_tables {
1593  /* 3 x ~0 => off */
1597 };
1598 
1599 /** \brief Set/unset l2 classification tables for an interface response
1600  @param context - sender context, to match reply w/ request
1601  @param retval - return code for the request
1602 */
1603 define classify_set_interface_l2_tables_reply {
1606 };
1607 
1608 /** \brief Get node index using name request
1609  @param client_index - opaque cookie to identify the sender
1610  @param context - sender context, to match reply w/ request
1611  @param node_name[] - name of the node
1612 */
1613 define get_node_index {
1616  u8 node_name[64];
1617 };
1618 
1619 /** \brief Get node index using name request
1620  @param context - sender context, to match reply w/ request
1621  @param retval - return code for the request
1622  @param node_index - index of the desired node if found, else ~0
1623 */
1624 define get_node_index_reply {
1628 };
1629 
1630 /** \brief Set the next node for a given node request
1631  @param client_index - opaque cookie to identify the sender
1632  @param context - sender context, to match reply w/ request
1633  @param node_name[] - node to add the next node to
1634  @param next_name[] - node to add as the next node
1635 */
1636 define add_node_next {
1639  u8 node_name[64];
1640  u8 next_name[64];
1641 };
1642 
1643 /** \brief IP Set the next node for a given node response
1644  @param context - sender context, to match reply w/ request
1645  @param retval - return code for the add next node request
1646  @param next_index - the index of the next node if success, else ~0
1647 */
1648 define add_node_next_reply {
1652 };
1653 
1654 /** \brief DHCP Proxy config 2 add / del request
1655  @param client_index - opaque cookie to identify the sender
1656  @param context - sender context, to match reply w/ request
1657  @param rx_vrf_id - receive vrf id
1658  @param server_vrf_id - server vrf id
1659  @param if_ipv6 - ipv6 if non-zero, else ipv4
1660  @param is_add - add the config if non-zero, else delete
1661  @param insert_circuit_id - option82 suboption 1 fib number
1662  @param dhcp_server[] - server address
1663  @param dhcp_src_address[] - <fix this, need details>
1664 */
1665 define dhcp_proxy_config_2 {
1673  u8 dhcp_server[16];
1674  u8 dhcp_src_address[16];
1675 };
1676 
1677 /** \brief DHCP Proxy config 2 add / del response
1678  @param context - sender context, to match reply w/ request
1679  @param retval - return code for request
1680 */
1681 define dhcp_proxy_config_2_reply {
1684 };
1685 
1686 /** \brief l2tpv3 tunnel interface create request
1687  @param client_index - opaque cookie to identify the sender
1688  @param context - sender context, to match reply w/ request
1689  @param client_address - remote client tunnel ip address
1690  @param client_address - local tunnel ip address
1691  @param is_ipv6 - ipv6 if non-zero, else ipv4
1692  @param local_session_id - local tunnel session id
1693  @param remote_session_id - remote tunnel session id
1694  @param local_cookie - local tunnel cookie
1695  @param l2_sublayer_present - l2 sublayer is present in packets if non-zero
1696 */
1697 define l2tpv3_create_tunnel {
1700  u8 client_address [16];
1701  u8 our_address [16];
1708 };
1709 
1710 /** \brief l2tpv3 tunnel interface create response
1711  @param context - sender context, to match reply w/ request
1712  @param retval - return code for the request
1713  @param sw_if_index - index of the new tunnel interface
1714 */
1715 define l2tpv3_create_tunnel_reply {
1719 };
1720 
1727 };
1728 
1729 /** \brief L2TP tunnel set cookies response
1730  @param context - sender context, to match reply w/ request
1731  @param retval - return code for the request
1732 */
1733 define l2tpv3_set_tunnel_cookies_reply {
1736 };
1737 
1738 manual_java define sw_if_l2tpv3_tunnel_details {
1741  u8 interface_name[64];
1742  u8 client_address [16];
1743  u8 our_address [16];
1746  u64 local_cookie[2];
1749 };
1750 
1751 define sw_if_l2tpv3_tunnel_dump {
1754 };
1755 
1756 /** \brief L2 fib clear table request, clear all mac entries in the l2 fib
1757  @param client_index - opaque cookie to identify the sender
1758  @param context - sender context, to match reply w/ request
1759 */
1760 define l2_fib_clear_table {
1763 };
1764 
1765 /** \brief L2 fib clear table response
1766  @param context - sender context, to match reply w/ request
1767  @param retval - return code for the request
1768 */
1769 define l2_fib_clear_table_reply {
1772 };
1773 
1774 /** \brief L2 interface ethernet flow point filtering enable/disable request
1775  @param client_index - opaque cookie to identify the sender
1776  @param context - sender context, to match reply w/ request
1777  @param sw_if_index - interface to enable/disable filtering on
1778  @param enable_disable - if non-zero enable filtering, else disable
1779 */
1780 define l2_interface_efp_filter {
1785 };
1786 
1787 /** \brief L2 interface ethernet flow point filtering response
1788  @param context - sender context, to match reply w/ request
1789  @param retval - return code for the request
1790 */
1791 define l2_interface_efp_filter_reply {
1794 };
1795 
1801 };
1802 
1803 define l2tpv3_interface_enable_disable_reply {
1806 };
1807 
1808 define l2tpv3_set_lookup_key {
1811  /* 0 = ip6 src_address, 1 = ip6 dst_address, 2 = session_id */
1813 };
1814 
1815 define l2tpv3_set_lookup_key_reply {
1818 };
1819 
1820 define vxlan_add_del_tunnel {
1825  u8 src_address[16];
1826  u8 dst_address[16];
1830 };
1831 
1832 define vxlan_add_del_tunnel_reply {
1836 };
1837 
1838 manual_java define vxlan_tunnel_dump {
1842 };
1843 
1844 manual_java define vxlan_tunnel_details {
1847  u8 src_address[16];
1848  u8 dst_address[16];
1853 };
1854 
1855 define gre_add_del_tunnel {
1862 };
1863 
1864 define gre_add_del_tunnel_reply {
1868 };
1869 
1870 manual_java define gre_tunnel_dump {
1874 };
1875 
1876 manual_java define gre_tunnel_details {
1882 };
1883 
1884 /** \brief L2 interface vlan tag rewrite configure request
1885  @param client_index - opaque cookie to identify the sender
1886  @param context - sender context, to match reply w/ request
1887  @param sw_if_index - interface the operation is applied to
1888  @param vtr_op - Choose from l2_vtr_op_t enum values
1889  @param push_dot1q - first pushed flag dot1q id set, else dot1ad
1890  @param tag1 - Needed for any push or translate vtr op
1891  @param tag2 - Needed for any push 2 or translate x-2 vtr ops
1892 */
1893 define l2_interface_vlan_tag_rewrite {
1898  u32 push_dot1q; // ethertype of first pushed tag is dot1q/dot1ad
1899  u32 tag1; // first pushed tag
1900  u32 tag2; // second pushed tag
1901 };
1902 
1903 /** \brief L2 interface vlan tag rewrite response
1904  @param context - sender context, to match reply w/ request
1905  @param retval - return code for the request
1906 */
1907 define l2_interface_vlan_tag_rewrite_reply {
1910 };
1911 
1912 /** \brief vhost-user interface create request
1913  @param client_index - opaque cookie to identify the sender
1914  @param is_server - our side is socket server
1915  @param sock_filename - unix socket filename, used to speak with frontend
1916  @param use_custom_mac - enable or disable the use of the provided hardware address
1917  @param mac_address - hardware address to use if 'use_custom_mac' is set
1918 */
1919 define create_vhost_user_if {
1923  u8 sock_filename[256];
1927  u8 mac_address[6];
1928 };
1929 
1930 /** \brief vhost-user interface create response
1931  @param context - sender context, to match reply w/ request
1932  @param retval - return code for the request
1933  @param sw_if_index - interface the operation is applied to
1934 */
1935 define create_vhost_user_if_reply {
1939 };
1940 
1941 /** \brief vhost-user interface modify request
1942  @param client_index - opaque cookie to identify the sender
1943  @param is_server - our side is socket server
1944  @param sock_filename - unix socket filename, used to speak with frontend
1945 */
1946 define modify_vhost_user_if {
1951  u8 sock_filename[256];
1954 };
1955 
1956 /** \brief vhost-user interface modify response
1957  @param context - sender context, to match reply w/ request
1958  @param retval - return code for the request
1959 */
1960 define modify_vhost_user_if_reply {
1963 };
1964 
1965 /** \brief vhost-user interface delete request
1966  @param client_index - opaque cookie to identify the sender
1967 */
1968 define delete_vhost_user_if {
1972 };
1973 
1974 /** \brief vhost-user interface delete response
1975  @param context - sender context, to match reply w/ request
1976  @param retval - return code for the request
1977 */
1978 define delete_vhost_user_if_reply {
1981 };
1982 
1983 define create_subif {
1988 
1989  /* These fields map directly onto the subif template */
1993  u8 dot1ad; // 0 = dot1q, 1=dot1ad
2000 };
2001 
2002 define create_subif_reply {
2006 };
2007 
2008 /** \brief show version
2009  @param client_index - opaque cookie to identify the sender
2010  @param context - sender context, to match reply w/ request
2011 */
2012 define show_version {
2015 };
2016 
2017 /** \brief show version response
2018  @param context - sender context, to match reply w/ request
2019  @param retval - return code for the request
2020  @param program - name of the program (vpe)
2021  @param version - version of the program
2022  @param build_directory - root of the workspace where the program was built
2023 */
2024 manual_java define show_version_reply {
2027  u8 program[32];
2028  u8 version[32];
2029  u8 build_date[32];
2030  u8 build_directory[256];
2031 };
2032 
2033 /** \brief Vhost-user interface details structure (fix this)
2034  @param sw_if_index - index of the interface
2035  @param interface_name - name of interface
2036  @param virtio_net_hdr_sz - net header size
2037  @param features - interface features
2038  @param is_server - vhost-user server socket
2039  @param sock_filename - socket filename
2040  @param num_regions - number of used memory regions
2041 */
2042 manual_java define sw_interface_vhost_user_details {
2045  u8 interface_name[64];
2049  u8 sock_filename[256];
2052 };
2053 
2054 /* works */
2055 define sw_interface_vhost_user_dump {
2058 };
2059 
2060 manual_java define ip_address_details {
2063  u8 ip[16];
2065 };
2066 
2067 manual_java define ip_address_dump {
2072 };
2073 
2074 manual_java define ip_details {
2077 };
2078 
2079 define ip_dump {
2083 };
2084 
2085 /** \brief l2 fib table entry structure
2086  @param bd_id - the l2 fib / bridge domain table id
2087  @param mac - the entry's mac address
2088  @param sw_if_index - index of the interface
2089  @param static_mac - the entry is statically configured.
2090  @param filter_mac - the entry is a mac filter entry.
2091  @param bvi_mac - the mac address is a bridge virtual interface
2092 */
2093 manual_java define l2_fib_table_entry {
2101 };
2102 
2103 /** \brief Dump l2 fib (aka bridge domain) table
2104  @param client_index - opaque cookie to identify the sender
2105  @param bd_id - the l2 fib / bridge domain table identifier
2106 */
2107 manual_java define l2_fib_table_dump {
2111 };
2112 
2113 define vxlan_gpe_add_del_tunnel {
2123 };
2124 
2125 define vxlan_gpe_add_del_tunnel_reply {
2129 };
2130 
2131 
2132 /** \brief add or delete locator_set
2133  @param client_index - opaque cookie to identify the sender
2134  @param context - sender context, to match reply w/ request
2135  @param is_add - add address if non-zero, else delete
2136  @param locator_set_name - locator name
2137 */
2138 define lisp_add_del_locator_set {
2142  u8 locator_set_name[64];
2143 };
2144 
2145 /** \brief Reply for locator_set add/del
2146  @param context - returned sender context, to match reply w/ request
2147  @param retval - return code
2148 */
2149 define lisp_add_del_locator_set_reply {
2152 };
2153 
2154 /** \brief add or delete locator for locator_set
2155  @param client_index - opaque cookie to identify the sender
2156  @param context - sender context, to match reply w/ request
2157  @param is_add - add address if non-zero, else delete
2158  @param locator_set_name - name of locator_set to add/del locator
2159  @param sw_if_index - index of the interface
2160  @param priority - priority of the lisp locator
2161  @param weight - weight of the lisp locator
2162 */
2163 define lisp_add_del_locator {
2167  u8 locator_set_name[64];
2171 };
2172 
2173 /** \brief Reply for locator add/del
2174  @param context - returned sender context, to match reply w/ request
2175  @param retval - return code
2176 */
2177 define lisp_add_del_locator_reply {
2180 };
2181 
2182 /** \brief add or delete lisp eid-table
2183  @param client_index - opaque cookie to identify the sender
2184  @param context - sender context, to match reply w/ request
2185  @param is_add - add address if non-zero, else delete
2186  @param is_ipv6 - if non-zero the address is ipv6, else ipv4
2187  @param ip_address - array of address bytes
2188  @param prefix_len - prefix len
2189  @param locator_set_name - name of locator_set to add/del eid-table
2190 */
2191 define lisp_add_del_local_eid {
2196  u8 ip_address[16];
2198  u8 locator_set_name[64];
2199 };
2200 
2201 /** \brief Reply for local_eid add/del
2202  @param context - returned sender context, to match reply w/ request
2203  @param retval - return code
2204 */
2205 define lisp_add_del_local_eid_reply {
2208 };
2209 
2210 /** \brief add or delete lisp gpe maptunel
2211  @param client_index - opaque cookie to identify the sender
2212  @param context - sender context, to match reply w/ request
2213  @param is_add - add address if non-zero, else delete
2214  @param eid_is_ipv6 - if non-zero the address is ipv6, else ipv4
2215  @param eid_ip_address - array of address bytes
2216  @param eid_prefix_len - prefix len
2217  @param address_is_ipv6 - if non-zero the address is ipv6, else ipv4
2218  @param source_ip_address - array of address bytes
2219  @param destination_ip_address - array of address bytes
2220 */
2221 define lisp_gpe_add_del_fwd_entry {
2226  u8 eid_ip_address[16];
2229  u8 source_ip_address[16];
2230  u8 destination_ip_address[16];
2231 };
2232 
2233 /** \brief Reply for gpe_fwd_entry add/del
2234  @param context - returned sender context, to match reply w/ request
2235  @param retval - return code
2236 */
2237 define lisp_gpe_add_del_fwd_entry_reply {
2240 };
2241 
2242 /** \brief add or delete map-resolver
2243  @param client_index - opaque cookie to identify the sender
2244  @param context - sender context, to match reply w/ request
2245  @param is_add - add address if non-zero, else delete
2246  @param is_ipv6 - if non-zero the address is ipv6, else ipv4
2247  @param ip_address - array of address bytes
2248 */
2249 define lisp_add_del_map_resolver {
2254  u8 ip_address[16];
2255 };
2256 
2257 /** \brief Reply for map_resolver add/del
2258  @param context - returned sender context, to match reply w/ request
2259  @param retval - return code
2260 */
2261 define lisp_add_del_map_resolver_reply {
2264 };
2265 
2266 /** \brief enable or disable lisp-gpe protocol
2267  @param client_index - opaque cookie to identify the sender
2268  @param context - sender context, to match reply w/ request
2269  @param is_en - enable protocol if non-zero, else disable
2270 */
2271 define lisp_gpe_enable_disable {
2275 };
2276 
2277 /** \brief Reply for gpe enable/disable
2278  @param context - returned sender context, to match reply w/ request
2279  @param retval - return code
2280 */
2281 define lisp_gpe_enable_disable_reply {
2284 };
2285 
2286 /** \brief enable or disable LISP feature
2287  @param client_index - opaque cookie to identify the sender
2288  @param context - sender context, to match reply w/ request
2289  @param is_en - enable protocol if non-zero, else disable
2290 */
2291 define lisp_enable_disable {
2295 };
2296 
2297 /** \brief Reply for gpe enable/disable
2298  @param context - returned sender context, to match reply w/ request
2299  @param retval - return code
2300 */
2301 define lisp_enable_disable_reply {
2304 };
2305 
2306 /** \brief add or delete gpe_iface
2307  @param client_index - opaque cookie to identify the sender
2308  @param context - sender context, to match reply w/ request
2309  @param is_add - add address if non-zero, else delete
2310 */
2311 define lisp_gpe_add_del_iface {
2317 };
2318 
2319 /** \brief Reply for gpe_iface add/del
2320  @param context - returned sender context, to match reply w/ request
2321  @param retval - return code
2322 */
2323 define lisp_gpe_add_del_iface_reply {
2326 };
2327 
2328 /** \brief add or delete remote static mapping
2329  @param client_index - opaque cookie to identify the sender
2330  @param context - sender context, to match reply w/ request
2331  @param is_add - add address if non-zero, else delete
2332  @param vni - virtual network instance
2333  @param action - negative map-reply action
2334  @param eid_is_ip4 - ipv4/6 of source and destination EIDs
2335  @param deid - destination EID
2336  @param seid - source EID
2337  @param rloc_num - number of remote locators
2338  @param rlocs - remote locator data
2339 */
2340 define lisp_add_del_remote_mapping {
2347  u8 deid[16];
2348  u8 seid[16];
2352  u8 rlocs[0];
2353 };
2354 
2355 /** \brief Reply for lisp_add_del_remote_mapping
2356  @param context - returned sender context, to match reply w/ request
2357  @param retval - return code
2358 */
2359 
2360 define lisp_add_del_remote_mapping_reply {
2363 };
2364 
2365 /** \brief LISP locator_set status
2366  @param locator_set_name - name of the locator_set
2367  @param sw_if_index - sw_if_index of the locator
2368  @param priority - locator priority
2369  @param weight - locator weight
2370  */
2371 manual_java define lisp_locator_set_details {
2374  u8 locator_set_name[64];
2377  u8 ip_address[16];
2381 };
2382 
2383 /** \brief Request for locator_set summary status
2384  @param client_index - opaque cookie to identify the sender
2385  @param context - sender context, to match reply w/ request
2386  */
2387 define lisp_locator_set_dump {
2390 };
2391 
2392 /** \brief LISP local eid table status
2393  @param locator_set_name - name of the locator_set
2394  @param eid_is_ipv6 - if non-zero the address is ipv6, else ipv4
2395  @param eid_ip_address - array of address bytes
2396  @param eid_prefix_len - prefix len
2397  */
2398 manual_java define lisp_local_eid_table_details {
2400  u8 locator_set_name[64];
2402  u8 eid_ip_address[16];
2404 };
2405 
2406 /** \brief Request for local eid table summary status
2407  @param client_index - opaque cookie to identify the sender
2408  @param context - sender context, to match reply w/ request
2409  */
2410 define lisp_local_eid_table_dump {
2413 };
2414 
2415 manual_java define lisp_gpe_tunnel_details {
2419  u8 source_ip[16];
2420  u8 destination_ip[16];
2430 };
2431 
2432 /** \brief Request for gpe tunnel summary status
2433  @param client_index - opaque cookie to identify the sender
2434  @param context - sender context, to match reply w/ request
2435  */
2436 define lisp_gpe_tunnel_dump {
2439 };
2440 
2441 /** \brief LISP map resolver status
2442  @param locator_set_name - name of the locator_set
2443  @param is_ipv6 - if non-zero the address is ipv6, else ipv4
2444  @param ip_address - array of address bytes
2445  */
2446 manual_java define lisp_map_resolver_details {
2449  u8 ip_address[16];
2450 };
2451 
2452 /** \brief Request for map resolver summary status
2453  @param client_index - opaque cookie to identify the sender
2454  @param context - sender context, to match reply w/ request
2455  */
2456 define lisp_map_resolver_dump {
2459 };
2460 
2461 /** \brief Status of lisp-gpe protocol, enable or disable
2462  @param context - sender context, to match reply w/ request
2463  @param is_en - enable protocol if non-zero, else disable
2464 */
2465 manual_java define lisp_enable_disable_status_details {
2469 };
2470 
2471 /** \brief Request for lisp-gpe protocol status
2472  @param client_index - opaque cookie to identify the sender
2473  @param context - sender context, to match reply w/ request
2474 */
2475 define lisp_enable_disable_status_dump {
2478 };
2479 
2480 /* Gross kludge, DGMS */
2481 define interface_name_renumber {
2486 };
2487 
2488 define interface_name_renumber_reply {
2491 };
2492 
2493 /** \brief Register for ip4 arp resolution events
2494  @param client_index - opaque cookie to identify the sender
2495  @param context - sender context, to match reply w/ request
2496  @param enable_disable - 1 => register for events, 0 => cancel registration
2497  @param pid - sender's pid
2498  @param address - the exact ip4 address of interest
2499 */
2500 define want_ip4_arp_events {
2506 };
2507 
2508 /** \brief Reply for interface events registration
2509  @param context - returned sender context, to match reply w/ request
2510  @param retval - return code
2511 */
2512 define want_ip4_arp_events_reply {
2515 };
2516 
2517 /** \brief Tell client about an ip4 arp resolution event
2518  @param client_index - opaque cookie to identify the sender
2519  @param context - sender context, to match reply w/ request
2520  @param address - the exact ip4 address of interest
2521  @param pid - client pid registered to receive notification
2522  @param sw_if_index - interface which received ARP packet
2523  @param new_mac - the new mac address
2524 */
2525 define ip4_arp_event {
2531  u8 new_mac[6];
2532 };
2533 
2534 /** \brief L2 bridge domain add or delete request
2535  @param client_index - opaque cookie to identify the sender
2536  @param context - sender context, to match reply w/ request
2537  @param bd_id - the bridge domain to create
2538  @param flood - enable/disable bcast/mcast flooding in the bd
2539  @param uu_flood - enable/disable uknown unicast flood in the bd
2540  @param forward - enable/disable forwarding on all interfaces in the bd
2541  @param learn - enable/disable learning on all interfaces in the bd
2542  @param arp_term - enable/disable arp termination in the bd
2543  @param is_add - add or delete flag
2544 */
2545 define bridge_domain_add_del {
2555 };
2556 
2557 /** \brief L2 bridge domain add or delete response
2558  @param context - sender context, to match reply w/ request
2559  @param retval - return code for the set bridge flags request
2560 */
2561 define bridge_domain_add_del_reply {
2564 };
2565 
2566 /** \brief L2 bridge domain request operational state details
2567  @param client_index - opaque cookie to identify the sender
2568  @param context - sender context, to match reply w/ request
2569  @param bd_id - the bridge domain id desired or ~0 to request all bds
2570 */
2571 manual_java define bridge_domain_dump {
2575 };
2576 
2577 /** \brief L2 bridge domain operational state response
2578  @param bd_id - the bridge domain id
2579  @param flood - bcast/mcast flooding state on all interfaces in the bd
2580  @param uu_flood - uknown unicast flooding state on all interfaces in the bd
2581  @param forward - forwarding state on all interfaces in the bd
2582  @param learn - learning state on all interfaces in the bd
2583  @param arp_term - arp termination state on all interfaces in the bd
2584  @param n_sw_ifs - number of sw_if_index's in the domain
2585 */
2586 manual_java define bridge_domain_details {
2596 };
2597 
2598 /** \brief L2 bridge domain sw interface operational state response
2599  @param bd_id - the bridge domain id
2600  @param sw_if_index - sw_if_index in the domain
2601  @param shg - split horizon group for the interface
2602 */
2603 manual_java define bridge_domain_sw_if_details {
2608 };
2609 
2610 /** \brief DHCP Client config add / del request
2611  @param client_index - opaque cookie to identify the sender
2612  @param context - sender context, to match reply w/ request
2613  @param sw_if_index - index of the interface for DHCP client
2614  @param hostname - hostname
2615  @param is_add - add the config if non-zero, else delete
2616  @param want_dhcp_event - DHCP event sent to the sender
2617  via dhcp_compl_event API message if non-zero
2618  @param pid - sender's pid
2619 */
2624  u8 hostname[64];
2628 };
2629 
2630 /** \brief DHCP Client config response
2631  @param context - sender context, to match reply w/ request
2632  @param retval - return code for the request
2633 */
2634 define dhcp_client_config_reply {
2637 };
2638 
2639 /** \brief Set/unset input ACL interface
2640  @param client_index - opaque cookie to identify the sender
2641  @param context - sender context, to match reply w/ request
2642  @param sw_if_index - interface to set/unset input ACL
2643  @param ip4_table_index - ip4 classify table index (~0 for skip)
2644  @param ip6_table_index - ip6 classify table index (~0 for skip)
2645  @param l2_table_index - l2 classify table index (~0 for skip)
2646  @param is_add - Set input ACL if non-zero, else unset
2647  Note: User is recommeneded to use just one valid table_index per call.
2648  (ip4_table_index, ip6_table_index, or l2_table_index)
2649 */
2650 define input_acl_set_interface {
2658 };
2659 
2660 /** \brief Set/unset input ACL interface response
2661  @param context - sender context, to match reply w/ request
2662  @param retval - return code for the request
2663 */
2664 define input_acl_set_interface_reply {
2667 };
2668 
2669 /** \brief IPsec: Add/delete Security Policy Database
2670  @param client_index - opaque cookie to identify the sender
2671  @param context - sender context, to match reply w/ request
2672  @param is_add - add SPD if non-zero, else delete
2673  @param spd_id - SPD instance id (control plane allocated)
2674 */
2675 
2676 define ipsec_spd_add_del {
2681 };
2682 
2683 /** \brief Reply for IPsec: Add/delete Security Policy Database entry
2684  @param context - returned sender context, to match reply w/ request
2685  @param retval - return code
2686 */
2687 
2688 define ipsec_spd_add_del_reply {
2691 };
2692 
2693 /** \brief IPsec: Add/delete SPD from interface
2694 
2695  @param client_index - opaque cookie to identify the sender
2696  @param context - sender context, to match reply w/ request
2697  @param is_add - add security mode if non-zero, else delete
2698  @param sw_if_index - index of the interface
2699  @param spd_id - SPD instance id to use for lookups
2700 */
2701 
2702 
2703 define ipsec_interface_add_del_spd {
2706 
2710 };
2711 
2712 /** \brief Reply for IPsec: Add/delete SPD from interface
2713  @param context - returned sender context, to match reply w/ request
2714  @param retval - return code
2715 */
2716 
2717 define ipsec_interface_add_del_spd_reply {
2720 };
2721 
2722 /** \brief IPsec: Add/delete Security Policy Database entry
2723 
2724  See RFC 4301, 4.4.1.1 on how to match packet to selectors
2725 
2726  @param client_index - opaque cookie to identify the sender
2727  @param context - sender context, to match reply w/ request
2728  @param is_add - add SPD if non-zero, else delete
2729  @param spd_id - SPD instance id (control plane allocated)
2730  @param priority - priority of SPD entry (non-unique value). Used to order SPD matching - higher priorities match before lower
2731  @param is_outbound - entry applies to outbound traffic if non-zero, otherwise applies to inbound traffic
2732  @param is_ipv6 - remote/local address are IPv6 if non-zero, else IPv4
2733  @param remote_address_start - start of remote address range to match
2734  @param remote_address_stop - end of remote address range to match
2735  @param local_address_start - start of local address range to match
2736  @param local_address_stop - end of local address range to match
2737  @param protocol - protocol type to match [0 means any]
2738  @param remote_port_start - start of remote port range to match ...
2739  @param remote_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
2740  @param local_port_start - start of local port range to match ...
2741  @param local_port_stop - end of remote port range to match [0 to 65535 means ANY, 65535 to 0 means OPAQUE]
2742  @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)
2743  @param sa_id - SAD instance id (control plane allocated)
2744 
2745 */
2746 
2747 define ipsec_spd_add_del_entry {
2751 
2755 
2756  // Selector
2759  u8 remote_address_start[16];
2760  u8 remote_address_stop[16];
2761  u8 local_address_start[16];
2762  u8 local_address_stop[16];
2763 
2765 
2770 
2771  // Policy
2774 };
2775 
2776 /** \brief Reply for IPsec: Add/delete Security Policy Database entry
2777  @param context - returned sender context, to match reply w/ request
2778  @param retval - return code
2779 */
2780 
2781 define ipsec_spd_add_del_entry_reply {
2784 };
2785 
2786 /** \brief IPsec: Add/delete Security Association Database entry
2787  @param client_index - opaque cookie to identify the sender
2788  @param context - sender context, to match reply w/ request
2789  @param is_add - add SAD entry if non-zero, else delete
2790 
2791  @param sad_id - sad id
2792 
2793  @param spi - security parameter index
2794 
2795  @param protocol - 0 = AH, 1 = ESP
2796 
2797  @param crypto_algorithm - 0 = Null, 1 = AES-CBC-128, 2 = AES-CBC-192, 3 = AES-CBC-256, 4 = 3DES-CBC
2798  @param crypto_key_length - length of crypto_key in bytes
2799  @param crypto_key - crypto keying material
2800 
2801  @param integrity_algorithm - 0 = None, 1 = MD5-96, 2 = SHA1-96, 3 = SHA-256, 4 = SHA-384, 5=SHA-512
2802  @param integrity_key_length - length of integrity_key in bytes
2803  @param integrity_key - integrity keying material
2804 
2805  @param use_extended_sequence_number - use ESN when non-zero
2806 
2807  @param is_tunnel - IPsec tunnel mode if non-zero, else transport mode
2808  @param is_tunnel_ipv6 - IPsec tunnel mode is IPv6 if non-zero, else IPv4 tunnel only valid if is_tunnel is non-zero
2809  @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
2810  @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
2811 
2812  To be added:
2813  Anti-replay
2814  IPsec tunnel address copy mode (to support GDOI)
2815  */
2816 
2817 define ipsec_sad_add_del_entry {
2821 
2823 
2825 
2827 
2830  u8 crypto_key[128];
2831 
2834  u8 integrity_key[128];
2835 
2837 
2840  u8 tunnel_src_address[16];
2841  u8 tunnel_dst_address[16];
2842 };
2843 
2844 /** \brief Reply for IPsec: Add/delete Security Association Database entry
2845  @param context - returned sender context, to match reply w/ request
2846  @param retval - return code
2847 */
2848 
2849 define ipsec_sad_add_del_entry_reply {
2852 };
2853 
2854 /** \brief IPsec: Update Security Association keys
2855  @param client_index - opaque cookie to identify the sender
2856  @param context - sender context, to match reply w/ request
2857 
2858  @param sa_id - sa id
2859 
2860  @param crypto_key_length - length of crypto_key in bytes
2861  @param crypto_key - crypto keying material
2862 
2863  @param integrity_key_length - length of integrity_key in bytes
2864  @param integrity_key - integrity keying material
2865 */
2866 
2867 define ipsec_sa_set_key {
2870 
2872 
2874  u8 crypto_key[128];
2875 
2877  u8 integrity_key[128];
2878 };
2879 
2880 /** \brief Reply for IPsec: Update Security Association keys
2881  @param context - returned sender context, to match reply w/ request
2882  @param retval - return code
2883 */
2884 
2885 define ipsec_sa_set_key_reply {
2888 };
2889 
2890 /** \brief IKEv2: Add/delete profile
2891  @param client_index - opaque cookie to identify the sender
2892  @param context - sender context, to match reply w/ request
2893 
2894  @param name - IKEv2 profile name
2895  @param is_add - Add IKEv2 profile if non-zero, else delete
2896 */
2897 define ikev2_profile_add_del {
2900 
2901  u8 name[64];
2903 };
2904 
2905 /** \brief Reply for IKEv2: Add/delete profile
2906  @param context - returned sender context, to match reply w/ request
2907  @param retval - return code
2908 */
2909 define ikev2_profile_add_del_reply {
2912 };
2913 
2914 /** \brief IKEv2: Set IKEv2 profile authentication method
2915  @param client_index - opaque cookie to identify the sender
2916  @param context - sender context, to match reply w/ request
2917 
2918  @param name - IKEv2 profile name
2919  @param auth_method - IKEv2 authentication method (shared-key-mic/rsa-sig)
2920  @param is_hex - Authentication data in hex format if non-zero, else string
2921  @param data_len - Authentication data length
2922  @param data - Authentication data (for rsa-sig cert file path)
2923 */
2924 define ikev2_profile_set_auth {
2927 
2928  u8 name[64];
2932  u8 data[0];
2933 };
2934 
2935 /** \brief Reply for IKEv2: Set IKEv2 profile authentication method
2936  @param context - returned sender context, to match reply w/ request
2937  @param retval - return code
2938 */
2939 define ikev2_profile_set_auth_reply {
2942 };
2943 
2944 /** \brief IKEv2: Set IKEv2 profile local/remote identification
2945  @param client_index - opaque cookie to identify the sender
2946  @param context - sender context, to match reply w/ request
2947 
2948  @param name - IKEv2 profile name
2949  @param is_local - Identification is local if non-zero, else remote
2950  @param id_type - Identification type
2951  @param data_len - Identification data length
2952  @param data - Identification data
2953 */
2954 define ikev2_profile_set_id {
2957 
2958  u8 name[64];
2962  u8 data[0];
2963 };
2964 
2965 /** \brief Reply for IKEv2:
2966  @param context - returned sender context, to match reply w/ request
2967  @param retval - return code
2968 */
2969 define ikev2_profile_set_id_reply {
2972 };
2973 
2974 /** \brief IKEv2: Set IKEv2 profile traffic selector parameters
2975  @param client_index - opaque cookie to identify the sender
2976  @param context - sender context, to match reply w/ request
2977 
2978  @param name - IKEv2 profile name
2979  @param is_local - Traffic selector is local if non-zero, else remote
2980  @param proto - Traffic selector IP protocol (if zero not relevant)
2981  @param start_port - The smallest port number allowed by traffic selector
2982  @param end_port - The largest port number allowed by traffic selector
2983  @param start_addr - The smallest address included in traffic selector
2984  @param end_addr - The largest address included in traffic selector
2985 */
2986 define ikev2_profile_set_ts {
2989 
2990  u8 name[64];
2997 };
2998 
2999 /** \brief Reply for IKEv2: Set IKEv2 profile traffic selector parameters
3000  @param context - returned sender context, to match reply w/ request
3001  @param retval - return code
3002 */
3003 define ikev2_profile_set_ts_reply {
3006 };
3007 
3008 /** \brief IKEv2: Set IKEv2 local RSA private key
3009  @param client_index - opaque cookie to identify the sender
3010  @param context - sender context, to match reply w/ request
3011 
3012  @param key_file - Key file absolute path
3013 */
3017 
3018  u8 key_file[256];
3019 };
3020 
3021 /** \brief Reply for IKEv2: Set IKEv2 local key
3022  @param context - returned sender context, to match reply w/ request
3023  @param retval - return code
3024 */
3025 define ikev2_set_local_key_reply {
3028 };
3029 
3030 /** \brief Tell client about a DHCP completion event
3031  @param client_index - opaque cookie to identify the sender
3032  @param pid - client pid registered to receive notification
3033  @param is_ipv6 - if non-zero the address is ipv6, else ipv4
3034  @param host_address - Host IP address
3035  @param router_address - Router IP address
3036  @param host_mac - Host MAC address
3037 */
3038 manual_java define dhcp_compl_event {
3041  u8 hostname[64];
3043  u8 host_address[16];
3044  u8 router_address[16];
3045  u8 host_mac[6];
3046 };
3047 
3048 /** \brief Add MAP domains
3049  @param client_index - opaque cookie to identify the sender
3050  @param context - sender context, to match reply w/ request
3051  @param ip6_prefix - Rule IPv6 prefix
3052  @param ip4_prefix - Rule IPv4 prefix
3053  @param ip6_src - MAP domain IPv6 BR address / Tunnel source
3054  @param ip6_prefix_len - Rule IPv6 prefix length
3055  @param ip4_prefix_len - Rule IPv4 prefix length
3056  @param ea_bits_len - Embedded Address bits length
3057  @param psid_offset - Port Set Identifider (PSID) offset
3058  @param psid_length - PSID length
3059  @param is_translation - MAP-E / MAP-T
3060  @param mtu - MTU
3061 */
3062 define map_add_domain {
3065  u8 ip6_prefix[16];
3066  u8 ip4_prefix[4];
3067  u8 ip6_src[16];
3076 };
3077 
3078 /** \brief Reply for MAP domain add
3079  @param context - returned sender context, to match reply w/ request
3080  @param index - MAP domain index
3081  @param retval - return code
3082 */
3083 define map_add_domain_reply {
3087 };
3088 
3089 /** \brief Delete MAP domain
3090  @param client_index - opaque cookie to identify the sender
3091  @param context - sender context, to match reply w/ request
3092  @param index - MAP Domain index
3093 */
3094 define map_del_domain {
3098 };
3099 
3100 /** \brief Reply for MAP domain del
3101  @param context - returned sender context, to match reply w/ request
3102  @param retval - return code
3103 */
3104 define map_del_domain_reply {
3107 };
3108 
3109 /** \brief Add or Delete MAP rule from a domain (Only used for shared IPv4 per subscriber)
3110  @param client_index - opaque cookie to identify the sender
3111  @param context - sender context, to match reply w/ request
3112  @param index - MAP Domain index
3113  @param is_add - If 1 add rule, if 0 delete rule
3114  @param ip6_dst - MAP CE IPv6 address
3115  @param psid - Rule PSID
3116 */
3117 define map_add_del_rule {
3122  u8 ip6_dst[16];
3124 };
3125 
3126 /** \brief Reply for MAP rule add/del
3127  @param context - returned sender context, to match reply w/ request
3128  @param retval - return code
3129 */
3130 define map_add_del_rule_reply {
3133 };
3134 
3135 /** \brief Get list of map domains
3136  @param client_index - opaque cookie to identify the sender
3137 */
3138 define map_domain_dump {
3141 };
3142 
3143 manual_java define map_domain_details {
3146  u8 ip6_prefix[16];
3147  u8 ip4_prefix[4];
3148  u8 ip6_src[16];
3158 };
3159 
3160 define map_rule_dump {
3164 };
3165 
3166 manual_java define map_rule_details {
3168  u8 ip6_dst[16];
3170 };
3171 
3172 /** \brief Request for a single block of summary stats
3173  @param client_index - opaque cookie to identify the sender
3174  @param context - sender context, to match reply w/ request
3175 */
3176 define map_summary_stats {
3179 };
3180 
3181 /** \brief Reply for map_summary_stats request
3182  @param context - sender context, to match reply w/ request
3183  @param retval - return code for request
3184  @param total_bindings -
3185  @param total_pkts -
3186  @param total_ip4_fragments -
3187  @param total_security_check -
3188 */
3189 define map_summary_stats_reply {
3193  u64 total_pkts[2];
3194  u64 total_bytes[2];
3196  u64 total_security_check[2];
3197 };
3198 
3199 /** \brief cop: enable/disable junk filtration features on an interface
3200  @param client_index - opaque cookie to identify the sender
3201  @param context - sender context, to match reply w/ request
3202  @param sw_if_inded - desired interface
3203  @param enable_disable - 1 => enable, 0 => disable
3204 */
3205 
3211 };
3212 
3213 /** \brief cop: interface enable/disable junk filtration reply
3214  @param context - returned sender context, to match reply w/ request
3215  @param retval - return code
3216 */
3217 
3218 define cop_interface_enable_disable_reply {
3221 };
3222 
3223 /** \brief cop: enable/disable whitelist filtration features on an interface
3224  Note: the supplied fib_id must match in order to remove the feature!
3225 
3226  @param client_index - opaque cookie to identify the sender
3227  @param context - sender context, to match reply w/ request
3228  @param sw_if_index - interface handle, physical interfaces only
3229  @param fib_id - fib identifier for the whitelist / blacklist fib
3230  @param ip4 - 1 => enable ip4 filtration, 0=> disable ip4 filtration
3231  @param ip6 - 1 => enable ip6 filtration, 0=> disable ip6 filtration
3232  @param default_cop - 1 => enable non-ip4, non-ip6 filtration 0=> disable it
3233 */
3234 
3243 };
3244 
3245 /** \brief cop: interface enable/disable junk filtration reply
3246  @param context - returned sender context, to match reply w/ request
3247  @param retval - return code
3248 */
3249 
3250 define cop_whitelist_enable_disable_reply {
3253 };
3254 
3255 /** \brief get_node_graph - get a copy of the vpp node graph
3256  including the current set of graph arcs.
3257 
3258  @param client_index - opaque cookie to identify the sender
3259  @param context - sender context, to match reply w/ request
3260 */
3261 
3262 define get_node_graph {
3265 };
3266 
3267 /** \brief get_node_graph_reply
3268  @param context - returned sender context, to match reply w/ request
3269  @param retval - return code
3270  @param reply_in_shmem - result from vlib_node_serialize, in shared
3271  memory. Process with vlib_node_unserialize, remember to switch
3272  heaps and free the result.
3273 */
3274 
3275 define get_node_graph_reply {
3279 };
3280 
3281 /** \brief Clear interface statistics
3282  @param client_index - opaque cookie to identify the sender
3283  @param context - sender context, to match reply w/ request
3284  @param sw_if_index - index of the interface to clear statistics
3285 */
3286 define sw_interface_clear_stats {
3290 };
3291 
3292 /** \brief Reply to sw_interface_clear_stats
3293  @param context - sender context which was passed in the request
3294  @param retval - return code of the set flags request
3295 */
3296 define sw_interface_clear_stats_reply {
3299 };
3300 
3301 /** \brief IOAM Trace : Set TRACE profile
3302  @param id - profile id
3303  @param trace_type - Trace type
3304  @param trace_num_elt - Number of nodes in trace path
3305  @param trace_ppc - Trace PPC (none/encap/decap)
3306  @param trace_tsp - Trace timestamp precision (0-sec,1-ms,2-us,3-ns)
3307  @param trace_app_data - Trace application data, can be any 4 bytes
3308  @param pow_enable - Proof of Work enabled or not flag
3309  @param node_id - Id of this node
3310 */
3311 define trace_profile_add {
3322 };
3323 
3324 /** \brief Trace profile add / del response
3325  @param context - sender context, to match reply w/ request
3326  @param retval - return value for request
3327 */
3328 define trace_profile_add_reply {
3331 };
3332 
3333 /** \brief IOAM Trace enable trace profile for a flow
3334  @param id - id of the trace profile to be applied
3335  @param dest_ipv6 - Destination IPv6 address
3336  @param prefix_length - prefix mask
3337  @param vrf_id - VRF ID
3338  @param trace_op - Trace operation (add/mod/del)
3339  @param enable - apply/remove the trace profile for the flow
3340 */
3341 define trace_profile_apply {
3345  u8 dest_ipv6[16];
3350 };
3351 
3352 /** \brief Trace profile apply response
3353  @param context - sender context, to match reply w/ request
3354  @param retval - return value for request
3355 */
3356 define trace_profile_apply_reply {
3359 };
3360 
3361 /** \brief Delete Trace Profile
3362  @param client_index - opaque cookie to identify the sender
3363  @param context - sender context, to match reply w/ request
3364  @param index - MAP Domain index
3365 */
3366 define trace_profile_del {
3370 };
3371 
3372 /** \brief Trace profile add / del response
3373  @param context - sender context, to match reply w/ request
3374  @param retval - return value for request
3375 */
3376 define trace_profile_del_reply {
3379 };
3380 
3381 /** \brief Create host-interface
3382  @param client_index - opaque cookie to identify the sender
3383  @param context - sender context, to match reply w/ request
3384  @param host_if_name - interface name
3385  @param hw_addr - interface MAC
3386  @param use_random_hw_addr - use random generated MAC
3387 */
3388 define af_packet_create {
3391 
3392  u8 host_if_name[64];
3393  u8 hw_addr[6];
3395 };
3396 
3397 /** \brief Create host-interface response
3398  @param context - sender context, to match reply w/ request
3399  @param retval - return value for request
3400 */
3401 define af_packet_create_reply {
3404 };
3405 
3406 /** \brief Delete host-interface
3407  @param client_index - opaque cookie to identify the sender
3408  @param context - sender context, to match reply w/ request
3409  @param host_if_name - interface name
3410 */
3411 define af_packet_delete {
3414 
3415  u8 host_if_name[64];
3416 };
3417 
3418 /** \brief Delete host-interface response
3419  @param context - sender context, to match reply w/ request
3420  @param retval - return value for request
3421 */
3422 define af_packet_delete_reply {
3425 };
3426 
3427 /** \brief Add/del policer
3428  @param client_index - opaque cookie to identify the sender
3429  @param context - sender context, to match reply w/ request
3430  @param is_add - add policer if non-zero, else delete
3431  @param name - policer name
3432  @param cir - CIR
3433  @param eir - EIR
3434  @param cb - Committed Burst
3435  @param eb - Excess or Peak Burst
3436  @param rate_type - rate type
3437  @param round_type - rounding type
3438  @param type - policer algorithm
3439 */
3443 
3445  u8 name[64];
3453 };
3454 
3455 /** \brief Add/del policer response
3456  @param context - sender context, to match reply w/ request
3457  @param retval - return value for request
3458 */
3459 define policer_add_del_reply {
3462 };
u8 crypto_algorithm
Definition: vpe.api:2828
u8 use_extended_sequence_number
Definition: vpe.api:2836
u32 sa_id
Definition: vpe.api:2773
u8 integrity_key_length
Definition: vpe.api:2833
u8 address_is_ipv6
Definition: vpe.api:2228
u16 local_port_start
Definition: vpe.api:2768
u8 is_add
Definition: vpe.api:2750
i32 retval
Definition: vpe.api:2239
u8 eid_prefix_len
Definition: vpe.api:2227
u32 context
Definition: vpe.api:2238
u8 policy
Definition: vpe.api:2772
u32 context
Definition: vpe.api:2782
u16 remote_port_stop
Definition: vpe.api:2767
u32 custom_dev_instance
Definition: vpe.api:252
u8 protocol
Definition: vpe.api:2764
i32 retval
Definition: vpe.api:2783
u32 bd_id
Definition: vpe.api:2095
u32 spd_id
Definition: vpe.api:2752
u32 client_index
Definition: vpe.api:2222
u8 is_tunnel
Definition: vpe.api:2838
clib_error_t * policer_add_del(vlib_main_t *vm, u8 *name, sse2_qos_pol_cfg_params_st *cfg, u8 is_add)
Definition: policer.c:19
u8 crypto_key_length
Definition: vpe.api:2829
u32 context
Definition: vpe.api:2094
u32 sad_id
Definition: vpe.api:2822
int i32
Definition: types.h:81
u32 feature_bitmap
Definition: vpe.api:1418
unsigned long u64
Definition: types.h:89
static int sw_interface_dump(vppjni_main_t *jm)
Definition: vppjni.c:96
int l2tpv3_interface_enable_disable(vnet_main_t *vnm, u32 sw_if_index, int enable_disable)
Definition: l2tp.c:570
u8 is_add
Definition: vpe.api:2224
i32 priority
Definition: vpe.api:2753
i32 retval
Definition: vpe.api:2851
u64 mac
Definition: vpe.api:2096
int cop_whitelist_enable_disable(cop_whitelist_enable_disable_args_t *a)
Definition: cop.c:228
u8 is_add
Definition: vpe.api:2820
u16 local_port_stop
Definition: vpe.api:2769
clib_error_t * ikev2_set_local_key(vlib_main_t *vm, u8 *file)
Definition: ikev2.c:1944
u8 bvi_mac
Definition: vpe.api:2100
u32 client_index
Definition: vpe.api:2818
u16 remote_port_start
Definition: vpe.api:2766
int cop_interface_enable_disable(u32 sw_if_index, int enable_disable)
Definition: cop.c:150
u32 client_index
Definition: vpe.api:2748
u32 sw_if_index
Definition: vpe.api:2097
u8 eid_is_ipv6
Definition: vpe.api:2225
unsigned int u32
Definition: types.h:88
u32 spi
Definition: vpe.api:2824
int dhcp_client_config(vlib_main_t *vm, u32 sw_if_index, u8 *hostname, u32 is_add, u32 client_index, void *event_callback, u32 pid)
Definition: client.c:765
u32 context
Definition: vpe.api:2749
u8 static_mac
Definition: vpe.api:2098
unsigned short u16
Definition: types.h:57
double f64
Definition: types.h:140
unsigned char u8
Definition: types.h:56
u8 integrity_algorithm
Definition: vpe.api:2832
u8 is_tunnel_ipv6
Definition: vpe.api:2839
u32 context
Definition: vpe.api:2819
u32 custom_dev_instance
Definition: vpe.api:222
u32 client_index
Definition: vpe.api:2080
u8 is_outbound
Definition: vpe.api:2754
u8 is_ipv6
Definition: vpe.api:2757
u32 context
Definition: vpe.api:2223
u8 filter_mac
Definition: vpe.api:2099
u32 context
Definition: vpe.api:2850
u8 protocol
Definition: vpe.api:2826
int l2tpv3_set_tunnel_cookies(l2t_main_t *lm, u32 sw_if_index, u64 new_local_cookie, u64 new_remote_cookie)
Definition: l2tp.c:490
u8 is_ip_any
Definition: vpe.api:2758