Fix NOINET6 build broken by 2fe5a79425.

Reported by:	mjg
This commit is contained in:
Alexander V. Chernikov 2021-02-16 21:49:48 +00:00
parent 2fe5a79425
commit a4513bace0

View File

@ -1293,6 +1293,7 @@ rt_xaddrs(caddr_t cp, caddr_t cplim, struct rt_addrinfo *rtinfo)
return (0);
}
#ifdef INET
static inline void
fill_sockaddr_inet(struct sockaddr_in *sin, struct in_addr addr)
{
@ -1304,7 +1305,9 @@ fill_sockaddr_inet(struct sockaddr_in *sin, struct in_addr addr)
};
*sin = nsin;
}
#endif
#ifdef INET6
static inline void
fill_sockaddr_inet6(struct sockaddr_in6 *sin6, const struct in6_addr *addr6,
uint32_t scopeid)
@ -1318,6 +1321,7 @@ fill_sockaddr_inet6(struct sockaddr_in6 *sin6, const struct in6_addr *addr6,
};
*sin6 = nsin6;
}
#endif
static int
cleanup_xaddrs_gateway(struct rt_addrinfo *info)
@ -1372,6 +1376,7 @@ cleanup_xaddrs_gateway(struct rt_addrinfo *info)
return (0);
}
#ifdef INET
static int
cleanup_xaddrs_inet(struct rt_addrinfo *info)
{
@ -1412,7 +1417,9 @@ cleanup_xaddrs_inet(struct rt_addrinfo *info)
return (0);
}
#endif
#ifdef INET6
static int
cleanup_xaddrs_inet6(struct rt_addrinfo *info)
{
@ -1450,6 +1457,7 @@ cleanup_xaddrs_inet6(struct rt_addrinfo *info)
return (0);
}
#endif
static int
cleanup_xaddrs(struct rt_addrinfo *info)