Date: Thu, 6 Nov 2008 10:17:57 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184714 - head/sys/dev/cxgb Message-ID: <200811061017.mA6AHv91051810@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Thu Nov 6 10:17:57 2008 New Revision: 184714 URL: http://svn.freebsd.org/changeset/base/184714 Log: Hide AF_INET specific ioctl handling under #ifdef INET. Reviewed by: kmacy MFC after: 2 months Modified: head/sys/dev/cxgb/cxgb_main.c Modified: head/sys/dev/cxgb/cxgb_main.c ============================================================================== --- head/sys/dev/cxgb/cxgb_main.c Thu Nov 6 09:59:57 2008 (r184713) +++ head/sys/dev/cxgb/cxgb_main.c Thu Nov 6 10:17:57 2008 (r184714) @@ -1931,7 +1931,9 @@ static int cxgb_ioctl(struct ifnet *ifp, unsigned long command, caddr_t data) { struct port_info *p = ifp->if_softc; +#ifdef INET struct ifaddr *ifa = (struct ifaddr *)data; +#endif struct ifreq *ifr = (struct ifreq *)data; int flags, error = 0, reinit = 0; uint32_t mask; @@ -1944,6 +1946,7 @@ cxgb_ioctl(struct ifnet *ifp, unsigned l error = cxgb_set_mtu(p, ifr->ifr_mtu); break; case SIOCSIFADDR: +#ifdef INET if (ifa->ifa_addr->sa_family == AF_INET) { ifp->if_flags |= IFF_UP; if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) { @@ -1953,6 +1956,7 @@ cxgb_ioctl(struct ifnet *ifp, unsigned l } arp_ifinit(ifp, ifa); } else +#endif error = ether_ioctl(ifp, command, data); break; case SIOCSIFFLAGS:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811061017.mA6AHv91051810>