Brian Somers
fca09861d8
Don't ignore the return from tcsetattr() - moan about it instead.
...
Suggested by: Andre Albsmeier <andre@akademie3000.de>
2000-10-31 23:27:35 +00:00
Tatsumi Hosokawa
85c2b43f35
Forgotten RELEASE_CRUNCH hack for mppe.c.
...
This fix is for "make release" and "make boot.flp".
2000-10-31 05:00:25 +00:00
Brian Somers
fbf0385368
Use the new-style ngpppoe_init_data structure.
...
Approved by: archie
2000-10-31 02:46:12 +00:00
Brian Somers
58b1e45d5d
Mention that ``nat deny_incoming'' drops unrecognised IP packets.
...
Requested by: kris
2000-10-31 02:25:54 +00:00
Brian Somers
cf881f54ca
Drop PKT_ALIAS_IGNORED packets if ``nat deny_incoming yes'' is in effect.
...
Approved by: rwatson, ru
2000-10-30 18:02:01 +00:00
Brian Somers
7f03ca53aa
Add ``all'' logging.
...
Submitted by: eivind
2000-10-30 00:15:35 +00:00
Brian Somers
2388e045c4
Bump our version to reflect the recent MPPE additions (and ccp struct
...
size change).
2000-10-30 00:15:34 +00:00
Brian Somers
ba6fcad9cf
Move the MPPE keysize display in ``show ccp''.
2000-10-30 00:15:33 +00:00
Brian Somers
9b9967924b
Various whitespace changes.
...
Make some functions static.
2000-10-30 00:15:29 +00:00
Brian Somers
46c20a0ec0
staticise mbuftype()
2000-10-30 00:15:27 +00:00
Brian Somers
a8d604ab74
Add MPPE and MSChap v2 support (denied and disabled by default)
...
Submitted by: Ustimenko Semen <semen@iclub.nsu.ru>
2000-10-30 00:15:04 +00:00
Brian Somers
2661ef38a2
Ignore ``#'' properly when told to
2000-10-28 23:56:03 +00:00
Brian Somers
7c0833500d
Report the type of mbuf that couldn't be allocated before
...
aborting ppp.
2000-10-27 05:34:40 +00:00
Brian Somers
ba093e813d
Use rad_acct_open() instead of rad_auth_open().
...
Suggested by: Victor Ivanov <v0rbiz@icon.bg>
2000-10-15 01:05:57 +00:00
Brian Somers
2000bfb4cd
Don't define NOATM now that /usr/include/netnatm/ is created properly.
2000-10-15 00:46:58 +00:00
Brian Somers
b2c374decb
If write() gives -1/ENOBUFS, keep the packet and sleep for 1/10th
...
of a second before attempting to write it again (unless there's
something else to do instead).
2000-10-09 22:49:44 +00:00
Brian Somers
8a52f3ecfe
Create fd_sets big enough to handle getdtablesize() descriptors.
2000-10-09 21:18:23 +00:00
Brian Somers
495d24ec4a
Fix some style nits
2000-09-14 22:03:13 +00:00
Brian Somers
481a4f6155
Support PPPoATM, disabled for now as /usr/include/netnatm doesn't exist
...
Submitted by: Jakob Stoklund Olesen <stoklund@taxidriver.dk>
2000-09-14 22:02:54 +00:00
Brian Somers
2231246bb3
Understand IPPROTO_ESP and IPPROTO_AH packets
...
Submitted by: Angelos D. Keromytis <angelos@dsl.cis.upenn.edu>
2000-09-14 18:01:54 +00:00
Brian Somers
1a0f89e02b
Spelling police
...
Submitted by: des
2000-09-06 21:02:06 +00:00
Brian Somers
57c94dd3bc
libutil.h is no longer required for setproctitle()
2000-09-02 02:16:51 +00:00
Ralf S. Engelschall
573365d5ad
Fix resolv.conf line hint: "name-server" -> "nameserver"
2000-08-31 11:13:20 +00:00
Brian Somers
8507c35e67
Use arc4random() instead of random()
2000-08-31 00:45:24 +00:00
Brian Somers
4c066cf9f1
Don't treat two or more whitespace followed by a comment as
...
an empty argument
PR: 20937 (maybe)
PR: 20938
2000-08-30 20:51:13 +00:00
Brian Somers
106ae3d065
Complain about invalid arguments passed to ``set ifaddr''
2000-08-30 20:49:50 +00:00
Brian Somers
43df7f1485
Correct LogMAX
...
Broken by: me
Submitted by: Mark Hannon <markhannon@one.net.au>
2000-08-29 17:00:52 +00:00
Brian Somers
75fbd185a0
Use srandom() under OpenBSD
...
Submitted by: Matt Behrens <matt@megaweapon.zigg.com>
2000-08-29 16:47:45 +00:00
Brian Somers
06a43ce058
Add LogFILTER logging to log packets allowed by the dial filter and
...
dropped by any filter.
Submitted by: Mark Hannon <markhannon@one.net.au>
with some small tweaks by me.
2000-08-28 23:24:52 +00:00
Brian Somers
794c9bbc80
Support radius accounting, and add a packet count to throughput
...
statistics as a side effect.
Submitted by: Marcin Cieslak <saper@system.pl>
with some tweaks to RAD_ACCT_SESSION_ID and
RAD_ACCT_MULTI_SESSION_ID generation by me.
2000-08-28 22:44:54 +00:00
Brian Somers
68602c3ee0
Make -DNOSUID (or -DPPP_NOSUID) possible to build ppp without SUID
...
capabilities.
2000-08-18 00:01:44 +00:00
Brian Somers
c1a6c9e21c
Warn that the ``alias'' command is depricated.
...
We still process it for now though.
2000-08-18 00:01:30 +00:00
Brian Somers
3fd1e17c02
If we're in MP mode with a single open link, MP link level compression
...
isn't open and the links MRU >= our MRRU, send outbound traffic as
PROTO_IP rather than PROTO_MP. This shaves some bytes off the front
of each packet 'till the second link is brought up.
Idea obtained from: Cisco
2000-08-17 14:14:54 +00:00
Brian Somers
242373a7ee
ISDN B channels have a bandwidth of 64000, not 65536
...
Pointed out by: Christian Weisgerber <naddy@mips.inka.de>
2000-08-16 13:54:04 +00:00
Brian Somers
ebe96675ee
setproctitle() doesn't need to be called with root privs, so move
...
it from id.c into defs.c
2000-08-16 09:07:23 +00:00
Brian Somers
2ceee5e9a7
Default the bandwidth of an ISDN B channel to 65536bps
2000-08-16 09:06:59 +00:00
Brian Somers
91cbd2eec0
Maintain input and output throughput averages and choose the highest
...
of the two when calculating the MP throughput average for the ``set
autoload'' implementation.
This makes more sense as all links I know of are full-duplex. This
also means that people may need to adjust their autoload settings
as 100% bandwidth is now the theoretical maximum rather than 200%
(but of course, halfing the current settings is probably not the
correct answer either!).
This involves a ppp version bump as we need to pass an extra
throughput array through the MP local domain socket.
2000-08-15 10:25:42 +00:00
Brian Somers
11572abf62
Calculate the average link throughput using a counter based on the
...
cumulative total of all active links rather than basing it on the
total of PROTO_MP traffic.
This fixes a problem whereby Cisco routers send PROTO_IP packets only
when there's only one link (hmm, what a good idea!).
2000-08-15 00:59:21 +00:00
Brian Somers
c837ca39c6
Don't delete sticky routes when unconfiguring the interface.
...
Deleting all routes that match the interface is sufficient.
2000-08-14 08:43:40 +00:00
Brian Somers
689f6effbb
Index: ppp.8
...
===================================================================
RCS file: /home/ncvs/src/usr.sbin/ppp/ppp.8,v
retrieving revision 1.233
diff -u -r1.233 ppp.8
--- ppp.8 2000/08/10 13:26:01 1.233
+++ ppp.8 2000/08/12 19:50:41
@@ -1,8 +1,8 @@
.\" $FreeBSD: src/usr.sbin/ppp/ppp.8,v 1.233 2000/08/10 13:26:01 brian Exp $
.Dd 20 September 1995
.nr XX \w'\fC00'
-.Os FreeBSD
.Dt PPP 8
+.Os
.Sh NAME
.Nm ppp
.Nd Point to Point Protocol (a.k.a. user-ppp)
2000-08-13 22:03:42 +00:00
Brian Somers
d0cd375a1d
Mention that pppoe requires netgraph(4) and without it, an external
...
pppoe program must be used (such as pppoe(8) on OpenBSD).
2000-08-10 13:26:01 +00:00
Brian Somers
a2240f353a
Allow leading ``!'' characters in authkeys and chat scripts to
...
be doubled up to mean a single literaly ``!''.
2000-08-09 19:29:50 +00:00
Brian Somers
4e9d6a7fc5
If the first character of the `set title'' argument is
-',
...
put it into the format string, supporting ps's tweak to
setproctitle().
2000-08-09 10:22:48 +00:00
Brian Somers
759c81cbad
Don't mis-interpret sockaddr_in6 structures as sockaddr_in structures
...
when purging routes.
2000-07-20 10:38:12 +00:00
Brian Somers
c8e376b582
Describe the new VERSION and COMPILATIONDATE macros and mention that the
...
``ident'' command will expand macros.
2000-07-19 10:14:00 +00:00
Brian Somers
1038894eb0
Support link identification from rfc1570
...
Two new commands are available; ``ident'' and ``sendident''.
2000-07-19 02:10:35 +00:00
Brian Somers
dd49e719c1
Permit multiple ``allow user'' lines in any given section
...
This avoids line length limits when large numbers of users are allowed
access to ppp.
2000-07-12 23:13:52 +00:00
Brian Somers
60498ea783
Correct ``set filter'' usage
...
Spotted by: sheldonh
2000-07-12 16:31:47 +00:00
Brian Somers
cb8bd8dd72
Fix a rather nasty latency problem that occurs with single tcp sessions
...
thorough an MP setup with only a single link.
2000-07-12 15:08:03 +00:00
Brian Somers
0a4b6c5c5c
Allow a ``timeout secs'' filter option to let specific packet types
...
effect the idle timer in different ways.
Submitted by: Stefan Esser <se@freebsd.org>
With adjustments by me to document the option in the man page and to
give the same semantics for outgoing traffic as incoming.
I made the style more consistent in ip.c - this should really have
been done as a separate commit.
2000-07-11 22:11:36 +00:00