From 57e7d7dd2a0da8dea923c1bad6d42b400169cfb4 Mon Sep 17 00:00:00 2001 From: logicog Date: Wed, 31 Dec 2025 19:50:38 +0100 Subject: [PATCH] Do not drop DHCP packets for a DHCP-server --- uip/uip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/uip.c b/uip/uip.c index 6240504..6f184db 100644 --- a/uip/uip.c +++ b/uip/uip.c @@ -919,7 +919,7 @@ uip_process(u8_t flag) __banked /* Check if we have a DHCP packet, otherwise check if the packet is destined for our IP address. */ #if !UIP_CONF_IPV6 - if(!(BUF->proto == UIP_PROTO_UDP && UDPBUF->destport == HTONS(DHCP_CLIENT_PORT))) { + if(!(BUF->proto == UIP_PROTO_UDP && (UDPBUF->destport == HTONS(DHCP_CLIENT_PORT) || UDPBUF->destport == HTONS(DHCP_SERVER_PORT)) )) { if(!uip_ipaddr_cmpx(BUF->destipaddr, uip_hostaddr)) { UIP_STAT(++uip_stat.ip.drop); goto drop;