lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #47447] UDP: use netif addr as source for multicast bo


From: Joel Cunningham
Subject: [lwip-devel] [bug #47447] UDP: use netif addr as source for multicast bound sockets
Date: Thu, 17 Mar 2016 19:46:46 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0

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

                 Summary: UDP: use netif addr as source for multicast bound
sockets
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jcunningham
            Submitted on: Thu 17 Mar 2016 07:46:45 PM GMT
                Category: UDP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

Sockets bound to multicast addresses fail to transmit in udp_sendto_if()
because pcb->local_ip doesn't match the IP address of the selected output
netif.

The attached patch handles this case similarly to the INADDR_ANY case by using
the netif address as the source IP address.

Additionally, I think this problem also applies to sockets bound to global
broadcast and subnet broadcast addresses, but I don't have an example on hand
to test with



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 17 Mar 2016 07:46:45 PM GMT  Name:
0001-udp-use-netif-addr-as-src-for-multicast-sockets.patch  Size: 1kB   By:
jcunningham

<http://savannah.nongnu.org/bugs/download.php?file_id=36676>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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