Fix kernel build without INET and INET6
Reviewed by: brooks, melifaro Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33718
This commit is contained in:
parent
ce1e5d0d5e
commit
a6668e31aa
@ -443,7 +443,9 @@ char *
|
||||
llentry_print_buf(const struct llentry *lle, struct ifnet *ifp, int family,
|
||||
char *buf, size_t bufsize)
|
||||
{
|
||||
#if defined(INET) || defined(INET6)
|
||||
char abuf[INET6_ADDRSTRLEN];
|
||||
#endif
|
||||
|
||||
const char *valid = (lle->r_flags & RLLE_VALID) ? "valid" : "no_l2";
|
||||
const char *upper_str = rib_print_family(llentry_get_upper_family(lle, family));
|
||||
|
@ -830,7 +830,9 @@ nhops_update_ifmtu(struct rib_head *rh, struct ifnet *ifp, uint32_t mtu)
|
||||
char *
|
||||
nhop_print_buf(const struct nhop_object *nh, char *buf, size_t bufsize)
|
||||
{
|
||||
#if defined(INET) || defined(INET6)
|
||||
char abuf[INET6_ADDRSTRLEN];
|
||||
#endif
|
||||
struct nhop_priv *nh_priv = nh->nh_priv;
|
||||
const char *upper_str = rib_print_family(nh->nh_priv->nh_upper_family);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user