Fix l2output error-drop next node index
[vpp.git] / vpp-japi / japi / vppjni.h
index c065016..2fe2893 100644 (file)
@@ -83,6 +83,20 @@ typedef struct {
     u32 vtr_tag2;
 } sw_interface_subif_t;
 
+typedef struct {
+    u8 *desc;
+} sw_if_config_t;
+
+typedef struct {
+    u32 ip;
+    u8 prefix_length;
+} ipv4_address_t;
+
+typedef struct {
+    u8 ip[16];
+    u8 prefix_length;
+} ipv6_address_t;
+
 typedef struct {
   u64 ip4;
   u64 ip6;
@@ -108,6 +122,14 @@ typedef struct {
   if_counters_t tx;
 } sw_interface_stats_t;
 
+typedef struct {
+    u32 src_address;
+    u32 dst_address;
+    u32 encap_vrf_id;
+    u32 vni;
+    u32 decap_next_index;
+} vxlan_tunnel_details_t;
+
 
 typedef struct {
   /* Context IDs */
@@ -118,7 +140,7 @@ typedef struct {
   volatile u32 lock;
   u32 tag;
 
-  /* To recycle pseudo-synchronous message code from vpe_api_test... */
+  /* To recycle pseudo-synchronous message code from vpp_api_test... */
   volatile u32 result_ready;
   volatile i32 retval;
   volatile u8 *shmem_result;
@@ -152,6 +174,8 @@ typedef struct {
   /* interface table */
   sw_interface_details_t * sw_if_table;
 
+  uword * sw_if_config_by_sw_if_index;
+
   /* interface indices of responses to one sw_if_dump request */
   u8 collect_indices;
   u32 * sw_if_dump_if_indices;
@@ -165,6 +189,14 @@ typedef struct {
   /* subinterface table */
   sw_interface_subif_t * sw_if_subif_table;
 
+  /* used in ip_address_dump request and response handling */
+  ipv4_address_t *ipv4_addresses;
+  ipv6_address_t *ipv6_addresses;
+  u8 is_ipv6;
+
+  /* used in vxlan_tunnel_dump request and response handling */
+  vxlan_tunnel_details_t *vxlan_tunnel_details;
+
   /* main heap */
   u8 * heap;