Commit Graph

89 Commits

Author SHA1 Message Date
Frank Cusack
aefcf5ac90 Set current_option for error reporting. Bug and fix by Clive Nicolson. 2002-10-27 13:00:13 +00:00
Frank Cusack
d192a0b4b5 Lose the poorly thought out OPT_A3OR option flag. Fix a CHAP negotiation bug
along the way -- if the peer nak'd with an chap digest we didn't support, we
would continue to offer our first choice digest.
2002-09-24 11:35:22 +00:00
Russell Coker
51dfbde005 Fix a SEGV on printing options error (previously a MTU of 65535 in the options
file would cause a SEGV).
2002-09-14 08:05:27 +00:00
James Carlson
fcec736c61 Added ability to detect and use either gcc or Sun WorkShop C compiler
on Solaris.  Added support for Solaris 10.  Quieted down warning in
ppp_comp.c due to bad preprocessor usage.  Quieted WorkShop warnings
in options.c (casting of void * to function) and pppd.h (constant too
large).  Tested in 32 and 64 bit modes with gcc and WorkShop.
2002-09-07 05:15:25 +00:00
David F. Skoll
63e139d8f7 Fixed typo in options.c so it compiles. 2002-07-18 15:25:04 +00:00
Alexandr D. Kanevskiy
b2f8595268 Experemental per session traffic limiting.
Usefull for VPN with per megabyte billing.
(Works for me)
2002-07-13 06:24:36 +00:00
David F. Skoll
b38527fb14 First large MPPE patch from Frank Cusack. 2002-04-02 13:55:00 +00:00
David F. Skoll
c062322f9e Large patch from Frank Cusack <fcusack@fcusack.com> to add proper
support for MS-CHAP (client and server are now supported.)

Allow another plugin to select a different RADIUS server.

