]> 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>
Tue, 7 Jul 2009 09:42:35 +0000 (11:42 +0200)
commita8db600793bb333607dd766a0fcf809d77cfe58a
treeca30afbfff3e3956a0a174d4d322607948b00d20
parent7a00807502e7c7e477c430bf33bc17c096fb5e03
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