From owner-freebsd-current Thu Jul 6 17: 2:52 2000 Delivered-To: freebsd-current@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 1505237BB56 for ; Thu, 6 Jul 2000 17:02:41 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id RAA14545; Thu, 6 Jul 2000 17:01:19 -0700 (PDT) From: Archie Cobbs Message-Id: <200007070001.RAA14545@bubba.whistle.com> Subject: Re: PPPoE not working In-Reply-To: <3964A7A8.41C67EA6@elischer.org> from Julian Elischer at "Jul 6, 2000 08:37:12 am" To: julian@elischer.org (Julian Elischer) Date: Thu, 6 Jul 2000 17:01:19 -0700 (PDT) Cc: dberlin@cygnus.com (Daniel Berlin), brian@Awfulhak.org (Brian Somers), archie@whistle.com (Archie Cobbs), dan@cgsoftware.com (Daniel Berlin), freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Julian Elischer writes: > > > The code's in ppp/ether.c. > > > > > > I'll see if I can get time to figure out what's wrong, but I can't > > > promise anything this week. I'm too busy (we're having a FreeBSD > > > mini-conference here in the UK at which I'm speaking...). > > > > > I already solved this one, the problem is that the source address is being overwritten with 0's. > > As a temporary hack, if you go into ng_pppoe.c, and replace the 0's with your ethernet address, you'll be golden. > > Actually Archie left out code to add IN the source MAC address. > so it wasn;t being overwritten, it was never being set.... > > I just committed a fix. > let me know the result Julian, Thanks for the fix. However, this seems like the wrong fix to me. I think the right fix would be for ppp(8) to set the source address, rather than always forcing it in ng_ether.c... that way the "lower" hook really is WYSIWYG and applications where other source addresses may want to be used are possible. I thought the semantics of writing to "lower" or "orphans" were to be that the packet gets delivered out the link exactly "as-is", unchanged. Having the correct source address should be optional. Perhaps there could be a control message to set an "add source address" bit. While we're at it, we could also use a control message to get the unique Ethernet address, turn promiscuous mode on/off, and add multicast addresses. What do you guys think? -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message