summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrp_vc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* nhrpd: Use our built-in printf functionalityDonald Sharp2021-03-101-5/+2
| | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* *: Replace `sizeof something` to sizeof(something)Donatas Abraitis2020-03-081-2/+2
| | | | | | Satisfy checkpatch.pl requirements (check for sizeof without parenthesis) Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
* lib: hashing functions should take const argumentsQuentin Young2019-05-141-2/+2
| | | | | | | | | | It doesn't make much sense for a hash function to modify its argument, so const the hash input. BGP does it in a couple places, those cast away the const. Not great but not any worse than it was. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* lib: ZEBRA_NUM_OF -> array_sizeDavid Lamparter2019-04-181-3/+3
| | | | | | The latter is widely used, e.g. in the Linux kernel. Signed-off-by: David Lamparter <equinox@diac24.net>
* *: Rename backet to bucketTim Bray2019-02-251-1/+1
| | | | | | Presume typo from original author Signed-off-by: Tim Bray <tim@kooky.org>
* *: Replace hash_cmp function return value to a boolDonald Sharp2018-10-191-1/+2
| | | | | | | | | The ->hash_cmp and linked list ->cmp functions were sometimes being used interchangeably and this really is not a good thing. So let's modify the hash_cmp function pointer to return a boolean and convert everything to use the new syntax. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: ALLOC calls cannot failDonald Sharp2018-08-111-10/+7
| | | | | | | | There is no need to check for failure of a ALLOC call as that any failure to do so will result in a assert happening. So we can safely remove all of this code. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: conform with COMMUNITY.md formatting rules, via 'make indent'Lou Berger2018-03-061-25/+31
| | | | Signed-off-by: Lou Berger <lberger@labn.net>
* nhrpd: Add hash table namesDonald Sharp2017-09-051-1/+3
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: update hash_create(), hash_create_size()Quentin Young2017-07-021-1/+1
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* nhrpd: adapt to API changesDavid Lamparter2017-03-071-0/+2
| | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* nhrpd: implement next hop resolution protocolTimo Teräs2017-03-071-0/+217
This provides DMVPN support and integrates to strongSwan. Please read README.nhrpd and README.kernel for more details. [DL: cherry-picked from dafa05e65fe4b3b3ed5525443f554215ba14f42c] [DL: merge partially resolved, this commit will not build.] Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>