ppp.git
19 years agominor bugfixes, now 2.4.2b1, add pkts_in/out to pppd_stats,
Paul Mackerras [Fri, 27 Apr 2001 23:16:13 +0000 (23:16 +0000)]
minor bugfixes, now 2.4.2b1, add pkts_in/out to pppd_stats,
finish transition to netif_set_mtu and tty_send/recv_config

19 years agoadd some more hooks and notifiers
Paul Mackerras [Fri, 27 Apr 2001 23:13:06 +0000 (23:13 +0000)]
add some more hooks and notifiers

19 years agoupdate to 2.4.1
Paul Mackerras [Sun, 25 Mar 2001 04:51:54 +0000 (04:51 +0000)]
update to 2.4.1

19 years agoprevent ipv6 stuff from complaining about no addresses in demand mode
Paul Mackerras [Thu, 22 Mar 2001 00:42:33 +0000 (00:42 +0000)]
prevent ipv6 stuff from complaining about no addresses in demand mode
if ipv6 is not enabled

19 years agoimplement %u for printing bytes sent/received
Paul Mackerras [Fri, 16 Mar 2001 02:08:13 +0000 (02:08 +0000)]
implement %u for printing bytes sent/received

19 years agobetter message for the case when /dev/ppp doesn't exist
Paul Mackerras [Tue, 13 Mar 2001 05:36:32 +0000 (05:36 +0000)]
better message for the case when /dev/ppp doesn't exist

19 years agoupdate to b2
Paul Mackerras [Mon, 12 Mar 2001 23:08:43 +0000 (23:08 +0000)]
update to b2

19 years agochange to bsd-style licence
Paul Mackerras [Mon, 12 Mar 2001 23:05:44 +0000 (23:05 +0000)]
change to bsd-style licence

19 years agomake establish/disestablish_ppp members of the channel struct,
Paul Mackerras [Mon, 12 Mar 2001 22:59:01 +0000 (22:59 +0000)]
make establish/disestablish_ppp members of the channel struct,
make restore_loop part of disestablish_ppp

19 years agofix silly bug in pr_log
Paul Mackerras [Mon, 12 Mar 2001 22:56:45 +0000 (22:56 +0000)]
fix silly bug in pr_log

19 years agoremove oops message when a bool option has been turned off by other
Paul Mackerras [Mon, 12 Mar 2001 22:56:12 +0000 (22:56 +0000)]
remove oops message when a bool option has been turned off by other
logic; fix silly bug in options_from_list

19 years agomove netif_set_mtu after set_ifunit so it can use ifname;
Paul Mackerras [Mon, 12 Mar 2001 22:55:26 +0000 (22:55 +0000)]
move netif_set_mtu after set_ifunit so it can use ifname;
remove a debug message

19 years agodon't insist on the suggested address from the secrets file
Paul Mackerras [Mon, 12 Mar 2001 22:50:01 +0000 (22:50 +0000)]
don't insist on the suggested address from the secrets file
unless it is the only authorized address

19 years agoexplain the kdebug value a bit better
Paul Mackerras [Mon, 12 Mar 2001 22:49:25 +0000 (22:49 +0000)]
explain the kdebug value a bit better

19 years agochange to bsd-style licence
Paul Mackerras [Mon, 12 Mar 2001 22:46:09 +0000 (22:46 +0000)]
change to bsd-style licence

19 years agofix a couple of bugs reported on the linux-ppp list:
Paul Mackerras [Sat, 10 Mar 2001 11:42:22 +0000 (11:42 +0000)]
fix a couple of bugs reported on the linux-ppp list:
set debug flags in channel, parse our version string correctly

19 years agoworkaround zlib bug
Paul Mackerras [Fri, 9 Mar 2001 01:03:50 +0000 (01:03 +0000)]
workaround zlib bug

19 years agodescribe dump and dryrun
Paul Mackerras [Fri, 9 Mar 2001 01:01:26 +0000 (01:01 +0000)]
describe dump and dryrun

19 years agomove the option printing stuff a little earlier, take out
Paul Mackerras [Fri, 9 Mar 2001 00:55:14 +0000 (00:55 +0000)]
move the option printing stuff a little earlier, take out
unnecessary openlog from sys_init in sys_linux.c

