From owner-freebsd-net@FreeBSD.ORG Tue Apr 18 15:16:23 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 BF3BB16A402 for ; Tue, 18 Apr 2006 15:16:23 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA23543D46 for ; Tue, 18 Apr 2006 15:16:22 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 24466 invoked from network); 18 Apr 2006 15:16:21 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[217.50.145.154]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 18 Apr 2006 15:16:21 -0000 Date: Tue, 18 Apr 2006 17:16:18 +0200 From: Fabian Keil To: Erik Trulsson Message-ID: <20060418171618.4b5afc28@localhost> In-Reply-To: <20060418145421.GA61197@owl.midgard.homeip.net> References: <200604142048.20189.doconnor@gsoft.com.au> <20060414140709.20c51ebc@localhost> <200604151053.25089.doconnor@gsoft.com.au> <20060415115352.1ef82bb1@localhost> <20060415195147.GA54638@heff.fud.org.nz> <20060415232801.0dbbc8f4@localhost> <4444CA13.8000405@wm-access.no> <20060418164142.0831e7db@localhost> <20060418145421.GA61197@owl.midgard.homeip.net> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.6; i386-portbld-freebsd6.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_MQV9KXMnl3byXq2=hl0OxrZ"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-net@freebsd.org Subject: Re: How to use if_bridge 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: Tue, 18 Apr 2006 15:16:23 -0000 --Sig_MQV9KXMnl3byXq2=hl0OxrZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Erik Trulsson wrote: > On Tue, Apr 18, 2006 at 04:41:42PM +0200, Fabian Keil wrote: > > I tried if_bridge to let QEMU on my laptop talk to the wireless > > network. It worked if the Laptop's NIC was in ad-hoc or hostap mode, > > but failed if the NIC was connected to an access point. > >=20 > > NAT solved the problem, but I still don't understand why if_bridge > > didn't work. If it was expected to fail I think it should be mentioned > > in the man page. >=20 > Because when a station sends a packet to an AP the source ethernet address > must be that of the station. =20 > A bridge should not modify the packets passed through it so then the sour= ce > address should be that of the originating computer instead of that of the > station and then things will not work correctly. Thanks for the explanation. Fabian --=20 http://www.fabiankeil.de/ --Sig_MQV9KXMnl3byXq2=hl0OxrZ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFERQLDjV8GA4rMKUQRAmjOAKCOBK+/+i3dqwnYXQ1DRgV+oQwGHwCfaEka NCqxIb0Z5Ytur9FrJt5lK2w= =hE8d -----END PGP SIGNATURE----- --Sig_MQV9KXMnl3byXq2=hl0OxrZ--