mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
Merge pull request #2382 from opensourcerouting/remove_preprocessor_check
zebra: remove unnecessary preprocessor check
This commit is contained in:
commit
3b72cd1192
@ -920,8 +920,6 @@ case "$host_os" in
|
|||||||
dnl how to fix it but no real progress on implementation
|
dnl how to fix it but no real progress on implementation
|
||||||
dnl when they fix it, remove this
|
dnl when they fix it, remove this
|
||||||
AC_DEFINE(IPV6_MINHOPCOUNT, 73, Linux ipv6 Min Hop Count)
|
AC_DEFINE(IPV6_MINHOPCOUNT, 73, Linux ipv6 Min Hop Count)
|
||||||
|
|
||||||
AC_CHECK_DECLS([IFLA_INFO_SLAVE_KIND], [], [], [#include <linux/if_link.h>])
|
|
||||||
;;
|
;;
|
||||||
openbsd*)
|
openbsd*)
|
||||||
AC_MSG_RESULT([OpenBSD])
|
AC_MSG_RESULT([OpenBSD])
|
||||||
|
@ -619,10 +619,8 @@ static int netlink_interface(struct nlmsghdr *h, ns_id_t ns_id, int startup)
|
|||||||
if (linkinfo[IFLA_INFO_KIND])
|
if (linkinfo[IFLA_INFO_KIND])
|
||||||
kind = RTA_DATA(linkinfo[IFLA_INFO_KIND]);
|
kind = RTA_DATA(linkinfo[IFLA_INFO_KIND]);
|
||||||
|
|
||||||
#if HAVE_DECL_IFLA_INFO_SLAVE_KIND
|
|
||||||
if (linkinfo[IFLA_INFO_SLAVE_KIND])
|
if (linkinfo[IFLA_INFO_SLAVE_KIND])
|
||||||
slave_kind = RTA_DATA(linkinfo[IFLA_INFO_SLAVE_KIND]);
|
slave_kind = RTA_DATA(linkinfo[IFLA_INFO_SLAVE_KIND]);
|
||||||
#endif
|
|
||||||
|
|
||||||
netlink_determine_zebra_iftype(kind, &zif_type);
|
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])
|
if (linkinfo[IFLA_INFO_KIND])
|
||||||
kind = RTA_DATA(linkinfo[IFLA_INFO_KIND]);
|
kind = RTA_DATA(linkinfo[IFLA_INFO_KIND]);
|
||||||
|
|
||||||
#if HAVE_DECL_IFLA_INFO_SLAVE_KIND
|
|
||||||
if (linkinfo[IFLA_INFO_SLAVE_KIND])
|
if (linkinfo[IFLA_INFO_SLAVE_KIND])
|
||||||
slave_kind = RTA_DATA(linkinfo[IFLA_INFO_SLAVE_KIND]);
|
slave_kind = RTA_DATA(linkinfo[IFLA_INFO_SLAVE_KIND]);
|
||||||
#endif
|
|
||||||
|
|
||||||
netlink_determine_zebra_iftype(kind, &zif_type);
|
netlink_determine_zebra_iftype(kind, &zif_type);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user