summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1461-64/+64
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* The 2.2-Beta version doesn't have the brackets after the if statement.nate1997-01-101-1/+2
| | | | | | | | | This has the effect of making every link a "passthrough" which means the TCP or UDP port won't be freed after link deletion -- so there could be eventual port exhaustion if the program were allowed to operate long enough. Submitted by: Charles Mott <cmott@srv.net>
* Fix many buffer overruns in the code. Specifically, disallow ExpandStringimp1997-01-1013-61/+92
| | | | | | | | | | | | | to be used to expand things beyond the size of the buffer passed in. Also do a general cleanup of sprintf -> snprintf as well as strcpy and strncat safety. Also expand some buffers to allow for the largest possible data that might be used. This is a 2.2 candidate. However, it needs to be vetted on -current since little testing has been done on this due to my lack of PPP on this machine. Reviewed by: Jordan Hubbard, Peter Wemm, Guido van Rooij
* Updated DPADD to match LDADD.bde1997-01-061-2/+2
|
* Update to match changes in <net/if.h>.wollman1997-01-032-2/+4
|
* For /usr/sbin/ppp, you must choose between running ppp in the background orjkh1996-12-227-87/+234
| | | | | | | | | | | | | | | | | | | | | | connecting to a host immediately in the foreground. I would like to be able to run ppp from a script so that my script can be sure that it is connected to the 'net before it continues running: # Dial up the internet. ppp -background myprovider || exit 1 do-some-net-command # Hang up the modem. kill -HUP `cat /var/run/ppp.tun0.pid` Another problem is that the current ppp calls its process id file `/var/run/PPP.server', which may conflict if you have more than one IP tunnel interface available. Closes PR#1469 Submitted by: Gord Matzigkeit <gord@enci.ucalgary.ca>
* Make CRTSTS selection a runtime option. Closes PR#1392jkh1996-12-227-28/+76
| | | | Submitted by: Mike McGaughey <mmcg@heraclitus.cs.monash.edu.au>
* Compute IP checksums in addition to TCP checksums when necessary in thenate1996-12-211-12/+17
| | | | | | | | | | new 'aliased' packets. Note, if the original packet has a bogus cksum, we will *NOT* re-compute the cksum, therefore the new packet will also be wrong (but passed on). Found by: MartinRenters@awfulhak.demon.co.uk Reviewed by: Brian Somers <brian@awfulhak.demon.co.uk> Submitted by: Charles Mott <cmott@srv.net>
* Fixed prototypes of PacketAliasIn/Out. (cosmetic)nate1996-12-193-10/+12
| | | | Submitted by: Brian Somers <brian@awfulhak.demon.co.uk>
* Avoid some buffer overrun problems.pst1996-12-152-7/+7
|
* The infamous IP aliasing code for ppp, modified to work as a runtime optionjkh1996-12-1215-15/+2738
| | | | | | | (otherwise ppp's behavior remains unchanged) and documented by myself, Steve Sims, Nate Williams, Martin Renters and god-only-knows who else. :-) Submitted by: nate Obtained from: Charles Mott <cmott@srv.net>
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadwollman1996-12-102-11/+19
| | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
* Added my 'ddial' patches to user-PPP. The new mode tries it's darndestnate1996-12-036-16/+52
| | | | | | | to keep the link up, so it re-dials whenever it detects the link go down. This is useful for 'dedicated' links who use PPP. It's been used for over a year w/out problems at different sites.
* typophk1996-11-191-2/+2
|
* Improve the sample login script now that our sh(1) understands -p.joerg1996-10-312-6/+6
| | | | Closes PR # docs/1383: ppp(8) man page suggests using shell script...
* Make changes suggested in PR#1825, closing it. Removes default localjkh1996-10-182-12/+11
| | | | | hack behavior better than previous commit. Submitted-By: Peter Childs <pjchilds@imforei.apana.org.au>
* Turn LOCALHACK off by default (whoops!)jkh1996-10-181-2/+2
| | | | Noticed-By: Atsushi Murai <amurai@spec.co.jp>
* Fixed the security leek I introduced the other day, nowsos1996-10-131-3/+10
| | | | | shell command is only executabel from command files, not from the commandline.
* 1. Room to calculate MD5 for CHAP negotiation is shorter thanjkh1996-10-125-12/+30
| | | | | | | | | | | | | | | | required. a core is not dumped at first connecting time and dumped at second or third time. (patch I) 2. A routine for "show route" refers out of allocated space. Values pointed by "lp" should be read as CHAR, I think. there is also no free() for disallocation. (patch II) Here is also a patch for an improvement: In current imprementation, even if PPP connection is disconnected by time out, prompt of interactive mode does not change from "PPP>" to "ppp>" to indicate the disconnection on a terminal. So I modified the code to do that. (patch III) Submitted-By: NAKAMURA Motonori <motonori@econ.kyoto-u.ac.jp>
* Allow shell commands in all modes.sos1996-10-101-3/+3
| | | | Old behavior can be had with define SHELL_ONLY_INTERACTIVELY
* Add the feature to use MYADDR & HISADDR macroes as arguments tosos1996-10-071-2/+12
| | | | a shell escape.
* Properly include prototypes.jkh1996-10-072-2/+7
| | | | Submitted-by: "Daniel O'Callaghan" <danny@panda.hilink.com.au>
* Add passwdauth to list of vars.jkh1996-10-061-3/+3
| | | | Submitted-by: Peter Childs <pjchilds@imforei.apana.org.au>
* Add support for the Evil Microsoft ppp extentions. Yes, they did itjkh1996-10-0612-36/+502
| | | | | | | | on their own without even attempting to get concensus in the IETF, but there are also lots of Win95/NT boxes out there. CLoses PR#1494 Submitted-By: Peter Childs <pjchilds@imforei.apana.org.au>
* Moved getdtablesize() out of a loop.bde1996-09-281-3/+4
|
* Add RTF_STATIC to default route's flags in the hope that routed will nopeter1996-08-131-2/+2
| | | | longer remove it while it is running.
* Reset Pred1 protocol on FCS errors.phk1996-07-211-1/+2
|
* Dump core on SIGSEGV instead of silent exiting. I saw SIGSEGV few times,ache1996-07-091-1/+6
| | | | | but they are VERY rare to tracking down this bug. I hope core helps to track it down.
* Prepare for exec properly and check return valuesache1996-06-092-5/+19
| | | | Submitted by: Arjan de Vet <devet@IAEhv.nl>
* Close a file descriptor leak. Possibly closes PR #1212gpalmer1996-06-031-2/+4
|
* PR: bin/1194: PPP server port not initializedphk1996-05-131-1/+2
| | | | | | | Latest round of changes omitted initialization of tunnel device unit variable. Submitted by: John Capo <jc@irbs.com>
* Here is a diff of /usr/src/usr.sbin/ppp against current. The diffsphk1996-05-1122-175/+252
| | | | | | | | | | | | | | | | | | | add some logging functionality which I find very useful. 'set debug link' will record just link up/down and address assignments. 'set debug connect' will record the entire chat dialog 'set debug carrier' will record just chat lines including 'CARRIER' (so that I can be sure I'm getting a 28.8 line). There was a global change required to permit LogPrintf to take a bit mask instead of a bit position value (to permit logging some events on either of two flags, so that no change in 'set debug lcp' would result from the code supporting 'link'. Thus the diffs are rather long for such a small change. The man page is also touched. Oh, and there was a slight syntax problem in route.c Reviewed by: phk Submitted by: Tony Kimball <alk@Think.COM>
* Xref chat(8) and pppd(8). Also change .It references to .Pa for filempp1996-05-022-22/+32
| | | | name references in the file section.
* Fixed a couple of format strings to match the change of pid_t from longbde1996-04-131-2/+2
| | | | | | to int32_t. I only fixed the ones that I noticed the warnings for. Perhaps most of the format strings are correct now because they were wrong before. Except of course if int32_t isn't compatible with `int'.
* Fix editing mistake in last commit...sorry.dg1996-04-111-3/+3
|
* Bugfix based on a kernel fix:dg1996-04-111-5/+12
| | | | | | | | | | | When PPP gets an uncompressed packet, it attempts to save off the TCP/IP header for use in decompressing subsequant packets. If PPP gets garbage (such as what happens when there is a port speed mismatch or modem line noise), it will occasionally mistake the packet as a valid uncompressed packet. When it tries to save off the header, it doesn't bother to check for the validity of the header length and will happily clobber not only the PPP VJC data structure, but parts of other process memory that happens to follow it...causing, ahem, undesired behavior.
* Here is a patch for a little bug in the WaitForString routine. The problemache1996-04-061-4/+14
| | | | | | | | | | is when the matched string spans the end of the inbuff. This fix allocates twice the IBSIZE so that it can keep the last and the current text to search in the inbuff so that the match won't fail if it gets truncated by the read. It also warns if the search string is to long and truncates it. Submitted by: Dough Ambrisco <ambrisco@ambrisco.roble.com>
* Put signal number into logfileache1996-03-301-5/+7
|
* Fix UnrawModem:ache1996-03-291-6/+6
| | | | | | restore initial (not second level) state not call it for DEV_SYNC issue input flush after restoring
* Directly clear parity area because cfmakeraw not do itache1996-03-281-1/+2
|
* After real problem is found (flush never occurse), re-enableache1996-03-271-1/+3
| | | | | software flow control, but re-enable it properly, idea taken from taylor 'cu'
* Fix typing bug cause flushing never occurse:ache1996-03-271-2/+2
| | | | TIOCFLUSH -> TCIOFLUSH
* Use cfmakeraw() instead of all those termios settingsache1996-03-271-24/+8
|
* Cleanup both raw & termianl modes termios flags settingsache1996-03-271-4/+11
|
* Disable ^S/^Q flow control!!!ache1996-03-271-3/+3
|
* Better fix for terminal modeache1996-03-131-13/+5
|
* 1) Open /dev/null for std* after setsid() to be shure that modem isache1996-03-094-6/+21
| | | | | | | | | *not* our controlling terminal (SIGHUP can coming in other case) 2) Add HUPCL for non-dedicated lines to be shure that modem properly resetted. 3) Correct usage string.
* Prevent dial cycling on the last phone from the list, make phone list copyache1996-03-083-6/+11
|
* Log phone as LOG_PHASE, it is valuable enough for multi-phone environment.ache1996-03-082-2/+4
| | | | | Add missing return when terminal mode can't be re-established due to modem not opened.
* 1) Add multi-phone dialing/redialing, several phones separated by ':'ache1996-03-088-42/+98
| | | | | | | | | | 2) Improve on-line help subsystem 3) Make 'term' mode works even carrier dropped (old code close line forever here) 4) Make 'term' mode 8bit clean. 5) Improve manual page 6) #ifdef DEBUG diagnostic about missing optional files. 7) Don't put interactive dialing info to logfile
OpenPOWER on IntegriCloud