From owner-freebsd-net@FreeBSD.ORG Mon Oct 17 17:10:50 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BED60106566B for ; Mon, 17 Oct 2011 17:10:50 +0000 (UTC) (envelope-from hoomanfazaeli@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7D62C8FC15 for ; Mon, 17 Oct 2011 17:10:48 +0000 (UTC) Received: by ggeq3 with SMTP id q3so4147686gge.13 for ; Mon, 17 Oct 2011 10:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=nO06ejtXIIK++OonnvWXOzdKg85zhpHRoW42pPWEhc8=; b=t7HKUwERKAxFdTZdhoUcEwYBQi6miYzFbirxwQCoJhhYoZZjnUvekmM4FQ74vrIdY5 5voOZqTLaQVJ6iPlIvsNaxJ0FDKXFkmo043PxeWhYhIQ1Hv17jWsGmWzY8hTjgi2gdUb Z44RtWvpf9l+aGXEWP47rkOx2sLuMzx2bioIM= Received: by 10.223.85.139 with SMTP id o11mr25601731fal.0.1318871447946; Mon, 17 Oct 2011 10:10:47 -0700 (PDT) Received: from [127.0.0.1] ([84.241.57.181]) by mx.google.com with ESMTPS id b16sm15602758fao.7.2011.10.17.10.10.45 (version=SSLv3 cipher=OTHER); Mon, 17 Oct 2011 10:10:47 -0700 (PDT) Message-ID: <4E9C6190.4030404@gmail.com> Date: Mon, 17 Oct 2011 20:40:40 +0330 From: Hooman Fazaeli User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15 MIME-Version: 1.0 To: "freebsd-net@freebsd.org" , Jack Vogel Content-Type: multipart/mixed; boundary="------------050903060701080907090208" Cc: Subject: misplaced #endif in ixgbe X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2011 17:10:50 -0000 This is a multi-part message in MIME format. --------------050903060701080907090208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit A misplaced #endif in ixgbe_ioctl() causes all sorts of problems when INET and INET6 are undefined. Pls. see the attached patch. --------------050903060701080907090208 Content-Type: text/plain; name="ixgbe.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ixgbe.c.diff" --- 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) { --------------050903060701080907090208--