summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-15 08:27:32 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-06-15 10:34:30 -0400
commit8b9b1d60431b0bad5cecfe7655296ce4b017c013 (patch)
tree5bacb7758e834595b9e0558876fcb60552181c09 /zebra/interface.c
parent7c4910cead592c5133940633343b176e30fe7aed (diff)
zebra: On linux let interface data come in through netlink messaging
Consolidate on linux to using the netlink api for gathering all data about a interface. Leave this interface alone in the meantime for other OS's. This also has the side effect of reducing the amount of work being done on linux in that FRR was handling shut/no shut events 2 times. Once for the ioctl question asked and once for the netlink message received. 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 7eb98faeb1..96e378444d 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -1119,7 +1119,9 @@ void if_down(struct interface *ifp)
void if_refresh(struct interface *ifp)
{
+#ifndef GNU_LINUX
if_get_flags(ifp);
+#endif
}
void zebra_if_update_link(struct interface *ifp, ifindex_t link_ifindex,