diff --git a/examples/echoserver/echoserver.c b/examples/echoserver/echoserver.c index 0e44e4df6..4683e64f5 100644 --- a/examples/echoserver/echoserver.c +++ b/examples/echoserver/echoserver.c @@ -98,7 +98,8 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args) doPSK = 1; #endif - #if defined(NO_MAIN_DRIVER) && !defined(USE_WINDOWS_API) + #if defined(NO_MAIN_DRIVER) && !defined(USE_WINDOWS_API) && \ + !defined(CYASSL_SNIFFER) port = 0; #endif #if defined(USE_ANY_ADDR) diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index f1df7cde2..351a7471f 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -190,7 +190,7 @@ void simple_test(func_args* args) cliArgs.return_code = 0; strcpy(svrArgs.argv[0], "SimpleServer"); - #ifndef USE_WINDOWS_API + #if !defined(USE_WINDOWS_API) && !defined(CYASSL_SNIFFER) svrArgs.argc = NUMARGS; strcpy(svrArgs.argv[1], "-p"); strcpy(svrArgs.argv[2], "0");