]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: introduce ospf_packet_minlen[] (BZ#705)
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 30 Jan 2012 11:41:39 +0000 (15:41 +0400)
committerDavid Lamparter <equinox@diac24.net>
Mon, 12 Mar 2012 10:05:14 +0000 (11:05 +0100)
commit75c8eabbb5d3dc8aa21b61e8700ab939ce272f5c
tree9ecfa0b4bedf00abb544fea8b9242e59af31a5b6
parent7e0e2cb14ca16ce9eaca3b0300c1ffa92a6a104b
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
ospfd/ospf_packet.c
ospfd/ospf_packet.h