Re: sending MAC packets --- again, and again
From: Charles Swiger (cswiger_at_mac.com)
Date: 05/21/05
- Previous message: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- In reply to: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- Next in thread: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 21 May 2005 12:36:33 -0400 To: Daniel Valencia <fetrovsky@yahoo.com>
On May 20, 2005, at 11:16 PM, Daniel Valencia wrote:
> I know this may sound funny, but I'm still wrestling
> with libpcap because I send packets and I cannot read
> them. I tried also some example code of a toy sniffer
> from a tutorial to pcap, and it behaves just like my
> code. As my code is pretty compact, I'm posting it
> here.
What you need to do is run "tcpdump -envvvX" and take a careful look at
the packets being sent.
In particular, watch out for packets containing something like this:
"[bad tcp cksum 9f96 (->e867)!]", this generally means you have
misconstructed the packet-- watch out for required padding to align the
start of each protocol block.
However, you really need to run this command from another machine in
order to see what is really going out on the wire, running tcpdump
locally means it intercepts the traffic while it is still being
processed by the stack, and TXCSUM hardware or the like might change
things...
-- -Chuck _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- In reply to: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- Next in thread: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|