ppp.git
20 years agofreebsd update from Paul Fulghum
Paul Mackerras [Thu, 13 May 1999 00:31:49 +0000 (00:31 +0000)]
freebsd update from Paul Fulghum

20 years agofreebsd-3.0 stuff from Paul Fulghum
Paul Mackerras [Thu, 13 May 1999 00:31:21 +0000 (00:31 +0000)]
freebsd-3.0 stuff from Paul Fulghum

20 years agofreebsd-2.2.8 stuff from Paul Fulghum
Paul Mackerras [Thu, 13 May 1999 00:31:01 +0000 (00:31 +0000)]
freebsd-2.2.8 stuff from Paul Fulghum

20 years agoupdate for 2.3.8
Paul Mackerras [Thu, 13 May 1999 00:30:17 +0000 (00:30 +0000)]
update for 2.3.8

20 years agoexit with an appropriate value to indicate what happened
Paul Mackerras [Wed, 12 May 1999 06:19:49 +0000 (06:19 +0000)]
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

20 years agomake sure fds 0, 1, 2 are always open
Paul Mackerras [Wed, 12 May 1999 06:16:16 +0000 (06:16 +0000)]
make sure fds 0, 1, 2 are always open

20 years agotake out lock routines, they're now in utils.c
Paul Mackerras [Wed, 12 May 1999 06:15:58 +0000 (06:15 +0000)]
take out lock routines, they're now in utils.c

20 years agomake it compile under sunos
Paul Mackerras [Wed, 12 May 1999 06:15:33 +0000 (06:15 +0000)]
make it compile under sunos

20 years agoAdd @filename syntax for the send string
Paul Mackerras [Wed, 12 May 1999 06:13:22 +0000 (06:13 +0000)]
Add @filename syntax for the send string

20 years agofix race condition & SMP, add TCFLSH ioctl
Paul Mackerras [Wed, 12 May 1999 06:12:59 +0000 (06:12 +0000)]
fix race condition & SMP, add TCFLSH ioctl

20 years agochatchat stuff from gpk@onramp.net
Paul Mackerras [Wed, 12 May 1999 06:12:08 +0000 (06:12 +0000)]
chatchat stuff from gpk@onramp.net

20 years agoupdate
Paul Mackerras [Wed, 12 May 1999 06:11:02 +0000 (06:11 +0000)]
update

20 years agomake it compile under Solaris
Paul Mackerras [Tue, 4 May 1999 06:58:36 +0000 (06:58 +0000)]
make it compile under Solaris

20 years agoimprove ppp not available message
Paul Mackerras [Tue, 4 May 1999 06:58:18 +0000 (06:58 +0000)]
improve ppp not available message

20 years agominor fixes from Paul Fulghum
Paul Mackerras [Tue, 4 May 1999 06:57:44 +0000 (06:57 +0000)]
minor fixes from Paul Fulghum

20 years agotake out VJ old/new-style hack
Paul Mackerras [Tue, 4 May 1999 06:57:27 +0000 (06:57 +0000)]
take out VJ old/new-style hack

20 years agotry harder to flush the tty output buffer in disestablish_ppp
Paul Mackerras [Wed, 28 Apr 1999 02:46:44 +0000 (02:46 +0000)]
try harder to flush the tty output buffer in disestablish_ppp

20 years agofix buglets
Paul Mackerras [Wed, 28 Apr 1999 02:45:44 +0000 (02:45 +0000)]
fix buglets

20 years agoupdate from Sowmini Varadhan
Paul Mackerras [Wed, 28 Apr 1999 02:40:18 +0000 (02:40 +0000)]
update from Sowmini Varadhan

20 years agochanges to match if_ppp.c modifications- put the mtu into ifr_data.
Sowmini Varadhan [Tue, 27 Apr 1999 22:33:09 +0000 (22:33 +0000)]
changes to match if_ppp.c modifications- put the mtu into ifr_data.
bzero ifr before ioctl

20 years agoUpdate for OSF 4.0- -I. before -I../include in CFLAGS
Sowmini Varadhan [Tue, 27 Apr 1999 22:31:18 +0000 (22:31 +0000)]
Update for OSF 4.0- -I. before -I../include in CFLAGS

