Commit Graph

201 Commits

Author SHA1 Message Date
itojun ba2e61715a turn on IPv6 when ipv6 ifid is present (from 2.3.11)
don't check for Ipv6 ifid readiness on on-demand dialing, when IPv6CP
is disabled.  From: Fong Siu Lung Gordon <ein@hkstar.com>
2000-04-17 08:55:33 +00:00
itojun d31184e2a7 disable IPv6CP by default, to be friendly with old (IPv4-only) config file.
add "+ipv6" which enables IPv6CP.  it is necessary if you want IPv6CP.

option name in sync with ppp-2.3.11.
2000-04-17 06:13:18 +00:00
itojun 0a68a1147f enable IPv6 ppp. 2000-04-12 10:38:46 +00:00
deberg 3a9315446b clarify syslog facility, fixes bin/9693 2000-03-29 06:04:49 +00:00
tsubai 80c282dde0 We don't need #ifdef __powerpc__ part now. Remove it. 2000-03-03 15:05:47 +00:00
itojun 57f7502caf inet_pton() error must be checked with 1. see inet_pton(3).
will notify the original author.
2000-01-20 04:55:52 +00:00
christos 716b39b67a PR/9245: Feico Dillema: ip6 support in pppd doesn't compile/work 2000-01-19 20:23:46 +00:00
is 6f86d72282 Document the callback option, in a way similar to what John A. Maier
suggested in PR 8550.
1999-10-28 09:41:56 +00:00
erh c98f493f90 Fix arguments to printf string. Was causing a crash on out of range mtu settings. 1999-10-14 18:29:02 +00:00
itojun 2df1b7b510 make it compilable with -DINET6.
-DINET6 is not enabled, as i run no test yet.
1999-08-25 16:28:41 +00:00
christos 6103aa4e65 forgot two #endif's :-( 1999-08-25 03:15:00 +00:00
christos 62f0521dee new docs 1999-08-25 03:10:28 +00:00
christos 847e9d2e3b resolve conflicts 1999-08-25 03:00:12 +00:00
christos 46a65cb807 resolve conflicts. 1999-08-25 02:52:15 +00:00
christos b384567c88 merge changes. 1999-08-25 02:07:41 +00:00
christos 7cd19ad6f7 New pppd, post 2.3.9 directly from the repository. 1999-08-24 20:25:43 +00:00
mjl 2a12a3e76d Correct typo in option name. Fixes PR 7645 by Paul Shupak <paul@plectere.com> 1999-05-25 20:46:54 +00:00
thorpej 7e3a0bf0c5 Decouple inbound and outbound filters. Now instead of using "active-filter"
and "pass-filter" and "inbound" and "outbound" qualifiers in the filter
expression, use new "active-filter-in", "active-filter-out", "pass-filter-in",
and "pass-filter-out" without these qualifiers.

