aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/hs_apps
diff options
context:
space:
mode:
authorjiangxiaoming <jiangxiaoming@outlook.com>2020-08-22 19:25:49 +0800
committerxm j <jiangxiaoming@outlook.com>2020-08-22 11:29:54 +0000
commit34a72c61ea2952de450634f1cf9a629911d9bde7 (patch)
tree93cf73c505e83ec1da15d42417486726ace5a6be /src/plugins/hs_apps
parentb08fe6617bdc57f7534fe4813cc34d328eb36ba0 (diff)
hsa: set connected mode for udp server
Type: fix Signed-off-by: jiangxiaoming <jiangxiaoming@outlook.com> Change-Id: I32a28a944fcee11657c4dd0ba34ad6d73de89263
Diffstat (limited to 'src/plugins/hs_apps')
-rw-r--r--src/plugins/hs_apps/vcl/vcl_test_server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/hs_apps/vcl/vcl_test_server.c b/src/plugins/hs_apps/vcl/vcl_test_server.c
index 364c32fc9f8..af5b914cdac 100644
--- a/src/plugins/hs_apps/vcl/vcl_test_server.c
+++ b/src/plugins/hs_apps/vcl/vcl_test_server.c
@@ -531,6 +531,10 @@ vts_worker_init (vcl_test_server_worker_t * wrk)
if (wrk->listen_fd < 0)
vtfail ("vppcom_session_create()", wrk->listen_fd);
+ if (vsm->cfg.proto == VPPCOM_PROTO_UDP)
+ {
+ vppcom_session_attr (wrk->listen_fd, VPPCOM_ATTR_SET_CONNECTED, 0, 0);
+ }
if (vsm->cfg.proto == VPPCOM_PROTO_TLS
|| vsm->cfg.proto == VPPCOM_PROTO_QUIC)