mirror_frr/ospfd
Donald Sharp 8bb0831e23 Per AFI redist registrations
The problem is that zclient->redist[ZEBRA_ROUTE_MAX] used for storing a
client’s redist state, has no address-family qualification. This means
a client can only store its interest in a protocol (connected, static etc.),
but cant choose IPv4 or ipv6 with that. This hindered implementation on
client sides to manage redistribution of ipv4 and ipv6 both.

BGP's redistribution of protocols like connected/static is one such place.

One fix could be to overload this and flap the redist connection each time
any new afi is added for redist, but that may have side-effects on the
existing afi redist.

The cleaner way is to modify redist data-structure to also take AFI, and adjust
routines that deal with it, so that a client can register for a protocol
redistribution based on the AFI. BGP already maintains redistribution state
based on afi and protocol (bgp->redist[AFI_MAX][ZEBRA_ROUTE_MAX]). This patch
takes care of filling up the gap in zclient/zserv redistribution state to
also use AFI qualification.

Signed-off-by: Vipin Kumar <vipin@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
2015-05-19 18:03:45 -07:00
..
.gitignore [administrivia] Git should ignore backup files and .loT files 2008-08-22 20:00:46 +01:00
ChangeLog.opaque.txt Initial revision 2003-02-03 16:31:16 +00:00
Makefile.am build: correct libtool parameter used within Makefiles 2012-09-25 05:56:00 +02:00
ospf_abr.c ospfd-spf-stats.patch 2015-05-19 16:36:05 -07:00
ospf_abr.h ospf6d: ospfv3-abr-ecmp-support.patch 2015-05-19 18:03:39 -07:00
ospf_api.c ospfd: CVE-2013-2236, stack overrun in apiserver 2013-07-28 16:13:10 +02:00
ospf_api.h 2005-05-06 Paul Jakma <paul.jakma@sun.com> 2005-05-06 21:37:42 +00:00
ospf_apiserver.c ospfd: compile warning cleanups 2013-01-07 09:59:59 -08:00
ospf_apiserver.h ospf: Fix OSPF API and ospf-te LSA refreshers to match recent API change 2011-04-13 15:13:33 +01:00
ospf_asbr.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_asbr.h Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_ase.c ospfd-spf-stats.patch 2015-05-19 16:36:05 -07:00
ospf_ase.h 2005-05-06 Paul Jakma <paul.jakma@sun.com> 2005-05-06 21:37:42 +00:00
ospf_dump.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_dump.h ospfd: introduce ospf_auth_type_str[] 2012-03-12 11:05:34 +01:00
ospf_flood.c Per AFI redist registrations 2015-05-19 18:03:45 -07:00
ospf_flood.h ospfd: Fix maxage/flush to not try flood twice, remember maxages for longer 2010-12-08 17:13:19 +00:00
ospf_ia.c *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
ospf_ia.h 2005-05-06 Paul Jakma <paul.jakma@sun.com> 2005-05-06 21:37:42 +00:00
ospf_interface.c Unnumbered interface support. 2015-05-19 17:58:13 -07:00
ospf_interface.h per-interface ospf enable and area set command. 2015-05-19 17:58:14 -07:00
ospf_ism.c *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
ospf_ism.h [ospfd] Make OSPF_ISM_TIMER_OFF macro safer. 2005-11-16 19:33:22 +00:00
ospf_lsa.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_lsa.h Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_lsdb.c *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
ospf_lsdb.h ospf: Convert MAX_AGE LSA list to tree 2013-01-07 09:59:43 -08:00
ospf_main.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_neighbor.c [cleanup] Convert XMALLOC/memset to XCALLOC 2009-06-12 17:07:49 +01:00
ospf_neighbor.h [ospfd] Additional NSM neighbour state change stats/information 2006-07-25 20:44:12 +00:00
ospf_network.c Set the RCVBUF and SNDBUF sizes to the maximum possible amount to 2015-05-19 17:24:42 -07:00
ospf_network.h ospfd: compile warning cleanups 2013-01-07 09:59:59 -08:00
ospf_nsm.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_nsm.h ospfd: Update nsm_change_state to static scope, as it is not called from elsewhere 2013-01-07 09:59:57 -08:00
ospf_opaque.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_opaque.h ospfd: Compile fix for opaque support 2011-03-22 15:23:55 +00:00
ospf_packet.c ISSUE: 2015-05-19 18:03:43 -07:00
ospf_packet.h Send ARP requests proactively during OSPF Adjacency formation. 2015-05-19 17:24:41 -07:00
ospf_route.c Unnumbered interface support. 2015-05-19 17:58:13 -07:00
ospf_route.h Unnumbered interface support. 2015-05-19 17:58:13 -07:00
ospf_routemap.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_snmp.c *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
ospf_snmp.h 2005-09-29 Alain Ritoux <alain.ritoux@6wind.com> 2005-09-29 16:34:30 +00:00
ospf_spf.c Section 16.0 of rfc2328 (OSPF) specifies that the short-path 2015-05-19 17:24:44 -07:00
ospf_spf.h ospfd-spf-stats.patch 2015-05-19 16:36:05 -07:00
ospf_te.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_te.h ospfd: Changed TE instance check to remove -Wtype-limits warning 2013-01-07 09:59:53 -08:00
ospf_vty.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospf_vty.h Support for 'clear ip ospf interface [IFNAME]' 2015-05-19 17:58:13 -07:00
ospf_zebra.c Per AFI redist registrations 2015-05-19 18:03:45 -07:00
ospf_zebra.h Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
OSPF-ALIGNMENT.txt add note about alignment in LS updates due to opaque LSAs. 2004-11-17 17:59:52 +00:00
OSPF-MIB.txt spelling: s/supress/suppress/ 2004-11-05 13:24:12 +00:00
OSPF-TRAP-MIB.txt Initial revision 2002-12-13 20:15:29 +00:00
ospfd.c Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00
ospfd.conf.sample Initial revision 2002-12-13 20:15:29 +00:00
ospfd.h Multi-Instance OSPF Summary 2015-05-19 18:03:42 -07:00