summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-092-14/+0
|
* Fix the type of the last arg to execl()brian2001-07-091-1/+1
| | | | Obtained from: OpenBSD
* Staticise the OpenBSD SHA1_End() functionbrian2001-07-091-1/+1
|
* Stay (backwards-)compatible with OpenBSD's groffbrian2001-07-092-2/+6
|
* Add a ``nat proto'' command -- similar to natd(8)'s -redirect_proto switch.brian2001-07-095-0/+117
| | | | MFC after: 3 weeks
* Don't try to dereference the -1th ccp algorithm array entry when webrian2001-07-071-1/+1
| | | | open CCP with no algorithm.
* When we miss one or more packets in stateful mode *and* need tobrian2001-07-071-7/+10
| | | | | | | | | | | perform a key change, *and* our sequence numbers have wrapped, ensure that the number of key changes is calculated correctly. The previous code counted down from a negative number to zero, re-encrypting the current key on each iteration - this took some time and strangely enough got the answer wrong !!! Fix a(nother) spelling mistake while I'm there.
* Spell stateful properlybrian2001-07-064-11/+11
| | | | | Inconsistently done by: brian Spotted by: ru
* mdoc(7) police: removed hard sentence breaks, sorted xrefs.ru2001-07-052-18/+34
|
* Make the last fix work properly on descriptors 1 and 2 (not just 0)brian2001-07-041-1/+1
|
* Handle any of descriptors 0, 1 or 2 being closed when we'rebrian2001-07-041-1/+18
| | | | | | | | | | envoked -- don't use them (as return values from open()), then (say) close(STDIN_FILENO) when daemonising. This is done by grabbing 3 descriptors to /dev/null at startup and releasing them after we've daemonised. MFC after: 1 week
* Reduce the interface MTU by 2 when MPPE has been successfully negotiated.brian2001-07-038-7/+67
| | | | | | This is necessary because MPPE will combine the protocol id with the payload received on the tun interface, encrypt it, then prepend its own protocol id, effectively increasing the payload by two bytes.
* Don't accept chap80lm by default - it doesn't work.brian2001-07-031-1/+1
| | | | MFC after: 1 week
* Silence some gcc warningsbrian2001-07-031-0/+4
|
* Do away with the ``err'' variable.brian2001-07-031-74/+117
| | | | Inspired by: kris
* Silence some of the -Wnon-const-format warnings and add __printflike()kris2001-07-022-6/+11
| | | | | | | to a function prototype which needs it. Approved by: brian MFC After: 2 weeks
* 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
|
OpenPOWER on IntegriCloud