Browse Source

fix: ulwip, 找到dhcp包对应的xid后就break,提高效率

??? 6 months ago
parent
commit
64dc5cb538
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/network/ulwip/src/ulwip_dhcp_client.c

+ 1 - 0
components/network/ulwip/src/ulwip_dhcp_client.c

@@ -133,6 +133,7 @@ static int ulwip_dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const
         // LLOGD("传递DHCP数据包");
         if (local_xid == received_xid) {
             ulwip_dhcp_client_run(s_ctxs[i], ptr, total_len);
+            break;
         }
     }
     return ERR_OK;