misplaced #endif in ixgbe

Hooman Fazaeli hoomanfazaeli at gmail.com
Mon Oct 17 17:10:50 UTC 2011


A misplaced #endif in ixgbe_ioctl() causes all sorts of problems
when INET and INET6 are undefined. Pls. see the attached patch.



-------------- next part --------------
--- ixgbe.c.orig	2011-10-17 20:37:17.000000000 +0330
+++ ixgbe.c	2011-10-17 20:38:40.000000000 +0330
@@ -898,8 +898,8 @@
 				arp_ifinit(ifp, ifa);
 		} else
 			error = ether_ioctl(ifp, command, data);
-		break;
 #endif
+		break;
 	case SIOCSIFMTU:
 		IOCTL_DEBUGOUT("ioctl: SIOCSIFMTU (Set Interface MTU)");
 		if (ifr->ifr_mtu > IXGBE_MAX_FRAME_SIZE - ETHER_HDR_LEN) {


More information about the freebsd-net mailing list