allow sniffer to sniff known testsuite, no port 0

This commit is contained in:
toddouska 2013-05-09 18:42:24 -07:00
parent 07407bbdaa
commit d7e74d0383
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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");