diff options
author | bz <bz@FreeBSD.org> | 2008-11-06 11:11:25 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-11-06 11:11:25 +0000 |
commit | d3cda919593792fcceb2152b3420dec481b2a2fe (patch) | |
tree | e94524b0585c932d31f371a2597b9c11473e6d77 /sys/dev | |
parent | c2d5d6f6fe68b6b7b6d3a7a0988a04befe5c27d7 (diff) | |
download | FreeBSD-src-d3cda919593792fcceb2152b3420dec481b2a2fe.zip FreeBSD-src-d3cda919593792fcceb2152b3420dec481b2a2fe.tar.gz |
Hide AF_INET specific ioctl handling under #ifdef INET.
MFC after: 2 months
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/e1000/if_igb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c index 91f8dff..3beee5f 100644 --- a/sys/dev/e1000/if_igb.c +++ b/sys/dev/e1000/if_igb.c @@ -34,6 +34,7 @@ #ifdef HAVE_KERNEL_OPTION_HEADERS #include "opt_device_polling.h" +#include "opt_inet.h" #endif #include <sys/param.h> @@ -802,7 +803,9 @@ igb_ioctl(struct ifnet *ifp, u_long command, caddr_t data) { struct adapter *adapter = ifp->if_softc; struct ifreq *ifr = (struct ifreq *)data; +#ifdef INET struct ifaddr *ifa = (struct ifaddr *)data; +#endif int error = 0; if (adapter->in_detach) @@ -810,6 +813,7 @@ igb_ioctl(struct ifnet *ifp, u_long command, caddr_t data) switch (command) { case SIOCSIFADDR: +#ifdef INET if (ifa->ifa_addr->sa_family == AF_INET) { /* * XXX @@ -826,6 +830,7 @@ igb_ioctl(struct ifnet *ifp, u_long command, caddr_t data) } arp_ifinit(ifp, ifa); } else +#endif error = ether_ioctl(ifp, command, data); break; case SIOCSIFMTU: |