commit | b29adf9c3e69f298f748564a20abdf7274bbc549 | [log] [tgz] |
---|---|---|
author | Denis Ovsienko <infrastation@yandex.ru> | Mon Feb 20 23:08:10 2012 +0400 |
committer | David Lamparter <equinox@diac24.net> | Mon Mar 12 11:05:30 2012 +0100 |
tree | 1b1d18c542fa6cae9f4d7f7a6e559a23b0bdafc3 | |
parent | 4e31de792ec5e48a97360b5b86196b4fa02996a3 [diff] |
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"