]> git.proxmox.com Git - mirror_frr.git/commit - ospf6d/ospf6_message.c
ospf6d: check MTU with message header size in mind
authorDmitrij Tejblum <tejblum@yandex-team.ru>
Tue, 12 Jul 2011 13:53:33 +0000 (17:53 +0400)
committerDmitrij Tejblum <tejblum@yandex-team.ru>
Thu, 17 Nov 2011 17:50:47 +0000 (21:50 +0400)
commit681b84e8f50a09ff871d9e6536e8d8afb115ce13
tree6821d2c2472934073cc86ff332de7339105af4de
parent3cf1288bfd855e339fe2283c79a3ef3746e61737
ospf6d: check MTU with message header size in mind

* ospf6_message.c: (ospf6_packet_max): new function, return maximum IPv6
  payload on an interface; (ospf6_hello_send, ospf6_dbdesc_send,
  ospf6_dbdesc_send_newone, ospf6_lsreq_send, ospf6_lsupdate_send_neighbor,
  ospf6_lsupdate_send_interface, ospf6_lsack_send_neighbor,
  ospf6_lsack_send_interface): compare message size with the maximum
  payload instead of the MTU.
ospf6d/ospf6_message.c