]> git.ipfire.org Git - thirdparty/lldpd.git/commit
frame: fix CDP checksum
authorudbxtd2008 <udbxtd2008@163.com>
Sun, 15 Jun 2014 07:05:06 +0000 (15:05 +0800)
committerVincent Bernat <vincent@bernat.im>
Sun, 15 Jun 2014 07:28:46 +0000 (09:28 +0200)
commita5a60bbf97ed6fe7f8fbc0bc4db71cdad80dd211
tree95f46a6b38625d40fbe72d4f8b0708080d2198bf
parentf4da5f84837ca3aca4daddee639a07f5cfb18eab
frame: fix CDP checksum

The checksum of CDP frame is calculated off-by-one error when the length
of frame is odd, and the highest bit of the last octet is 1, which is as
a known question mentioned in wireshark.
src/daemon/frame.c