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>
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,