Nmap Development mailing list archives

[PATCH] nping - printf line in ippackethdrinfo


From: Jack Grahl <mnvl16 () yahoo co uk>
Date: Sat, 22 Aug 2009 12:32:11 +0000 (GMT)

Not sure what this line does, maybe left here by mistake? Otherwise it might be better if it printed the LEN and VER to 
the buffer that ippackethdrinfo returns rather than straight to stdout?

Jack

--- nping-build2/common_modified.cc     2009-08-22 13:07:24.000000000 +0100
+++ nping-0.1BETA2/common_modified.cc   2009-08-20 19:01:10.000000000 +0100
@@ -1642,7 +1642,7 @@
                 Snprintf(icmptype, sizeof icmptype, "Destination unreachable (bogus original datagram)");              
           
                 goto icmpbad;
             }else
-             //printf("LEN %d VER %d\n", (ip2->ip_hl * 4), ip2->ip_v);
+                printf("LEN %d VER %d\n", (ip2->ip_hl * 4), ip2->ip_v);
             
             /* We have the original datagram + the first 8 bytes of the
              * transport layer header */    


      

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: