lacp: keep comments to the frame layout

The comments repeated the documentation, described tests or explained
the code to its author. What stays describes the LACPDU structures. The
timer constants are decimal, in units of the LACP timer.
This commit is contained in:
d00f committed 2026-10-12 22:05:56 +02:00
1 parent 4a14f50932
commit 73b23808cf
8 files changed
+52 -261

No files matched your search

+1 -3
View File
@@ -539,8 +539,6 @@ void parse_lag(void)
return;
}
/* "lag <n> lacp [port]..." - run LACP on this LAG with the given candidate
* ports; "lag <n> lacp off" (or no ports) removes the LAG from LACP. */
uint8_t w = 2;
__xdata uint8_t lacp_mode = 0;
if (cmd_words_len > 2 && cmd_compare(2, "lacp")) {
@@ -559,7 +557,7 @@ void parse_lag(void)
members |= ((uint16_t)1) << atoi_results_u8;
}
if (lacp_mode) {
lacp_lag_set(group, members); /* 0 ports also valid: removes the LAG */
lacp_lag_set(group, members);
} else {
lacp_lag_set(group, 0);
port_lag_members_set(group, members);