20 years agoUpdated for OSF 4.0.
Sowmini Varadhan [Tue, 27 Apr 1999 22:24:23 +0000 (22:24 +0000)]
Updated for OSF 4.0.

20 years agoUpdate for OSF 4.0- there's no ppp_osf.h on Digital Unix. So don't include it
Sowmini Varadhan [Tue, 27 Apr 1999 22:22:23 +0000 (22:22 +0000)]
Update for OSF 4.0- there's no ppp_osf.h on Digital Unix. So don't include it

20 years agoUpdated for OSF 4.0- don't set IFF_MULTICAST on __osf__. Copy the mtu
Sowmini Varadhan [Tue, 27 Apr 1999 22:20:58 +0000 (22:20 +0000)]
Updated for OSF 4.0- don't set IFF_MULTICAST on __osf__. Copy the mtu
into ifr_data for the SIOCSIFMTU ioctl

20 years agoUpdated for OSF 4.0
Sowmini Varadhan [Tue, 27 Apr 1999 22:18:39 +0000 (22:18 +0000)]
Updated for OSF 4.0

20 years agomake it alpha
Paul Mackerras [Fri, 16 Apr 1999 11:49:30 +0000 (11:49 +0000)]
make it alpha

20 years agoupdate
Paul Mackerras [Fri, 16 Apr 1999 11:48:50 +0000 (11:48 +0000)]
update

20 years agonasty powerpc kludge is only needed for glibc 2.0
Paul Mackerras [Fri, 16 Apr 1999 11:36:51 +0000 (11:36 +0000)]
nasty powerpc kludge is only needed for glibc 2.0

20 years agouse memset not bzero
Paul Mackerras [Fri, 16 Apr 1999 11:35:59 +0000 (11:35 +0000)]
use memset not bzero

20 years agofix printing of callback
Paul Mackerras [Fri, 16 Apr 1999 11:35:43 +0000 (11:35 +0000)]
fix printing of callback

20 years agofix pid handling
Paul Mackerras [Fri, 16 Apr 1999 11:35:06 +0000 (11:35 +0000)]
fix pid handling

20 years agomention PPPLOGNAME
Paul Mackerras [Fri, 16 Apr 1999 11:34:45 +0000 (11:34 +0000)]
mention PPPLOGNAME

20 years agotry to cope gracefully with the situation where someone else
Paul Mackerras [Fri, 16 Apr 1999 11:34:27 +0000 (11:34 +0000)]
try to cope gracefully with the situation where someone else
has locked the serial line for us.

20 years agoflush queue before restoring line discipline to try to
Paul Mackerras [Fri, 16 Apr 1999 11:33:40 +0000 (11:33 +0000)]
flush queue before restoring line discipline to try to
eliminate hangs

20 years agomake sure pppd notices hangups in demand mode
Paul Mackerras [Fri, 16 Apr 1999 11:29:13 +0000 (11:29 +0000)]
make sure pppd notices hangups in demand mode

20 years agoadd debugging messages about waiting for children at exit
Paul Mackerras [Mon, 12 Apr 1999 06:44:42 +0000 (06:44 +0000)]
add debugging messages about waiting for children at exit

20 years agoMove some stuff (printing, logging, [un]locking) into utils.c.
Paul Mackerras [Mon, 12 Apr 1999 06:24:53 +0000 (06:24 +0000)]
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.

20 years agorestore ppp_comp_count and ppp_ahdlc_count, needed on SunOS
Paul Mackerras [Mon, 12 Apr 1999 06:20:22 +0000 (06:20 +0000)]
restore ppp_comp_count and ppp_ahdlc_count, needed on SunOS

20 years agouse -f test instead of -e
Paul Mackerras [Thu, 1 Apr 1999 11:48:30 +0000 (11:48 +0000)]
use -f test instead of -e

20 years agoadd man page for pppdump and add it to the list of things
Paul Mackerras [Thu, 1 Apr 1999 11:44:55 +0000 (11:44 +0000)]
add man page for pppdump and add it to the list of things
to be installed on linux, sol2, svr4, sunos4

20 years agoexamples for RH linux
Paul Mackerras [Thu, 1 Apr 1999 11:44:16 +0000 (11:44 +0000)]
examples for RH linux

