aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorAloys Augustin <aloaugus@cisco.com>2019-04-09 11:40:57 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-04-24 14:57:32 +0000
commit502785b65c40351f62e510a245ccee56084a07f4 (patch)
tree3ddc2c3f55e4b5b747bbfa5dd2a45efa5bac301b /src/vnet/session
parent8e58499690a278a598c9ef7abf47b72fafad7e50 (diff)
QUIC: Add multi-stream support to internal test apps
Change-Id: Iab07697ef482529e62c11433cffa1f8f894e5bb7 Signed-off-by: Aloys Augustin <aloaugus@cisco.com> Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/application_interface.c8
-rw-r--r--src/vnet/session/application_interface.h1
-rw-r--r--src/vnet/session/session_types.h1
3 files changed, 10 insertions, 0 deletions
diff --git a/src/vnet/session/application_interface.c b/src/vnet/session/application_interface.c
index ae00292d918..2bd3ceb2785 100644
--- a/src/vnet/session/application_interface.c
+++ b/src/vnet/session/application_interface.c
@@ -78,6 +78,14 @@ unformat_vnet_uri (unformat_input_t * input, va_list * args)
sep->is_ip4 = 0;
return 1;
}
+ else if (unformat (input, "%U://session/%u", unformat_transport_proto,
+ &transport_proto, &sep->transport_opts))
+ {
+ sep->transport_proto = transport_proto;
+ sep->is_ip4 = 1;
+ sep->ip.ip4.as_u32 = 1; /* ip need to be non zero in vnet */
+ return 1;
+ }
return 0;
}
diff --git a/src/vnet/session/application_interface.h b/src/vnet/session/application_interface.h
index b49744c0b29..f6091c51698 100644
--- a/src/vnet/session/application_interface.h
+++ b/src/vnet/session/application_interface.h
@@ -211,6 +211,7 @@ typedef enum session_fd_flag_
#undef _
} session_fd_flag_t;
+int parse_uri (char *uri, session_endpoint_cfg_t * sep);
int vnet_bind_uri (vnet_listen_args_t *);
int vnet_unbind_uri (vnet_unlisten_args_t * a);
int vnet_connect_uri (vnet_connect_args_t * a);
diff --git a/src/vnet/session/session_types.h b/src/vnet/session/session_types.h
index 32a13cf94f9..b3924398977 100644
--- a/src/vnet/session/session_types.h
+++ b/src/vnet/session/session_types.h
@@ -133,6 +133,7 @@ typedef enum session_flags_
{
SESSION_F_RX_EVT = 1,
SESSION_F_PROXY = (1 << 1),
+ SESSION_F_QUIC_STREAM = (1 << 2),
} session_flags_t;
typedef struct session_