| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Submitted by: Derek Inksetter <derek@saidev.com>
|
|
|
|
|
| |
-auto mode. This makes ppp correctly exit if you kick it
off twice in auto mode with the same label (read: interface).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
strcpy(a, b); /* a and b are the same size */
with
strncpy(a, b, sizeof(a));
a[sizeof(a)-1] = '\0';
Making the code `correct at a glance'.
Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
|
|
|
| |
"passwd xxxx".
|
|
|
|
|
|
|
|
|
|
|
|
| |
when command logging is switched on.
o Display ******** for the authkey for "show auth"
o Document how \P should be used, and document the other chat escapes
while I'm there.
o Make sure the full command is displayed when a compound command
fails - ie, "set novar rubbish" should say "set novar: Invalid command"
rather than "novar: Invalid command"
Problem pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org> (among others)
|
|
|
|
|
|
|
|
| |
line is > LINE_LEN (512 bytes), we scribble (*blush*).
Hinted at by: Theo de Raadt <deraadt@cvs.openbsd.org>
Change sprintf(buf, "fixedstring") to strcpy(buf, "fixedstring").
|
|
|
|
| |
commands, not LogCOMMAND.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Validate the peers suggested IP by attempting to make a routing table
entry.
Give up IPCP negotiation if the peer NAKs us with an unusable IP.
Always SIOCDIFADDR then SIOCAIFADDR when configuring the tun device.
Using SIOCSIFDSTADDR allows duplicate dst addresses (which we don't
want)!!!
Allow up to 200 interface names (was 50) (now that ppp can play server
properly).
Up the version number (1.5 -> 1.6).
Cosmetic:
Log unexpected CCP packets in the CCP log rather than the ERROR log.
Log unexpected Config Reqs in the appropriate LCP/IPCP/CCP log rather
than the ERROR log.
Log failed route additions and deletions with WARN, not TCPIP.
Log the option id and length for unrecognised IPCP options.
Change some .Sq to .Ar in the man page.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Delete AF_LINK routes as well as AF_INET.
Allow the word `default' as the arg to `delete' or in place of the
first two args (dest & netmask) to `add'.
Accept INTERFACE as the third arg to `add'.
You can now say `add default interface' to create a default route
through the tun interface. It's reported that subsequent bind()s
will bind to a broadcast address and not to the address currently
assigned to the tun device - this is the first step towards
supporting that first connection that was around from before the
dynamic IP negotiation....
|
|
|
|
| |
all the commands).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove extraneous decls.
Add ``const'' to several places.
Allow ``make NOALIAS=1'' to remove IP aliasing.
Merge with OpenBSD - only the Makefiles vary.
We can now survive a compile with
-Wall -Wbad-function-cast -Wcast-align -Wcast-qual
-Winline -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wredundant-decls
-Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts
(although the Makefile just contains -Wall).
|
| |
|
|
|
|
| |
Call DropClient() from Cleanup() too.
|
| |
|
|
|
|
|
|
| |
Output "set ?filter deny host|port" rules correctly
with show ?filter.
Submitted by: Dave Bodenstab <imdave@mcs.net>
|
|
|
|
| |
a restricted label.
|
|
|
|
| |
we've put it in the background (!bg).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Add "allow" command:
"allow users a b c" gives access to users a, b and c.
"allow modes auto" gives those users access to auto mode only.
"allow users *" and "allow modes *" are accepted.
No users and all modes are allowed by default.
UID 0 can do anything.
o Set the current label with the "load" and "dial" commands
so that the call to ppp.linkdown makes sense.
o Up the verison number.
o Don't OR MODE_AUTO for -background and -ddial.
o Don't OR MODE_INTER when we get a diagnostic connection.
o Allow up to 40 args per line (was 20).
o "set ifaddr" only changes the interface in AUTO mode (with other
modes, it happens after IPCP negotiation).
o Sort command descriptions in the man page.
o Support -dedicated mode where we just talk ppp forever (no login etc).
|
|
|
|
|
| |
we get a "close", the LcpClose() will
eventually do it when we get to PHASE_DEAD.
|
|
|
|
| |
PR: 4993
|
|
|
|
|
|
| |
Allow a password spec on the "set server" command line.
Use SIGUSR2 to close the diagnostic socket.
Some man page corrections.
|
| |
|
|
|
|
| |
Return 0 from "show" commands.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Move prototypes into the correct headers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
executing a "shell" command.
|
|
|
|
|
| |
This is a combination of MD4 & DES.
Submitted by: Gabor Kincses <gabor@acm.org>
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
Submitted by: Mark Cammidge <mark@gmtunx.ee.uct.ac.za>
|
|
|
|
| |
Suggested by: jordan
|
|
|
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
| |
argc/argv for commands).
|
|
|
|
| |
telnet prompt.
|
|
|
|
|
|
|
|
|
|
|
| |
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"
|
| |
|
|
|
|
|
| |
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 :-)
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
it gives the IP number that should be used for initial
IPCP config requests, irrespective of MYADDR.
|
|
|
|
|
| |
much the same as "shell", but it's in the
background.
|
|
|
|
|
|
|
|
|
|
|
| |
"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
|
|
|
|
|
|
| |
You can now "ATZ" your modem when it's closed.
Submitted by: peter@citylink.dinoex.sub.org (Peter Much)
|