20 years agomake it compile under sunos
Paul Mackerras [Thu, 1 Apr 1999 07:26:30 +0000 (07:26 +0000)]
make it compile under sunos

20 years agocouple more get_pty's
Paul Mackerras [Thu, 1 Apr 1999 07:20:11 +0000 (07:20 +0000)]
couple more get_pty's

20 years agoremove another ansi-C-ism
Paul Mackerras [Thu, 1 Apr 1999 07:19:59 +0000 (07:19 +0000)]
remove another ansi-C-ism

20 years agosmall changes suggested by Seth Chaiklin
Paul Mackerras [Thu, 1 Apr 1999 07:08:49 +0000 (07:08 +0000)]
small changes suggested by Seth Chaiklin

20 years agocope with the case where we don't have a device name when
Paul Mackerras [Thu, 1 Apr 1999 05:39:34 +0000 (05:39 +0000)]
cope with the case where we don't have a device name when
ppp_available is called.

20 years agoremove unneeded (harmful) closes in device_script
Paul Mackerras [Wed, 31 Mar 1999 12:30:01 +0000 (12:30 +0000)]
remove unneeded (harmful) closes in device_script
run disconnector on some errors

20 years agodon't recurse in terminate()
Paul Mackerras [Wed, 31 Mar 1999 12:28:16 +0000 (12:28 +0000)]
don't recurse in terminate()

20 years agoupdate version to 2.3.7
Paul Mackerras [Wed, 31 Mar 1999 06:07:59 +0000 (06:07 +0000)]
update version to 2.3.7

20 years agoadd reopen_log(), call it after using PAM stuff
Paul Mackerras [Wed, 31 Mar 1999 05:39:43 +0000 (05:39 +0000)]
add reopen_log(), call it after using PAM stuff

20 years agoget files from ../include/linux if not here
Paul Mackerras [Wed, 31 Mar 1999 05:38:29 +0000 (05:38 +0000)]
get files from ../include/linux if not here

20 years agofix minor compilation nit
Paul Mackerras [Wed, 31 Mar 1999 05:29:08 +0000 (05:29 +0000)]
fix minor compilation nit

20 years agoApply patch for sync serial support from Paul Fulghum.
Paul Mackerras [Tue, 30 Mar 1999 06:33:10 +0000 (06:33 +0000)]
Apply patch for sync serial support from Paul Fulghum.

20 years agoapply PAM patch
Paul Mackerras [Tue, 30 Mar 1999 06:02:21 +0000 (06:02 +0000)]
apply PAM patch

20 years agoalpha -> beta
Paul Mackerras [Tue, 30 Mar 1999 06:02:05 +0000 (06:02 +0000)]
alpha -> beta

20 years agochange pppd to group pppusers if possible
Paul Mackerras [Tue, 30 Mar 1999 06:01:42 +0000 (06:01 +0000)]
change pppd to group pppusers if possible

20 years agoset the SPEED variable later so it is valid
Paul Mackerras [Tue, 30 Mar 1999 06:01:24 +0000 (06:01 +0000)]
set the SPEED variable later so it is valid

20 years agofixes to error messages.
Paul Mackerras [Tue, 30 Mar 1999 04:23:14 +0000 (04:23 +0000)]
fixes to error messages.

20 years agoFix the behaviour of device_script when in/out are < 2.
Paul Mackerras [Tue, 30 Mar 1999 04:22:57 +0000 (04:22 +0000)]
Fix the behaviour of device_script when in/out are < 2.
Only call reap_kids if we have seen a SIGCHLD.

20 years agomoved to ../include/linux or no longer needed post 2.0
Paul Mackerras [Mon, 29 Mar 1999 04:43:32 +0000 (04:43 +0000)]
moved to ../include/linux or no longer needed post 2.0

20 years agoadd pppdump
Paul Mackerras [Thu, 25 Mar 1999 01:31:22 +0000 (01:31 +0000)]
add pppdump

20 years agoprint timestamp at beginning of each section
Paul Mackerras [Thu, 25 Mar 1999 01:31:06 +0000 (01:31 +0000)]
print timestamp at beginning of each section

