]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldpd: fix timer initialization when checksum is 0
authorVincent Bernat <vincent@bernat.im>
Wed, 3 Dec 2014 21:05:34 +0000 (22:05 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 3 Dec 2014 21:05:34 +0000 (22:05 +0100)
commit280f28da51533399692867a74443a390b2264ee9
tree1c8a9b2ac0e7d41a55629df51f88fe3ba57d6b35
parent324d73a32c0a14cacc7c95467370e9d32693a9ab
lldpd: fix timer initialization when checksum is 0

If the checksum computed over the port happens to be 0, the LLDPDU is
never scheduled for emission on this port. We ensure that a computed
checksum is never 0. If two different ports happen to have the same
checksum, we consider it unlikely enough to bear with the fact that the
timer will not be reset in this case.
src/daemon/lldpd.c