Merge pull request #332 from DrDoof/fix/igmp-enable-gate

igmp: only hand reports to the CPU while snooping is on
This commit is contained in:
logicog
2026-08-17 07:58:18 +02:00
committed by GitHub
3 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -1540,10 +1540,12 @@ void cmd_parser(void) __banked
} else if (cmd_compare(0, "igmp")) {
if (cmd_compare(1, "on"))
igmp_enable();
else if (cmd_compare(1, "off"))
igmp_setup();
else if (cmd_compare(1, "show"))
igmp_show();
else
igmp_setup(); // Reverts to default with IP-MC being flooded
print_string("Error: igmp on|off|show\n");
} else if (cmd_compare(0, "hostname")) {
/* "hostname" alone reports the current name; "hostname <text>"
* sets it, sanitized to JSON-safe printable ASCII. A name with