Brian Somers
ce28475da5
Use login_progok().
1997-08-27 20:11:16 +00:00
Brian Somers
4e752f44f0
Check the "prog.deny" login.conf capability and
...
refuse to run if "ppp" is in the list.
Suggested by: "Daniel O'Callaghan" <danny@panda.hilink.com.au>
1997-08-26 23:20:16 +00:00
Brian Somers
f525ead3dd
Lose a couple of extraneous backslashes.
1997-08-25 01:52:11 +00:00
Brian Somers
944f709824
Make the code format more in line with style(9).
...
Update loadalias to use the new libalias api.
Update to version 1.1.
1997-08-25 00:29:32 +00:00
Brian Somers
81816fc583
Phone the number after the ``|'' whether the dial
...
OR login script fails.
Catch a small typo in the man page.
1997-08-23 23:14:24 +00:00
Brian Somers
e47c8739d5
Update version number to 1.02 so that I can tell what
...
people are running
1997-08-21 17:20:00 +00:00
Brian Somers
c16615aa8b
Update doc to use MYADDR in ppp.conf.
1997-08-21 17:16:21 +00:00
Brian Somers
1d205e1313
Allow the use of HISADDR & MYADDR in ppp.conf.
1997-08-21 17:07:30 +00:00
Brian Somers
de451c685c
Add "set loopback on|off", defaulting to "on".
...
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 :-)
1997-08-21 16:21:39 +00:00
Brian Somers
91fc7145dc
Correct online usage message for "set ? stopped"
1997-08-21 16:18:07 +00:00
Brian Somers
cb611434af
Expand the "set stopped" command so that it can
...
idependently time out any of the FSMs.
Split LCP logging into LCP, IPCP and CCP logging,
and make room in "struct fsm" for the log level
that the state machine should use.
1997-08-20 23:47:53 +00:00
Daniel O'Callaghan
d053d1b926
Spelling police.
1997-08-19 11:27:00 +00:00
Daniel O'Callaghan
441de788b1
Typo fixes.
1997-08-19 11:18:34 +00:00
Brian Somers
3f6fd9230e
Correct the forth arg to "set ifaddr". If specified,
...
it gives the IP number that should be used for initial
IPCP config requests, irrespective of MYADDR.
1997-08-19 01:10:24 +00:00
Brian Somers
b48dfe09c7
Introduce the "bg" command. It's pretty
...
much the same as "shell", but it's in the
background.
1997-08-18 20:15:10 +00:00
Brian Somers
eb53eaa30b
Fix possible buffer overrun while "expect"ing
...
something that's "nearly" what it wants.
1997-08-17 22:47:07 +00:00
Brian Somers
0444761561
Typo police
1997-08-17 22:45:25 +00:00
Brian Somers
71144dc552
Allow the use of a "stopped" timeout via the
...
"set stopped" directive. If the timeout occurs
it will cause a "Down" event, hanging up the line
if it's still up. This *isn't* part of the FSM
diagram, but I consider it ok as a "higher level
implementation specific timeout" as specified in
the rfc ;-}
Discussed briefly with: joerg
1997-08-17 20:45:50 +00:00
Brian Somers
5b9b04192a
Allow specification of fallback phone numbers to
...
be used only if the dial script fails.
PR: 4262
1997-08-17 20:38:45 +00:00
Brian Somers
868cddb5fa
Use libalias.so.2.3.
1997-08-11 22:07:57 +00:00
Brian Somers
cad5afb077
Correct default log file name.
...
PR: 4065
Prompted by: Steve Price <sprice@hiwaay.net>
Submitted by: sjr1@flash.net
1997-08-10 22:03:20 +00:00
Brian Somers
05dce3eefc
Use libalias.so.2.2
1997-08-03 20:21:22 +00:00
Brian Somers
bfbee26298
Remove extraneous prototypes.
1997-08-01 02:02:28 +00:00
Brian Somers
4eb8b1640d
Set up the alias address before executing
...
the contents of ppp.linkup.
1997-07-29 22:37:04 +00:00
Brian Somers
6614d8c5f3
Fix file descriptor leaks.
1997-07-28 01:02:27 +00:00
Brian Somers
9ed2f0484a
Count the "proto" arg after a single address,
...
Check correctly for "deny" packets.
Submitted by: Dave Bodenstab <imdave@mcs.net>
1997-07-27 23:26:23 +00:00
Brian Somers
e9eb6d7aa4
Don't try to ioctl(,TIOCOUTQ,) on a closed
...
descriptor.
Reported by: Stephane Raimbault <stephane@cybersurf.net>
1997-07-24 02:42:34 +00:00
Brian Somers
c09be724d6
Allow a "hangup" capability.
...
You can now "ATZ" your modem when it's closed.
Submitted by: peter@citylink.dinoex.sub.org (Peter Much)
1997-07-14 01:41:35 +00:00
Brian Somers
7cc60a7478
Allow service names in "set server"
1997-07-12 19:22:34 +00:00
Poul-Henning Kamp
177c95e45a
Reset all LQR variables when we start over.
1997-07-02 19:18:42 +00:00
Brian Somers
873725cc51
Make HUP cause an exit (as it used to), and make
...
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
1997-07-01 21:31:28 +00:00
Brian Somers
01ec25112c
Allow specification of a umask for local socket
...
creation in "set server" command.
1997-06-30 03:03:38 +00:00
Brian Somers
76c5241d63
Fix HUP handling while dialing.
...
Pointed out by: ache
1997-06-29 13:54:31 +00:00
Brian Somers
186d0be47e
Deal with HISADDR/MYADDR in filter rules.
...
Mostly submitted by: kfurge@worldnet.att.net
Allow MYADDR in add/delete commands to facilitate
dynamic additions of a loopback route to MYADDR.
1997-06-28 01:34:03 +00:00
Brian Somers
4ef16f24f2
Add "set server" to control the server socket.
...
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
1997-06-25 19:30:05 +00:00
Brian Somers
2126fb65a3
Allow shell commands (still run as original user)
...
unless defined out - including while a telnet
session with a -auto ppp is in effect. If you
don't create ppp.secrets, you deserve what you
get.
telnet connection capabilities will be configurable
per system soon.
Suggested by: Terry Dwyer <tdwyer@omen.net.au>
1997-06-25 02:04:35 +00:00
Brian Somers
030d3ce62a
Fix ~? output in "term" mode.
...
Spotted by: Harry Starr <starr@gccs.com.au>
1997-06-24 21:25:06 +00:00
Brian Somers
368aee2ba3
o Fix uptime for direct connections.
...
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>
1997-06-23 23:10:13 +00:00
Brian Somers
c3a83f6777
Typo police.
...
Submitted by: Chuck Robey <chuckr@glue.umd.edu>
1997-06-23 23:08:23 +00:00
Brian Somers
a6ae823cc3
Fix "set parity"
...
PR: 3881
Actual problem found by: shocking@mailbox.uq.edu.au
1997-06-23 19:18:13 +00:00
Brian Somers
9b5a20e10a
Fix "delete all".
...
PR: 3913
1997-06-20 23:43:35 +00:00
Brian Somers
3b80c31921
Cosmetic: Fix help syntax.
1997-06-17 02:04:51 +00:00
Brian Somers
712ae38782
Handle redial tries correctly under -ddial
1997-06-17 01:46:05 +00:00
Brian Somers
55a8cdea92
Put TCP/IP logs back on one line.
1997-06-16 21:20:00 +00:00
Brian Somers
cc39a98fd5
Set netfd to STDOUT_FILENO rather than STDIN_FILENO.
1997-06-16 19:59:41 +00:00
Brian Somers
fd59deba96
Correct filter docs.
...
PR: 3464
Submitted by: Stephen J. Roznowski <sjr1@flash.net>
1997-06-16 13:52:10 +00:00
Brian Somers
d656a4c582
Remove call to daemon(). Just call setsid() and close
...
any relevent descriptors (0,2,[1]). We've already fork()d.
PR: 3874
1997-06-16 13:24:59 +00:00
Andrey A. Chernov
687ee69a2a
Remove srandomdev fallback code
1997-06-14 00:27:03 +00:00
Brian Somers
e696ee3b80
Fix "delete ...", it now only insists on
...
one arg too.
Discovered by: Rikk Salamat <rikks@web-impact.com>
1997-06-13 03:59:36 +00:00
Brian Somers
94b3022ec7
Add ppp.linkdown file to compliment ppp.linkup.
...
Submitted by: Forgotten
Passed on by: Terry Dwyer 61 8 9491 5161 <tdwyer@io.telstra.com.au>
Also remove extraneous setuid(0) - it's only undone by
the subsequent call to SelectSystem().
1997-06-13 02:07:32 +00:00