summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-09-19 21:39:50 -0400
committerDonald Sharp <sharpd@nvidia.com>2024-11-25 13:12:10 -0500
commita92854047b6a250d8fd0dcccc1aab51a0318c7c5 (patch)
tree326f7d1125b1915326c9832ec56f229a88727239 /zebra/interface.c
parentc23f505f45bd0cb670386149a50ae744f5c5bda5 (diff)
zebra: Remove some unused functions on linux build
The functions: if_get_flags if_flags_update if_flags_mangle are never invoked from a linux netlink build. Put a #ifdef around those functions so that they are not included on the linux build as that they are not needed there. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 4090e81d68..f7fd112cd4 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -380,6 +380,7 @@ int if_subnet_delete(struct interface *ifp, struct connected *ifc)
return 0;
}
+#ifndef HAVE_NETLINK
/* if_flags_mangle: A place for hacks that require mangling
* or tweaking the interface flags.
*
@@ -431,6 +432,7 @@ void if_flags_update(struct interface *ifp, uint64_t newflags)
if_up(ifp, true);
}
}
+#endif
/* Wake up configured address if it is not in current kernel
address. */