summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce another global (MPPE_IsServer) so that we initiate thebrian2000-11-073-7/+14
| | | | | | | | | | | | | | | MPPE session keys correctly. I'm a bit dubious about this code. It seems that the session keys are initialised differently based on whether you're the client or the server. One side is the server if it issues the first challenge, but of course you can issue a challenge from both sides.... at the same time. Sounds like another wonderful M$ assumption... Ppp can now talk to itself correctly using encryption. Problem solved by: Ustimenko Semen <semen@iclub.nsu.ru> Hair torn out by: me
* Handle being given a connect()ed udp descriptor as stdin ratherbrian2000-11-071-10/+31
| | | | than assuming it's unconnected.
* Pass the correct output options to the ccp output initialisationbrian2000-11-072-4/+23
| | | | | | | routine rather than passing it the first requested output option. Ensure that options are freed correctly even if we don't reach TLU.
* Merge some OpenBSD/NetBSD fixes to the recent MPPE/CHAP0x81 update.brian2000-11-052-1/+30
|
* Don't ignore the return from tcsetattr() - moan about it instead.brian2000-10-311-7/+16
| | | | Suggested by: Andre Albsmeier <andre@akademie3000.de>
* Forgotten RELEASE_CRUNCH hack for mppe.c.hosokawa2000-10-311-2/+2
| | | | This fix is for "make release" and "make boot.flp".
* Use the new-style ngpppoe_init_data structure.brian2000-10-311-2/+1
| | | | Approved by: archie
* Mention that ``nat deny_incoming'' drops unrecognised IP packets.brian2000-10-312-0/+6
| | | | Requested by: kris
* Drop PKT_ALIAS_IGNORED packets if ``nat deny_incoming yes'' is in effect.brian2000-10-301-1/+5
| | | | Approved by: rwatson, ru
* Add ``all'' logging.brian2000-10-304-1/+29
| | | | Submitted by: eivind
* Bump our version to reflect the recent MPPE additions (and ccp structbrian2000-10-301-1/+1
| | | | size change).
* Move the MPPE keysize display in ``show ccp''.brian2000-10-301-2/+2
|
* Various whitespace changes.brian2000-10-3012-40/+77
| | | | Make some functions static.
* staticise mbuftype()brian2000-10-301-1/+1
|
* Add MPPE and MSChap v2 support (denied and disabled by default)brian2000-10-3015-26/+1003
| | | | Submitted by: Ustimenko Semen <semen@iclub.nsu.ru>
* Ignore ``#'' properly when told tobrian2000-10-281-1/+1
|
* Report the type of mbuf that couldn't be allocated beforebrian2000-10-271-13/+21
| | | | aborting ppp.
* Use rad_acct_open() instead of rad_auth_open().brian2000-10-151-1/+1
| | | | Suggested by: Victor Ivanov <v0rbiz@icon.bg>
* Don't define NOATM now that /usr/include/netnatm/ is created properly.brian2000-10-151-1/+0
|
* If write() gives -1/ENOBUFS, keep the packet and sleep for 1/10thbrian2000-10-091-2/+3
| | | | | of a second before attempting to write it again (unless there's something else to do instead).
* Create fd_sets big enough to handle getdtablesize() descriptors.brian2000-10-094-38/+68
|
* Fix some style nitsbrian2000-09-141-11/+13
|
* Support PPPoATM, disabled for now as /usr/include/netnatm doesn't existbrian2000-09-145-1/+282
| | | | Submitted by: Jakob Stoklund Olesen <stoklund@taxidriver.dk>
* Understand IPPROTO_ESP and IPPROTO_AH packetsbrian2000-09-142-0/+36
| | | | Submitted by: Angelos D. Keromytis <angelos@dsl.cis.upenn.edu>
* Spelling policebrian2000-09-061-2/+2
| | | | Submitted by: des
* libutil.h is no longer required for setproctitle()brian2000-09-021-5/+0
|
* Fix resolv.conf line hint: "name-server" -> "nameserver"rse2000-08-312-2/+2
|
* Use arc4random() instead of random()brian2000-08-312-1/+9
|
* Don't treat two or more whitespace followed by a comment asbrian2000-08-301-6/+11
| | | | | | | an empty argument PR: 20937 (maybe) PR: 20938
* Complain about invalid arguments passed to ``set ifaddr''brian2000-08-301-2/+14
|
* Correct LogMAXbrian2000-08-291-1/+1
| | | | | Broken by: me Submitted by: Mark Hannon <markhannon@one.net.au>
* Use srandom() under OpenBSDbrian2000-08-291-1/+1
| | | | Submitted by: Matt Behrens <matt@megaweapon.zigg.com>
* Add LogFILTER logging to log packets allowed by the dial filter andbrian2000-08-285-28/+83
| | | | | | | | dropped by any filter. Submitted by: Mark Hannon <markhannon@one.net.au> with some small tweaks by me.
* Support radius accounting, and add a packet count to throughputbrian2000-08-287-5/+206
| | | | | | | | | 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.
* Make -DNOSUID (or -DPPP_NOSUID) possible to build ppp without SUIDbrian2000-08-188-4/+70
| | | | capabilities.
* Warn that the ``alias'' command is depricated.brian2000-08-181-0/+10
| | | | We still process it for now though.
* If we're in MP mode with a single open link, MP link level compressionbrian2000-08-172-34/+83
| | | | | | | | 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
* ISDN B channels have a bandwidth of 64000, not 65536brian2000-08-161-1/+1
| | | | Pointed out by: Christian Weisgerber <naddy@mips.inka.de>
* setproctitle() doesn't need to be called with root privs, so movebrian2000-08-166-28/+20
| | | | it from id.c into defs.c
* Default the bandwidth of an ISDN B channel to 65536bpsbrian2000-08-161-3/+5
|
* Maintain input and output throughput averages and choose the highestbrian2000-08-159-44/+77
| | | | | | | | | | | | | | 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.
* Calculate the average link throughput using a counter based on thebrian2000-08-156-37/+57
| | | | | | | | 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!).
* Don't delete sticky routes when unconfiguring the interface.brian2000-08-142-14/+0
| | | | Deleting all routes that match the interface is sufficient.
* Index: ppp.8brian2000-08-132-2/+2
| | | | | | | | | | | | | | | | | | | =================================================================== 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)
* Mention that pppoe requires netgraph(4) and without it, an externalbrian2000-08-102-2/+26
| | | | pppoe program must be used (such as pppoe(8) on OpenBSD).
* Allow leading ``!'' characters in authkeys and chat scripts tobrian2000-08-095-9/+33
| | | | be doubled up to mean a single literaly ``!''.
* If the first character of the ``set title'' argument is `-',brian2000-08-091-1/+4
| | | | | put it into the format string, supporting ps's tweak to setproctitle().
* Don't mis-interpret sockaddr_in6 structures as sockaddr_in structuresbrian2000-07-201-1/+1
| | | | when purging routes.
* Describe the new VERSION and COMPILATIONDATE macros and mention that thebrian2000-07-192-8/+30
| | | | ``ident'' command will expand macros.
* Support link identification from rfc1570brian2000-07-1917-22/+176
| | | | Two new commands are available; ``ident'' and ``sendident''.
OpenPOWER on IntegriCloud