summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_pbr.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* zebra: Keep track of rules writtenDonald Sharp2018-03-091-2/+7
| | | | | | | | Keep track of rules written into the kernel. This will allow us to delete them on shutdown if we are not cleaned up properly. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* zebra: Cleanup apiDonald Sharp2018-03-091-0/+2
| | | | | | | | | Allow the add/delete to go through a intermediary function in zebra_pbr.c instead of directly to the underlying os call. This will allow future refinements to track the data a bit better so that on shutdown we can delete the rules. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* zebra: Cleanup a couple of api issuesDonald Sharp2018-03-091-10/+9
| | | | | | | | 1) use uint32_t instead of u_int32_t as we are supposed to 2) Consolidate priority into the rule. 3) Cleanup the api from this. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: PBR - netlink interaction and basic definitionsvivek2018-03-091-0/+128
Implement netlink interactions for Policy Based Routing. This includes APIs to install and uninstall rules and handle notifications from the kernel related to rule addition or deletion. Various definitions are added to facilitate this. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>