Re: capturing ethernet frames
From: Norm Dresner (ndrez_at_att.net)
Date: 10/27/04
- Previous message: Tom Brown: "capturing ethernet frames"
- In reply to: Tom Brown: "capturing ethernet frames"
- Next in thread: Tom Brown: "Re: capturing ethernet frames"
- Reply: Tom Brown: "Re: capturing ethernet frames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 26 Oct 2004 23:00:37 GMT
"Tom Brown" <brown@esteem.com> wrote in message
news:522588e4.0410260943.7f3b0e10@posting.google.com...
> I can send raw ethernet frames by calling socket(), then bind() then
> calling send() with my frame as the data. My frame is a broadcast
> packet with some data. Now I want to turn around and capture packets
> off of eth0. I want to sniff for particular packets that are responses
> to my broadcast packet. If I call recv() right after my send() it will
> just hang. So what do I need to do to capture packets?
>
> Thanks,
> Tom
Why not look at the source code for something like tcpdump?
Norm
- Previous message: Tom Brown: "capturing ethernet frames"
- In reply to: Tom Brown: "capturing ethernet frames"
- Next in thread: Tom Brown: "Re: capturing ethernet frames"
- Reply: Tom Brown: "Re: capturing ethernet frames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|