Problem w/IP raw sockets and Solaris
<[email protected]> 19 May 2004 00:51:19 -0000
| Newsgroups | gmane.comp.security.libnet |
|---|---|
| Message-ID | <[email protected]> |
I found this problem while trying to compile a simple packet generator in Solaris OS. In Libnet 1.1.2, when you call libnet_write(l) on a raw packet write for any IP packet, the IP_ID field is overwritten w/random data. Testing w/the sample code shows that for tcp1.c (non-raw packet write), the IP_ID field stays set to 242 or 0x00f2. When running tcp2.c (raw packet write) the IP_ID field is still set manually to 242 in the src code, but when inspecting the packet off the wire through ethereal, the IP_ID field is changed to a random value and that it increments by one w/every packet that is sent out. I have tested this on Solaris 7 and 8, w/the same results. Are there any fixes for this?