Modified radiusclient library to include two new APIs:
rc_acct_using_server and rc_auth_using_server in which caller specifies
which RADIUS servers to use, instead of using the default ones in the
config file.  The /etc/radiusclient/servers file must still contain
secrets for those servers.
2002-03-01 14:39:19 +00:00
Russell Coker
e635acbbac Stop it dumping random data to syslog on plugin version mismatch. 2002-01-11 18:11:51 +00:00
Paul Mackerras
e3c0701e74 remove oops message when a bool option has been turned off by other
logic; fix silly bug in options_from_list
2001-03-12 22:56:12 +00:00
Paul Mackerras
37a8acc7ee New options system with priorities for option values, with options
grouped into groups where necessary, so the command line overrides
the per-tty options file, plus the ability to print out the set of
options currently in effect.  Some options moved from lcp.c to tty.c.
2001-03-08 05:11:16 +00:00
Paul Mackerras
f7ee87797a Rework options processing stuff to implement option priorities
so the per-tty options file gets processed correctly.
Moved stuff out of options.c into other files (e.g. setipaddr)
2001-02-22 03:15:21 +00:00
Paul Mackerras
c7cc972ace Increase the size of the buffer for option error messages 2000-12-27 23:25:55 +00:00
Paul Mackerras
c65dfbde7e add stuff for packet filtering
remove IPV6 stuff because it was GPL'd
2000-08-01 01:38:30 +00:00
Paul Mackerras
52a17b6d41 Move the tty-related stuff out to tty.c as far as possible. 2000-06-30 04:54:23 +00:00
Adi Masputra
5b7a245572 Some tiny fixes (minor castings) to remove annoying compiler warnings 2000-04-15 01:27:13 +00:00
Paul Mackerras
3c0c031beb don't stop logging on detach if we use logfd or logfile option 2000-04-13 12:05:16 +00:00
Paul Mackerras
0b3acd3a11 Multilink support.
We now put details of each connection in a tdb database.
At present the values we put in the database are just
the same as the environment strings.
2000-04-04 07:06:53 +00:00
Paul Mackerras
2c872bc67b changes to linux interface for new kernel driver,
plus the start of multilink support
2000-03-27 06:03:07 +00:00
Paul Mackerras
deb02ea793 add socket and datarate options
fix n_children bug
2000-03-13 23:39:58 +00:00
Paul Mackerras
b87d00d8a7 [dis]connector -> [dis]connect_script
add connect_delay
1999-12-23 01:28:52 +00:00
Paul Mackerras
3943299d6e create log file safely, don't create world-writable files 1999-11-15 03:55:37 +00:00
Paul Mackerras
db6112a829 get rid of a few compile warnings 1999-11-15 01:51:54 +00:00
Paul Mackerras
07de73a331 Add plugin support plus an initial selection of hooks.
Add the allow-ip option as a better way of specifying what
IP addresses an unauthenticated peer may use.
Translate unprintable chars in PAP user/password into visible form.
Clean up the processing of extra options in the secrets files.
Add ktune/noktune options to enable/disable changing kernel settings.
1999-09-11 12:09:00 +00:00
Adi Masputra
0c338335ba Changed #if __STDC__ to #if defined(__STDC__) 1999-09-08 01:13:46 +00:00
Paul Mackerras
a3630de20e Fix the rcsid's for non-ansi compilers 1999-08-13 06:46:23 +00:00
Paul Mackerras
eec3836d78 add linkname option 1999-08-13 01:57:37 +00:00
Paul Mackerras
43980349e8 make default maxfail 10 1999-08-12 04:25:10 +00:00
Paul Mackerras
ee0fba791a add maxfail option to control the max # of failed attempts 1999-08-12 04:17:07 +00:00
Paul Mackerras
a4efaa63e6 allow options in secrets files
only disable holdoff if link terminated by idle timer
open all network protos on callback
add init and logfile options
document various options
1999-07-21 00:24:32 +00:00
Paul Mackerras
d350bee692 don't turn on IP if we can't do IPX 1999-05-14 01:09:04 +00:00
Paul Mackerras
8592783058 exit with an appropriate value to indicate what happened
look in included options files for device name before
processing options.ttyname file
don't send log output to the serial port
cope with user specifying a symlink to the device on stdin
add logfd and nologfd options
insist that the device is a character device
1999-05-12 06:19:49 +00:00
Paul Mackerras
e8be982dbc Move some stuff (printing, logging, [un]locking) into utils.c.
Unified the locking code, added relock().
Revert strlcpy to strncpy when filling in utmp structs.
Fixed some bugs in DNS addr option handling.
Set PPPLOGNAME with login name of user.
Moved daemon() logic into detach().
Fix bug where errno was clobbered by seteuid().
Use pty in sys-linux.c when making a ppp unit.
1999-04-12 06:24:53 +00:00
Paul Mackerras
c1d7b083dc Apply patch for sync serial support from Paul Fulghum. 1999-03-30 06:33:10 +00:00
Paul Mackerras
f409b9f7b0 should read the tty options file now. 1999-03-24 05:05:25 +00:00
Paul Mackerras
5ba9d88b94 Add pty, notty and record options.
Fix stats - problem was differing stats structures between
linux and other platforms.
Fix for removing proxy arp entry on linux.
IPX patches.
1999-03-22 05:55:40 +00:00
Paul Mackerras
ab7cff041f remove a couple of ansi-C-isms.
loop_frame is needed by some sys-*.c.
print connect time and bytes transferred on close;
added get_ppp_stats to sys-*.c.
1999-03-19 04:23:54 +00:00
Paul Mackerras
d4888c75a2 made some more functions static.
changed order of args to strlcpy/strlcat.
move remote_name/explicit_remote to auth.c.
remote unused code.
1999-03-19 01:27:43 +00:00
Paul Mackerras
1fae28ce79 use strlcpy, strlcat, slprintf everywhere
add privgroup option
don't allow devname, connector etc. set in privileged place
to be overridden by non-privileged user
use error, warn, etc. functions instead of syslog
fix problem where signals were blocked for too long
1999-03-12 06:07:24 +00:00
Paul Mackerras
baef0b4051 minor changes so it compiles with pre-ansi compiler;
move hangup_modem back into main.c
1999-03-08 05:34:46 +00:00
Paul Mackerras
19c50963be Change from printing ppp 2.3 patch level 6' to ppp 2.3.6' 1999-03-08 01:47:24 +00:00
Paul Mackerras
a00baab063 leave the real user ID as the user's now 1999-03-06 11:28:11 +00:00
Paul Mackerras
8a68ed35b0 open the device as the user unless the device name came from a
privileged source
1999-03-02 05:59:22 +00:00
Paul Mackerras
49464ac369 export readable() from options.c so auth.c can use it 1999-02-26 11:03:34 +00:00
Paul Mackerras
122606b29e If device name given, complain if not privileged 1999-01-20 00:00:35 +00:00
Paul Mackerras
bfa20ccde2 Update to new pppd with new option parsing stuff 1998-11-07 06:59:32 +00:00
Christos Zoulas
44e1777caa add support for CDTRCTS flow control 1998-09-04 18:49:16 +00:00
Paul Mackerras
8d95b4cae8 Added updetach option. 1998-03-26 04:46:08 +00:00
Paul Mackerras
289e4c8488 nodeflatedraft option; small change to ms-dns and ms-wins options. 1998-03-25 01:29:05 +00:00
Paul Mackerras
06892fa1cd remove compile nits 1997-11-27 06:09:34 +00:00