mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
The L2 page's Delete button removes any table entry by index, including the entry for the switch's own MAC on the CPU port. Without that entry unicast to the management address is no longer delivered to the CPU, so management goes dark until the CPU happens to transmit again and the entry is relearned. Compare the entry's MAC against uip_ethaddr before rewriting it and answer result 0 for the switch's own address, as for a missing entry. The compare is inline: this handler sits at the bottom of the uIP call chain, where every extra call level costs internal RAM.