multiple DSL modems and pppoe sessions on the same ethernet ?
Gleb Smirnoff
glebius at FreeBSD.org
Mon Aug 7 14:46:54 UTC 2006
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
More information about the freebsd-net
mailing list