summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid using too many args for ``set m[tr]u''brian2001-06-202-4/+16
| | | | This needs to work with OpenBSD's groff too :(
* Call va_start/va_end for each call to vfprintfbrian2001-06-181-2/+4
| | | | Obtained from: OpenBSD
* Add support for stateful MPPE (microsoft encryption) providingbrian2001-06-1811-188/+669
| | | | | | | | | | | | | | | encryption compatibility with Windows 2000. Stateful encryption uses less CPU but is bad on lossy transports. The ``set mppe'' command has been expanded. If it's used with any arguments, ppp will insist on encryption, closing LCP if the other end refuses. Unfortunately, Microsoft have abused the CCP reset request so that receiving a reset request does not result in a reset ack when using MPPE... Sponsored by: Monzoon Networks AG and FreeBSD Services Limited
* Handle hardware-imposed MTU/MRU limitations. PPPoE will no longerbrian2001-06-1821-80/+246
| | | | | | | | | | | | allow MRU/MTU negotiations to exceed 1492. Add an optional ``max'' specifier to ``set m[rt]u'', ie. set mtu max 1480 Bump the ppp version number. Sponsored by: Monzoon Networks AG and FreeBSD Services Limited
* Correct the arg count after parsing a line with an unescaped # that isn'tbrian2001-06-151-3/+2
| | | | | | preceeded with whitespace. MFC after: 3 weeks
* Convert IIJ copyrights to BSD copyrights.brian2001-06-1340-687/+972
| | | | Approved by: Toshiharu OHNO <tohno@sirius.ocn.ne.jp>
* Correct cross-references:sobomax2001-06-052-4/+4
| | | | | | | | | | | | ng_bpf.8 --> ng_bpf.4 ng_ether.8 --> ng_ether.4 ng_iface.8 --> ng_iface.4 ng_pppoe.8 --> ng_pppoe.4 ng_socket.8 --> ng_socket.4 ng_tty.8 --> ng_tty.4 ng_{type}.4 --> /dev/null MFC after: 1 week
* Renamed to README.natbrian2001-06-041-352/+0
|
* Add BSD style copyrights (with permission from Charles Mott where appropriate)brian2001-06-047-95/+254
| | | | Deprecate -alias further (after a repo-copy)
* Fix an alignment errorbrian2001-05-301-5/+10
| | | | | | PR: 27766 Submitted by: Sudish Joseph <sudish@mindspring.com> MFC after: 2 weeks
* Don't say ``Enter pause (-1) for redialing when we're using a random interval.brian2001-05-221-6/+3
| | | | | | Show the calculated random value instead. Suggested by: Bill Richter <richterb@binkley.foothill.net>
* If we don't receive a TY_IPADDR option as part of a configure request, NAKbrian2001-05-221-62/+80
| | | | as if we received one with 0.0.0.0 as the argument.
* Bring the interface IFF_UP from ipcp_InterfaceUp() (called from IPCP'sbrian2001-05-111-0/+7
| | | | | | | | TLU event handler). This used to be done as a side effect of SIOCAIFADDR'ing the interface, but now that duplicate SIOCAIFADDRs are optimised out, we can't depend on that behaviour.
* 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.
OpenPOWER on IntegriCloud