19 years agoupdate for 2.4.1
Paul Mackerras [Fri, 9 Mar 2001 00:53:57 +0000 (00:53 +0000)]
update for 2.4.1

19 years agofix silly typo
Paul Mackerras [Thu, 8 Mar 2001 05:29:28 +0000 (05:29 +0000)]
fix silly typo

19 years agoMake the example plugins here export the version number that they
Paul Mackerras [Thu, 8 Mar 2001 05:16:38 +0000 (05:16 +0000)]
Make the example plugins here export the version number that they
were compiled against; add an install target to put the plugins in
/usr/lib/pppd/<version>/.

19 years agoadd _PATH_PLUGIN for the default place to look for plugins
Paul Mackerras [Thu, 8 Mar 2001 05:15:37 +0000 (05:15 +0000)]
add _PATH_PLUGIN for the default place to look for plugins

19 years agoUpdate for 2.4.1b1 release
Paul Mackerras [Thu, 8 Mar 2001 05:15:08 +0000 (05:15 +0000)]
Update for 2.4.1b1 release

19 years agoSeparate out the setting of the interface MTU from the setting of
Paul Mackerras [Thu, 8 Mar 2001 05:14:26 +0000 (05:14 +0000)]
Separate out the setting of the interface MTU from the setting of
lower level things like the asyncmap and proto/AC compression.
Renamed ppp_send/recv_config to tty_send/recv_config.
At this point we have a structure of channel operations and a pointer
to the currently set (the_channel) which a plugin can override if
desired.

19 years agoNew options system with priorities for option values, with options
Paul Mackerras [Thu, 8 Mar 2001 05:11:16 +0000 (05:11 +0000)]
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.

19 years agoadd tty.o to OBJS, fix from James Carlson
Paul Mackerras [Thu, 8 Mar 2001 05:01:03 +0000 (05:01 +0000)]
add tty.o to OBJS, fix from James Carlson

19 years agofix up the chmod/chgrp stuff
Paul Mackerras [Thu, 8 Mar 2001 05:00:35 +0000 (05:00 +0000)]
fix up the chmod/chgrp stuff

19 years agoImplement delayed bringup for LCP for the case where we want to
Paul Mackerras [Thu, 22 Feb 2001 03:16:26 +0000 (03:16 +0000)]
Implement delayed bringup for LCP for the case where we want to
wait for a short time to hear something from the peer before sending
anything ourselves.

19 years agoRework options processing stuff to implement option priorities
Paul Mackerras [Thu, 22 Feb 2001 03:15:21 +0000 (03:15 +0000)]
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)

19 years agofix kill() call, thanks to Andreas Hofmeister
Paul Mackerras [Thu, 22 Feb 2001 03:11:47 +0000 (03:11 +0000)]
fix kill() call, thanks to Andreas Hofmeister

19 years agoadd handle_events() function
Paul Mackerras [Thu, 22 Feb 2001 03:10:57 +0000 (03:10 +0000)]
add handle_events() function

19 years agoBecause of a bug in zlib, restrict deflate parameter to 9..15 for now.
Paul Mackerras [Thu, 22 Feb 2001 03:10:06 +0000 (03:10 +0000)]
Because of a bug in zlib, restrict deflate parameter to 9..15 for now.
Thanks to James Carlson for this fix.

19 years agofix silly mistake in setting up pty
Paul Mackerras [Mon, 1 Jan 2001 23:43:25 +0000 (23:43 +0000)]
fix silly mistake in setting up pty

19 years agofix typo in modules.conf example
Paul Mackerras [Wed, 27 Dec 2000 23:28:19 +0000 (23:28 +0000)]
fix typo in modules.conf example

19 years agoadd -fPIC to CFLAGS
Paul Mackerras [Wed, 27 Dec 2000 23:27:48 +0000 (23:27 +0000)]
add -fPIC to CFLAGS

19 years agoonly accept frame if it passes the pass filter as well as the
Paul Mackerras [Wed, 27 Dec 2000 23:27:29 +0000 (23:27 +0000)]
only accept frame if it passes the pass filter as well as the
active filter

