From 4db49b2ee5196c376b05ec0adfd5ebe4f1731870 Mon Sep 17 00:00:00 2001 From: logicog Date: Sun, 18 Jan 2026 18:03:20 +0100 Subject: [PATCH] Add simulation backend for dhcp/dhcpd --- tools/httpd_sim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/httpd_sim.c b/tools/httpd_sim.c index cf80916..3edcceb 100644 --- a/tools/httpd_sim.c +++ b/tools/httpd_sim.c @@ -121,7 +121,8 @@ void send_basic_info(int socket) { char *response = "HTTP/1.1 200 OK\r\n" "Content-Type: application/json; charset=UTF-8\r\n\r\n" - "{\"ip_address\":\"192.168.10.247\",\"ip_gateway\":\"192.168.2.22\",\"ip_netmask\":\"255.255.255.0\",\"mac_address\":\"1c:2a:a3:23:00:02\",\"sw_ver\":\"" VERSION_SW "\",\"hw_ver\":\"SWGT024-V2.0\"}"; + "{\"ip_address\":\"192.168.10.247\",\"ip_gateway\":\"192.168.2.22\",\"ip_netmask\":\"255.255.255.0\",\"mac_address\":\"1c:2a:a3:23:00:02\",\"sw_ver\":\"" VERSION_SW "\",\"hw_ver\":\"SWGT024-V2.0\"" + ",\"dhcp_client\":1,\"dhcp_server\":0}"; write(socket, response, strlen(response)); }