20 years agoAdd timestamp at beginning of each section of record file.
Paul Mackerras [Thu, 25 Mar 1999 01:30:32 +0000 (01:30 +0000)]
Add timestamp at beginning of each section of record file.
Open device as root if it is the default device.

20 years agoneed these too
Paul Mackerras [Wed, 24 Mar 1999 23:39:57 +0000 (23:39 +0000)]
need these too

20 years agoshould read the tty options file now.
Paul Mackerras [Wed, 24 Mar 1999 05:05:25 +0000 (05:05 +0000)]
should read the tty options file now.

20 years agomake pppdump as well
Paul Mackerras [Tue, 23 Mar 1999 03:33:23 +0000 (03:33 +0000)]
make pppdump as well

20 years agodocument record option
Paul Mackerras [Tue, 23 Mar 1999 03:22:34 +0000 (03:22 +0000)]
document record option

20 years agocheck in pppdump sources
Paul Mackerras [Tue, 23 Mar 1999 03:21:58 +0000 (03:21 +0000)]
check in pppdump sources

20 years agoAllow record option with pty option.
Paul Mackerras [Tue, 23 Mar 1999 01:23:46 +0000 (01:23 +0000)]
Allow record option with pty option.
Open record file in charshunt.
Be more careful about closing things.
Ignore SIGHUP in charshunt.

20 years agoupdate
Paul Mackerras [Mon, 22 Mar 1999 05:56:28 +0000 (05:56 +0000)]
update

20 years agohandle M_FLUSH and M_IOCTL messages in lrput routine.
Paul Mackerras [Mon, 22 Mar 1999 05:55:59 +0000 (05:55 +0000)]
handle M_FLUSH and M_IOCTL messages in lrput routine.

20 years agoAdd pty, notty and record options.
Paul Mackerras [Mon, 22 Mar 1999 05:55:40 +0000 (05:55 +0000)]
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.

20 years agoremove a couple of ansi-C-isms.
Paul Mackerras [Fri, 19 Mar 1999 04:23:54 +0000 (04:23 +0000)]
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.

20 years agochanged order of args to strlcpy/strlcat.
Paul Mackerras [Fri, 19 Mar 1999 01:29:51 +0000 (01:29 +0000)]
changed order of args to strlcpy/strlcat.
removed unused note_debug_level.
made some functions static.

20 years agoremoved some functions made static and other unused stuff.
Paul Mackerras [Fri, 19 Mar 1999 01:28:27 +0000 (01:28 +0000)]
removed some functions made static and other unused stuff.
changed order of args to strlcpy/strlcat.

20 years agomade some more functions static.
Paul Mackerras [Fri, 19 Mar 1999 01:27:43 +0000 (01:27 +0000)]
made some more functions static.
changed order of args to strlcpy/strlcat.
move remote_name/explicit_remote to auth.c.
remote unused code.

20 years agoadded log_to_fd to specify which fd log output should go to.
Paul Mackerras [Fri, 19 Mar 1999 01:26:41 +0000 (01:26 +0000)]
added log_to_fd to specify which fd log output should go to.
device_script now connects script's stderr to log_to_fd.
made some more functions static.
got rid of quit().
changed order of args to strlcpy/strlcat.
do get_input before checking kill_link.

20 years agoadded receive-all option.
Paul Mackerras [Fri, 19 Mar 1999 01:24:57 +0000 (01:24 +0000)]
added receive-all option.
ignore extra unrecognized options in nak.

20 years agomade some functions static.
Paul Mackerras [Fri, 19 Mar 1999 01:22:09 +0000 (01:22 +0000)]
made some functions static.
ignore extra unrecognized options in nak.
changed order of args to strlcpy/strlcat.

20 years agomade loop_frame static
Paul Mackerras [Fri, 19 Mar 1999 01:21:28 +0000 (01:21 +0000)]
made loop_frame static

20 years agoif remote name was explicitly specified with remotename option,
Paul Mackerras [Fri, 19 Mar 1999 01:20:19 +0000 (01:20 +0000)]
if remote name was explicitly specified with remotename option,
always use that instead of name supplied by peer.
changed order of args to strlcpy.

