Re: problem writing packet with 1.1.1
Michael Robinton <[email protected]> Sun, 30 May 2004 10:55:16 -0700 (PDT)
| Newsgroups | gmane.comp.security.libnet |
|---|---|
| Message-ID | <Pine.LNX.4.33.0405301053580.29766-100000@pandora.is.bizsystems.com> |
On Sat, 29 May 2004, Michael wrote: > ------- Forwarded Message Follows ------- > From: "Michael" <[email protected]> > To: [email protected]! > Date: Sat, 29 May 2004 12:42:20 -0800 > Subject: problem writing packet with 1.1.1 > Reply-to: [email protected] > Priority: normal > > I'm doing > libnet_init(LIBNET_LINK,devname,errbuf) > libnet_build_tcp #returns 1 > libnet_build_ipv4 # returns 2 > libnet_build_ethernet #returns 3 > libnet_write always returns -1 > > I've broken the libnet code out and compiled it into my own source > and it fails in libnet_pblock_coalesce -- this returns -1 > > further digging around shows that the failure occurs when libnet_do_checksum > is called in libnet_pblock_coalesce ..... so, what now? > > > Michael > [email protected] > problem solved. turned out the packetsize was wrong. I expected it to be similar to 1.0.2 and could not determine from the docs what it really should be. Some further expirimentation and perusing the samples finally provided the answer. Michael