summaryrefslogtreecommitdiffstats
path: root/lib/bitfield.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lib: add an MTYPE for bitfieldsPat Ruddy2021-06-181-2/+4
| | | | | | | it is handy to be able to see allocated bitfields in the show memory output. Signed-off-by: Pat Ruddy <pat@voltanet.io>
* lib: bitfield: new macros for bit processingAnuradha Karuppiah2020-08-051-1/+42
| | | | | | | | | | | New macros have been added for the following - 1. to efficiently iterate and execute functions on already set bits 2. to check if a bit is in use 3. to check if a bitfield has been initialized (this is to safetly handle cases where the bitfield is freed and re-allocated). 4. to check if two bitfields have the same bits set Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
* lib: dont null check bitfield pointer before freeQuentin Young2020-04-181-4/+2
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* lib: clear data pointer in bf_freeMark Stapp2020-04-171-0/+1
| | | | | | Help avoid double-free by clearing data pointer. Signed-off-by: Mark Stapp <mjs@voltanet.io>
* lib: add extern "C" {} blocks to all libfrr headersRenato Westphal2019-02-121-0/+8
| | | | | | | These are necessary to use functions defined in these headers from C++. Signed-off-by: David Lamparter <equinox@diac24.net> Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* *: reindentreindent-master-afterwhitespace / reindent2017-07-171-50/+59
| | | | | | indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* lib: Additional APIs in bitfield libraryvivek2017-05-251-1/+27
| | | | | | | | | | | Added APIs to: a) pre-assign 0th bit in the bitfield b) free 0th bit in the bitfield c) free the allocated bitfield data Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
* *: 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>
* Merge remote-tracking branch 'cmaster-next' into cmaster-next-relengDavid Lamparter2016-11-191-0/+20
|\
| * *: Fix up licensing to be rightDonald Sharp2016-11-181-0/+20
| | | | | | | | | | | | | | | | These files were submitted by Cumulus but did not properly setup the licensing of them. This fixes that issue. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | build: fix -Wmaybe-uninitialized warningsDavid Lamparter2016-11-151-1/+1
|/ | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* ospf6d: ospfv3-abr-ecmp-support.patchDonald Sharp2015-05-201-0/+102
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>