----- Original Message ----- From: "Jefferson Ogata" <[EMAIL PROTECTED]> To: <tcpdump-workers@lists.tcpdump.org> Sent: Tuesday, October 04, 2005 7:40 PM Subject: Re: [tcpdump-workers] pcap: prob w/libnet making raw socket client
> On 10/03/2005 04:56 PM, rh wrote: > > I'm using libnet 1.1.1 and pcaplib 0.8.3 (I believe). > > > > Linux 2.4.20 / 2.6.11 (and later, FreeBSD 5.2). > > > > GCC 3.3 > > > > Apologies if this is too off-topic an application for this list. > > > > I'm attempting to use libnet and pcap together to write a client using raw > > sockets so that I can gain explicit control over the ip_p value in the IP > > header. I need to test application-sensitive router configurations. > > > > I'm failing at connection establishment. I can squirt the packet out using > > libnet and get a reply using pcap, but the connection-initiating TCP seems > > to be generating a RST on my behalf before I can transmit the third packet > > of the handshake. > > Is there some reason you don't simply synthesize packets using an IP > address that doesn't belong to a box on the network (but use a little > proxy arp glue)? <handwaving through the details> Ultimately, I need to get throughput measurements from both sides too (ala TTCP). </handwaving through the details> - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.