Nmap Development mailing list archives

Re: unofficial release of nmap-3.78mm (fixed, updated)


From: Martin Mačok <martin.macok () underground cz>
Date: Fri, 28 Jan 2005 16:42:00 +0100

On Fri, Jan 28, 2005 at 04:59:35PM +0200, Alex R wrote:

tcpip.cc: In function `const char* ippackethdrinfo(const u8*, u32)':
tcpip.cc:352: error: ISO C++ forbids cast to non-reference type used as lvalue

Hmmm ... one wonders how this could make it through gcc 3.3.1 without
any warning at all ;-) (and I have checked the binary code it
generated and it did what I meant, interesting)

The change:
- (u8 *) tcp -= frag_off;
+ tcp = (struct tcphdr *)((u8 *) tcp - frag_off);

(could also be written as '*((u8 **) &tcp) -= frag_off;' but that
would be really ugly ;-)

Thanks for the report, I have updated the patch and tar.gz package at
http://Xtrmntr.org/ORBman/tmp/nmap/

Martin Mačok
ICT Security Consultant

---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to 
nmap-dev-help () insecure org . List archive: http://seclists.org



Current thread: