[pso] [Tema5][Linux] Switch?
Tudor Scurtu
tudor.a.scurtu at gmail.com
Mon May 16 23:38:39 EEST 2011
Salut,
Am niste erori foarte ciudate atunci cand rulez testerul.
La foarte multe teste imi afiseaza "out of memory", urmat, desigur, de
"FAIL!".
M-am uitat in ipfwctl.c si am constatat ca acest mesaj se afiseaza dupa un
realloc nereusit la operatia de list. Problema este ca eroarea este afisata
si la operatiile de add.
Exista vreo posibilitate ca operatiile ioctl generate la compilarea
ipfwctl-ului sa difere de cele generate la compilarea programului meu?
Multumesc!
Tudor
root at spook:/tema5# ./run-inside.sh
./test inside 55555 192.168.142.130
SO2 - IP Firewall Tester - INSIDE
######## IP firewall driver tester - INSIDE ###############################
######## Phase 0: Module/device presence ##################################
ipfwctl mknod .................................................... PASSED
ipfwctl insmod ................................................... PASSED
ipfwctl test ..................................................... PASSED
ipfwctl rmmod .................................................... PASSED
ipfwctl insmod ................................................... PASSED
######## Phase 1: IOCTL interface #########################################
ipfwctl disable .................................................. PASSED
number of rules [rule list should be empty] ...................... PASSED
[0]
ipfwctl add ...................................................... out of
memory
FAILED!
out of memory
number of rules [static rule should have been added] ............. FAILED!
[got 255, expected 1]
out of memory
ipfwctl enable ................................................... PASSED
out of memory
number of rules [should not change] .............................. FAILED!
[got 255, expected 1]
out of memory
ipfwctl disable .................................................. PASSED
out of memory
number of rules [should not change] .............................. FAILED!
[got 255, expected 1]
out of memory
ipfwctl enable ................................................... PASSED
out of memory
number of rules [should not change] .............................. FAILED!
[got 255, expected 1]
out of memory
ipfwctl invalid .................................................. ioctl
42: Invalid argument
FAILED!
######## Phase 3: Control connection (static rule) ########################
initating control connection to 192.168.142.130:55555 ............ PASSED
out of memory
number of rules [dynamic rule should have been added] ............ FAILED!
[got 255, expected 2]
out of memory
control pong #1 .................................................. PASSED
control ping #2 .................................................. PASSED
######## Phase 4: Inbound filter (no matching rule) #######################
send port 8086 ................................................... PASSED
accept TCP connection [should timeout] ........................... FAILED!
control ping #3 .................................................. PASSED
control pong #4 .................................................. PASSED
send port 62298 .................................................. PASSED
UDP pong #5 [should filter] ...................................... FAILED!
UDP ping #6 ...................................................... PASSED
control pong #7 .................................................. FAILED!
errno=4 [Interrupted system call]
control ping #8 .................................................. PASSED
######## Phase 5: Inbound pass (static rule) ##############################
add firewall rule ................................................ out of
memory
FAILED!
out of memory
number of rules [static rule should have been added] ............. FAILED!
[got 255, expected 3]
out of memory
send port 36718 .................................................. PASSED
accept TCP connection [should accept] ............................ PASSED
TCP pong #9 ...................................................... PASSED
TCP ping #10 ..................................................... PASSED
control ping #11 ................................................. PASSED
control pong #12 ................................................. FAILED!
add firewall rule ................................................ out of
memory
FAILED!
out of memory
number of rules [static rule should have been added] ............. FAILED!
[got 255, expected 4]
out of memory
send port 61032 .................................................. PASSED
UDP pong #13 ..................................................... PASSED
UDP ping #14 ..................................................... PASSED
control pong #15 ................................................. FAILED!
control ping #16 ................................................. PASSED
######## Phase 6: Outbound pass (dynamic rule) ############################
recv port ........................................................ PASSED
initiate TCP connection to 192.168.142.130:15 [should connect] ... FAILED!
errno=111 [Connection refused]
TCP ping #17 ..................................................... FAILED!
errno=9 [Bad file descriptor]
TCP pong #18 ..................................................... FAILED!
errno=9 [Bad file descriptor]
out of memory
number of rules [dynamic rule should have been added] ............ FAILED!
[got 255, expected 5]
out of memory
out of memory
number of rules [dynamic rule should have expired] ............... FAILED!
[got 255, expected 4]
out of memory
control ping #19 ................................................. PASSED
control pong #20 ................................................. FAILED!
recv port ........................................................ FAILED!
errno=4 [Interrupted system call]
UDP ping #21 ..................................................... PASSED
UDP pong #22 ..................................................... FAILED!
errno=111 [Connection refused]
out of memory
number of rules [dynamic rule should have been added] ............ FAILED!
[got 255, expected 5]
out of memory
out of memory
number of rules [dynamic rule should have expired] ............... FAILED!
[got 255, expected 4]
out of memory
control pong #23 ................................................. FAILED!
control ping #24 ................................................. PASSED
######## Phase 7: Inbound pass (firewall disabled) ########################
ipfwctl disable .................................................. PASSED
out of memory
number of rules [should not change] .............................. FAILED!
[got 255, expected 4]
out of memory
send port 9221 ................................................... PASSED
accept TCP connection [should accept] ............................ PASSED
TCP pong #25 ..................................................... PASSED
TCP ping #26 ..................................................... PASSED
control ping #27 ................................................. PASSED
control pong #28 ................................................. FAILED!
send port 63335 .................................................. PASSED
UDP pong #29 ..................................................... PASSED
UDP ping #30 ..................................................... PASSED
control pong #31 ................................................. FAILED!
control ping #32 ................................................. PASSED
######## Phase 8: Cleanup #################################################
ipfwctl rmmod .................................................... PASSED
ipfwctl unlink ................................................... PASSED
######## Results - Inside #################################################
PASSED TESTS: 44
FAILED TESTS: 30
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20110516/3fcd6dfa/attachment.htm>
More information about the pso
mailing list