summaryrefslogtreecommitdiffstats
path: root/lib/cspf.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-05-12bgpd: Align bgp_debug.h to our standardsDonald Sharp1-3/+3
bgp_debug.h has function declarations that are not properly aligned with our standard on how to do so. Fix. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Align bgp_damp.h to our standardsDonald Sharp1-7/+9
bgp_damp.h has function declarations that are not properly aligned with our standard on how to do so. Fix. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Align bgp_community.h to our standardsDonald Sharp1-15/+16
bgp_community.h has function declarations that are not properly aligned with our standard on how to do so. Fix. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Align bgp_clist.h to our standardsDonald Sharp1-9/+12
bgp_clist.h has function declarations that are not properly aligned with our standard on how to do so. Fix. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Align bgp_attr.h to our standardsDonald Sharp1-12/+13
bgp_attr.h has function declarations that are not properly aligned with our standard on how to do so. Fix. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Align bgp_aspath.h to our standardsDonald Sharp1-37/+42
bgp_aspath.h has function declarations that are not properly aligned with our standard on how to do so. Fix. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Align bgp_advertise.h to our standardsDonald Sharp1-8/+10
bgp_advertise.h has function declarations that are not properly aligned with our standard on how to do so. Fix. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Align bgp_zebra.h to our standardsDonald Sharp1-24/+34
bgp_zebra.h has function declarations that are not properly aligned with our standard on how to do so. Fix. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Align bgp_mpath.h to our standardsDonald Sharp1-6/+7
The bgp_mpath.h file was missing some variable names. Let's add them in to align with our standard for header files. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Change single value bitfield to a boolDonald Sharp5-18/+13
The maxpaths same_clusterlen value was a uint16_t with a single bit being used. No other values are being stored. Let's remove the bitfield and simplify to a bool. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Prevent crash when issuing various forms of `bgp no-rib`Donald Sharp2-3/+22
The `bgp no-rib` command cycles through all the bgp rib tables and removes them from zebra. Modify the code so that FRR notices that it is attempting to cycle through the safi's that are two level tables. In addition these safi's cannot just blindly remove the routes from the rib as that there are none explicitly. This code just prevents the crash in bgpd. It does not properly cycle through and remove the zebra changes made that are explicit to these afi's. This should be handled as appropriate by the developers on these safi's when it becomes important to them. Fixes: #11178 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12bgpd: Check and validate return value for str2ipaddr()Donatas Abraitis1-3/+12
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-12bgpd: Check argv_find() value instead of the indexDonatas Abraitis3-40/+40
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-12tools: Catch more argv_find() when not checked properlyDonatas Abraitis1-0/+7
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-12bgpd: Reuse index from argv_find only if foundDonatas Abraitis1-8/+4
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-12bgpd,zebra: correct one debug log for evpn-mhanlan_cs2-2/+2
Correct one debug log in evpn-mh. BTW, correct one misspelled word in comment. Signed-off-by: anlan_cs <vic.lan@pica8.com>
2022-05-11*: Properly use memset() when zeroingDonatas Abraitis82-242/+240
Wrong: memset(&a, 0, sizeof(struct ...)); Good: memset(&a, 0, sizeof(a)); Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-11ripd: Use correct usage of memcpy() when zeroing structDonatas Abraitis1-4/+3
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>