]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
daemon/cdp: fix FDP MAC address
authorVincent Bernat <vincent@bernat.ch>
Fri, 8 May 2026 20:56:44 +0000 (22:56 +0200)
committerVincent Bernat <vincent@bernat.ch>
Fri, 8 May 2026 20:58:03 +0000 (22:58 +0200)
FDP never worked?

NEWS
src/daemon/protocols/cdp.c

diff --git a/NEWS b/NEWS
index eefb58a62bf0348ec1e9138f5ed8da5cbaf247aa..81d4bda0dc056dee3c613b0ff453095081fbe0ff 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+lldpd (1.0.22)
+ * Fix:
+   + Fix FDP MAC address
+
 lldpd (1.0.21)
  * Changes:
    + Add "configure lldp portdescription-source" to choose how to populate port description (#763)
index 8c53a018f5a2e2edaa825f2acedea0e17f36c21f..08bad84fdc1beb39973b54281159cf1a983f5cef 100644 (file)
@@ -291,7 +291,7 @@ cdp_decode(struct lldpd *cfg, char *frame, int s, struct lldpd_hardware *hardwar
        int software_len = 0, platform_len = 0, proto, version, nb, caps;
        const unsigned char cdpaddr[] = CDP_MULTICAST_ADDR;
 #  ifdef ENABLE_FDP
-       const unsigned char fdpaddr[] = CDP_MULTICAST_ADDR;
+       const unsigned char fdpaddr[] = FDP_MULTICAST_ADDR;
        int fdp = 0;
 #  endif
        u_int8_t *pos, *tlv, *pos_address, *pos_next_address;