Nmap Development mailing list archives
Re: Nsock test suite
From: Henri Doreau <henri.doreau () gmail com>
Date: Sat, 11 May 2013 02:10:04 +0200
Hi David, I hope you liked the idea. thanks for testing it. 2013/5/11 David Fifield <david () bamsoftware com>:
The first time I tried to build it, I got an error because the --libpcap=included wasn't noticed in the makefile. I think the examples directory has this problem too. nsock/tests$ make gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase tests_main.c -o tests_main.o gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase basic.c -o basic.o gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase timer.c -o timer.o gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase logs.c -o logs.o gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase connect.c -o connect.o gcc -lssl -lpcap -lcrypto tests_main.o basic.o timer.o logs.o connect.o -o tests_main ../src/libnsock.a ../../nbase/libnbase.a /usr/bin/ld: cannot find -lpcap collect2: error: ld returned 1 exit status make: *** [tests_main] Error 1 After I installed libpcap-dev, these are my results.
I'll have a closer look at this.
nsock/tests$ ./tests_main [OK] nsock pool user data [OK] test timer operations [OK] set standard log levels [OK] check error log levels (connect.c:67) Assertion failed: (ctd->connect_result) == (NSE_STATUS_SUCCESS) [FAILED] simple tcp connection (Invalid argument) David
It looks like the listeners were not started. Don't you have the following lines at the beginning: started UDP listener on port 55234 (pid AAAA) started TCP listener on port 55235 (pid BBBB) started TCP SSL listener on port 55236 (pid CCCC) ? I suspect a "source code bug" :) in run_tests.sh, which shell do you use? Regards -- Henri _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Nsock test suite Henri Doreau (May 08)
- Re: Nsock test suite David Fifield (May 10)
- Re: Nsock test suite Henri Doreau (May 10)
- Re: Nsock test suite Henri Doreau (May 11)
- Re: Nsock test suite David Fifield (May 12)
- Re: Nsock test suite Henri Doreau (May 18)
- Re: Nsock test suite Henri Doreau (May 10)
- Re: Nsock test suite David Fifield (May 10)