]> git.ipfire.org Git - thirdparty/lldpd.git/commit - src/lldpd.c
Increase refcount of the local chassis when a new port is created.
authorVincent Bernat <bernat@luffy.cx>
Wed, 10 Mar 2010 07:22:40 +0000 (08:22 +0100)
committerVincent Bernat <bernat@luffy.cx>
Wed, 10 Mar 2010 07:22:40 +0000 (08:22 +0100)
commit9df5ec3d783675d4ac91bd2953551d031a52e302
tree3fa1d1dbe6b652509e6ae96cea7de063425f9f95
parent4f6020424f337b7a29ead12ddba2f51fe07010e8
Increase refcount of the local chassis when a new port is created.

Also add an explanation of refcount handling in a part of the code
that was a bit difficult to follow. Now, each time that p_chassis is
affected to a new value, c_refcount should be updated accordingly.
src/lldpd.c