From owner-freebsd-current@FreeBSD.ORG Fri Sep 22 20:27:14 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01A3716A407 for ; Fri, 22 Sep 2006 20:27:14 +0000 (UTC) (envelope-from pete@altadena.net) Received: from gooney.altadena.net (gooney.altadena.net [207.215.170.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8822943D4C for ; Fri, 22 Sep 2006 20:27:13 +0000 (GMT) (envelope-from pete@altadena.net) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=2.gooney; d=altadena.net; h=Received:Message-ID:Date:From:Organization:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type:Content-Transfer-Encoding; b=DVx3uwcKN/jHpOL9ulTzTEldJkTrresSSmv8Ra0sTBbDGi4EJJxpSRwRmFw/xLRrCq5dcPgM+Y3uRGmwEpmrv8ywbTQtAdp/Gz7RW8nndoWgeLcFC6Cl6Oir0v02iEYia1UV5220x8Gv2g1l1PUaoUJ2IoZ6G52xHSDfw+AtGlw=; Received: from office.cerona.com ([206.83.251.90] helo=[192.168.201.55]) by gooney.altadena.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1GQrbz-0003tB-4I; Fri, 22 Sep 2006 13:27:03 -0700 Message-ID: <451446F9.5030705@altadena.net> Date: Fri, 22 Sep 2006 16:26:33 -0400 From: Peter Carah Organization: Altadena Internet Communications User-Agent: Thunderbird 1.5.0.5 (X11/20060909) MIME-Version: 1.0 To: Andrew Atrens References: <45141C28.1050506@altadena.net> <45142830.4030706@nortel.com> In-Reply-To: <45142830.4030706@nortel.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: IF_BRIDGE problem on RELENG_6 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 20:27:14 -0000 Andrew Atrens wrote: > > I'm surprsied this worked for you in hostap <--> client > > I've heard that it can work in adhoc <--> adhoc if both nics are in promiscuous > mode. > > The issue as I remember it is that the 80211 header has three addresses in it. > > On the client side - > > one address is used for bss > one address is used for sender (client) mac, and > one address is used for the ap mac > > The problem with bridged packets is that the sender mac in the wless packet gets > set to the 'src' mac of the packet being bridged. When the ap side gets this packet it > doesn't recognise the mac, indeed it thinks that the packet has come from an > unauthenticated/unassociated station. > > Packets being sent by the ap are okay, because the 3 address header looks like > > one address is used for the ap bss > one address is used for the src mac > one address is used for the dest mac > > The whole WDS thing, whenever it's supported utilises a 4 address header and so > should support what you are doing. > > Most commercial wless bridges do some kind of mac nat or when used with a single > computer use a mac cloning scheme. > > In my case I introduced another IP type and add a simple 2 address header > > Andrew. > Both Sam and the man page claimed that it worked with the ath ports in hostap mode, and indeed it did till a couple of days ago. Now it doesn't, I need to revert some change but don't know just what the change was. The IP layer in wlan is supposed to pick the right src mac when shoving the packet into the stack. I've never seen any mac nat used with any AP I've ever seen. (packets on the wire side show up with exactly the pair of macs I'd expect, and the real (other side of ap) dest mac shows in the packets on both sides of the radio link. Indeed I haven't snooped the radio itself. Sam probably knows much more about this than I do, however...) -- Pete