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>
return 0;
}
+#ifndef HAVE_NETLINK
/* if_flags_mangle: A place for hacks that require mangling
* or tweaking the interface flags.
*
if_up(ifp, true);
}
}
+#endif
/* Wake up configured address if it is not in current kernel
address. */
#endif /* HAVE_STRUCT_IFALIASREQ */
#endif /* HAVE_NETLINK */
+#ifndef HAVE_NETLINK
/* get interface flags */
void if_get_flags(struct interface *ifp)
{
out:
if_flags_update(ifp, (ifreqflags.ifr_flags & 0x0000ffff));
}
+#endif
/* Set interface flags */
int if_set_flags(struct interface *ifp, uint64_t flags)