From acaa80b732a130234c59952827a12b375cc3991a Mon Sep 17 00:00:00 2001 From: logicog Date: Thu, 25 Dec 2025 21:22:09 +0100 Subject: [PATCH] Make dhcpd server implementation available --- cmd_parser.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cmd_parser.c b/cmd_parser.c index 8b03c49..bb37703 100644 --- a/cmd_parser.c +++ b/cmd_parser.c @@ -992,6 +992,20 @@ void cmd_parser(void) __banked stp_off(); stpEnabled = 0; } + } else if (cmd_compare(0, "dhcp")) { + if (cmd_words_b[1] > 0 && cmd_compare(1, "on")) { + dhcp_start(); + } else { + print_string("DHCP disabled\n"); + dhcp_stop(); + } + } else if (cmd_compare(0, "dhcpd")) { + if (cmd_words_b[1] > 0 && cmd_compare(1, "on")) { + dhcpd_start(); + } else { + print_string("DHCP Server disabled\n"); + dhcpd_stop(); + } } else if (cmd_compare(0, "pvid") && cmd_words_b[1] > 0 && cmd_words_b[2] > 0) { __xdata uint16_t pvid; uint8_t port;