lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #49662] UDP layer should filter incoming multicast dat


From: Sam Kearney
Subject: [lwip-devel] [bug #49662] UDP layer should filter incoming multicast datagrams against the bound IP address
Date: Mon, 21 Nov 2016 16:43:59 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?49662>

                 Summary: UDP layer should filter incoming multicast datagrams
against the bound IP address
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: skearney
            Submitted on: Mon 21 Nov 2016 04:43:57 PM GMT
                Category: UDP
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: Other

    _______________________________________________________

Details:

Hi,

First a disclaimer: I'm not sure if this is the right place to register this
gripe; I couldn't find a forum where someone could tell me if I'm being stupid
or missing a compile-time option to change this behavior. So, sorry in advance
if that's the case.

I am attempting to use lwIP 2.0.0 through the sockets API to support a
higher-level protocol that makes heavy use of UDP multicast and unicast
traffic on the same port. I'm finding that if I bind a socket to the specific
interface IP address (rather than INADDR_ANY), that socket will still receive
datagrams addressed to its port and a multicast address to which some other
socket has subscribed. This seems to be due to the logic in
udp_input_local_match(), which lets through any datagram addressed to a
multicast address.

We have existing ports of our protocol for Windows, Mac OSX, Debian Linux and
VxWorks, and all of those platforms filter incoming multicast datagrams
against a socket's bound address in addition to the port. I hope this is
sufficient justification to change this behavior, since standardization of
multicast at the transport layer seems to be light.

It's difficult to add application-layer filtering to deal with this, since the
lwIP sockets API doesn't seem to provide a way  to get the
<em>destination</em> address of an incoming datagram (this is possible in BSD
sockets with the recvmsg function).




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?49662>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]