summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_lsdb.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: Fix spelling of accidentlyDonald Sharp2022-04-191-1/+1
| | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* ospf6d: add LSA statistics to LSA databaseDavid Schweizer2022-01-121-0/+1
| | | | Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
* ospf6d: fix lock leak of using ALL_LSDB in GR helperanlan_cs2021-08-221-2/+2
| | | | | | | | The lsa and lsanext must be unlocked if break out of ALL_LSDB loop. Incidentally correct the comment of ALL_LSDB. Signed-off-by: anlan_cs <anlan_cs@tom.com>
* ospf6d: Json support added for command "show ipv6 ospf6 database [json]"Yash Ranjan2021-01-131-1/+2
| | | | | | | Modify code to add JSON format output in show command "show ipv6 ospf6 database" with proper formating Signed-off-by: Yash Ranjan <ranjany@vmware.com>
* ospf6d, tests: Prevent use after freeDonald Sharp2020-10-111-3/+11
| | | | | | | | | | | | | | | | The code pattern: for (ALL_LSDB(lsdb, lsa)) { remove_lsa(lsa) } has a use after free in ALL_LSDB, since we ask for the next pointer, after it has been freed. Modify the code such that we grab the next pointer before we can possibly free it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: use C99 standard fixed-width integer typesQuentin Young2018-03-271-12/+12
| | | | | | | | | | | | | | | | | | | | | | The following types are nonstandard: - u_char - u_short - u_int - u_long - u_int8_t - u_int16_t - u_int32_t Replace them with the C99 standard types: - uint8_t - unsigned short - unsigned int - unsigned long - uint8_t - uint16_t - uint32_t Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* *: reindentreindent-master-afterwhitespace / reindent2017-07-171-53/+49
| | | | | | indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* ospf6d: rewrite LSDB iterationDavid Lamparter2017-07-111-19/+22
| | | | | | | rip out this pile of open-coded goo and replace it with uses of the API that table.h provides. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* ospf6d: use macro for LSDB walksDavid Lamparter2017-07-111-0/+9
| | | | | | ... to make it easier to refactor all of the iteration uses. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: make consistent & update GPLv2 file headersDavid Lamparter2017-05-151-4/+3
| | | | | | | | | | | The FSF's address changed, and we had a mixture of comment styles for the GPL file header. (The style with * at the beginning won out with 580 to 141 in existing files.) Note: I've intentionally left intact other "variations" of the copyright header, e.g. whether it says "Zebra", "Quagga", "FRR", or nothing. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* ospf6d: resolve problem with area range lsid creationDon Slice2017-01-031-3/+0
| | | | | | | | | | | | | | | | | | | | The problem reported was that routers downstream from the ABR would have prefixes in the IPv6 rib that should have been summarized. Testing showed that the prefixes were absent in the lsdb but not removed from the rib. The problem (and others) stemmed from determining the link-state id to use for the area-range statement only from other entries in the range-table. Since the area range statement creates inter-prefix LSAs (summaries) which are in all aspects identical to other inter-prefix LSAs, the number space for the lsid needs to be unique across all inter-prefix LSAs, not just unique between area range statements. This fix removes the use of range-table specific lsids and acquires the lsid just as any other inter-prefix LSA. Ticket: CM-13626 Signed-off-by: Don Slice Reviewed By: CCR-5489 Testing Done: Manual testing, repeated runs of the test that previously failed, ospf-smoke
* ospf6_lsdb: trivial, make it clear that showfunc is set before deref.Paul Jakma2016-05-261-5/+8
| | | | (cherry picked from commit 7bef33cbf5027189bd55e4890a07a6bef8277f93)
* ospf6d: ospfv3-abr-ecmp-support.patchDonald Sharp2015-05-201-0/+4
| | | | | | | OSPFv3: Add ABR support and make ECMP > 4. Signed-off-by: Dinesh G Dutt <ddutt at cumulusnetworks.com> Signed-off-by: Pradosh Mohapatra <pmohapat at cumulusnetworks.com>
* ospf6d: convert LSDB to use route_node, improve performanceDinesh Dutt2013-11-081-0/+2
| | | | | | | | | | | the performance in the presence of a large number of LSAs. I also verified that the performance improvements stayed in the presence of a large number of peers (I tested upto 128). Signed-off-by: Dinesh G Dutt <ddutt at cumulusnetworks.com> Reviewed-by: Scott Feldman <sfeldma at cumulusnetworks.com>Summary: Reviewed-by: James Li <jli at cumulusnetworks.com> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* ospf6d: reinvoke MaxAge remover thread if not all MaxAge LSAs were flushed.Dinesh Dutt2013-11-081-15/+0
| | | | | | | | | | | MaxAge LSAs are being flushed out only on an event, unlike OSPFv2 where they're flushed out periodically. This causes certain LSAs to hang around forever, never getting flushed out. This patch makes flushing out MaxAge LSAs periodic, retriggered after a certain period if not all MaxAge LSAs were flushed out. Signed-off-by: Dinesh G Dutt <ddutt at cumulusnetworks.com> Reviewed-by: Scott Feldman <sfeldma at cumulusnetworks.com> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* [trivia] finish off static'ification of ospf6d and ripngdPaul Jakma2008-08-221-29/+27
| | | | | | | | | 2008-08-15 Paul Jakma <paul.jakma@sun.com> * {ospf6d,ripngd}/*: Finish job of marking functions as static, or exporting declarations for them, to quell warning noise with Quagga's GCC default high-level of warning flags. Thus allowing remaining, more useful warnings to be more easily seen.
* 2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-081-1/+1
| | | | * *.h: Change level of debug messages to LOG_DEBUG.
* Merge svn revisions 1208, 1222 and 1228 from Zebra cvs.hasso2004-11-251-3/+6
|
* Merge svn revision 975 from Zebra repository.hasso2004-09-011-3/+3
|
* SVN revisions 916-920 from Zebra. ABR support is almost done.hasso2004-08-151-2/+3
|
* SVN revision 907 from Zebra cvs repository.hasso2004-08-041-87/+13
|
* Update to latest (really :) ospf6d from Zebra repository and some tinyhasso2004-05-181-1/+1
| | | | fixes.
* Ospf6d merge from Zebra repository with added privs stuff and mergedhasso2004-05-181-41/+123
| | | | zclient changes.
* Initial revisionpaul2002-12-131-0/+88