mirror_frr/ospfd
Saravanan K 9570f7378b ospfd: Remaining packet calculation while fragmenting lsu, ls-ack and ls-req
While fragmenting ospf ls packets, before appending the link state info,
wrong value is checked to see if current packet can fit in another ls info.
Because of this, when a lower mtu is configured, it couldn't fit in even 1
ls ack, which tries to send all the available ls ack in the list in loop.
This keeps allocating memory to send the packet and ends up putting the
packet buffer without ls-ack into deferred send que(ospf_ls_ack_send_delayed).
This infinite loop causes infinite memory being allocated in a loop causing
system to be unstable. This commit takes care of calculating the right value
to compare for checking oif this buffer can fit in more.

Signed-off-by: Saravanan K <saravanank@vmware.com>
2019-03-25 06:23:17 -07:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
ChangeLog.opaque.txt Initial revision 2003-02-03 16:31:16 +00:00
Makefile build: non-recursive ospf* 2017-08-04 11:09:50 +02:00
ospf_abr.c ospfd: handling of OSPF_AREA_RANGE_ADVERTISE flag 2018-09-24 21:46:16 -07:00
ospf_abr.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_api.c *: remove trailing newlines from zlog messages 2019-03-14 18:41:15 +00:00
ospf_api.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_apiserver.c ospfd: remove empty debug 2019-03-19 10:47:00 -04:00
ospf_apiserver.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_asbr.c *: remove casts of XMALLOC / XCALLOC 2019-02-25 23:00:46 +00:00
ospf_asbr.h ospfd: Remove unused function 2018-08-21 08:40:51 -04:00
ospf_ase.c *: list_delete_and_null() -> list_delete() 2018-10-02 11:40:52 +02:00
ospf_ase.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_bfd.c bgpd/ospfd: make bgp and ospf json response a bit more consistent 2018-08-30 12:40:18 +00:00
ospf_bfd.h bgpd/ospfd: make bgp and ospf json response a bit more consistent 2018-08-30 12:40:18 +00:00
ospf_dump_api.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_dump_api.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_dump.c ospfd: strncpy -> strlcpy 2019-02-26 20:50:17 +00:00
ospf_dump.h ospfd: fix symbol collision 2018-10-01 18:18:42 +02:00
ospf_errors.c ospfd: fix link MTU warning style 2019-02-25 16:59:31 +00:00
ospf_errors.h ospfd: ospfd core if hello packet exceeds link MTU 2019-01-27 20:27:58 -08:00
ospf_ext.c *: list_delete_and_null() -> list_delete() 2018-10-02 11:40:52 +02:00
ospf_ext.h *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
ospf_flood.c lib, zebra: add AFI parameter to the ZEBRA_REDISTRIBUTE_DEFAULT_* messages 2019-01-14 11:41:33 -02:00
ospf_flood.h ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_ia.c bgpd isisd ospf6d ospfd: variable shadowing fixes 2018-09-12 16:44:36 +02:00
ospf_ia.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_interface.c Treewide: use ANSI function definitions 2019-01-24 11:21:59 +01:00
ospf_interface.h ospfd: do not remove area structure, while vls are configured 2018-10-25 09:04:15 +02:00
ospf_ism.c *: remove useless return variables 2019-02-25 23:00:16 +00:00
ospf_ism.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_lsa.c Treewide: use ANSI function definitions 2019-01-24 11:21:59 +01:00
ospf_lsa.h ospfd: remove default origin max age lsa 2019-01-15 21:06:58 -08:00
ospf_lsdb.c Treewide: use ANSI function definitions 2019-01-24 11:21:59 +01:00
ospf_lsdb.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_main.c yang, lib: add 'frr-interface.yang' and associated stub callbacks 2018-10-27 16:16:12 -02:00
ospf_memory.c OSPF: Add support to multi-area to Router Info. 2018-11-09 10:09:47 +01:00
ospf_memory.h OSPF: Add support to multi-area to Router Info. 2018-11-09 10:09:47 +01:00
ospf_neighbor.c *: style for flog_warn conversions 2018-09-06 20:56:41 +00:00
ospf_neighbor.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_network.c *: style for EC replacements 2018-09-13 19:38:57 +00:00
ospf_network.h ospfd: basic support for VRF NETNS backend 2018-02-27 11:11:24 +01:00
ospf_nsm.c *: spelchek 2018-10-25 20:10:57 +02:00
ospf_nsm.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_opaque.c *: spelchek 2018-10-25 20:10:57 +02:00
ospf_opaque.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_packet.c ospfd: Remaining packet calculation while fragmenting lsu, ls-ack and ls-req 2019-03-25 06:23:17 -07:00
ospf_packet.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_ri.c *: remove trailing newlines from zlog messages 2019-03-14 18:41:15 +00:00
ospf_ri.h OSPF: Add support to multi-area to Router Info. 2018-11-09 10:09:47 +01:00
ospf_route.c Treewide: use ANSI function definitions 2019-01-24 11:21:59 +01:00
ospf_route.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_routemap.c ospfd: Added changes to track route-map usage 2019-02-04 05:22:39 -08:00
ospf_snmp.c *: remove trailing newlines from zlog messages 2019-03-14 18:41:15 +00:00
ospf_spf.c *: remove trailing newlines from zlog messages 2019-03-14 18:41:15 +00:00
ospf_spf.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_sr.c *: remove trailing newlines from zlog messages 2019-03-14 18:41:15 +00:00
ospf_sr.h OSPFD: Fix Segment Routing Lan Adjacency TLVs 2018-02-19 10:17:41 +01:00
ospf_te.c Treewide: use ANSI function definitions 2019-01-24 11:21:59 +01:00
ospf_te.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_vty.c ospfd: fix some json timer output 2019-03-13 15:25:46 -04:00
ospf_vty.h ospfd: buffer termination (Coverity 23089) 2018-06-14 17:43:19 +02:00
ospf_zebra.c *: remove casts of XMALLOC / XCALLOC 2019-02-25 23:00:46 +00:00
ospf_zebra.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
OSPF-ALIGNMENT.txt *: Remove cvs control points 2017-12-05 17:28:12 -05:00
ospfd.c ospfd: Allow pre-existing vrf's to work 2019-02-25 14:10:10 -05:00
ospfd.conf.sample Initial revision 2002-12-13 20:15:29 +00:00
ospfd.h ospfd: permit reconfiguring network after area suppressed 2018-11-09 09:48:38 +01:00
subdir.am build: fix a whole bunch of *FLAGS 2019-01-30 19:13:51 +01:00