summaryrefslogtreecommitdiffstats
path: root/nhrpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-01-19 20:45:25 +0100
committerDonald Sharp <sharpd@nvidia.com>2024-01-22 18:14:59 +0100
commit275edb5c160a384043e2ad3d8e3eebe709c60bd1 (patch)
treeb5324fa6d4d71519ff6046bfe7937a0352d2905a /nhrpd
parentMerge pull request #15185 from LabNConsulting/chopps/distlist (diff)
downloadfrr-275edb5c160a384043e2ad3d8e3eebe709c60bd1.tar.xz
frr-275edb5c160a384043e2ad3d8e3eebe709c60bd1.zip
*: Rename ZEBRA_NHRP_NEIGH_XXX to ZEBRA_NEIGH_XXX
This does not need to be nhrp specific. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'nhrpd')
-rw-r--r--nhrpd/netlink_arp.c13
-rw-r--r--nhrpd/nhrp_route.c11
2 files changed, 12 insertions, 12 deletions
diff --git a/nhrpd/netlink_arp.c b/nhrpd/netlink_arp.c
index bcecf9fc0..c0d77e62d 100644
--- a/nhrpd/netlink_arp.c
+++ b/nhrpd/netlink_arp.c
@@ -176,12 +176,11 @@ int nhrp_neighbor_operation(ZAPI_CALLBACK_ARGS)
return 0;
debugf(NHRP_DEBUG_KERNEL,
"Netlink: %s %pSU dev %s lladdr %pSU nud 0x%x cache used %u type %u",
- (cmd == ZEBRA_NHRP_NEIGH_GET)
- ? "who-has"
- : (cmd == ZEBRA_NHRP_NEIGH_ADDED) ? "new-neigh"
- : "del-neigh",
+ (cmd == ZEBRA_NEIGH_GET) ? "who-has"
+ : (cmd == ZEBRA_NEIGH_ADDED) ? "new-neigh"
+ : "del-neigh",
&addr, ifp->name, &lladdr, ndm_state, c->used, c->cur.type);
- if (cmd == ZEBRA_NHRP_NEIGH_GET) {
+ if (cmd == ZEBRA_NEIGH_GET) {
if (c->cur.type >= NHRP_CACHE_CACHED) {
nhrp_cache_set_used(c, 1);
debugf(NHRP_DEBUG_KERNEL,
@@ -194,8 +193,8 @@ int nhrp_neighbor_operation(ZAPI_CALLBACK_ARGS)
netlink_update_binding(ifp, &addr, &lladdr);
}
} else {
- state = (cmd == ZEBRA_NHRP_NEIGH_ADDED) ? ndm_state
- : ZEBRA_NEIGH_STATE_FAILED;
+ state = (cmd == ZEBRA_NEIGH_ADDED) ? ndm_state
+ : ZEBRA_NEIGH_STATE_FAILED;
nhrp_cache_set_used(c, state == ZEBRA_NEIGH_STATE_REACHABLE);
}
return 0;
diff --git a/nhrpd/nhrp_route.c b/nhrpd/nhrp_route.c
index 060e60314..edc362972 100644
--- a/nhrpd/nhrp_route.c
+++ b/nhrpd/nhrp_route.c
@@ -85,8 +85,9 @@ static void nhrp_zebra_register_neigh(vrf_id_t vrf_id, afi_t afi, bool reg)
s = zclient->obuf;
stream_reset(s);
- zclient_create_header(s, reg ? ZEBRA_NHRP_NEIGH_REGISTER :
- ZEBRA_NHRP_NEIGH_UNREGISTER,
+ zclient_create_header(s,
+ reg ? ZEBRA_NEIGH_REGISTER
+ : ZEBRA_NEIGH_UNREGISTER,
vrf_id);
stream_putw(s, afi);
stream_putw_at(s, 0, stream_get_endp(s));
@@ -377,9 +378,9 @@ static zclient_handler *const nhrp_handlers[] = {
[ZEBRA_INTERFACE_ADDRESS_DELETE] = nhrp_interface_address_delete,
[ZEBRA_REDISTRIBUTE_ROUTE_ADD] = nhrp_route_read,
[ZEBRA_REDISTRIBUTE_ROUTE_DEL] = nhrp_route_read,
- [ZEBRA_NHRP_NEIGH_ADDED] = nhrp_neighbor_operation,
- [ZEBRA_NHRP_NEIGH_REMOVED] = nhrp_neighbor_operation,
- [ZEBRA_NHRP_NEIGH_GET] = nhrp_neighbor_operation,
+ [ZEBRA_NEIGH_ADDED] = nhrp_neighbor_operation,
+ [ZEBRA_NEIGH_REMOVED] = nhrp_neighbor_operation,
+ [ZEBRA_NEIGH_GET] = nhrp_neighbor_operation,
[ZEBRA_GRE_UPDATE] = nhrp_gre_update,
};