[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Multiple netifs: UDP broadcasts on a certain netif show
From: |
address@hidden |
Subject: |
Re: [lwip-users] Multiple netifs: UDP broadcasts on a certain netif showing up on udps connected to a different netif |
Date: |
Wed, 21 Feb 2018 19:55:48 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 21.02.2018 14:39, Steinberg Michael wrote:
seemingly the udp_input code is serving UDP broadcasts originating from a
certain netif to UDP sockets/pcbs bound to the correct port on a different
netif.
I'm not aware of that, could you file a bug until this is sorted out?
Patching udp.c:255 following to:
#endif /* SO_REUSE */
) && (inp->ip_addr.addr == pcb->local_ip.addr)) {
/* the first unconnected matching PCB */
uncon_pcb = pcb;
seems like a working short term fix.
That seems to prevent pcbs with a local IP of 'any' from receiving such
packets.
Simon