From bf8c15e04273b6d49b4ef5409beb7cfb99b78d0d Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Thu, 17 Dec 2015 20:54:54 -0500 Subject: Add ODL honeycomb VPP agent extensions to vppjapi jni java library. Change-Id: I084ffcf36fbac55c2862035d10b028e35e1e648d Signed-off-by: Dave Wallace --- vpp-japi/japi/vppjni.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'vpp-japi/japi/vppjni.h') diff --git a/vpp-japi/japi/vppjni.h b/vpp-japi/japi/vppjni.h index c065016c346..4973c0a65aa 100644 --- a/vpp-japi/japi/vppjni.h +++ b/vpp-japi/japi/vppjni.h @@ -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 */ @@ -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; -- cgit 1.2.3-korg