]> git.puffer.fish Git - mirror/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>
Mon, 17 Oct 2011 14:45:26 +0000 (18:45 +0400)
commit484af2c2e0efe660e00e27647a19f1837a7fa437
treea0556cdc4d7d5bb47a0ca8a88e4b68ad839fe1ca
parentf17b65213712f324314c58866c4f4f8ed9c95dc7
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