[Autosec-devel] sonar/plugins rfc793.c,1.46,1.47
Brought to you by:
red0x
From: Jacob F. <ph...@us...> - 2004-04-13 00:00:25
|
Update of /cvsroot/autosec/sonar/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21337/plugins Modified Files: rfc793.c Log Message: Found and commented out some potentially dead code Index: rfc793.c =================================================================== RCS file: /cvsroot/autosec/sonar/plugins/rfc793.c,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** rfc793.c 9 Apr 2004 15:41:36 -0000 1.46 --- rfc793.c 12 Apr 2004 23:46:31 -0000 1.47 *************** *** 467,471 **** unsigned int j; int total_size = sizeof(struct tcphdr); ! int my_ports[65547]; uint32_t addr, one=1; --- 467,473 ---- unsigned int j; int total_size = sizeof(struct tcphdr); ! //XXX: ! //was my_ports meant for something? if not it's not doing anything useful ! //int my_ports[65547]; uint32_t addr, one=1; *************** *** 481,485 **** gethostname(name, 255); ai = mthis->resolve(name, NULL, PF_INET, 0); ! memcpy(my_ports, target->ports, 65537 * sizeof(int)); for(j = 0; j <= target->extra_hosts; j++) { --- 483,488 ---- gethostname(name, 255); ai = mthis->resolve(name, NULL, PF_INET, 0); ! //XXX: delete? ! //memcpy(my_ports, target->ports, 65537 * sizeof(int)); for(j = 0; j <= target->extra_hosts; j++) { *************** *** 539,542 **** --- 542,546 ---- } + nt.dport=-1; for(i = 0; i < 65536; i++) { *************** *** 569,574 **** target->stats.packets_sent++; free(packet); /* fresh copy of port list */ ! memcpy(target->ports, my_ports, 65537 * sizeof(int)); } --- 573,579 ---- target->stats.packets_sent++; free(packet); + //XXX: delete? /* fresh copy of port list */ ! //memcpy(target->ports, my_ports, 65537 * sizeof(int)); } |