summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mroute.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zebra: refactor zserv names, consolidate eventsQuentin Young2018-05-291-1/+1
| | | | | | | | | | | | | | * 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>
* zebra: reorganize zserv, batch i/oQuentin Young2018-03-121-6/+5
| | | | | | | | 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>
* zebra: standardize ZAPI message handler argsQuentin Young2018-03-121-2/+2
| | | | | | | | | | | | 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>
* zebra: dont return a status code in zapi handlersQuentin Young2018-03-121-3/+2
| | | | | | | | 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>
* zebra: use zclient_create_headerDonald Sharp2018-01-221-1/+1
| | | | | | | | 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>
* lib, zebra: Modify zebra to use STREAM_GET for zapiDonald Sharp2017-11-131-4/+5
| | | | | | | | 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>
* zebra: No need to pass sock descriptor around.Donald Sharp2017-10-241-1/+1
| | | | | | Standardize the api to read zapi requests from protocols. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: fix assorted issues detected by Coverity ScanRenato Westphal2017-08-251-2/+2
| | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* zebra: Allow S,G lookup to use RTNL_FAMILY_IPMRDonald Sharp2017-07-241-1/+1
| | | | | | | | | 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>
* zebra: Remove strcpy from fast pathDonald Sharp2017-07-241-5/+10
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: reindentreindent-master-afterwhitespace / reindent2017-07-171-24/+24
| | | | | | indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` 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>
* zebra: Allow the collection of sg stats on more platforms.Donald Sharp2017-01-181-2/+2
| | | | | | | | 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>
* pimd,zebra: Pass back error message if receivedDonald Sharp2016-12-221-1/+3
| | | | | | | When zebra asks for mroute information let pim know that the request failed or succeeded. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* lib, pimd, zebra: Allow pimd to ask the kernel about mroute infoDonald Sharp2016-12-221-0/+66
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>