]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: remove unnecessary preprocessor check
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 7 Jun 2018 18:45:33 +0000 (15:45 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 7 Jun 2018 18:45:33 +0000 (15:45 -0300)
The IFLA_INFO_SLAVE_KIND constant is always defined now that we imported
our own copies of the Linux kernel headers. Remove the preprocessor
checks since they aren't necessary anymore.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
configure.ac
zebra/if_netlink.c

index 7c7de19e1f8683c5d1278e7eeca1430d4812f90c..35997a87ec612063e2b6d3752aa64f1204cb423d 100755 (executable)
@@ -920,8 +920,6 @@ case "$host_os" in
     dnl how to fix it but no real progress on implementation
     dnl when they fix it, remove this
     AC_DEFINE(IPV6_MINHOPCOUNT, 73, Linux ipv6 Min Hop Count)
-
-    AC_CHECK_DECLS([IFLA_INFO_SLAVE_KIND], [], [], [#include <linux/if_link.h>])
     ;;
   openbsd*)
     AC_MSG_RESULT([OpenBSD])
index f153cc3510997f2226f28dee62b5aa11264a551f..e6d324ab6a64d0697e44943f31c7bdd55e620bcb 100644 (file)
@@ -619,10 +619,8 @@ static int netlink_interface(struct nlmsghdr *h, ns_id_t ns_id, int startup)
                if (linkinfo[IFLA_INFO_KIND])
                        kind = RTA_DATA(linkinfo[IFLA_INFO_KIND]);
 
-#if HAVE_DECL_IFLA_INFO_SLAVE_KIND
                if (linkinfo[IFLA_INFO_SLAVE_KIND])
                        slave_kind = RTA_DATA(linkinfo[IFLA_INFO_SLAVE_KIND]);
-#endif
 
                netlink_determine_zebra_iftype(kind, &zif_type);
        }
@@ -1137,10 +1135,8 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
                if (linkinfo[IFLA_INFO_KIND])
                        kind = RTA_DATA(linkinfo[IFLA_INFO_KIND]);
 
-#if HAVE_DECL_IFLA_INFO_SLAVE_KIND
                if (linkinfo[IFLA_INFO_SLAVE_KIND])
                        slave_kind = RTA_DATA(linkinfo[IFLA_INFO_SLAVE_KIND]);
-#endif
 
                netlink_determine_zebra_iftype(kind, &zif_type);
        }