]> git.ipfire.org Git - thirdparty/lldpd.git/commit
cdp: compute default platform when updating the chassis
authorVincent Bernat <vincent@bernat.im>
Wed, 12 Aug 2015 15:01:46 +0000 (17:01 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 12 Aug 2015 15:01:46 +0000 (17:01 +0200)
commit96beef68762fff43542609c6d0c4ef2ccc066c83
treeaa0178ca3a3e85edaaece68055bcc65681a9df5d
parentfc37317f7cd2259fb37ae0fe3dae2a810638f3cd
cdp: compute default platform when updating the chassis

Like for other data, collect the default platform name for CDP in
`lldpd_update_localchassis()`. Code in `cdp.c` should be independant of
the environment. Also, fix the unittests.
src/daemon/lldpd.c
src/daemon/protocols/cdp.c
tests/check_cdp.c