Re: capturing ethernet frames

From: James Meng (mwcom20022001_at_yahoo.com)
Date: 10/27/04

  • Next message: Levente KOVACS: "Re: capturing ethernet frames"
    Date: Wed, 27 Oct 2004 16:35:35 +0800
    
    

    Tom Brown wrote:
    > 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?

    Raw socket is used to send frame. while you need to use packet socket
    to listen.

    James Meng
    >
    > Thanks,
    > Tom


  • Next message: Levente KOVACS: "Re: capturing ethernet frames"

    Relevant Pages