File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
components/net/lwip_dhcpd Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,24 @@ static void dhcpd_thread_entry(void *parameter)
318318 * dhcp_opt ++ = 0xFF ;
319319 * dhcp_opt ++ = 0x00 ;
320320
321+ #ifdef DHCPD_USING_ROUTER
322+ // DHCP_OPTION_ROUTER
323+ * dhcp_opt ++ = DHCP_OPTION_ROUTER ;
324+ * dhcp_opt ++ = 4 ;
325+ * dhcp_opt ++ = DHCPD_SERVER_IPADDR0 ;
326+ * dhcp_opt ++ = DHCPD_SERVER_IPADDR1 ;
327+ * dhcp_opt ++ = DHCPD_SERVER_IPADDR2 ;
328+ * dhcp_opt ++ = 1 ;
329+ #endif
330+
331+ // DHCP_OPTION_DNS_SERVER, use the default DNS server address in lwIP
332+ * dhcp_opt ++ = DHCP_OPTION_DNS_SERVER ;
333+ * dhcp_opt ++ = 4 ;
334+ * dhcp_opt ++ = 208 ;
335+ * dhcp_opt ++ = 67 ;
336+ * dhcp_opt ++ = 222 ;
337+ * dhcp_opt ++ = 222 ;
338+
321339 // DHCP_OPTION_LEASE_TIME
322340 * dhcp_opt ++ = DHCP_OPTION_LEASE_TIME ;
323341 * dhcp_opt ++ = 4 ;
You can’t perform that action at this time.
0 commit comments