]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: fix packet length check for auth/LLS cases
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 20 Feb 2012 19:08:10 +0000 (23:08 +0400)
committerDavid Lamparter <equinox@diac24.net>
Mon, 12 Mar 2012 10:05:30 +0000 (11:05 +0100)
commitb29adf9c3e69f298f748564a20abdf7274bbc549
tree1b1d18c542fa6cae9f4d7f7a6e559a23b0bdafc3
parent4e31de792ec5e48a97360b5b86196b4fa02996a3
ospfd: fix packet length check for auth/LLS cases

An OSPFv2 packet with trailing data blocks (authentication and/or
link-local signaling) failed the recently implemented packet length
check, because trailing data length isn't counted in the packet header
"length" field. This commit fixes respective check conditions.

* ospf_packet.c
  * ospf_packet_examin(): use "bytesdeclared" instead of "bytesonwire"
ospfd/ospf_packet.c