summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce ``set logout''; another chat script. This is in preparationbrian1999-10-257-32/+73
| | | | for the abstraction of ``set dial'' and ``set hangup''.
* Don't (unnecessarily) parse wtmp, force ID0logout() to DTRT instead.brian1999-10-253-42/+8
|
* Manually create a correct(*) entry in wtmp when logging out a PPPoTCP orbrian1999-10-212-4/+45
| | | | | | | | PPPoUDP connection. (*) This is as correct as ftp and uucp wtmp entries are - that is, multiple concurrent connections will not record enough information in wtmp to tell last(1) who was logged in for how long.
* If we're running ppp -direct over a tcp or udp connection,brian1999-10-211-1/+10
| | | | | | record the IP number in the `from' slot and not the tty slot. We put ``ppp'' in the tty slot - in line with what ftp (and probably others) does.
* Don't go from PHASE_NETWORK to PHASE_ESTABLISH when we want tobrian1999-10-211-2/+4
| | | | | | re-open a device. The fact that we're in NETWORK phase indicates that there are other links in DATALINK_OPEN and that we don't want to stop using them.
* Add the -unit command line switch for specifying the tun device.brian1999-10-196-48/+120
| | | | | | Warn about -alias being depricated (but still allow it). Don't moan twice about failing to open any tun device. Fix a diagnostic and add the -quiet switch to the usage message.
* Correct a few diagnosticsbrian1999-10-161-3/+3
|
* Don't ntohl() the signature before printing it... it's alreadybrian1999-10-161-1/+1
| | | | | | been done. Spotted by: Gert-Jan Vons <gert-jan@bigfoot.com>
* When more than one timer is expired at once, allow for the possibilitybrian1999-10-151-10/+22
| | | | | | | | | | | | that the first timer ends up doing a timer_Stop() on the second. When this happens, remove the timer from the pending list so that we still call any subsequent timers. This bug has been here for several years, but has only been tickled recently with my device layering changes. With enormous thanks for the perseverance of: Ruslan Ermilov <ru@ucb.crimea.ua>
* When we get the last NCP TLD, close all datalinks with CLOSE_STAYDOWNbrian1999-10-151-1/+1
| | | | rather than CLOSE_NORMAL.
* Redefine CRTS_IFLOW and CCTS_OFLOW on the mac.brian1999-10-151-0/+7
| | | | Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
* When uncompressing VJ-compressed frames, fix the ip_sum directlybrian1999-10-131-17/+13
| | | | | | | | | | | in struct cstate rather than copying the stored header slot into a potentially mis-aligned buffer then trying to update the ip_sum without causing an exception on non-i386 hardware. I've never been able to reproduce this problem, but it has been reported by many people... besides, the code is now a bit cleaner. Testing & patience by: Anthony Solovjoff <asolovjoff@hotmail.com>
* Revert the 1.44 -> 1.45 change. It doesn't work as expected.brian1999-10-081-1/+1
|
* Don't go from datalink state opening directly to lcp, go viabrian1999-10-071-5/+11
| | | | | | | | | carrier instead so that we can set up our carrier detect timer and eventually notice when we lose carrier. Honour the script.run value when coming out of carrier state. PR: 14145
* Mention the received/expected magic for dodgy ECHO LQRs.brian1999-10-061-2/+3
|
* Bring links down gently when their throughput isn't enough forbrian1999-10-052-2/+2
| | | | | the ``set autoload'' value. Don't just ``down'' the link. Don't get stuck in ``ready'' the first time we ``close'' a link.
* Support GRE packetsbrian1999-09-303-1/+49
| | | | Submitted by: Harry Starr <starr@gccs.com.au>
* Support ``set cd off'' to tell ppp not to even look for carrier on thebrian1999-09-266-27/+57
| | | | device.
* Typobrian1999-09-242-2/+2
| | | | Submitted by: Alex Nash <nash@mcs.net>
* Allow ``make -DNOKLDLOAD''brian1999-09-221-0/+4
|
* Do a kldload() if we get ENXIO trying to open /dev/tun0brian1999-09-223-1/+50
| | | | Originally submitted by: green
* Back out the bogus #ifdef __NetBSD__ #include <signal.h> lines.brian1999-09-2120-60/+0
| | | | | | | The original report was due to a mis-installation of the NetBS header files :-/ Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
* Fix the ``lt'' comparison in ``set filter''brian1999-09-211-1/+1
| | | | | PR: 13819 Submitted by: Dean M. Phillips <dphill@inav.net>
* Correct spelling : ascii -> ASCIIphantom1999-09-202-2/+2
| | | | | | PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp
* NetBSD has moved ``extern int errno;'' to signal.h :-/brian1999-09-2020-0/+60
| | | | Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
* NetBSD requires net/if.h for the IFF_* defines (as well as OpenBSD) !brian1999-09-201-1/+1
|
* Correct the return from FilterCheck for fragmentsbrian1999-09-161-1/+1
| | | | | PR: 13771 Submitted by: Dean M. Phillips <dphill@inav.net>
* Cosmetic:brian1999-09-087-456/+7
| | | | alias_cmd -> nat_cmd after a repo-copy
* We don't need a queue for *CP data - these are IP-only queues.brian1999-09-071-1/+1
|
* Introduce a forth IP packet queue. Urgent packets withbrian1999-09-076-78/+188
| | | | | | | | | ip_tos == IPTOS_LOWDELAY now get precidence over urgent packets with ip_tos != IPTOS_LOWDELAY and non-urgent packets with ip_tos == IPTOS_LOWDELAY. Enhance the ``set urgent'' syntax to allow for urgent UDP packets as well as urgent TCP packets.
* Make the ``Problem with IP header length'' error a bit more verbosebrian1999-09-062-2/+4
|
* $FreeBSD$ -> __DATE__brian1999-09-062-3/+1
| | | | This is probably more appropriate that $Date$ anyway
* When logging warning messages, there are now three scenarios:brian1999-09-064-5/+24
| | | | | | | | o If a prompt is executing the command, only display the warning to that prompt o If a prompt is executing a ``load'' command, display the warning to all prompts *and* syslog o Otherwise, display the warning to all prompts *and* syslog.
* $Date$ -> $FreeBSD$peter1999-09-061-1/+1
|
* o Split the two IPCP queues into three - one for FSM databrian1999-09-0416-62/+251
| | | | | | | | | | | | (LCP/CCP/IPCP), one for urgent IP traffic and one for everything else. o Add the ``set urgent'' command for adjusting the list of urgent port numbers. The default urgent ports are 21, 22, 23, 513, 514, 543 and 544 (Ports 80 and 81 have been removed from the default priority list). o Increase the buffered packet threshold from 20 to 30. o Report the number of packets in the IP output queue and the list of urgent ports under ``show ipcp''.
* When sending radius authentication requests:brian1999-09-031-1/+46
| | | | | | | | | | | Supply RAD_NAS_IDENTIFIER if we have a `hostname` and RAD_IP_ADDRESS if that hostname resolves. Supply RAD_NAS_PORT using the ttyslot() of the tty that we're authenticating on if it's a tty device. Partially submitted by: Andriy I Pilipenko <bamby@marka.net.ua> PR: 12225
* $Id$ -> $FreeBSD$peter1999-08-28112-113/+113
|
* I misunderstood the failure mode - revert BINMODE to 4554. I'm stilljkh1999-08-271-2/+2
| | | | | | | going to remove ppp from the installation options in 5 days if ppp is still broken, however, as it hasn't worked at installation time for several weeks now and it's only causing people to fill my mailbox with questions.
* I don't know who decided that an install mode of 4544 was correct, butjkh1999-08-271-2/+2
| | | | | for a binary it's far from it. This is why sysinstall is unable to run ppp at startup time and causing weirdies in -current.
* Rebuild the list of interface numbers to names if we're tryingbrian1999-08-261-3/+13
| | | | to evaluate an interface number that didn't previously exist.
* Aligh mbufs to sizeof(long), not 4brian1999-08-261-2/+2
|
* Fix some mdoc(7) style inconsistencesbrian1999-08-252-16/+32
| | | | Submitted by: Alexey M. Zelkin" <phantom@cris.net>
* Cosmetic: bring closer to RELENG_3brian1999-08-231-3/+3
|
* NOALIAS -> NONATbrian1999-08-221-4/+4
| | | | Reminded by: jkh
* Allow authkey to be changed independently of the current phase.brian1999-08-221-14/+5
|
* o Add the -foreground switch. This switch behaves like -background exceptbrian1999-08-1916-285/+358
| | | | | | | | | that ppp stays in the foreground. o Add the -quiet switch to quieten ppps startup o Add the -nat flag and discourage the use of the -alias flag. Both do the same thing. o Correct some nat usage strings. o Change the internal ``alias'' command to ``nat''.
* Mention ``alias enable no'', not ``alias enable off''.brian1999-08-182-4/+4
|
* Implement a minimum idle time value as an optional second argumentbrian1999-08-176-26/+79
| | | | | | to ``set timeout''. This is useful for situations where your minimum call charge is (say) 5 minutes (like mine is)
* Set the close-on-exec flag for all unused descriptors whenbrian1999-08-174-35/+35
| | | | exec()ing other programs.
* If we receive an IPCP protocol reject, bring it down.brian1999-08-101-1/+8
|
OpenPOWER on IntegriCloud