20 years agoIgnore extra unrecognized options in Nak.
Paul Mackerras [Fri, 19 Mar 1999 01:19:31 +0000 (01:19 +0000)]
Ignore extra unrecognized options in Nak.
change order of args to strlcpy/strlcat.

20 years agodon't run auth-up/down script while one is already running.
Paul Mackerras [Fri, 19 Mar 1999 01:17:51 +0000 (01:17 +0000)]
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).

20 years agoadd data_name to struct protent
Paul Mackerras [Tue, 16 Mar 1999 22:54:43 +0000 (22:54 +0000)]
add data_name to struct protent
call lcp_lowerdown when connection terminates

20 years agomake establish_ppp and open_ppp_loopback return the correct fd
Paul Mackerras [Tue, 16 Mar 1999 22:53:49 +0000 (22:53 +0000)]
make establish_ppp and open_ppp_loopback return the correct fd

20 years agoadd question about auth in 2.3.6
Paul Mackerras [Tue, 16 Mar 1999 22:50:29 +0000 (22:50 +0000)]
add question about auth in 2.3.6

20 years agodon't call np_down unless np_up has been called
Paul Mackerras [Tue, 16 Mar 1999 04:00:53 +0000 (04:00 +0000)]
don't call np_down unless np_up has been called

20 years agofix silly mistake
Paul Mackerras [Tue, 16 Mar 1999 04:00:35 +0000 (04:00 +0000)]
fix silly mistake

20 years agosyslog -> notice/error/etc.
Paul Mackerras [Tue, 16 Mar 1999 03:15:15 +0000 (03:15 +0000)]
syslog -> notice/error/etc.
use slprintf instead of sprintf
trimmed debug

20 years agodon't print debug msgs to stderr unless debug is set
Paul Mackerras [Tue, 16 Mar 1999 03:14:50 +0000 (03:14 +0000)]
don't print debug msgs to stderr unless debug is set

20 years agofix for usepeerdns stuff
Paul Mackerras [Tue, 16 Mar 1999 03:12:03 +0000 (03:12 +0000)]
fix for usepeerdns stuff
syslog -> notice/error/etc.
use slprintf instead of sprintf

20 years agominor compilation fixes
Paul Mackerras [Tue, 16 Mar 1999 02:58:01 +0000 (02:58 +0000)]
minor compilation fixes
changed syslog -> notice/error/etc.

20 years agoadded add_fd, remove_fd, removed wait_loop_output, wait_time.
Paul Mackerras [Tue, 16 Mar 1999 02:57:08 +0000 (02:57 +0000)]
added add_fd, remove_fd, removed wait_loop_output, wait_time.
changed syslog -> notice/error/fatal etc.

20 years agodon't die on EIO on setting asyncmap
Paul Mackerras [Tue, 16 Mar 1999 02:53:51 +0000 (02:53 +0000)]
don't die on EIO on setting asyncmap
fixed indentation
changed syslog to notice/error/etc.

20 years agoadd add_fd and remove_fd, remove wait_loop_output and wait_time
Paul Mackerras [Tue, 16 Mar 1999 02:51:06 +0000 (02:51 +0000)]
add add_fd and remove_fd, remove wait_loop_output and wait_time
changed debug macros

20 years agoadd %P and %B formats, fixed %I
Paul Mackerras [Tue, 16 Mar 1999 02:50:15 +0000 (02:50 +0000)]
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

20 years agomake default asyncmap 0
Paul Mackerras [Tue, 16 Mar 1999 02:47:00 +0000 (02:47 +0000)]
make default asyncmap 0
change syslog -> notice/error etc., trimmed debug
change sprintf -> slprintf

20 years agouse strlcpy, strlcat, slprintf everywhere
Paul Mackerras [Fri, 12 Mar 1999 06:07:24 +0000 (06:07 +0000)]
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

20 years agoCorrected the comment about the device name option being privileged.
Paul Mackerras [Wed, 10 Mar 1999 05:10:47 +0000 (05:10 +0000)]
Corrected the comment about the device name option being privileged.

20 years agofix compile problems on OSF/1
Paul Mackerras [Wed, 10 Mar 1999 03:07:48 +0000 (03:07 +0000)]
fix compile problems on OSF/1