From 277c7aa518d259a19445eae161df0d2859ad66dd Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Sun, 9 Oct 2011 14:30:49 +0200 Subject: [PATCH] fixed bug #34447 LWIP_IP_ACCEPT_UDP_PORT(dst_port) wrong --- CHANGELOG | 3 +++ src/core/ipv4/ip.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index b461020d..b9915659 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -49,6 +49,9 @@ HISTORY ++ Bugfixes: + 2011-10-09: Simon Goldschmidt + * ip4.c: fixed bug #34447 LWIP_IP_ACCEPT_UDP_PORT(dst_port) wrong + 2011-09-27: Simon Goldschmidt * tcp_in.c, tcp_out.c: Reset pcb->unsent_oversize in 2 more places... diff --git a/src/core/ipv4/ip.c b/src/core/ipv4/ip.c index 7b5f300e..91235a15 100644 --- a/src/core/ipv4/ip.c +++ b/src/core/ipv4/ip.c @@ -83,7 +83,7 @@ || (LWIP_IP_ACCEPT_UDP_PORT(port))) #elif defined(LWIP_IP_ACCEPT_UDP_PORT) /* LWIP_DHCP && defined(LWIP_IP_ACCEPT_UDP_PORT) */ /* accept custom port only */ -#define IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(port) (LWIP_IP_ACCEPT_UDP_PORT(dst_port)) +#define IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(port) (LWIP_IP_ACCEPT_UDP_PORT(port)) #else /* LWIP_DHCP && defined(LWIP_IP_ACCEPT_UDP_PORT) */ /* accept DHCP client port only */ #define IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(port) ((port) == PP_NTOHS(DHCP_CLIENT_PORT))