]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldpd: decrease probability of collisions on port checksums
authorVincent Bernat <vincent@bernat.im>
Thu, 4 Dec 2014 00:02:29 +0000 (01:02 +0100)
committerVincent Bernat <vincent@bernat.im>
Thu, 4 Dec 2014 00:02:29 +0000 (01:02 +0100)
commit1f68881c2914a568c882422467067c4c1c7f9346
tree2d92c456ab56ff07fc0f9d70ed8cea35de46938c
parente172ee7b999a9b6438284ec89e989a73eda4f3f3
lldpd: decrease probability of collisions on port checksums

Instead of a 16-bit checksum, we use two 16-bit checkums, one for each
half of the serialized port. We now need more than 70000 ports to get a
50% chance of collision while we previously needed only 300 ports.
src/daemon/lldpd.c
src/lldpd-structs.h