[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Control pppd behaviour



Ashmath Khan wrote:
> Ok.
> Its a requirement from my customer which I need to implement !
> My customer doesn't want normal retries but want this to be tried. As
> simple as that.
> In addtion:and after m retries, I would want to switch to some default
> credentials and continue the retries.
> Does this explain ?

Unfortunately, no, but we're getting closer.

Are you talking about PPP negotiation or about separate invocations of pppd?

If it's separate invocations of pppd, then you can certainly wrap pppd
with a script that checks the exit code (make sure you use the
"updetach" option so you get something sensible), and use the exit code
to determine what to do next.  See the man page for details.

If you're talking about the individual PPP negotiation messages that a
single pppd invocation sends to its peer (i.e., you want to send PAP
Authenticate-Request using user "joe" the first two times and then "bob"
the next two times), then you'll need to modify the source to do as
you're asking.

Fortunately, it's pretty easy to modify.

-- 
James Carlson         42.703N 71.076W         <carlsonj@xxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Linux Audio Users]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linux Resources]     [Fedora Users]

Powered by Linux