summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application_interface.c
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/application_interface.c
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/application_interface.c')
-rw-r--r--src/vnet/session/application_interface.c8
1 files changed, 8 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;
}