From owner-freebsd-mobile Sun Jan 12 9:28:40 2003 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 806D537B401 for ; Sun, 12 Jan 2003 09:28:38 -0800 (PST) Received: from athena.2010tech.net (frih30110234-11.pari1.eu.psigh.com [62.50.131.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56E4943F79 for ; Sun, 12 Jan 2003 09:28:28 -0800 (PST) (envelope-from Jacques.Caron@IPsector.com) Received: from jc-xp.ipsector.com ([62.50.159.43]) by athena.2010tech.net (8.12.6/8.12.6) with ESMTP id h0CHRZb0055799; Sun, 12 Jan 2003 18:27:45 +0100 (CET) (envelope-from Jacques.Caron@IPsector.com) Message-Id: <5.2.0.9.0.20030112181850.02485d50@pop.mail.yahoo.com> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Sun, 12 Jan 2003 18:26:24 +0100 To: "Ben Pfountz" From: Jacques Caron Subject: Re: wi in hostap mode causes panic near linksys router Cc: , In-Reply-To: <002101c2ba5b$53194330$6511a8c0@benspiece> References: <001401c2b9b6$5a94c1c0$6511a8c0@benspiece> <20030111.204643.06072765.imp@bsdimp.com> <20030112164138.GA31670@chocobo.cx> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, It's a bit more subtle than just "it doesn't work", really. The problem is due to the fact that 802.11 frames actually have up to 4 MAC addresses in their header, which are: - (1) the source MAC address of the frame - (2) the MAC address of the STA that sent the frame over the air - (3) the MAC address of the STA that should receive the frame over the air - (4) the destination MAC address of the frame In many cases (e.g. the AP is also a router, with "regular" clients connecting to it), (1) == (2) and (3) == (4). In a lot of other cases (the AP is a pure AP, not doing routing, still with "regular" clients connecting to it), you have either (1) == (2) or (3) == (4) (depends whether it's a frame to or from the AP). All these cases work perfectly with hostap, and the latter has the AP box acting as a bridge, so this works. What doesn't work is to have two boxes both acting as bridges, with a LAN on each side: this requires 4 different addresses, and most importantly, requires the transmitting box to know that it has to send packets with an unknown destination MAC address to the other box. This is the so-called WDS (wireless distribution system) mode, which is not currently implemented in the FreeBSD version of the hostap driver. Hope this helps, Jacques. At 17:54 12/01/2003, Ben Pfountz wrote: >Hey Chip, > >Thanks for the info. I read that too, but it must be old because the bridge >worked great when I was at home for days. > >Ben > > >On January 11, 2003, M. Warner Losh sent me the following: > > : /sbin/sysctl net.link.ether.bridge_cfg="wi0 fxp0" > > : /sbin/sysctl net.link.ether.ipfw=1 > > : /sbin/sysctl net.link.ether.bridge_ipfw=1 > > : /sbin/sysctl net.link.ether.bridge=1 > > > > I've not done bridging things with ipfw and bridge_ipfw. I've onlt > > done bridge=1. > >The bridge manpage seems to suggest that it won't work with wi, is >this just out of date, or am I misreading it? > > Bridging requires interfaces to be put in promiscuous mode, and > transmit packets with Ethernet source addresses. Some interfaces > (e.g. wi(4)) do not support this functionality. > >-- >Chip Marshall http://www.chocobo.cx/chip/ >GCM/CS d+(-) s+:++ a21>? C++ UB++++$ P+++$ L- E--- W++ N@ o K- w O M+ >V-- PS+ PE Y+ PGP++ t+@ R@ tv@ b++@ DI++++ D+(-) G++ e>++ h>++ r++ y? > > >----- Original Message ----- >From: "Chip Marshall" >To: >Sent: Sunday, January 12, 2003 11:41 AM >Subject: Re: wi in hostap mode causes panic near linksys router > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-mobile" in the body of the message -- Jacques Caron, IP Sector Technologies Join the discussion on public WLAN open global roaming: http://lists.ipsector.com/listinfo/openroaming To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message