X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvcl_test_server.c;h=7b56d497153b1b941a1ba12d5ac47eb7e9ff944f;hb=993683150202254c6ba8dd43e087a7229edd5d4c;hp=6a2fda0be578bbaeb4345d3cf14df1bca4970144;hpb=54693d23307ce8944a4d97379efd3bd4dcf0485c;p=vpp.git diff --git a/src/vcl/vcl_test_server.c b/src/vcl/vcl_test_server.c index 6a2fda0be57..7b56d497153 100644 --- a/src/vcl/vcl_test_server.c +++ b/src/vcl/vcl_test_server.c @@ -425,14 +425,17 @@ main (int argc, char **argv) return -1; } - rv = vppcom_session_listen (ssm->listen_fd, 10); - if (rv < 0) + if (!ssm->cfg.transport_udp) { - errno_val = errno = -rv; - perror ("ERROR in main()"); - fprintf (stderr, "SERVER: ERROR: listen failed " - "(errno = %d)!\n", errno_val); - return -1; + rv = vppcom_session_listen (ssm->listen_fd, 10); + if (rv < 0) + { + errno_val = errno = -rv; + perror ("ERROR in main()"); + fprintf (stderr, "SERVER: ERROR: listen failed " + "(errno = %d)!\n", errno_val); + return -1; + } } ssm->epfd = vppcom_epoll_create (); @@ -626,7 +629,6 @@ main (int argc, char **argv) printf ("SERVER (fd %d): TX (%d bytes) - '%s'\n", conn->fd, tx_bytes, conn->buf); } - else // Extraneous read data from non-echo tests??? { xtra++;