This is necessary due to the horrible, awful way "inbound" and "outbound"
were specified for the filter programs when a packet was passed through them.
Basically, the "address" byte in the serial PPP header was overwritten with
a value to indicate the direction.  However, the "address" byte doesn't even
exist on PPP headers for all other PPP encaps!  So, this old method worked
only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
1999-05-12 18:50:51 +00:00
jeremy 60d83bcb76 [PR/5685] Set ONLCR bit in oflags of tty mode to prevent hanging in
absence of carrier.  From Simon J. Gerraty <sjg@quick.com.au>.
1999-05-06 08:59:21 +00:00
ross 9f0dbe1852 Keep the example strings on one line. 1999-01-24 06:27:06 +00:00
msaitoh 89dc16d4dc fix a roff bug 1998-11-22 23:30:29 +00:00
christos dd9db0b0d4 Our MD4Update takes number of bytes not bits. This should fix NT authentication 1998-10-24 18:14:13 +00:00
christos b5b77bba54 Back out accidental removal of CDTRCTS and fix rcsid's 1998-09-04 19:13:04 +00:00
christos 44d3b0974b Apply diffs from patchlevel 5. 1998-09-02 20:55:55 +00:00
christos 73270b4cf4 Add the default route as static, so that routed does not delete it. 1998-08-27 06:55:16 +00:00
kleink ee14eecc51 Change the primary/secondary WINS Configuration Option Type IDs (128, 130) to
match those specified by RFC1877 (130, 132); from Terry Moore <tmm@mcci.com>
in PR bin/5701.
1998-08-06 20:13:14 +00:00
mycroft 1f86e5830d const poisoning. 1998-07-27 00:52:00 +00:00
mycroft 160249f79c const poisoning. 1998-07-26 15:48:43 +00:00
mrg 32f519716b - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
lukem e31c1515a6 divide (not multiply) ratio by 256 1998-06-18 08:03:08 +00:00
kleink cf82cd0b86 Need <stdlib.h> for setkey() prototype. 1998-06-01 14:00:11 +00:00
christos a6551c37bd Resolve conflicts 1998-05-02 14:55:19 +00:00
christos 1e38977381 Resolve conflicts 1998-05-02 14:31:10 +00:00
christos 30402427a8 Import the readme files, setup and FAQ 1998-05-02 14:21:43 +00:00
christos 57daeb39d8 Resolve conflicts. 1998-05-02 14:19:13 +00:00
christos ffb419d374 Enable CHAPMS and MSLANMAN. Make them compile. I don't have access to a test
setup to verify that it works.
1997-11-19 11:59:58 +00:00
lukem 0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
drochner 2b0cbc07da include <sys/cdefs> before __RCSID 1997-10-20 17:18:04 +00:00
scottr 94cf433266 Add support for DTR/CTS flow control, from Bill Studenmund. 1997-10-20 08:07:47 +00:00
mikel af641bd13a xref tcpdump(8), not nonexistent tcpdump(1) 1997-10-18 07:01:38 +00:00
lukem 149f1867d1 rcsid fascism 1997-10-18 04:36:50 +00:00
lukem 2b042c28d8 add Makefile.inc to use ../Makefile.inc, and cleanup subdir Makefiles 1997-10-17 12:07:28 +00:00
mellon 8e6f88f680 Fix command-line argument processing 1997-10-14 20:38:09 +00:00
christos 16848faf66 PR/4145: Dave Huang: pppd unable to change interface addr when demand dialing
w/unspecified local address
1997-09-30 16:45:16 +00:00
christos 6a39b449bc Add back the NetBSD specific lack of ppp in kernel message, and remove a
NetBSD1_2 ifdef
1997-09-29 19:05:53 +00:00
christos ac0debcff2 Set clocal while processing chat scripts [this was changed on 2.3.1 and
broke all existing chat scripts].
1997-09-29 16:57:51 +00:00
christos 2f3fcf9d35 Enable CBCP support by default. 1997-09-29 03:53:38 +00:00
christos 64b94f4c92 PR/2705: Jim Bernard: pppd exits with 0 error code when connection fails 1997-09-29 03:52:37 +00:00
christos 3e6d71d911 We don't have if_ether.h... 1997-09-26 20:28:47 +00:00
christos d9447f387e From Stephen Ma, discussed in tech-net and verified by paulus
mru computation was off-by-one
1997-09-26 20:24:12 +00:00
christos 16f22c5efc remove unused variable 1997-09-26 20:23:00 +00:00
christos a5eb79afe9 PR/4136: Geoff Wing: pppd writes wtmp, but not lastlog. 1997-09-26 20:22:26 +00:00
christos 6272590b95 Fix gcc warnings. 1997-09-26 20:14:42 +00:00
christos 651d523cbe Resolve conflicts 1997-09-26 19:52:08 +00:00
perry 6db6d0fc76 fix 3905 docubug from Saitoh Masanobu 1997-07-22 15:19:30 +00:00
christos 5d5c4ad42a PR/3819: enami tsugutomo: pppd; netmask option doesn't actually set netmask 1997-07-01 19:28:01 +00:00
christos fea2a44541 PR/3798: Dave Huang pap authentication leaks file descriptors. 1997-06-27 14:44:46 +00:00
christos 2916e1d817 Resolve conflicts 1997-05-17 22:14:13 +00:00
christos f7f066707a resolve conflicts 1997-05-17 21:33:06 +00:00
christos 63f466a41d Resolve conflicts 1997-05-17 21:23:04 +00:00
mikel 09e3ffba3e fix typos; from Dave Huang in PR bin/3611. 1997-05-13 04:55:33 +00:00
mikel 5ea01ec0b8 use ../../Makefile.inc instead of defining BINDIR locally.
eliminate redundant SRCS definition.
1997-05-11 05:27:09 +00:00
christos ffb5f0fbd1 Include ../../Makefile.inc 1997-05-11 01:06:01 +00:00
mycroft 6ae00799f3 Correct .PATH after this was moved down. 1997-05-09 09:36:28 +00:00
mycroft a7f6387809 Remove the extraneous SUBDIR line. 1997-05-09 04:43:01 +00:00
christos 71cc8337ed Move pppd in its own directory. 1997-05-08 18:07:28 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
mrg fbb54fd51b meantion ppp(4) rather than README.bsd (inspired from PR#3548 from Martin Husemann) 1997-04-28 04:22:24 +00:00
is 00cef679df New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:37:27 +00:00
christos 95e251ee4e Better fix for the va_list problem from paulus. 1997-03-14 01:53:29 +00:00
christos 28b883a7db put back filtering options, and rcsid police. 1997-03-13 19:08:15 +00:00
christos aae03a189a Fix for the void * arg hack; reported by cgd 1997-03-13 19:05:51 +00:00
cgd f919d5c499 fix an 'if' that could never be true to do what it really meant to do. 1997-03-13 18:23:19 +00:00
christos 86276488dc Resolve conflicts cleanup warnings. 1997-03-12 20:17:18 +00:00
christos e287272422 Import the latest pppd from Paul Mackerras. 1997-03-12 19:38:04 +00:00
is dd80c3d309 Back out the back-out. Don't ask. 1997-03-10 20:21:01 +00:00
is 9d29e526db backout previos change; was not intended for trunk. 1997-03-10 19:36:40 +00:00
mouse ee6a5b2cd6 alternate -> alternative, per PR 2643 1997-03-08 14:24:19 +00:00
matthias 470161650e compression ratio was computed wrong. 1997-01-30 09:14:50 +00:00
christos bdde499b0c PR/3042: filter parsing broke after libpcap upgrade causing infinite loops.
- removed all code stolen from libpcap and used the library functions directly,
  linking -lpcap.
- added a pdebug option to turn on pcap optimization debugging, if libpcap
  was compiled with debugging turned on.
1996-12-18 16:54:57 +00:00
mikel 1668cf2082 Enable 255.255.255.255 netmasks. Fixes bin/2954.
Also RCSID police.
1996-11-26 08:19:29 +00:00
mikel f27059eb04 Read TTY-specific options after generic and command-line options.
Fixes PRs bin/2554, bin/2728, and bin/2935.
Also RCSID police.
1996-11-26 07:53:02 +00:00
jtk 2822e47b0e fix PR #2623: read the idle time from the kernel to determine whether
to wake up.  This is needed because the active filter applied in user
space may fail to match VJ compressed packets.  (The kernel applies its
copy of the filter before it runs VJ compression.)
1996-10-16 00:15:51 +00:00
explorer 2ff0386692 allow comments in chat scripts. pr misc/2450 1996-08-10 23:57:22 +00:00
explorer 75f3d0f63c Reference the new ppp(4) page 1996-08-10 21:25:45 +00:00
explorer aa3ab1608c demand.c: fixed a very minor problem where the top of the file claimed
to be auth.c.  pr bin/2539
main.c:  don't try to delete pid file "", since that will end up being
	a directory.  pr bin/2388 and bin/2551
1996-08-10 20:39:35 +00:00
mrg 8b5da257b3 CHAP is Challenge.... not Cryptographic.... (pr#2446) 1996-05-22 01:41:51 +00:00
cgd 03ba0d2233 if a variable is a u_int32_t, it may never compare equally to -1L on
some machines (because on those (64-bit) machines, -1L is
0xffffffffffffffff, but a u_int32_t will never be sign extended).
Compare to 0xffffffff; that's what was really meant, anyway.
1996-04-09 05:29:25 +00:00
paulus e170d85c0d Minor bug-fixes to pppd; add -ccp option to disable CCP negotiation
if desired; delete interface addresses on exit.
1996-03-28 02:50:57 +00:00
paulus e8f5c6972e Fix problem of printing large numbers (as deltas) when the kernel
ppp stats get reset.
1996-03-28 02:42:29 +00:00
scottr 6bd0c1ff9b In link_down(), give a second arg to the close function. Fixes
a SEGV when pppd closes the link.
1996-03-23 05:43:11 +00:00
jtc cac62b2d65 Be pedantic, main() returns int in C. 1996-03-21 17:56:15 +00:00
jtc 8707bd0e20 Added -I. and -I${.CURDIR} to CFLAGS. 1996-03-19 03:03:04 +00:00
thorpej 280bbabcaa RCS id police. 1996-03-18 22:48:34 +00:00
mrg 25d96569e7 CLEANFILES=y.tab.h grammar.c scanner.c 1996-03-18 09:19:27 +00:00
paulus 0a659c65f3 Files added to pppd to support demand-dialling and packet filtering. 1996-03-15 03:09:08 +00:00
paulus 44c91c8e53 Several enhancements and bug-fixes to the PPP daemon, including new
support for demand dialling, packet filtering, idle timeout, multiple
packet compression schemes (including PPP Deflate), and a limit on
connect time.
1996-03-15 03:03:34 +00:00
paulus 0b316ef301 Cleaned up the output of pppstats a bit, and changed the compression
ratio report to a more intuitive measure (i.e. uncomp / comp).
Corrected the man page.
1996-03-15 02:47:18 +00:00
scottr 38cd25875c Sleep after pulling DTR low when disconnecting. The ensures that the
modem has enough time for a reset or hangup should the line be marked
local, or a non-standard getty pulls DTR high again immediately.
1996-02-02 20:24:54 +00:00
scottr 6a334da2bd Be explicit about the fact that ip-up and ip-down are executed with
a null environment.  Closes PR #1866.
1996-02-02 20:17:53 +00:00