19 years agoprint no_ppp_msg with %s
Paul Mackerras [Wed, 27 Dec 2000 23:26:41 +0000 (23:26 +0000)]
print no_ppp_msg with %s

19 years agoIncrease the size of the buffer for option error messages
Paul Mackerras [Wed, 27 Dec 2000 23:25:55 +0000 (23:25 +0000)]
Increase the size of the buffer for option error messages

19 years agoAdd 76800 and 921600 baud rates
Paul Mackerras [Wed, 27 Dec 2000 23:25:12 +0000 (23:25 +0000)]
Add 76800 and 921600 baud rates

19 years agoCorrect nodtrcts -> nocdtrcts
Paul Mackerras [Wed, 27 Dec 2000 23:24:13 +0000 (23:24 +0000)]
Correct nodtrcts -> nocdtrcts

20 years agoreinstate these files with BSD-style copyright
Paul Mackerras [Sat, 5 Aug 2000 06:46:47 +0000 (06:46 +0000)]
reinstate these files with BSD-style copyright

20 years agoupdate for 2.4
Paul Mackerras [Tue, 1 Aug 2000 01:47:04 +0000 (01:47 +0000)]
update for 2.4

20 years agoupdate for 2.4.0 release
Paul Mackerras [Tue, 1 Aug 2000 01:46:24 +0000 (01:46 +0000)]
update for 2.4.0 release

20 years agoturn off packet filtering for now since the kernel driver doesn't
Paul Mackerras [Tue, 1 Aug 2000 01:44:48 +0000 (01:44 +0000)]
turn off packet filtering for now since the kernel driver doesn't
support it yet.

20 years agoadd stuff for packet filtering
Paul Mackerras [Tue, 1 Aug 2000 01:38:30 +0000 (01:38 +0000)]
add stuff for packet filtering
remove IPV6 stuff because it was GPL'd

20 years agoadd infrastructure to support packet filtering
Paul Mackerras [Tue, 1 Aug 2000 01:37:24 +0000 (01:37 +0000)]
add infrastructure to support packet filtering

20 years agonew version rewritten for 2.4.0
Paul Mackerras [Tue, 1 Aug 2000 01:35:04 +0000 (01:35 +0000)]
new version rewritten for 2.4.0

20 years agofix allow-ip option, allow @login for secret meaning authenticate against
Paul Mackerras [Mon, 24 Jul 2000 14:58:15 +0000 (14:58 +0000)]
fix allow-ip option, allow @login for secret meaning authenticate against
login database, update to 2.4.0b5, update man page for multilink options,
fix restoring device permissions

20 years agomove more stuff from main.c into tty.c, for 2.4.0b4
Paul Mackerras [Thu, 6 Jul 2000 11:17:03 +0000 (11:17 +0000)]
move more stuff from main.c into tty.c, for 2.4.0b4

20 years agocomment out kinstall since it isn't needed now
Paul Mackerras [Fri, 30 Jun 2000 04:56:15 +0000 (04:56 +0000)]
comment out kinstall since it isn't needed now

20 years agoMove the tty-related stuff out to tty.c as far as possible.
Paul Mackerras [Fri, 30 Jun 2000 04:54:23 +0000 (04:54 +0000)]
Move the tty-related stuff out to tty.c as far as possible.

20 years agodon't fall over in the charshunt if we get an EAGAIN or EINTR
Paul Mackerras [Sat, 29 Apr 2000 12:32:59 +0000 (12:32 +0000)]
don't fall over in the charshunt if we get an EAGAIN or EINTR
error on a write.

20 years agoAccept the endpoint discriminator from the peer unless the
Paul Mackerras [Sat, 29 Apr 2000 12:32:09 +0000 (12:32 +0000)]
Accept the endpoint discriminator from the peer unless the
noendpoint option is given, even if we're not doing multilink.
Include the noendpoint option even if !HAVE_MULTILINK.

20 years agoMP-related code should be wrapped within HAVE_MULTILINK pre-processor
Adi Masputra [Thu, 27 Apr 2000 03:51:18 +0000 (03:51 +0000)]
MP-related code should be wrapped within HAVE_MULTILINK pre-processor
conditional blocks, otherwise the build breaks on platforms where
HAVE_MULTILINK is not defined.

