Paul Mackerras
245edcbc08
made loop_frame static
1999-03-19 01:21:28 +00:00
Paul Mackerras
d4c42ee848
if remote name was explicitly specified with remotename option,
...
always use that instead of name supplied by peer.
changed order of args to strlcpy.
1999-03-19 01:20:19 +00:00
Paul Mackerras
f4cdbd273a
Ignore extra unrecognized options in Nak.
...
change order of args to strlcpy/strlcat.
1999-03-19 01:19:31 +00:00
Paul Mackerras
75951d7bb6
don't run auth-up/down script while one is already running.
...
parse permitted IP addresses once instead of each time list is
scanned and store them as numerical address/mask pairs.
don't use remote name in checking for existence of secrets
unless is was explicitly specified with remotename option.
don't use remote IP address in checking for existence of secrets.
print better message if no secrets found (or no IP allowed).
made some more functions static.
changed order of args for strlcpy/strlcat.
fix for shadow password stuff.
if specified remote IP address is not specified or not permitted,
use the first single-host permitted address (if any).
1999-03-19 01:17:51 +00:00
Paul Mackerras
1e7bc3ea35
add data_name to struct protent
...
call lcp_lowerdown when connection terminates
1999-03-16 22:54:43 +00:00
Paul Mackerras
ee9e29919a
make establish_ppp and open_ppp_loopback return the correct fd
1999-03-16 22:53:49 +00:00
Paul Mackerras
0bcf5992cb
don't call np_down unless np_up has been called
1999-03-16 04:00:53 +00:00
Paul Mackerras
bcffc4820f
fix silly mistake
1999-03-16 04:00:35 +00:00
Paul Mackerras
7a4dc0ff50
syslog -> notice/error/etc.
...
use slprintf instead of sprintf
trimmed debug
1999-03-16 03:15:15 +00:00
Paul Mackerras
e0b13abaf1
don't print debug msgs to stderr unless debug is set
1999-03-16 03:14:50 +00:00
Paul Mackerras
41cfb0f5c5
fix for usepeerdns stuff
...
syslog -> notice/error/etc.
use slprintf instead of sprintf
1999-03-16 03:12:03 +00:00
Paul Mackerras
f1c955be4c
minor compilation fixes
...
changed syslog -> notice/error/etc.
1999-03-16 02:58:01 +00:00
Paul Mackerras
cb6271cf11
added add_fd, remove_fd, removed wait_loop_output, wait_time.
...
changed syslog -> notice/error/fatal etc.
1999-03-16 02:57:08 +00:00
Paul Mackerras
0375e3ce50
don't die on EIO on setting asyncmap
...
fixed indentation
changed syslog to notice/error/etc.
1999-03-16 02:53:51 +00:00
Paul Mackerras
769fe7aa52
add add_fd and remove_fd, remove wait_loop_output and wait_time
...
changed debug macros
1999-03-16 02:51:06 +00:00
Paul Mackerras
00d6a7e0e3
add %P and %B formats, fixed %I
...
change to using add_fd, remove_fd
and eliminate wait_loop_output, wait_time
change sprintf -> slprintf
don't set euid = user's UID on reopening the device because
we have changed the permissions by then
write log messages to stderr if not detached and not using
default device
1999-03-16 02:50:15 +00:00
Paul Mackerras
c429353c95
make default asyncmap 0
...
change syslog -> notice/error etc., trimmed debug
change sprintf -> slprintf
1999-03-16 02:47:00 +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
f0a6c417e6
fix compile problems on OSF/1
1999-03-10 03:07:48 +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
6d89f8d2a2
Put in a have_route_to cobbled up from stuff sent by Sowmini.
1999-03-08 04:49:12 +00:00
Paul Mackerras
1fff4aeb73
fix silly mistakes
1999-03-08 04:48:48 +00:00
Paul Mackerras
025c380fcc
move have_route_to check from ip_addr_check to auth_ip_addr
1999-03-08 01:47:54 +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
e15bba841e
Ignore routes through our own interface in have_route_to
...
so demand mode works properly.
1999-03-08 01:46:49 +00:00
Paul Mackerras
0c752a555e
Add dummy have_route_to functions.
1999-03-08 01:46: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
3c8882ac68
explain about behaviour when opening the device
1999-03-03 00:52:08 +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
168c1d1c8f
usepeerdns stuff from Nick Walker
1999-03-02 05:37:12 +00:00
Paul Mackerras
ef6f6d6245
limit printing of excess data in log to 32 bytes
1999-03-02 05:36:42 +00:00
Paul Mackerras
6c9ad304c4
usepeerdns option from Nick Walker
1999-03-02 05:35:09 +00:00
Paul Mackerras
50f06d79e6
bug fix from Johan Widen
1999-03-02 05:34:16 +00:00
Paul Mackerras
892e254c06
update the version number
1999-03-02 05:33:45 +00:00
Paul Mackerras
0bd2372fb3
Make auth be the default if we don't have the noauth option and
...
we have a default route.
1999-03-02 05:33:09 +00:00
Paul Mackerras
f82d2043bd
update: hide-password, behaviour of auth/noauth
1999-03-02 05:32:30 +00:00
Paul Mackerras
72d70cf7fd
added hide-password option
1999-03-02 05:29:39 +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
61ebd9732d
minor fixes, update man page
1999-02-26 10:38:52 +00:00
Paul Mackerras
9a7163be64
add a have_route_to
1999-02-26 10:35:34 +00:00
Paul Mackerras
24af3d4d6d
allow chars 0x20 - 0x3f to be escaped
1999-02-26 10:34:47 +00:00
Paul Mackerras
b321726c7a
revert it to 2.3.6 for now
1999-02-26 10:33:43 +00:00
Paul Mackerras
3fba081c6e
remove typo, get ethernet hw address using arp request
1999-01-20 00:01:53 +00:00
Paul Mackerras
b8cc21dc54
don't die on write errors to the link
1999-01-20 00:01:25 +00:00
Paul Mackerras
315eedb9fe
remove unneeded devnam_info
1999-01-20 00:01:00 +00:00
Paul Mackerras
122606b29e
If device name given, complain if not privileged
1999-01-20 00:00:35 +00:00
Paul Mackerras
c134aa17fc
use fchmod rather than chmod to restore device permissions
1999-01-19 23:59:39 +00:00
Paul Mackerras
bd8c9068a5
take out superfluous check
1999-01-19 23:59:14 +00:00
Christos Zoulas
62e6e741c5
Revert the previous change. NetBSD is has the weird md4 library that
...
needs the length in bytes instead of bits. #ifdef this and explain.
1998-11-24 19:38:05 +00:00
Christos Zoulas
4e3c66a04c
MD4Update takes bytes not bits! Now the regression test of the README.MSCHAP80
...
file works.
1998-11-24 19:30:38 +00:00
Paul Mackerras
bfa20ccde2
Update to new pppd with new option parsing stuff
1998-11-07 06:59:32 +00:00
Paul Mackerras
66787f5454
don't try to look up * as a hostname
1998-11-02 10:55:19 +00:00
Paul Mackerras
55f9a71c29
Change UID to ORIG_UID because bash defines UID.
1998-09-13 23:38:49 +00:00
Christos Zoulas
44e1777caa
add support for CDTRCTS flow control
1998-09-04 18:49:16 +00:00
Christos Zoulas
6328c84937
add include stdlib.h
1998-09-04 18:48:12 +00:00
Christos Zoulas
2d429b67de
When adding a default route, make the route static. Since this is a ``manually
...
added route'', this arguably follows the network programming guidelines.
This is necessary, otherwise it is impossible to make the default route
stick in the presense of routed(8). There is a small fix that needs to
be applied to routed(8) in if.c (iflookup) where we always want to look
for interfaces *once* instead of waiting for the timeout period. This avoids
the race where routed finds the route added by pppd before it finds that the
ppp inteface is now active. With those two fixes, pppd can happily coexist
with routed.
1998-09-02 20:58:13 +00:00
Paul Mackerras
e83a47e71a
Fix it so it compiles under RedHat 5.0 linux with glibc 2.0.7.
...
Fix some compile warnings.
1998-05-13 05:49:22 +00:00
Paul Mackerras
a730390166
Trap recursive bad_signal calls; idea from Richard Hipp.
1998-05-05 05:24:17 +00:00
Paul Mackerras
671b8cc687
Change to make it compile on glibc 2 systems
1998-05-04 06:57:18 +00:00
Paul Mackerras
095b0d8b50
update for 2.3.5; fix kernel version checking for linux
1998-05-04 06:10:32 +00:00
Paul Mackerras
d6eab2ab82
Fix up ms-wins codes
1998-04-28 23:38:11 +00:00
Paul Mackerras
f4359362fc
mods for DUNIX
1998-04-28 23:37:46 +00:00
Paul Mackerras
a0b38f1d1c
Make packet printing stuff use vfmtmsg
1998-04-28 23:37:30 +00:00
Paul Mackerras
d6ba91849c
Fixes for freebsd
1998-04-02 12:04:19 +00:00
Paul Mackerras
07d7fbd622
define HAVE_CRYPT_H if we have a /usr/include/crypt.h
1998-04-01 02:06:41 +00:00
Paul Mackerras
d1d4537935
we don't actually need crypt.h, under linux at least.
1998-04-01 00:15:43 +00:00
Paul Mackerras
d8d1c699d9
Fix it so it compiles with glibc 2
1998-03-31 23:47:40 +00:00
Paul Mackerras
2dc6b270ec
Describe environment variables set for scripts.
1998-03-31 04:31:08 +00:00
Paul Mackerras
7097785dc7
rewrite the pid file when using updetach
1998-03-30 06:25:34 +00:00
Paul Mackerras
8d95b4cae8
Added updetach option.
1998-03-26 04:46:08 +00:00
Paul Mackerras
1ca8987a97
added get_host_seed
1998-03-25 03:09:12 +00:00
Paul Mackerras
fc6ee88da5
set script env vars for local and remote IP numbers
1998-03-25 03:08:47 +00:00
Paul Mackerras
267d970c5b
minor cleanup
1998-03-25 03:08:16 +00:00
Paul Mackerras
017cb31c4b
use get_host_seed not gethostid
1998-03-25 03:07:49 +00:00
Paul Mackerras
b03e0f4481
added get_host_seed
1998-03-25 02:19:31 +00:00
Paul Mackerras
1c87527db5
Mods from Al Longyear; added get_host_seed
1998-03-25 02:18:43 +00:00
Paul Mackerras
3c87be2e9a
Mods from Steve Perkins; add get_host_seed
1998-03-25 02:17:23 +00:00
Paul Mackerras
2126cb7077
*** empty log message ***
1998-03-25 01:30:41 +00:00
Paul Mackerras
abae2797aa
declare script_{un}setenv and get_host_seed
1998-03-25 01:30:18 +00:00
Paul Mackerras
b8e8660355
update
1998-03-25 01:29:43 +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
ed8ac3e1ef
Pass useful info to scripts in environment variables.
1998-03-25 01:28:14 +00:00
Paul Mackerras
6f099903b3
include from ../include instead of ..
1998-03-25 01:27:09 +00:00
Paul Mackerras
963a3b2de4
PAM fixes from Al Longyear.
...
Use script_setenv to pass peer name to scripts.
1998-03-25 01:26:03 +00:00
Paul Mackerras
c308fcf81d
Support old draft rfc deflate number as well as new.
1998-03-25 01:25:03 +00:00
Paul Mackerras
7ecd94f94b
update for 2.3.3; changes so it will compile with glibc
1998-02-04 01:41:28 +00:00
Paul Mackerras
6d6a66f71e
update for 2.3.3
1998-02-04 01:41:09 +00:00
Paul Mackerras
ed6e1e3e4a
don't need IFNAMSIZ now
1998-02-04 01:40:59 +00:00
Paul Mackerras
e28f47d5e5
fix up MD4 stuff - interface is better now
1998-02-04 01:40:34 +00:00
Paul Mackerras
695c9ae009
include Makedefs file
1998-02-04 01:39:49 +00:00
Paul Mackerras
262600f5df
update for 2.3.3; don't need extra -lcrypt
1998-02-04 01:39:24 +00:00
Paul Mackerras
74bdbc9dc6
linux with some libcs needs lastlog.h
1997-11-27 06:49:15 +00:00
Paul Mackerras
5eb2f2193d
linux glibc defines login and logout
1997-11-27 06:36:50 +00:00
Paul Mackerras
990d962977
cope with different kernel versions at run time not compile time
1997-11-27 06:10:34 +00:00
Paul Mackerras
9ecdd467f9
remove if address before changing
1997-11-27 06:10:04 +00:00
Paul Mackerras
09032f7c09
update for 2.3.2
1997-11-27 06:09:44 +00:00
Paul Mackerras
06892fa1cd
remove compile nits
1997-11-27 06:09:34 +00:00
Paul Mackerras
4f5d76ea5e
set CLOCAL before running connector.
...
exit(1) on failure.
1997-11-27 06:09:20 +00:00
Paul Mackerras
0d9e6e5612
receive asyncmap is ~0 by default
1997-11-27 06:08:44 +00:00
Paul Mackerras
b326c62b2f
mods to get it to compile better on linux
1997-11-27 06:08:26 +00:00