Problem with Spanning Tree Protocol #2524
iosofter
started this conversation in
Feature requests
Replies: 1 comment
-
It would not just appear, we intentionally put it there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running your RP2040 W5500 Ethernet code (7.12-64-g82916a1c), and am getting a lot of unwanted hex dumps on the console, even when using log level MG_LL_NONE.
Enabling MG_LL_DEBUG gives an indication of the source:
Wireshark identifies this as Spanning Tree Protocol coming from the ADSL router, which is a BT home hub, by far the most popular device in England. Remarkably, every 3 seconds it sends out 14 STP messages, and there is no way of preventing this.
Looking at the end of the mg_tcpip_rx function, it would appear that when an unknown Ethernet type is received, the logfile message is qualified by the MG_DEBUG macro, but the mg_hexdump call isn't, so will always be printed. Given the large number of these messages, this is a significant workload for the CPU.
Would it be possible to add the option of silently discarding unknown Ethernet types?
Beta Was this translation helpful? Give feedback.
All reactions