| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Allow a password spec on the "set server" command line.
Use SIGUSR2 to close the diagnostic socket.
Some man page corrections.
|
| |
|
|
|
|
| |
Requested by: Michael Reifenberger <root@totum.plaut.de>
|
|
|
|
|
|
|
|
| |
Stay as the invoking uid as much as possible.
Execution as a normal user is still forbidden for now,
so these changes are pretty ineffective.
The next commit will implement the modifications suggested
on -hackers a number of days ago.
|
|
|
|
| |
Remove local/global conflicts.
|
|
|
|
|
| |
logging out to the screen in terminal mode - should be
good for installation problem diagnosis.
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Report modem connect time properly
o Report bytes in/out over physical media
o Fix phases (TERMINATE is *higher than* DEAD)
o Do a LayerFinish from LcpDown
o Bring down IPCP & CCP when we enter PHASE_TERMINATE
o Give a new prompt when we go to PHASE_DEAD
o Stop the modem timer properly when idle
o Treat sig 15 like an exiting carrier loss
o Log (DEBUG) offline & online transitions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Add missing $Id$s
o Move extern decls from .c -> .h files
o Staticize
o Remove #includes from .h files
o style(9)ify includes
o bcopy -> memcpy
bzero -> memset
bcmp -> memcmp
index -> strchr
rindex -> strrchr
o Move timeout.h -> timer.h (making it consistent w/ timer.c)
o Add -Wmissing-prototypes
|
|
|
|
|
|
| |
usleep => nointr_usleep
(not just a #define)
Already done by: ache
|
|
|
|
|
|
| |
o Log client connection commands when "set log +command"
o Don't display PAP password in the log unless we're
"set log +debug".
|
|
|
|
|
|
|
|
|
| |
Support VJ slot id compression.
Previously, ppp would negotiate a max slot between 2 & 15
(if asked), and would agree to slot id compression (if asked).
It would then proceed to use 16 slots and no compression
anyway. The result was a rather unusable connection.
|
|
|
|
|
|
|
| |
file get created. We don't create lock files over non-tty
connections, but we *do* create lock files in -direct mode.
This leaves us capable of adding utmp/wtmp support for
successful pap & chap logins (coming soon).
|
|
|
|
|
|
|
|
|
|
|
|
| |
close(1);
close(2);
x = open(ctermid(NULL), O_RDWR|O_NONBLOCK);
close(0)
on a tty causes select() to return an exception for descriptor x !
This is the case in RELENG_2_2, but not in 2.2.2. I'm not sure why.
Instead of doing the x=open() and close(0), we just do x=0 now.
Problem pointed out by: Greg Lehey <grog@lemis.com>
Tomi Vainio <tomppa@fidata.fi>
|
|
|
|
|
|
|
|
|
| |
isatty(1) ! Keep 0 open for this till the modem's
been set up by either dup()ing 0 or by opening
ctermid(NULL) (if isatty(0)).
Discussed problem with: Tomi Vainio <tomppa@fidata.fi>
Made it finally dawn on me: Angelo Turetta <ATuretta@stylo.it>
|
|
|
|
|
|
|
|
|
| |
o Output the correct device for "show modem"
while in -direct mode.
o Cosmetic: Moan a bit more when we can't open
the [modem] device.
o Call OpenModem() in a more "natural" way.
o Add some LogDEBUG in OpenModem().
|
|
|
|
|
|
|
|
|
|
|
| |
Insist that uid == 0 for client ppp
Disallow client sockets if no password is specified
Don't exit on failure to open client socket for listening
Allow specification of null local password
Use reasonable size (smaller) ``vector''s in auth.c
Fix "passwd ..." usage message
Insist on "all" as arg to "quit" (if any)
Drop client socket connection before Cleanup() when "quit all"
|
| |
|
|
|
|
| |
Suggested by: guido
|
| |
|
|
|
|
|
| |
refuse to run if "ppp" is in the list.
Suggested by: "Daniel O'Callaghan" <danny@panda.hilink.com.au>
|
| |
|
|
|
|
|
| |
Update loadalias to use the new libalias api.
Update to version 1.1.
|
|
|
|
|
|
|
|
|
| |
This tells ppp to loopback packets addressed to
the ppp interface IP coming *from* the tun
device.
This means that you can ping the tun interface IP
from inside :-)
|
|
|
|
|
|
|
|
|
|
| |
INT cause a hangup - not exiting for -ddial & -auto.
HUP must exit because init sends this at system shutdown
time (why, I don't know), and we don't want to end up
redialing after the HUP (due to another dfilter packet).
Pointed out by and discussed with: ache
|
|
|
|
| |
Pointed out by: ache
|
|
|
|
|
|
|
|
|
|
| |
Catch SIGUSR1 to re-init listening socket.
Document signal behaviour.
Add missing '\n's to LogPrintf(LogWARN,...)
Main() returns int not void.
AF_LOCAL ideal suggested a long time ago by: joerg
|
|
|
|
| |
Spotted by: Harry Starr <starr@gccs.com.au>
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Style police
o Make hangup abort the current connection, not
necessarily exiting (-auto/-ddial).
o Trap HUP and INT during DoChat and abort the
connection attempt. This means you can now
type "dial" and change your mind with ^C, or
HUP the process to stop it dialing.
Slapped into doing it by: Chuck Robey <chuckr@glue.umd.edu>
|
| |
|
| |
|
|
|
|
|
| |
any relevent descriptors (0,2,[1]). We've already fork()d.
PR: 3874
|
|
|
|
|
|
|
|
|
|
| |
o Allow "set var" with no args to blank var (don't req "").
o Zero VarTerm ASAP if not in interactive mode.
o Never print anything to stdout in -direct mode.
o Count redial when failing to open modem.
o Increase device size to 40 characters (for host:port).
o Remove missed "if (fd == 0) fd = 1;".
o Don't give up on incoming non-terminal connections.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Use syslog
o Remove references to stdout/stderr (incl perror())
o Introduce VarTerm - the interactive terminal or zero
o Allow "set timeout" to affect current session
o Change "set debug" to "set log"
o Allow "set log [+|-]flag"
o Make MSEXT and PASSWDAUTH stuff the default
o Move all #ifdef DEBUG stuff into the code - this
shouldn't be too much overhead. It's now controlled
with "set log +debug"
o Add "set log command, debug, tun, warn, error, alert"
o Remove cdefs.h, and assume an ansi compiler.
o Improve all diagnostic output
o Don't trap SIGSEGV
o SIGHUP now terminates again (log files are controlled
by syslog)
o Call CloseModem() when changing devices
o Fix parsing of third arg of "delete"
I think this fixes the "magic is same" problems that some
people have been experiencing.
The man page is being rewritten. It'll follow soon.
|
|
|
|
| |
Make "same magic" error send a NAK (as per rfc).
|
|
|
|
| |
Suggested by: kfurge <kfurge@worldnet.att.net>
|
|
|
|
|
|
|
|
|
| |
alias commands simply won't work. Only root may specify the
location of the alias lib (otherwise, it's hard-coded).
Make logprintf silently fail if LogOpen hasn't been called.
Suggested by: eivind
|
| |
|
|
|
|
|
|
| |
connection is in a time_wait.
Submitted by: Brian Campbell <brianc@pobox.com>
|
|
|
|
| |
Submitted by: Charles Mott <cmott@srv.net>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of reconnect & -background.
o Fix reconnect anomolies.
o Make reconnect apply to failed LQR hangups (& mention in man page).
o Make reconnect effective in -background mode.
o Listen on socket in -background mode.
o Try all phone numbers in -background mode.
o Insist on system arg in -background mode.
o Make a control-connection close command exit in -background mode.
o Output status message to stdout on exit of parent in -background mode.
o Don't notify parent of success too soon.
o Describe termination EX_* code.
o Miscelaneous diagnostic corrections.
o Remove redundant connect_time from modem.c.
o Don't repeatedly DownConnection().
|
|
|
|
| |
Requested by: The masses.
|
|
|
|
|
|
|
| |
Make ``Dial attempt'' diagnostics consistent.
Reset lostCarrier when it has reached max.
Suggested by: Kevin Street <street@iName.com>
|
|
|
|
|
|
| |
whether we're -dedicated.
Required by: David Nugent <davidn@labs.usn.blaze.net.au>
|
|
|
|
|
|
|
| |
the tunX.pid file. Change the ppp.tunX.pid name
to tunX.pid
Requested by: Daniel O Callaghan <danny@panda.hilink.com.au>
|
|
|
|
|
|
| |
value checking etc.
Submitted by: eivind
|
|
|
|
| |
all lines into single /var/log/ppp.log
|
|
|
|
|
|
|
|
|
|
|
| |
the connection after an unexpected loss of carrier:
set reconnect timer ntries
The man page warns against using this command when your
timeout value is slightly more than the other sides :{}
Suggested by: burton@bsampley.vip.best.com (Burton Sampley)
|
|
|
|
|
|
|
|
|
| |
"set redial pause [times]" command becomes
"set redial end-pause[.next-pause] [times]" and next-pause
defaults to 3 seconds. This keeps things backwards
compatable.
Suggested by: ache
|
|
|
|
|
| |
once. Make -background ignore redial. Output exit value
to syslog with "PPP Terminated" message.
|