20 years agoIgnore the generated binaries and sparcv9 directory such that CVS
Adi Masputra [Thu, 27 Apr 2000 03:38:25 +0000 (03:38 +0000)]
Ignore the generated binaries and sparcv9 directory such that CVS
won't treat them as part of the repository (during CVS update).

20 years agoallow peer to give endpoint even if we're not doing multilink;
Paul Mackerras [Mon, 24 Apr 2000 07:41:09 +0000 (07:41 +0000)]
allow peer to give endpoint even if we're not doing multilink;
fix demand dialling where we ask for multilink and don't get it.

20 years agoupdate to 2.4.0b3
Paul Mackerras [Mon, 24 Apr 2000 07:39:47 +0000 (07:39 +0000)]
update to 2.4.0b3

20 years agoFixed bugs with regards to using other device names than "ppp", use
Adi Masputra [Mon, 24 Apr 2000 02:54:18 +0000 (02:54 +0000)]
Fixed bugs with regards to using other device names than "ppp", use
PPP_DRV_NAME definition instead.

20 years agoFixed bugs with regards to using other device names than "ppp"
Adi Masputra [Fri, 21 Apr 2000 01:27:57 +0000 (01:27 +0000)]
Fixed bugs with regards to using other device names than "ppp"

20 years agoAllows another name other than "ppp" be used as the PPP interface name.
Adi Masputra [Fri, 21 Apr 2000 01:27:17 +0000 (01:27 +0000)]
Allows another name other than "ppp" be used as the PPP interface name.
If it's not defined, then use the legacy "ppp" without any changes.

20 years ago1) Created a subdirectory called 'solaris'. Currently it contains a replica
Adi Masputra [Tue, 18 Apr 2000 23:51:29 +0000 (23:51 +0000)]
1) Created a subdirectory called 'solaris'. Currently it contains a replica
   of the 'svr4' directory. However, over time, files in this directory
   will contain the same code as the kernel-portion of pppd in future
   releases of Solaris, hence they most probably will change in contents
   and/or sub-structure.
2) Changed the 'configure' script to not create symbolic link Makefiles
   when the OS is SunOS 4.x. Under 'SunOS' category, only SunOS 5.x (or
   Solaris 2.x) is currently enabled.
3) Changed the rest of the utilities + pppd daemon Makefile.sol2 to point
   to the solaris/Makedefs instead of the one in svr4 directory.

20 years agofix the bug in non-demand mode that I inadvertently introduced
Paul Mackerras [Sat, 15 Apr 2000 11:39:52 +0000 (11:39 +0000)]
fix the bug in non-demand mode that I inadvertently introduced

20 years agoUse /bin/sh in these scripts, not ksh, otherwise rpm incorrectly
Paul Mackerras [Sat, 15 Apr 2000 11:38:48 +0000 (11:38 +0000)]
Use /bin/sh in these scripts, not ksh, otherwise rpm incorrectly
thinks that this package depends on ksh.

20 years agofixes for demand mode and multilink
Paul Mackerras [Sat, 15 Apr 2000 10:10:25 +0000 (10:10 +0000)]
fixes for demand mode and multilink

20 years agoRemoved '-w' cc flag, since it practically disables all warnings. This
Adi Masputra [Sat, 15 Apr 2000 01:30:53 +0000 (01:30 +0000)]
Removed '-w' cc flag, since it practically disables all warnings. This
may not be good for future development. Plus, warnings should be fixed
instead of ignored.

20 years agoSome tiny fixes (minor castings) to remove annoying compiler warnings
Adi Masputra [Sat, 15 Apr 2000 01:27:13 +0000 (01:27 +0000)]
Some tiny fixes (minor castings) to remove annoying compiler warnings

20 years agoMultilink cleanups and fixes.
Paul Mackerras [Thu, 13 Apr 2000 12:06:00 +0000 (12:06 +0000)]
Multilink cleanups and fixes.
We don't need to include multilink.o now if HAVE_MULTILINK is
not defined.

20 years agodon't stop logging on detach if we use logfd or logfile option
Paul Mackerras [Thu, 13 Apr 2000 12:05:16 +0000 (12:05 +0000)]
don't stop logging on detach if we use logfd or logfile option

