]> git.ipfire.org Git - thirdparty/lldpd.git/commit
Fixed some boundary conditions in code that cleans
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Sat, 8 Jun 2013 08:30:43 +0000 (10:30 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sat, 8 Jun 2013 08:30:43 +0000 (10:30 +0200)
commitbea0d76429a214c7d2db31b464e0c71f2e989c91
tree3601c3dca159adb06630b8a5f4d5220dde905b96
parent5aeda65433fd41b7bb67f908d8c4741f045ce508
Fixed some boundary conditions in code that cleans
remote ports on ttl expiry.

Problem:
- ttl expires, cleanup check fails to detect that ttl has elapsed
and skips cleanup
- After that, The ttl timer set routine again ends up setting the timer to ttl
resulting in 2 * ttl time for the expired rport to get released

(The test I did was with 1 port)
src/daemon/event.c
src/lldpd-structs.c