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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to