]> git.ipfire.org Git - thirdparty/lldpd.git/commit
Fix bug in CDP packet generation: CDP version was always 1.
authorVincent Bernat <bernat@luffy.cx>
Tue, 7 Jul 2009 09:42:35 +0000 (11:42 +0200)
committerVincent Bernat <bernat@luffy.cx>
Wed, 30 Sep 2009 12:21:20 +0000 (14:21 +0200)
commitbe685f6debbc8e4c3afe7433837e93aa2c96ad1d
tree78d1237e0107b4c2416ec816e6a7bdc7463b855a
parentcd697ad19a8f77453d4349728bf3d7f22bb1cf94
Fix bug in CDP packet generation: CDP version was always 1.

"(a && b) || c" gives 0 or 1, not b or c. Replace with a?b:c.
src/cdp.c