diff --git a/docs/nmap.1 b/docs/nmap.1 index 92aeaece3..eda263dc5 100644 --- a/docs/nmap.1 +++ b/docs/nmap.1 @@ -2,7 +2,7 @@ .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. -.TH "NMAP" "1" "01/21/2006" "" "Nmap Reference Guide" +.TH "NMAP" "1" "01/22/2006" "" "Nmap Reference Guide" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) diff --git a/tcpip.cc b/tcpip.cc index b190a5171..26f5324ca 100644 --- a/tcpip.cc +++ b/tcpip.cc @@ -877,11 +877,9 @@ tcp->th_sum = in_cksum((unsigned short *)pseudo, sizeof(struct tcphdr) + #endif if ( o.badsum ) - --tcp->th_sum, - + --tcp->th_sum; /* Now for the ip header */ - memset(packet, 0, sizeof(struct ip)); ip->ip_v = 4; ip->ip_hl = 5; @@ -1390,10 +1388,10 @@ ip->ip_id = htons(ipid); ip->ip_ttl = myttl; ip->ip_p = proto; ip->ip_src.s_addr = source->s_addr; -#ifdef WIN32 +// #ifdef WIN32 // TODO: Should this be removed? I'm not sure why this is here -- Fyodor -if(source->s_addr == victim->s_addr) ip->ip_src.s_addr++; -#endif +// if(source->s_addr == victim->s_addr) ip->ip_src.s_addr++; +// #endif ip->ip_dst.s_addr = victim->s_addr; #if HAVE_IP_IP_SUM ip->ip_sum = in_cksum((unsigned short *)ip, sizeof(struct ip));