mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-01 04:12:07 +00:00
Fixed bug #17200, added check for broadcast destinations for PCBs bound to a unicast address.
This commit is contained in:
parent
d734cd986c
commit
7d16087789
@ -53,6 +53,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2006-08-17 Christiaan Simons
|
||||||
|
* udp.c: Fixed bug #17200, added check for broadcast
|
||||||
|
destinations for PCBs bound to a unicast address.
|
||||||
|
|
||||||
2006-08-07 Christiaan Simons
|
2006-08-07 Christiaan Simons
|
||||||
* api_msg.c: Flushing TCP output in do_close() (bug #15926).
|
* api_msg.c: Flushing TCP output in do_close() (bug #15926).
|
||||||
|
|
||||||
|
@ -145,7 +145,8 @@ udp_input(struct pbuf *p, struct netif *inp)
|
|||||||
/* compare PCB local addr+port to UDP destination addr+port */
|
/* compare PCB local addr+port to UDP destination addr+port */
|
||||||
if ((pcb->local_port == dest) &&
|
if ((pcb->local_port == dest) &&
|
||||||
(ip_addr_isany(&pcb->local_ip) ||
|
(ip_addr_isany(&pcb->local_ip) ||
|
||||||
ip_addr_cmp(&(pcb->local_ip), &(iphdr->dest)))) {
|
ip_addr_cmp(&(pcb->local_ip), &(iphdr->dest)) ||
|
||||||
|
ip_addr_isbroadcast(&(iphdr->dest), inp))) {
|
||||||
local_match = 1;
|
local_match = 1;
|
||||||
if ((uncon_pcb == NULL) &&
|
if ((uncon_pcb == NULL) &&
|
||||||
((pcb->flags & UDP_FLAGS_CONNECTED) == 0)) {
|
((pcb->flags & UDP_FLAGS_CONNECTED) == 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user