| commit | 75c8eabbb5d3dc8aa21b61e8700ab939ce272f5c | [log] [tgz] |
|---|---|---|
| author | Denis Ovsienko <infrastation@yandex.ru> | Mon Jan 30 15:41:39 2012 +0400 |
| committer | David Lamparter <equinox@diac24.net> | Mon Mar 12 11:05:14 2012 +0100 |
| tree | 9ecfa0b4bedf00abb544fea8b9242e59af31a5b6 | |
| parent | 7e0e2cb14ca16ce9eaca3b0300c1ffa92a6a104b [diff] |
ospfd: introduce ospf_packet_minlen[] (BZ#705)
This commit ports some of the OSPFv3 packet reception checks
to OSPFv2.
* ospf_packet.c
* ospf_packet_minlen[]: a direct equivalent of ospf6_packet_minlen[]
* ospf_packet_examin(): new function designed after the first part
of ospf6_packet_examin()
* ospf_read(): verify received packet with ospf_packet_examin()
* ospf_packet.h: add convenience macros