]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Use chassis ID when sending EDP packets.
authorVincent Bernat <bernat@luffy.cx>
Sun, 24 May 2009 19:05:04 +0000 (21:05 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sun, 24 May 2009 19:05:04 +0000 (21:05 +0200)
src/edp.c

index c3f02fee291f9c01246942d164b14066cf2b382a..99d561bca49f252de79f01d88cde72634fd07115 100644 (file)
--- a/src/edp.c
+++ b/src/edp.c
@@ -94,7 +94,7 @@ edp_send(struct lldpd *global, struct lldpd_chassis *chassis,
                      POKE_UINT32(0) && /* Len + Checksum */
                      POKE_UINT16(seq) &&
                      POKE_UINT16(0) &&
-                     POKE_BYTES(&hardware->h_lladdr, sizeof(hardware->h_lladdr))))
+                     POKE_BYTES(chassis->c_id, ETH_ALEN)))
                        goto toobig;
                seq++;