public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Ristuccia <brian@ristuccia.com>
To: linux-kernel@vger.kernel.org
Cc: familiar@handhelds.org
Subject: how to receive UDP packet at interface from interface's IP
Date: Tue, 11 Dec 2001 00:12:14 -0500	[thread overview]
Message-ID: <20011211001213.X22467@osiris.978.org> (raw)

Hi folks,

I'm currently working on getting status reporting going on my merlin CDPD
modem. The merlin is a PCMCIA type II card that works as a standard serial
device and can be made to talk SLIP or PPP by issuing certain Hayes-style AT
commands. Combined with a handheld PC like the Compaq IPAQ, it makes a great
tool for remote system administration, email, text web browsing, etc.

One nifty thing about the modem is that while in SLIP or PPP mode, one can
send a UDP packet to 10.0.0.1:4950. Using a protocol called MSCI, the modem
will let you query things like signal strength, link quality, etc. But my
problem is that the modem sends the response UDP packets with the source and
destination IP address both matching that of the PPP interface to which the
modem is attached and I never see the data on my listening socket. For
example, if the PPP interface's IP address was 192.168.0.100, the packets
would come from 192.168.0.100 to 192.168.0.100. Even when I disable
rp_filter, I can not receive the packets on my listening socket. I can see
the packets with tcpdump, but they never make it to the socket.

Is there any reason why the kernel is not sending the contents of these
packets to the socket? If so, is there an easy way to change the behavior?
I've looked in net/ipv4/ at files ip_input.c fib_frontend.c and udp.c, but I
can't see where the packet might be getting discarded. Is there any way to
receive this type of packet through a normal UDP socket, or should I just
hack up a userspace workaround with libpcap?

Any hints will be very much appreciated. Thanks.

(Please respect my Mail-Followup-To header when replying).

-- 
Brian Ristuccia
brian@ristuccia.com
bristucc@cs.uml.edu

                 reply	other threads:[~2001-12-11  5:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011211001213.X22467@osiris.978.org \
    --to=brian@ristuccia.com \
    --cc=familiar@handhelds.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox