From owner-freebsd-net@FreeBSD.ORG Sun Feb 15 06:44:33 2004 Return-Path: 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 0BC2816A4D1; Sun, 15 Feb 2004 06:44:33 -0800 (PST) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC99E43D1D; Sun, 15 Feb 2004 06:44:32 -0800 (PST) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id D68381FF921; Sun, 15 Feb 2004 15:44:30 +0100 (CET) Received: by transport.cksoft.de (Postfix, from userid 66) id 297E91FF90D; Sun, 15 Feb 2004 15:44:28 +0100 (CET) Received: by mail.int.zabbadoz.net (Postfix, from userid 1060) id E5672153CA; Sun, 15 Feb 2004 14:43:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.int.zabbadoz.net (Postfix) with ESMTP id E2E8F15384; Sun, 15 Feb 2004 14:43:00 +0000 (UTC) Date: Sun, 15 Feb 2004 14:43:00 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@e0-0.zab2.int.zabbadoz.net To: FreeBSD net mailing list Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de cc: FreeBSD current mailing list cc: "Bjoern A. Zeeb" Subject: TEST/REVIEW ng_ether/ng_pppoe/ppp X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2004 14:44:33 -0000 Hi, I have added some functionality to ng_ether / ng_pppoe that is needed for running multiple pppoe sessions over one single NIC even if the AC uses s.th. like 'pppoe duplicate-protection' [1]. I have seperated the patches for easier review and tried to do it in a manner so that parts can be used for other things too (at least the ng_ether one). I also updated the man pages to reflect these changes. Here are the patches: http://sources.zabbadoz.net/freebsd/patchset/10005-net-netgraph-ether.diff ! Description: hook for ng_ether to receive unicast packets to a ! different Ethernet address than the one of the interface. http://sources.zabbadoz.net/freebsd/patchset/10006-netgraph-pppoe.diff ! Description: 2 extensions to ng_pppoe: ! + in addition to AC NAME also report AC MAC to userspace ! + add the ability to give a MAC as source MAC for the ! session when connecting Please review and commit if you like it. I have tested both for some weeks now with following patch to ppp(8). It needs a lot more review but may be good enough for testing. Comments/diffs/improved versions on this one welcome. http://sources.zabbadoz.net/freebsd/patchset/10008-usr-sbin-ppp-pppoe-smac.diff ! Description: extend ppp to make use of patch 10006 (set source MAC ! for pppoe session). ! ! Remarks: hopefully seperated patch correctly from 10007; ! I am almost sure this patch will break something else. [it will most likely not apply cleanly without patch 10007 - see other mail to current@ ] [1] http://juniper.net/techpubs/software/erx/erx50x/swconfig-link/html/pppoe-config5.html#123643 -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT 56 69 73 69 74 http://www.zabbadoz.net/