Problem w/Latest version of Libnet on Solaris sparc...

<[email protected]> 3 Jun 2004 12:11:57 -0000
Newsgroups gmane.comp.security.libnet
Message-ID <[email protected]>

I've noticed that the IP_ID field in packets generated by libnet on a solaris system is mangled on an libnet_write function call. This seems to happen only in raw write mode and as far as I can tell, and only on Solaris sparc systems (although, I haven't yet tried it on a solaris intel, but it doesn't seem to be a problem on either SUSE or RedHat). The problem can be seen by running the sample code: tcp2.c. In the code, the IP_ID field is set to be 242 (dec), but when the packet is captured off the line, it is a random number. I've tried debugging it through GDB, but still can't find where it is being mangled.