On 3 Feb 2000, Henner Eisen wrote:
> >>>>> "jamal" == jamal <hadi@xxxxxxxxxx> writes:
>
> jamal> -Hard coded for PPPOE -Creating a whole socket family for
> jamal> just PPPOE is a bad idea (claim: Could make it for PPPOX
> jamal> with type PPPOE, L2TP etc).
>
> What about a generic ´ppp over socket´ paradigm which would eliminate
> the need of special protocol families for each ppp carrier?
>
> I´was thinking about it like this:
>
Other than the weird syntax you provided for the socket connect this
sounds quiet reasonable to me; domain=pppox, type=pppoe, protocol=0x8864
as an example ...
This is what i was saying to Michal (but not in so many words ;->).
In addition i think what is needed is a registration API at the kernel
so that all the common code is shared other than the encapsulation/send
recieve/decapsulation which is specific to the particular "PPP over X"
This way every new PPPOX doesnt have a new socket family and it adds only
the code specific to itself.
cheers,
jamal
|