Skip to content

Commit 9a964c5

Browse files
authored
Merge pull request FRRouting#18874 from opensourcerouting/build-config-h-20250522
build: the war against `config.h` continues, 1 of ∞
2 parents b0f36d0 + 0cc0fea commit 9a964c5

File tree

3 files changed

+6
-35
lines changed

3 files changed

+6
-35
lines changed

configure.ac

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,8 +1129,8 @@ fi
11291129
dnl -------------------------
11301130
dnl Check other header files.
11311131
dnl -------------------------
1132-
AC_CHECK_HEADERS([stropts.h sys/ksym.h \
1133-
linux/version.h asm/types.h sys/endian.h])
1132+
AC_CHECK_HEADERS([ \
1133+
asm/types.h sys/endian.h])
11341134

11351135
AC_CHECK_HEADER([endian.h], [], [
11361136
AC_MSG_ERROR([missing endian.h])
@@ -1265,7 +1265,7 @@ FRR_INCLUDES
12651265
])dnl
12661266

12671267
AC_CHECK_HEADERS([netinet/in_var.h \
1268-
net/if_dl.h net/netopt.h \
1268+
net/if_dl.h \
12691269
netinet/ip_icmp.h \
12701270
sys/sysctl.h sys/sockio.h sys/conf.h],
12711271
[], [], [FRR_INCLUDES])
@@ -1300,9 +1300,6 @@ FRR_INCLUDES
13001300
#ifdef HAVE_NET_IF_DL_H
13011301
# include <net/if_dl.h>
13021302
#endif
1303-
#ifdef HAVE_NET_NETOPT_H
1304-
# include <net/netopt.h>
1305-
#endif
13061303
#include <net/route.h>
13071304
#include <arpa/inet.h>
13081305
/* Required for IDRP */
@@ -1799,19 +1796,13 @@ AC_CHECK_MEMBERS([struct utsname.domainname], [], [], [#include <sys/utsname.h>]
17991796
dnl ------------------
18001797
dnl IPv6 header checks
18011798
dnl ------------------
1802-
AC_CHECK_HEADERS([netinet6/in6.h netinet/in6_var.h \
1799+
AC_CHECK_HEADERS([ \
18031800
netinet6/in6_var.h netinet6/nd6.h], [], [],
18041801
FRR_INCLUDES)
18051802

18061803
m4_define([FRR_INCLUDES],dnl
18071804
FRR_INCLUDES
1808-
[#ifdef HAVE_NETINET6_IN6_H
1809-
#include <netinet6/in6.h>
1810-
#endif
1811-
#ifdef HAVE_NETINET_IN6_VAR_H
1812-
#include <netinet/in6_var.h>
1813-
#endif
1814-
#include <netinet/icmp6.h>
1805+
[#include <netinet/icmp6.h>
18151806
#ifdef HAVE_NETINET6_IN6_VAR_H
18161807
# include <netinet6/in6_var.h>
18171808
#endif
@@ -2319,7 +2310,7 @@ AC_CHECK_TYPES([
23192310
struct sockaddr_dl,
23202311
struct vifctl, struct mfcctl, struct sioc_sg_req,
23212312
vifi_t, struct sioc_vif_req, struct igmpmsg,
2322-
struct ifaliasreq, struct if6_aliasreq, struct in6_aliasreq,
2313+
struct ifaliasreq, struct in6_aliasreq,
23232314
struct nd_opt_adv_interval,
23242315
struct nd_opt_homeagent_info, struct nd_opt_adv_interval,
23252316
struct nd_opt_rdnss, struct nd_opt_dnssl],
@@ -2328,7 +2319,6 @@ AC_CHECK_TYPES([
23282319
AC_CHECK_MEMBERS([struct sockaddr.sa_len,
23292320
struct sockaddr_in.sin_len, struct sockaddr_un.sun_len,
23302321
struct sockaddr_dl.sdl_len,
2331-
struct if6_aliasreq.ifra_lifetime,
23322322
struct nd_opt_adv_interval.nd_opt_ai_type],
23332323
[], [], FRR_INCLUDES)
23342324

lib/zebra.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
#include <stdlib.h>
1818
#include <stddef.h>
1919
#include <ctype.h>
20-
#ifdef HAVE_STROPTS_H
21-
#include <stropts.h>
22-
#endif /* HAVE_STROPTS_H */
2320
#include <sys/types.h>
2421
#include <sys/param.h>
2522
#ifdef HAVE_SYS_SYSCTL_H
@@ -32,9 +29,6 @@
3229
#ifdef HAVE_SYS_CONF_H
3330
#include <sys/conf.h>
3431
#endif /* HAVE_SYS_CONF_H */
35-
#ifdef HAVE_SYS_KSYM_H
36-
#include <sys/ksym.h>
37-
#endif /* HAVE_SYS_KSYM_H */
3832
#include <sys/time.h>
3933
#include <time.h>
4034
#include <inttypes.h>
@@ -60,10 +54,6 @@
6054
#include <netinet/ip.h>
6155
#include <netinet/tcp.h>
6256

63-
#ifdef HAVE_NET_NETOPT_H
64-
#include <net/netopt.h>
65-
#endif /* HAVE_NET_NETOPT_H */
66-
6757
#include <net/if.h>
6858

6959
#ifdef HAVE_NET_IF_DL_H
@@ -90,10 +80,6 @@
9080
#include <netinet6/in6_var.h>
9181
#endif /* HAVE_NETINET6_IN6_VAR_H */
9282

93-
#ifdef HAVE_NETINET_IN6_VAR_H
94-
#include <netinet/in6_var.h>
95-
#endif /* HAVE_NETINET_IN6_VAR_H */
96-
9783
#ifdef HAVE_NETINET6_IN_H
9884
#include <netinet6/in.h>
9985
#endif /* HAVE_NETINET6_IN_H */

zebra/ioctl.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -575,11 +575,6 @@ static int if_set_prefix6_ctx(const struct zebra_dplane_ctx *ctx)
575575
addreq.ifra_lifetime.ia6t_vltime = 0xffffffff;
576576
addreq.ifra_lifetime.ia6t_pltime = 0xffffffff;
577577

578-
#ifdef HAVE_STRUCT_IF6_ALIASREQ_IFRA_LIFETIME
579-
addreq.ifra_lifetime.ia6t_pltime = ND6_INFINITE_LIFETIME;
580-
addreq.ifra_lifetime.ia6t_vltime = ND6_INFINITE_LIFETIME;
581-
#endif
582-
583578
ret = if_ioctl_ipv6(SIOCAIFADDR_IN6, (caddr_t)&addreq);
584579
if (ret < 0)
585580
return ret;

0 commit comments

Comments
 (0)