From owner-freebsd-net Mon Jul 29 8:38:42 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 194E737B400 for ; Mon, 29 Jul 2002 08:38:40 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 472FD43E3B for ; Mon, 29 Jul 2002 08:38:39 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g6TFccYx047155 for ; Mon, 29 Jul 2002 09:38:38 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 29 Jul 2002 09:38:18 -0600 (MDT) Message-Id: <20020729.093818.108376023.imp@bsdimp.com> To: net@freebsd.org Subject: Proper way to disallow IFF_PROMISC From: "M. Warner Losh" X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Sometimes the wi device cannot support promiscuous mode. I know in the driver when it can and can't do it. What's the right way to indicate this to the upper layers of the network code. Right now I take a huge hammer to the if_flags field and clear the bit when we're in hostap mode (which is the condition referred to above). However, I notice that the OpenBSD driver will keep the flag set and has all kinds of hacks to not set it in hardware when in hostap mode. What's the right way to do this? if_wi.c 1.108 has this change in it if you wanted to go look at it. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message