]> git.proxmox.com Git - mirror_frr.git/commit - ospfd/ospf_errors.c
ospfd: ospfd core if hello packet exceeds link MTU
authorNitin Soni <nsoni@cumulusnetworks.com>
Thu, 24 Jan 2019 08:44:42 +0000 (00:44 -0800)
committerNitin Soni <nsoni@cumulusnetworks.com>
Mon, 28 Jan 2019 04:27:58 +0000 (20:27 -0800)
commit9b18d58e17d7e84f17114e5f4a6461dd7e250580
tree8fc85feba66b6c0c5f1997cc0dd13b039cd06f52
parent262d4dda2aa009f200370a4c4635899ceb85ab90
ospfd: ospfd core if hello packet exceeds link MTU

Ospfd cored because of an assert when we try to write more than the MTU
size to the ospf packet buffer stream. The problem is - we allocate only MTU
sized buffer. The expectation is that Hello packets are never large
enough to approach MTU. Instead of crashing, this fix discards hello and
logs an error. One should not have so many neighbors behind an
interface.

Ticket: CM-22380
Signed-off-by: Nitin Soni <nsoni@cumulusnetworks.com>
Reviewed-by: CCR-8204
ospfd/ospf_errors.c
ospfd/ospf_errors.h
ospfd/ospf_packet.c