]> git.ipfire.org Git - thirdparty/lldpd.git/commit - src/daemon/lldpd.c
lldpd: fix chassis copy
authorVincent Bernat <bernat@luffy.cx>
Tue, 1 May 2012 08:54:05 +0000 (10:54 +0200)
committerVincent Bernat <bernat@luffy.cx>
Tue, 1 May 2012 08:54:05 +0000 (10:54 +0200)
commitd938c51f124065e62bf002352895a073e3678198
tree8cf195cbbecf5e0a9cc83a10147e60d657f82b53
parent3f0d19bb5a7a5bbcced7bdb1b0652f035bb3b418
lldpd: fix chassis copy

When a chassis is already known, we copy the new one over the old one
and keep the old one. With the addition of management addresses as a
list, the copy was incorrect. We fix it. This is kludgy. A better way
would be to use marshaling but marshaling is not able to do inplace
copy and it is not able to restore full list (previous pointer is not
restored).
src/lldpd.c
src/lldpd.h