Hi
I'd like to make a few feature requests for pppd.
- There's an add_options() function that can be used to add options to
pppd. This works, but only if you use these new options inside an options
file. Could it be made that pppd not complain about these new options
when given as arguments to pppd?
- Another plugin hook. It should get called whenever device_script() is
called. The name and the exit status of the script should also be
provided. This is useful to see what chat barfed on, because it returns
different exit codes for the different ABORT's in the chat file.
- A buffer that data can be put for read_packet() to read. This is useful
for when a getty wants to auto-sense ppp. At the moment a getty eats a
piece of the packet before knowing it should fire up pppd. Then pppd
needs to wait for the peer to send another lcp packet before starting
negotiations. The patch is quite simple -- just add to read_packet
something like:
if (externbuf) {
strncpy (buf, externbuf, PPP_MRU+PPP_HDRLEN);
externbuf=0;
nr = strlen (buf);
return (new_style_driver)? nr+2: nr ;
}
I can provide patches for all these, but I'm not sure if Paul would accept
them. Would you?
Thanks!
--
------------------
Sarel Botha
[EMAIL PROTECTED]
------------------
99 little bugs in the code, 99 bugs in the code,
fix one bug, compile it again...
101 little bugs in the code....
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]