Sending datagram in raw socket

Discussion in 'Linux Networking' started by Vicky, Oct 25, 2004.

  1. Vicky

    Vicky Guest

    Hello,

    I work in a network 192.168.1.0.
    When I send datagram (from IP 192.168.1.2)
    to IP which doesn't exist in my network
    (e.g. 192.168.1.111), my sniffer installed on
    a computer (192.168.1.1) can see it.

    But, my sniffer has to work on an embedded
    device with Linux. Unfortunatelly, on this
    device, my sniffer can only see datagrams
    sent directly to it and broadcasts. It doesn't
    catch datagrams sent to other computers.

    I wrote a sender application which sends datagrams
    using raw sockets. Now my sniffer on an
    embedded device can catch all datagrams.
    But it is not a solutions for me -- a normal
    computer with my sniffer can catch datagrams
    sent by all applications (not only mine using raw
    sockets). I want the same for an embedded device.

    Maybe an embedded device has wrong kernel
    configuration or something...
    What could be wrong?

    Thanks in advance,
    Vicky.
     
    Vicky, Oct 25, 2004
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.