From 09d18c2fee0eb96c486f9d112e39dcd34e430b0e Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 24 Apr 2019 11:10:02 -0700 Subject: session: use teps in accept/connect notifications Change-Id: I58e713661a38cecbfdebd4609292d9d12e880cd2 Signed-off-by: Florin Coras --- src/vnet/session/transport.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/vnet/session/transport.h') diff --git a/src/vnet/session/transport.h b/src/vnet/session/transport.h index 73d7fba3c49..0aaaf7482d3 100644 --- a/src/vnet/session/transport.h +++ b/src/vnet/session/transport.h @@ -62,10 +62,14 @@ typedef struct _transport_proto_vft u8 *(*format_listener) (u8 * s, va_list * args); u8 *(*format_half_open) (u8 * s, va_list * args); - /* External API response */ - - void (*get_transport_endpoint) (u32 conn_index, u32 thread_index, ip46_address_t * ip, u16 * port, u8 * is_ip4, u8 is_lcl); - void (*get_transport_listener_endpoint) (u32 conn_index, ip46_address_t * ip, u16 * port, u8 * is_ip4, u8 is_lcl); + /* + * Properties retrieval + */ + void (*get_transport_endpoint) (u32 conn_index, u32 thread_index, + transport_endpoint_t *tep, u8 is_lcl); + void (*get_transport_listener_endpoint) (u32 conn_index, + transport_endpoint_t *tep, + u8 is_lcl); /* * Properties @@ -92,11 +96,10 @@ u32 transport_stop_listen (transport_proto_t tp, u32 conn_index); void transport_cleanup (transport_proto_t tp, u32 conn_index, u8 thread_index); void transport_get_endpoint (transport_proto_t tp, u32 conn_index, - u32 thread_index, ip46_address_t * ip, - u16 * port, u8 * is_ip4, u8 is_lcl); + u32 thread_index, transport_endpoint_t * tep, + u8 is_lcl); void transport_get_listener_endpoint (transport_proto_t tp, u32 conn_index, - ip46_address_t * ip, u16 * port, - u8 * is_ip4, u8 is_lcl); + transport_endpoint_t * tep, u8 is_lcl); static inline transport_connection_t * transport_get_connection (transport_proto_t tp, u32 conn_index, -- cgit 1.2.3-korg