| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Submitted by: Mike McGaughey <mmcg@heraclitus.cs.monash.edu.au>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Submitted by: Brian Somers <brian@awfulhak.demon.co.uk>
|
| |
|
|
|
|
|
|
|
| |
(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>
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Closes PR # docs/1383: ppp(8) man page suggests using shell script...
|
|
|
|
|
| |
hack behavior better than previous commit.
Submitted-By: Peter Childs <pjchilds@imforei.apana.org.au>
|
|
|
|
| |
Noticed-By: Atsushi Murai <amurai@spec.co.jp>
|
|
|
|
|
| |
shell command is only executabel from command files, not
from the commandline.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Old behavior can be had with define SHELL_ONLY_INTERACTIVELY
|
|
|
|
| |
a shell escape.
|
|
|
|
| |
Submitted-by: "Daniel O'Callaghan" <danny@panda.hilink.com.au>
|
|
|
|
| |
Submitted-by: Peter Childs <pjchilds@imforei.apana.org.au>
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
longer remove it while it is running.
|
| |
|
|
|
|
|
| |
but they are VERY rare to tracking down this bug. I hope core
helps to track it down.
|
|
|
|
| |
Submitted by: Arjan de Vet <devet@IAEhv.nl>
|
| |
|
|
|
|
|
|
|
| |
Latest round of changes omitted initialization of tunnel device
unit variable.
Submitted by: John Capo <jc@irbs.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
name references in the file section.
|
|
|
|
|
|
| |
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'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
restore initial (not second level) state
not call it for DEV_SYNC
issue input flush after restoring
|
| |
|
|
|
|
|
| |
software flow control, but re-enable it properly,
idea taken from taylor 'cu'
|
|
|
|
| |
TIOCFLUSH -> TCIOFLUSH
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
*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.
|
| |
|
|
|
|
|
| |
Add missing return when terminal mode can't be re-established due
to modem not opened.
|
|
|
|
|
|
|
|
|
|
| |
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
|