]> git.puffer.fish Git - matthieu/frr.git/commit
ospf6d: make some old sizing checks assertions
authorDenis Ovsienko <infrastation@yandex.ru>
Sat, 8 Oct 2011 13:22:45 +0000 (17:22 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 13 Dec 2011 15:27:14 +0000 (19:27 +0400)
commitfa0796661c9cd68f20882ceb16e9d304a12a6acd
tree67a1b7b3254f8276ab654505d06bb74fd76faa61
parent0ead5c183c36b36c8545ef8b04b778f5238a5db9
ospf6d: make some old sizing checks assertions

As long as ospf6_packet_examin() is now the single checkpoint for
received packets, most of the old checks performed elsewhere can
be converted into assert() constructs. Malformed input data at
respective points can be attributed solely to a programming error,
not a malformed packet.

* ospf6_message.c
  * ospf6_hello_print()
  * ospf6_dbdesc_print()
  * ospf6_lsreq_print()
  * ospf6_lsupdate_print()
  * ospf6_lsack_print()
  * ospf6_hello_recv()
  * ospf6_dbdesc_recv_master()
  * ospf6_dbdesc_recv_slave()
  * ospf6_lsreq_recv()
  * ospf6_lsupdate_recv()
  * ospf6_lsupdate_recv()
  * ospf6_lsack_recv()
  * ospf6_receive()
ospf6d/ospf6_message.c