20 years agoremove stray #endif
Paul Mackerras [Thu, 13 Apr 2000 12:04:23 +0000 (12:04 +0000)]
remove stray #endif

20 years agoChanges for ppp-2.4.0 beta 1 release.
Paul Mackerras [Thu, 13 Apr 2000 11:59:40 +0000 (11:59 +0000)]
Changes for ppp-2.4.0 beta 1 release.
We are only including Linux, Solaris & SunOS in 2.4 unless
some maintainers start popping up out of the woodwork.

20 years agoAdded the following:
Adi Masputra [Thu, 6 Apr 2000 23:11:05 +0000 (23:11 +0000)]
Added the following:
1. Two versions of get_first_ethernet() function, one with a short
   version of ifreq (before Solaris 8) and the other with a long
   version of ifreq (Solaris 8 and beyond). This is needed to support
   multilink.c
2. get_if_hwaddr() function, which is really a wrapper function which
   calls get_hw_addr_dlpi() in order to obtain the Ethernet interface
   address(es) via DLPI mechanism.

20 years agoSince this file needs to be included as part of the compilation, whether
Adi Masputra [Thu, 6 Apr 2000 23:08:18 +0000 (23:08 +0000)]
Since this file needs to be included as part of the compilation, whether
or not HAVE_MULTILINK is defined, certain functions need to be wrapped
within HAVE_MULTILINK conditional preprocessor blocks. So far, everything
but the epdisc_to_str() function needs to be excluded when HAVE_MULTILINK
is not defined. This is because epdisc_to_str() seems to be called
unconditionally from within lcp.c, specifically from lcp_printpk().

20 years agoAdded tdb.c and multilink.c to be part of the compilation, otherwise,
Adi Masputra [Thu, 6 Apr 2000 23:03:28 +0000 (23:03 +0000)]
Added tdb.c and multilink.c to be part of the compilation, otherwise,
Solaris 2.x compilation breaks

20 years agomake mpshortseq option work
Paul Mackerras [Wed, 5 Apr 2000 00:58:28 +0000 (00:58 +0000)]
make mpshortseq option work

20 years agothis one is also needed for multilink :-)
Paul Mackerras [Tue, 4 Apr 2000 07:08:12 +0000 (07:08 +0000)]
this one is also needed for multilink :-)

20 years agoMultilink support.
Paul Mackerras [Tue, 4 Apr 2000 07:06:53 +0000 (07:06 +0000)]
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.

20 years agoupdate for new kernel driver and devfs
Paul Mackerras [Mon, 27 Mar 2000 06:04:07 +0000 (06:04 +0000)]
update for new kernel driver and devfs

20 years agochanges for new linux kernel driver and for multilink
Paul Mackerras [Mon, 27 Mar 2000 06:03:36 +0000 (06:03 +0000)]
changes for new linux kernel driver and for multilink

20 years agochanges to linux interface for new kernel driver,
Paul Mackerras [Mon, 27 Mar 2000 06:03:07 +0000 (06:03 +0000)]
changes to linux interface for new kernel driver,
plus the start of multilink support

20 years agoincrease buffer size
Paul Mackerras [Mon, 27 Mar 2000 01:36:48 +0000 (01:36 +0000)]
increase buffer size

20 years agofix demand-dialling bug with new driver
Paul Mackerras [Mon, 13 Mar 2000 23:40:28 +0000 (23:40 +0000)]
fix demand-dialling bug with new driver

20 years agoadd socket and datarate options
Paul Mackerras [Mon, 13 Mar 2000 23:39:58 +0000 (23:39 +0000)]
add socket and datarate options
fix n_children bug

20 years agodon't require authentication by default if privileged, even if we
Paul Mackerras [Mon, 13 Mar 2000 23:25:46 +0000 (23:25 +0000)]
don't require authentication by default if privileged, even if we
have a default route already.

20 years agoAdjusted MTU to proper values per transport layers
Adi Masputra [Thu, 9 Mar 2000 20:07:52 +0000 (20:07 +0000)]
Adjusted MTU to proper values per transport layers

