mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
Ignore DHCP for static IP config
This commit is contained in:
1 parent
818f99b286
commit
c49b472f92
3 files changed
+6
-4
No files matched your search
+1
-1
@@ -694,7 +694,7 @@ static void rx_ip(struct mg_tcpip_if *ifp, struct pkt *pkt) {
|
||||
MG_DEBUG(("UDP %M:%hu -> %M:%hu len %u", mg_print_ip4, &pkt->ip->src,
|
||||
mg_ntohs(pkt->udp->sport), mg_print_ip4, &pkt->ip->dst,
|
||||
mg_ntohs(pkt->udp->dport), (int) pkt->pay.len));
|
||||
if (pkt->udp->dport == mg_htons(68)) {
|
||||
if (ifp->enable_dhcp_client && pkt->udp->dport == mg_htons(68)) {
|
||||
pkt->dhcp = (struct dhcp *) (pkt->udp + 1);
|
||||
mkpay(pkt, pkt->dhcp + 1);
|
||||
rx_dhcp_client(ifp, pkt);
|
||||
|
||||
Reference in new issue
Block a user