[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #55171] Binding UDP PCB with different IP type PCBs do
From: |
Dirk Ziegelmeier |
Subject: |
[lwip-devel] [bug #55171] Binding UDP PCB with different IP type PCBs does not work |
Date: |
Thu, 6 Dec 2018 08:39:57 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0 |
URL:
<https://savannah.nongnu.org/bugs/?55171>
Summary: Binding UDP PCB with different IP type PCBs does not
work
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: dziegel
Submitted on: Thu 06 Dec 2018 01:39:55 PM UTC
Category: UDP
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: dziegel
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
reported by Email from Stian Skjelstad:
Hi
I just updated my code to the recent master, and this commit breaks my code:
I have two UDP sockets listening at the same port. One a IPv4 only PCB, and
when trying to listen with an IPv6 only PCB at the same port, it fails.
from udp.c after this commit:
for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
...
if ((ipcb->local_port == port) &&
(ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr)
||
ip_addr_isany(&ipcb->local_ip)))
return ERR_USE;
....
ip_addr_isany should be IP_IS_ANY_TYPE_VAL instead, so that it only hits
dual-stack listeners?
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?55171>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
- [lwip-devel] [bug #55171] Binding UDP PCB with different IP type PCBs does not work,
Dirk Ziegelmeier <=