20 years agoThe usage of intptr_t was completely a bad choice, since it's not
Adi Masputra [Mon, 6 Mar 2000 19:38:12 +0000 (19:38 +0000)]
The usage of intptr_t was completely a bad choice, since it's not
defined in 2.5.1 and earlier, including SunOS 4.x. A type definition
is now added (with support for LP64 as well) in order to avoid this
compilation problem across older Solaris releases.

20 years agoclock32_t is clock_t (long)
Adi Masputra [Fri, 18 Feb 2000 10:00:58 +0000 (10:00 +0000)]
clock32_t is clock_t (long)

20 years agoclock32_t should be typedef'd to clock_t on OS'es which don't define
Adi Masputra [Wed, 16 Feb 2000 20:39:24 +0000 (20:39 +0000)]
clock32_t should be typedef'd to clock_t on OS'es which don't define
such type, like SunOS 5.6 and earlier.

20 years agoOn synchronous links, typically the following options are set on the command
Adi Masputra [Fri, 11 Feb 2000 03:09:19 +0000 (03:09 +0000)]
On synchronous links, typically the following options are set on the command
line: novj noccp noaccomp nopcomp. However, even so, the comp STREAMS module
was always pushed on the stream. This behavior has been changed, such that
when those options are set, the stream will be comp-less. This is not
specific to synchronous cases by the way, as it also applies on async
as well.

20 years agoWhen 'sync' option is present, the ppp_ahdl module isn't plumbed, so
Adi Masputra [Fri, 28 Jan 2000 01:51:19 +0000 (01:51 +0000)]
When 'sync' option is present, the ppp_ahdl module isn't plumbed, so
it wouldn't make sense to send down an ioctl belonging to it.

20 years agoFixed compilation problems on SunOS 4.x
Adi Masputra [Fri, 28 Jan 2000 01:50:14 +0000 (01:50 +0000)]
Fixed compilation problems on SunOS 4.x

20 years agoFixed many bugs related to synchronous links under Solaris platform. Mostly
Adi Masputra [Tue, 25 Jan 2000 03:25:36 +0000 (03:25 +0000)]
Fixed many bugs related to synchronous links under Solaris platform. Mostly
they are due to the assumption that ppp_ahdl module is plumbed, which in
fact is not true when 'sync' option is specified.

20 years agoAdded some sample scripts and options files for connecting PPP
Adi Masputra [Mon, 24 Jan 2000 23:05:14 +0000 (23:05 +0000)]
Added some sample scripts and options files for connecting PPP
over rsh and ssh, along with short descriptions in README

20 years agoAdded compile option that the user may enable to use the /var/run
Adi Masputra [Mon, 24 Jan 2000 20:42:18 +0000 (20:42 +0000)]
Added compile option that the user may enable to use the /var/run
facility provided by Solaris 8 and later

20 years agoRe-wrote async HDLC encoding/decoding algorithms, mostly due to some
Adi Masputra [Fri, 21 Jan 2000 01:04:56 +0000 (01:04 +0000)]
Re-wrote async HDLC encoding/decoding algorithms, mostly due to some
inconsistencies of behavior across different hardware platforms - previously
this code was generating an invalid HDLC frame (bad fcs) on Solaris x86
platform.

20 years agoThis is main.c from ppp-2.3.11.tar.gz distribution to fix compilation errors.
Adi Masputra [Tue, 18 Jan 2000 19:49:52 +0000 (19:49 +0000)]
This is main.c from ppp-2.3.11.tar.gz distribution to fix compilation errors.

20 years agoupdate for 2.3.11
Paul Mackerras [Thu, 23 Dec 1999 01:48:45 +0000 (01:48 +0000)]
update for 2.3.11

20 years agoupdate for 2.3.11
Paul Mackerras [Thu, 23 Dec 1999 01:41:08 +0000 (01:41 +0000)]
update for 2.3.11

20 years agoupdate from Sowmini
Paul Mackerras [Thu, 23 Dec 1999 01:40:51 +0000 (01:40 +0000)]
update from Sowmini

20 years agoupdate from debian maintainer
Paul Mackerras [Thu, 23 Dec 1999 01:39:54 +0000 (01:39 +0000)]
update from debian maintainer