From owner-freebsd-hackers Thu Aug 15 11:48:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C341C37B400; Thu, 15 Aug 2002 11:48:35 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46AB343E65; Thu, 15 Aug 2002 11:48:35 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id g7FImXwu022758; Thu, 15 Aug 2002 11:48:33 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id g7FImXWR022757; Thu, 15 Aug 2002 11:48:33 -0700 Date: Thu, 15 Aug 2002 11:48:33 -0700 From: Brooks Davis To: Maxim Sobolev Cc: hackers@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: Increasing size of if_flags field in the ifnet structure [patch for review] Message-ID: <20020815114830.A21334@Odin.AC.HMC.Edu> References: <3D5BF635.3764C796@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D5BF635.3764C796@FreeBSD.org>; from sobomax@FreeBSD.ORG on Thu, Aug 15, 2002 at 09:43:01PM +0300 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 15, 2002 at 09:43:01PM +0300, Maxim Sobolev wrote: >=20 > When implementing ability to switch interface into promisc mode using > ifconfig(8) I've stumbled into the problem with already exhausted > space in the `short if_flags' field in the ifnet structure. I need to > allocate one new flag, while we already have 16 IFF_* flags, and even > one additional flag which is implemented using currently free > if_ipending field of the said structure. Attached patch is aimed at > increasing size of if_flags to 32 bits, as well as to clean-up > if_ipending abuse. Granted, it will break backward ABI compatibility, > but IMO it is not a big problem. Sounds reasionable to me. We're going to break the API and ABI shortly for if_xname conversion anyway. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9W/d9XY6L6fI4GtQRAr3vAKCUSyK4GTaJ6GgWK9kQA3MEkr4vDwCgvaSc Js83NCI5VNTe5la9WqMTMFY= =Xecb -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message