diff options
Diffstat (limited to 'src/vnet/session')
-rw-r--r-- | src/vnet/session/application_interface.c | 8 | ||||
-rw-r--r-- | src/vnet/session/application_interface.h | 1 | ||||
-rw-r--r-- | src/vnet/session/session_types.h | 1 |
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_ |