mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
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:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user