]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldpd: decrease probability of collisions on port checksums
authorVincent Bernat <vincent@bernat.im>
Wed, 3 Dec 2014 23:56:51 +0000 (00:56 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 3 Dec 2014 23:56:51 +0000 (00:56 +0100)
commite172ee7b999a9b6438284ec89e989a73eda4f3f3
treeb7ce4f4de68e3410d7e82978f6285c9f556ba161
parent24cce58cfc1bc9065113059ecec7bd1d4bab4428
lldpd: decrease probability of collisions on port checksums

Instead of wasting a whole bit (getting 2**15 valid values), just waste
one special value (2**16-1 valid values).
src/daemon/lldpd.c