summaryrefslogtreecommitdiff
path: root/zebra/zebra_mroute.c
AgeCommit message (Collapse)Author
2018-09-17zebra: Add some additional vrf debug for retrieving mroute infoDonald Sharp
When debugging the mroute code path in zebra, add a bit of additional data to allow us to know what is going on a bit more. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-29zebra: refactor zserv names, consolidate eventsQuentin Young
* Add centralized thread scheduling dispatchers for client threads and the main thread * Rename everything in zserv.c to stop using a combination of: - zebra_server_* - zebra_* - zserv_* Everything in zserv.c now begins with zserv_*. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-03-12zebra: reorganize zserv, batch i/oQuentin Young
Group send and receive functions together, change handlers to take a message instead of looking at ->ibuf and ->obuf, allow zebra to read multiple packets off the wire at a time. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-03-12zebra: standardize ZAPI message handler argsQuentin Young
A lot of the handler functions that are called directly from the ZAPI input processing code take different argument sets where they don't need to. These functions are called from only one place and all have the same fundamental information available to them to do their work. There is no need to specialize what information is passed to them; it is cleaner and easier to understand when they all accept the same base set of information and extract what they need inline. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-03-12zebra: dont return a status code in zapi handlersQuentin Young
All of the ZAPI message handlers return an integer that means different things to each of them, but nobody ever reads these integers, so this is technical debt that we can just eliminate outright. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-22zebra: use zclient_create_headerDonald Sharp
The function zserv_create_header was exactly the same as zclient_create_header. Let's just have one in the system. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-11-13lib, zebra: Modify zebra to use STREAM_GET for zapiDonald Sharp
This code modifies zebra to use the STREAM_GET functionality. This will allow zebra to continue functioning in the case of bad input data from higher level protocols instead of crashing. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-10-23zebra: No need to pass sock descriptor around.Donald Sharp
Standardize the api to read zapi requests from protocols. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-08-24*: fix assorted issues detected by Coverity ScanRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-07-24zebra: Allow S,G lookup to use RTNL_FAMILY_IPMRDonald Sharp
This current implementation unfortunately must ask the kernel for all mroutes because vrf's do not have the ability to request a single mroute at this time. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-07-24zebra: Remove strcpy from fast pathDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-07-17*: reindentreindent-master-afterwhitespace / reindent
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-05-15*: make consistent & update GPLv2 file headersDavid Lamparter
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>
2017-01-17zebra: Allow the collection of sg stats on more platforms.Donald Sharp
The code to collect the sg stats was written for linux. Abstract the call to allow it to work on all platforms. I have not implemented the call for non-linux systems. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-12-21pimd,zebra: Pass back error message if receivedDonald Sharp
When zebra asks for mroute information let pim know that the request failed or succeeded. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-12-21lib, pimd, zebra: Allow pimd to ask the kernel about mroute infoDonald Sharp
When we need to lookup the mroute info for a route. Allow pimd to ask the kernel. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>