summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
AgeCommit message (Collapse)Author
1999-02-25Parse IP addresses more securely - specifically, don't allowbrian
a bum name to return as 0.0.0.0... we don't want ``delete xxx'' to delete the default route when xxx doesn't resolve. Support IP number specifications as the host when specifying a tcp-style device (rather than *just* hostnames).
1999-02-25When our dial timeout is ``random'', display its valuebrian
correctly by invoking the timer to get the value before displaying the message. Don't assume that a value of 0 is ``random'' in ``show datalink''. Make the random value between 1 and DIAL_TIMEOUT rather than between 0 and DIAL_TIMEOUT-1
1999-02-25Don't immediately bring auto links back up in multilinkbrian
mode (when there is more than one auto link) if there is no data queued to go out. Reviewed by: Tom Torrance <tom@tomqnx.com>
1999-02-20Handle empty PAP & CHAP packets (containing only an FSM header).brian
Some CHAP implementations send no welcome message with their SUCCESS/FAILURE packets. This was being mis-identified as a truncated packet by the new authentication code :-(
1999-02-19Be a little more verbose about dodgy looking authenticationbrian
packets before dropping them in the bit-bucket.
1999-02-18Build correctly when -DNOCRYPT is used.brian
1999-02-18Don't expect a chap response if we haven't negotiatedbrian
chap 0x80.
1999-02-18Fully support both NT and LANMan CHAP type 0x80 as bothbrian
authenticator and authenticatee.
1999-02-17Nuke any remaining auth timers when datalinks come back downbrian
to DATALINK_LCP.
1999-02-16Wait by default for one second after the login scriptbrian
is complete before checking carrier. If it's there, the device supports carrier. If it's not it doesn't. Add the ``set cd'' command for deciding how soon to check for carrier, and for deciding if carrier is REQUIRED. The default has changed: Pre 2.0 versions of ppp waited for 1 second. Version 2 didn't wait, but this causes problems with some (few?) modems that don't assert carrier immediately on reporting CONNECT. The one second delay is back now and can be removed with ``set cd 0''. Bump the ppp version number in case this needs to be changed again....
1999-02-14Describe manual dialing in greater detail.brian
Mention more rfc numbers. Don't ``.Nm Ppp'' (just use ``.Nm'').
1999-02-12When executing a command as part of a dial/login/hangupbrian
script, expand words in the same way as !bg does.
1999-02-11When resending chap challenges, resend the same challengebrian
each time rather than making up a new one. Increase the authname/authkey max sizes to 100 characters. Allow ``authkey'' specifications beginning with ``!''. When a challenge is received, the text following the ``!'' is executed as a program (expanding stuff in the same way that ``sh'' and ``!bg'' do). The program is passed the peer name, peer challenge and local ``authname'' on standard input and is expected to output the name/key combination that should be used to build the CHAP response. This provides support for Secure ID cards (guess what I was given at work recently!) using CHAP. Examples will follow.
1999-02-07Correct server-side chap authentication comparisonbrian
(broken with last commit).
1999-02-07Remove forgotten diagnosticsbrian
1999-02-06Support RADIUSbrian
While I'm in there, validate pap & chap header IDs if ``idcheck'' is enabled (the default) for other FSM packet types. NOTE: This involved integrating the generation of chap challenges and the validation of chap responses (and commenting what's going on in those routines). I currently have no way of testing ppps ability to respond to M$Chap CHALLENGEs correctly, so if someone could do the honours, it'd be much appreciated (it *looks* ok!). Sponsored by: Internet Business Solutions Ltd., Switzerland
1999-02-04Change the timer routines so that they interrupt when the nextbrian
item is scheduled rather than interrupting 10 times per second and finding that there's nothing to do most of the time. This change reduces interrupt overheads but will expose any (previously small) latency problems. Be more careful about building VJ compression requests - we can't htonl/ntohl the entire four bytes ! Also, when we get a NAK, try to get as close as possible to what the peer NAKs with when sending our next REQ. Similarily when we send a NAK, pick values as close as possible to what the peer REQd. Fix a couple of man page typos (compliments of billf@FreeBSD.org)
1999-02-02Don't allow root to specify non-existent labels onbrian
the command line. Revise the error diagnostics so that invalid labels are reported immediately.
1999-02-02Reimplement the previous fix (no response to PAP requests)brian
at the authentication layer rather than at the PAP layer so that it also applies to CHAP (no response to CHAP challenges).
1999-02-01If we receive no answer from the server when sending PAPbrian
requests, give up (don't sit there indefinitely).
1999-01-31Mention the error when we fail to connect().brian
1999-01-25Don't SEGV when ``set proctitle'' is used in the defaultbrian
section. Submitted by: Dan Lukes <dan@obluda.cz>
1999-01-20Recurse when we've switched state via LoginDone(). If we'vebrian
got an open link, we want it to be select()d on - otherwise we get a freeze when ``openmode'' is passive.
1999-01-19Change the maximum number of filters from 20 to 40.brian
Increase requested by: "Clement T. Cole" <clemc@echo.ccc.com>
1999-01-19Suggest that ``set proctitle'' is used in ppp.linkup whenbrian
USER is expected to be expanded.
1999-01-19Send the peer-decided PSTN address with the CBCP Ack,brian
otherwise windows clients will keep resending the response :-/ It'd be nice if M$ would document this sort of thing ! Problem reported by: Andrzej Tobola <san@tmp.iem.pw.edu.pl>
1999-01-13If we've configured CBCP *and* another not-so-importantbrian
CALLBACK protocol and end up agreeing CBCP, DTRT and go into CBCP phase rather than mistakenly terminating as if CBCP wasn't agreed. Problem reported by: Alexander Dubinin <alex@nstl.nnov.ru>
1999-01-11Correct some formatting errors (one is a groff bug)brian
Noted & partially submitted by: Peter Jeremy <peter.jeremy@auss2.alcatel.com.au>
1999-01-10Only call isatty() when we open our descriptor, and rememberbrian
the answer. If we later get a descriptor exception from select(), we know that it's a tty (isatty() returns 0 after the exception on a tty) and remember to call modem_LogicalClose(). The upshot of it all is that descriptor exceptions dont leave the tty locked any more.
1999-01-10If we can't open alias.log, don't try to write to thebrian
resulting NULL FILE *.
1999-01-08Don't use the next phone number after the ``|'' if thebrian
dial & login are successful. Submitted by: Toshiomi Moriki <Toshiomi.Moriki@ma1.seikyou.ne.jp>
1999-01-06Typo: The idle timer is ignored in -ddial and -dedicatedbrian
mode, not in -ddial and -direct. Pointed out by: Chris Timmons <skynyrd@opus.cts.cwu.edu>
1999-01-06Don't warn when ``add xxxx HISADDR'' fails because HISADDRbrian
is 0.0.0.0. This isn't a problem as the sticky route is still added. Suggested by: Chris Timmons <skynyrd@opus.cts.cwu.edu>
1998-12-17Don't return stack-based data. This may have causedbrian
server-side CHAP authentication problems in the past :-/
1998-12-16Typo policebrian
Submitted by: Bill Fumerola <billf@FreeBSD.org>
1998-12-15Fix a potentially bad latency problem.brian
Problem reported by: Christopher Hall <hsw@acm.org>
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-12-14Allow a variable as the first arg to ``set proctitle''.brian
1998-12-14Mention the cosmetic necessity to ``iface clear'' in ppp.linkdown.brian
1998-12-10Boy, this was tricky to find:brian
Remove any dial timer that might be hanging around at datalink_Destroy() time. This timer may be left running after the link is closed (making sure it's not automatically opened again too soon).
1998-12-10When using ``set device !someprogram'', when ``someprogram''brian
exits, it causes a select() exception. Handle these select() exceptions on link descriptors in pretty much the same way as loss of carrier rather than dropping out in confusion.
1998-11-10Don't forget to initialise dbuff when debugging.brian
1998-11-08Explain what the command line switches do and what thebrian
various prompts signify.
1998-11-08Fix a few typosbrian
Submitted by: Forgotten (sorry)
1998-11-05Don't delete the primary interface address whenbrian
``iface clean'' is used in auto mode while there are no active links.
1998-10-31If the CBCP callee offsers no callback, send our configuredbrian
response anyway. This is what Win95 does, despite it not being documented in the cbcp spec.... Reported by: Bill <petheram@acm.org>
1998-10-31Allow multiple systems (config labels) on the commandbrian
line and in the ``load'' & ``dial'' commands. The last label loaded becomes the current label name. Only require a label for -auto mode.
1998-10-29Don't call PacketAliasIn() when we turn around packets destinedbrian
for our interface address. We're about to call ip_Input() anyway, and ip_Input() does the PacketAliasIn(). Stack trace provided by: Cameron Grant <gandalf@vilnya.demon.co.uk>
1998-10-29Catch up with the latest ppp updates/fixes:brian
- Add enable/disable proxyall to proxy arp an entire subnet (smaller than class C) - Add ``set {send,recv}pipe for controlling socket buffers. - Fix the infamous ``first connection'' problem where the process that causes an auto dial to an ISP that assigns a dynamic IP never connects (due to the bound socket IP being changed on the tun iface). See ``enable/disable iface-alias'' and ``iface ...'' in the man page. - Add PROCESSID as a substitution string when running commands. - Add ``set proctitle'' for changing argv0. You can use all the command substitutions here too (eg ``set proctitle ppp: USER INTERFACE''). - Add a missing untimeout as soon as the chat expect string is received rather than waiting for the next expect to happen. - Be less restrictive about when auth{name,key}, enddisc, shortseq and mrru can be changed. - Improve some diagnostics. - Don't send a DELAY field with CBCP_NONUM messages (as per the spec). - Emphasise how to make callback optional in the man page. - Allow the caller to request no callback if they're allowed choose the number anyway. - Set our CBCP RESPONSE fsm id according to the REQ, moan if the peer gets the response id wrong (but continue anyway). - Shuffle the ``set ?'' output back a column so that broken terminals that can't display 80 columns *and* a '\n' will look ok. - If DES is compiled out, be more verbose about why CHAP 0x80 was rejected.
1998-09-18Order SEE ALSO correctly.brian
Pointed out by: bde@FreeBSD.org Patched correctly by: wosch@FreeBSD.org