summaryrefslogtreecommitdiff
path: root/lib/nexthop.c
AgeCommit message (Collapse)Author
2016-11-28Merge remote-tracking branch 'cmaster-next' into cmaster-next-relengDavid Lamparter
2016-11-24lib: Fix nexthop strings to coincide with enumvivek
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
2016-11-15lib: replace strlcpy & strlcat with glibc versionsDavid Lamparter
It seems these two were at some point copied in from rsync; replace with more recent versions that will hopefully become available in glibc as well. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2016-09-23zebra: fix bug in nexthop label allocationßingen
Label array in nexthop_label struct was not being allocated.
2016-09-23mpls: add support for LDP LSPsRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2016-09-23MPLS: Install labeled static routesvivek
This patch installs labeled static routes in the FIB. The routes are installed using the RTA_ENCAP (and RTA_ENCAP_TYPE) nested attributes. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-6040 Reviewed By: CCR-3091 Testing Done: Tested in SE-1, brief manual testing now
2016-09-23Quagga: Install label forwarding entries for statically configured LSPsvivek
Install the statically configured LSPs into the FIB (kernel). This is done using the new attributes and definitions for MPLS in the kernel - RTA_VIA, RTA_NEWDST and AF_MPLS. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-4804 Reviewed By: CCR-3088 Testing Done: Manual in SE-1
2016-09-19*: split & distribute memtypes and stop (re|ab)using lib/ MTYPEsDavid Lamparter
This is a rather large mechanical commit that splits up the memory types defined in lib/memtypes.c and distributes them into *_memory.[ch] files in the individual daemons. The zebra change is slightly annoying because there is no nice place to put the #include "zebra_memory.h" statement. bgpd, ospf6d, isisd and some tests were reusing MTYPEs defined in the library for its own use. This is bad practice and would break when the memtype are made static. Acked-by: Vincent JARDIN <vincent.jardin@6wind.com> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com> [CF: rebased for cmaster-next] Signed-off-by: David Lamparter <equinox@opensourcerouting.org> Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2016-09-08lib, bgpd: Log next hopsvivek
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com> Ticket: CM-12390 Reviewed By: CCR-5156 Testing Done: Manual
2016-05-20lib: Fix some more compiler warningsDonald Sharp
Three different changes: a) in nexthop.c we have an actual bug, we've rearranged the enumerated types and the list of enums has changed, we were displaying the wrong nexthop information. b) Remove some dead code from sockunion.h c) '\0' evaluates to 0 which is NULL. vector_set takes a pointer. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
2015-12-04ZEBRA: Remove NEXTHOP_TYPE_XXX_IFNAMEDonald Sharp
The NEXTHOP_TYPE_XXX_IFNAME types were never being used. Remove them and the code associated with them. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2015-11-27Quagga: Nexthop refactoringDonald Sharp
Upstream wanted some nexthop code to be refactored. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2015-05-19nexthop-tracking.patchDonald Sharp
quagga: nexthop-tracking.patch Add next hop tracking support to Quagga. Complete documentation in doc/next-hop-tracking.txt. Signed-off-by: Pradosh Mohapatra <pmohapat@cumulusnetworks.com> Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>