summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Handle situations where we've already got a P2P interface addressbrian2001-05-021-1/+6
| | | | | | | | | | | | | | | of a/x -> b and then negotiate a/x -> c by simply expecting SIOCAIFADDR to do the change. This was broken by the last commit that optimised out the deletion and re-addition of the same a/x -> b combination, and forgot to compare the old/new destination addresses. Conveniently enough, this problem didn't effect setups where the default route goes via the ppp link, and most other setups don't care what the the destination address is actually set to. It broke test environments where ppp connects to the local machine rather badly though....
* Fix some quotes and mention that it's usually necessary to trainbrian2001-04-262-2/+44
| | | | your modem to the correct speed when setting up an incoming getty.
* Handle IP over IP (IPPROTO_IPV4) properly.brian2001-04-245-12/+32
| | | | | | | | | We now unwrap IP/IP and apply filter rules to both the outer layer (with ``set filter blah x.x.x.x y.y.y.y ipip'') and to the payload (reinterpreted by the filter rules). ``set log tcp/ip'' will now show both the outer wrapper and the (reinterpreted) payload contents.
* kldload ng_pppoe as necessarybrian2001-04-101-0/+5
|
* It's possible to kldload netgraph (as well as the other ng_* bits),brian2001-04-051-2/+2
| | | | so do it if required.
* When we change the interface MTU, run through the routing table and tweakbrian2001-04-057-143/+272
| | | | all route MTUs too.
* Be a bit more persistent when the NET_RT_IFLIST sysctl returns ENOMEMbrian2001-04-031-18/+27
| | | | rather than dropping out immediately.
* Don't say ``PPP enabled'' if we're given the -quiet switchbrian2001-04-031-2/+4
|
* Don't assume challenges and responses don't contain embedded '\0's.brian2001-04-014-15/+12
| | | | | | | | Mschapv2 response generation may produce embedded NULs... causing us to send a bogus response to the radius server and end up failing the client's valid response. Problem pointed out by: Eugene Vigovskiy <vigov@com2com.ru>
* -DRELEASE_CRUNCH moved into crunchgen(1) config files forru2001-03-311-6/+0
| | | | release building. Remove a hack that is no longer needed.
* Bring the PPPoE interface UP if requiredbrian2001-03-284-13/+28
| | | | Suggested by: archie
* Add some comments to two examples and extend a ``set ifaddr''.brian2001-03-282-6/+6
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* If we're adding an interface address that is already one of the interface'sbrian2001-03-251-33/+52
| | | | | | | | | aliases with the same netmask and destination, don't remove it and then re-add exactly the same thing. This means that static (non-sticky) routes that use the interface address (or destination address) as a destination will not suddenly evaporate when IPCP comes up (not unless the negotiated IPs have changed anyway).
* Quote PPP_CONFDIR in CFLAGSbrian2001-03-231-1/+1
|
* Change _PATH_PPP to PPP_CONFDIR and allow it to be overridden at compile timebrian2001-03-234-5/+11
|
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* Allow LQR periods of 1 second and FSM retry periods of 1 second. This allows usroger2001-03-191-2/+2
| | | | | | | | to run PPP over Radiocontact T-Link Radio Modems which run best when something is transmitted at least every 1.5 seconds. Tested by: Jennifer Clark <jen@telepresence.strath.ac.uk> Approved by: Brian
* Deal with ENOENT properly on non-devfs machinesbrian2001-03-121-4/+3
| | | | Broken in revision 1.109
* MAXHOSTNAME includes space for a NULbrian2001-03-094-10/+10
|
* Talk a little more about the differences between PPPoE on FreeBSD & OpenBSD.brian2001-03-092-4/+20
|
* MAXPATHLEN -> PATH_MAXbrian2001-03-089-16/+16
| | | | | | Don't assume MAXHOSTNAMELEN includes the NUL Correct a diagnostic Use "localhost" in our prompt instead of ""
* TUNSIFINFO now requires uid 0 to change the interface MTU.brian2001-03-081-2/+3
| | | | Reviewed by: Mark Knight <markk@knigma.org>
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.ru2001-02-282-2/+2
|
* Don't even look at af_family if accept() returns sa->sa_len == 0brian2001-02-131-0/+4
|
* A better fix for the PacketAliasProxyRule() call.brian2001-02-101-3/+3
| | | | Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* mdoc(7) police: replace two -unfilled displays with -tag lists.ru2001-02-072-8/+8
| | | | | | This works only because of bugs in current implementation: the first .It after ``.Bd -unfilled'' re-enables filling mode and does not restore (disable) it back afterwards.
* Add a ``Usable'' function to the ccp switch. The functionbrian2001-02-045-2/+35
| | | | | | | | | | | | | is called prior to sending a CCP configure request for a given protocol. The default is to send the request, but this is overridden for MPPE which checks to see if the lcp negotiations agreed CHAP81, and if not fails. Use the same function to decide if we should reject peer requests for MPPE. This should get rid of those boring messages about not being able to initialise MPPE when we don't negotiate CHAP81.
* MPPE_MasterKeyValid is only there if HAVE_DES is defined.brian2001-02-041-0/+2
|
* Don't send an authentication failure response if we fail sendingbrian2001-02-041-13/+26
| | | | a radius accounting packet.
* Make the MPPE MasterKey Invalid messages a bit clearer (it nowbrian2001-02-042-4/+6
| | | | | | complains that you can't do MPPE without CHAP81). Reset MasterKeyValid to zero when we hit phase DEAD.
* Untangle some cunfusion between the CLOSE_STAYDOWN, CLOSE_LCP andbrian2001-02-043-18/+21
| | | | | | | | CLOSE_NORMAL meanings. CLOSE_NORMAL doesn't change the currently required state, the others do. This should stop ppp from entering DATALINK_READY when LCP shutdown doesn't end up happening cleanly. Bump our version number to reflect this change.
* Try to kldload if_tun if we get ENOENT from opening /dev/tunN -brian2001-02-021-1/+1
| | | | | | | not just if we get ENXIO. This makes ppp work with DEVFS when if_tun isn't built into the kernel (without needing to manually kldload it).
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-012-82/+68
|
* Fix some log_Printf() castingbrian2001-01-292-8/+6
| | | | Obtained from: NetBSD (pkgsrc)
* Only remove socket files with ``set server open''.brian2001-01-295-21/+31
| | | | | | | Only show the mask in ``show bundle'' when it's been specified. Complain about unexpected arguments after ``set server {none,open,closed}'' Log re-open failures as warnings rather than phase messages. Fix some markup for the ``set server'' man page description.
* Don't pass PacketAliasProxyRule() a buffer with leading whitespace as itbrian2001-01-281-1/+1
| | | | can't handle it.
* Fix arg countbrian2001-01-262-2/+2
|
* If executing the stuff from ppp.linkdown results in a state change,brian2001-01-261-4/+6
| | | | | | | don't continue adjusting the ipcp state machine. This allows ``down'' to work in ppp.linkdown - useful for a tunnel setup.
* Allow ``set server closed'' to close the diagnostic socket.brian2001-01-269-85/+258
| | | | | | | | | Allow ``set server open'' to re-open the diagnostic socket. Handle SIGUSR1 by re-opening the diagnostic socket When receiving SIGUSR2 (and in ``set server none''), don't forget the socket details so that ``set server open'' and SIGUSR1 open it again. Don't create the diagnostic socket as uid 0 ! It's far to dangerous.
* Fix for NetBSD wherebrian2001-01-222-2/+4
| | | | | | | .Oc Oc .Xc doesn't seem to work....
* Handle SECDNS being rejected when PRIDNS is notbrian2001-01-221-2/+5
| | | | | Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org> PR: 24518
* Use fstat to check if descriptor 0 is a socket.brian2001-01-144-61/+102
| | | | Suggested by: julian
* Log the ``MPPE: MasterKey is invalid...'' message as a CCPbrian2000-12-291-1/+1
| | | | diagnostic rather than a warning.
* Prepare for mdoc(7)NG.ru2000-12-272-72/+72
|
* Add a missing dot.ru2000-12-152-2/+2
|
* Correct the documented default behaviour of mschap, mschap81 and MPPE.brian2000-12-152-6/+6
| | | | Pointed out by: Mark Knight <markk@knigma.org>
* mdoc(7) police: use canonical form of .Dd macro.ru2000-12-112-2/+2
|
* Mention the MTU in ``show iface''.brian2000-12-011-2/+2
|
* Call MSCHAP CHAP80 in ``show lcp'' so that it's consistent with CHAP81.brian2000-11-291-1/+1
|
OpenPOWER on IntegriCloud