diff options
Diffstat (limited to 'vpp-japi/japi/vppjni.h')
-rw-r--r-- | vpp-japi/japi/vppjni.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vpp-japi/japi/vppjni.h b/vpp-japi/japi/vppjni.h index c065016c..4973c0a6 100644 --- a/vpp-japi/japi/vppjni.h +++ b/vpp-japi/japi/vppjni.h @@ -84,6 +84,20 @@ typedef struct { } 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; u64 unicast; @@ -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 */ @@ -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; |