Make dhcpd server implementation available

This commit is contained in:
logicog
2026-03-09 22:06:57 +01:00
parent 233ff5a728
commit acaa80b732
+14
View File
@@ -992,6 +992,20 @@ void cmd_parser(void) __banked
stp_off(); stp_off();
stpEnabled = 0; 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) { } else if (cmd_compare(0, "pvid") && cmd_words_b[1] > 0 && cmd_words_b[2] > 0) {
__xdata uint16_t pvid; __xdata uint16_t pvid;
uint8_t port; uint8_t port;