summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixl/if_ixlv.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2014-09-20 08:34:56 +0000
committerbz <bz@FreeBSD.org>2014-09-20 08:34:56 +0000
commit590ea256c33fd9045a8be5a790d4c9bc5cd03f05 (patch)
tree5dc8c5ffd1b6b17e2a0ff9c3e61029838d64d19d /sys/dev/ixl/if_ixlv.c
parent95348c732328c9093f8589caa068789e180f4f0c (diff)
downloadFreeBSD-src-590ea256c33fd9045a8be5a790d4c9bc5cd03f05.zip
FreeBSD-src-590ea256c33fd9045a8be5a790d4c9bc5cd03f05.tar.gz
Properly hide calls to ARP under #ifdef INET to allow IPv6-only
kernels to compile. MFC atfer: 3 days
Diffstat (limited to 'sys/dev/ixl/if_ixlv.c')
-rw-r--r--sys/dev/ixl/if_ixlv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ixl/if_ixlv.c b/sys/dev/ixl/if_ixlv.c
index 97dfadb..a29d669 100644
--- a/sys/dev/ixl/if_ixlv.c
+++ b/sys/dev/ixl/if_ixlv.c
@@ -755,8 +755,10 @@ ixlv_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
ifp->if_flags |= IFF_UP;
if (!(ifp->if_drv_flags & IFF_DRV_RUNNING))
ixlv_init(sc);
+#ifdef INET
if (!(ifp->if_flags & IFF_NOARP))
arp_ifinit(ifp, ifa);
+#endif
} else
error = ether_ioctl(ifp, command, data);
break;
OpenPOWER on IntegriCloud