Subject: Re: kern/3455: Please make pppoutput public again
To: Christos Zoulas <firstname.lastname@example.org>
From: Martin Husemann <email@example.com>
Date: 04/08/1997 00:59:41
> Can't you use (*sc->sc_if.if_output)()?
Hmm - not realy. sc->sc_if is the pointer to our own struct sc_....,
this is necessary to have a path back from the generic pointer passed
to e.g. timeout functions to "the real thing". The sc in questions is
a subclass of if_ppp in the object oriented sense - it adds a few members
and uses methods from its parent. The latter is done by e.g. assigning
pppoutput to sc_if.if_output - which doesn't work outside if_ppp.c right
Btw - I'm not happy with this whole design at all - but haven't come
up with something more coherent. Idealy, ppp over ISDN should just atach
to a different /dev/tty and work the same way all other ppp connections
work. But the real world right now is quite different (you won't use chat
to dial an ISDN connection).