Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2006 18:45:57 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        net@FreeBSD.org
Subject:   Re: multiple DSL modems and pppoe sessions on the same ethernet ?
Message-ID:  <20060807144557.GF96644@cell.sick.ru>
In-Reply-To: <20060726071232.A96367@xorpc.icir.org>
References:  <20060726071232.A96367@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 26, 2006 at 07:12:32AM -0700, Luigi Rizzo wrote:
L> The problem is, my provider does not provide specific service names,
L> but it will accept anything i supply. So when i run the three ppp instances,
L> they will all match, and the code in ng_pppoe.c will happily take the
L> first reply as good.
L> 
L> The only approach left is then implement some form of MAC filtering,
L> e.g. overloading the 'service name' to specify the mac address of the
L> modem i am interested in.
L> There is a couple of ways to implement this, one is patching the
L> receive path (ng_pppoe_rcvdata(), case PADO_CODE) to filter replies
L> based on the source mac address, and the other one is to patch
L> the code transmitting the PADI packet to replace the broadcast
L> dst address with the unicast MAC taken from the "service name".

The second option I think is a violation of the protocol, so I
suppose filtering on receive path is better.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060807144557.GF96644>