From: Breuninger Matthias (ETAS-ICA/XPC-Fe3) Date: Mon, 22 Jun 2026 10:27:13 +0000 (+0200) Subject: fix: Activate Tx fast start when there is a local change X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=HEAD;p=thirdparty%2Flldpd.git fix: Activate Tx fast start when there is a local change TX fast start shall also be initiated when something locally changes. See IEEE802.1ab section 9.2.7.8, which specifies to re-initialize the variable `txFast` on a local change, to make sure that neighbors receive our changes. --- diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index d20f1205..1b0a2f84 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -414,6 +414,13 @@ lldpd_reset_timer(struct lldpd *cfg) log_debug("localchassis", "change detected for port %s, resetting its timer", hardware->h_ifname); + /* Activate fast start on TX packet change (see IEEE802.1ab-2016 #9.2.7.8) */ + if (hardware->h_cfg->g_config.c_enable_fast_start) { + log_debug("localchassis", + "%s: entering fast start due to local port change", + hardware->h_ifname); + hardware->h_tx_fast = hardware->h_cfg->g_config.c_tx_fast_init; + } hardware->h_ifindex_changed = 0; levent_schedule_pdu(hardware); }