Brian Somers
0fea4ed0d0
Don't say ``PPP enabled'' if we're given the -quiet switch
2001-04-03 08:20:20 +00:00
Brian Somers
50ca6ec387
Don't assume challenges and responses don't contain embedded '\0's.
...
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>
2001-04-01 22:39:17 +00:00
Ruslan Ermilov
eb09fd4a2f
-DRELEASE_CRUNCH moved into crunchgen(1) config files for
...
release building. Remove a hack that is no longer needed.
2001-03-31 17:07:55 +00:00
Brian Somers
dc744e1949
Bring the PPPoE interface UP if required
...
Suggested by: archie
2001-03-28 09:45:27 +00:00
Brian Somers
e0f2c6088b
Add some comments to two examples and extend a ``set ifaddr''.
2001-03-28 00:23:30 +00:00
Ruslan Ermilov
345e52e742
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Brian Somers
16004197c4
If we're adding an interface address that is already one of the interface's
...
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).
2001-03-25 01:34:27 +00:00
Brian Somers
1f39538d63
Quote PPP_CONFDIR in CFLAGS
2001-03-23 13:28:28 +00:00
Brian Somers
7a66a36d2a
Change _PATH_PPP to PPP_CONFDIR and allow it to be overridden at compile time
2001-03-23 11:43:22 +00:00
Ruslan Ermilov
c73e22c3d4
Set the default manual section for usr.sbin/ to 8.
2001-03-20 18:17:26 +00:00
Roger Hardiman
e3771825e4
Allow LQR periods of 1 second and FSM retry periods of 1 second. This allows us
...
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
2001-03-19 19:47:54 +00:00
Brian Somers
c4c6616ad6
Deal with ENOENT properly on non-devfs machines
...
Broken in revision 1.109
2001-03-12 12:53:53 +00:00
Brian Somers
26e6a622c0
MAXHOSTNAME includes space for a NUL
2001-03-09 20:31:02 +00:00
Brian Somers
c6fde08927
Talk a little more about the differences between PPPoE on FreeBSD & OpenBSD.
2001-03-09 00:12:09 +00:00
Brian Somers
5284761414
MAXPATHLEN -> PATH_MAX
...
Don't assume MAXHOSTNAMELEN includes the NUL
Correct a diagnostic
Use "localhost" in our prompt instead of ""
2001-03-08 23:51:50 +00:00
Brian Somers
2a2877b836
TUNSIFINFO now requires uid 0 to change the interface MTU.
...
Reviewed by: Mark Knight <markk@knigma.org>
2001-03-08 10:33:30 +00:00
Ruslan Ermilov
c2d03ea879
Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.
2001-02-28 17:38:53 +00:00
Brian Somers
6d110b1be0
Don't even look at af_family if accept() returns sa->sa_len == 0
2001-02-13 12:33:34 +00:00
Brian Somers
49ed07a3c0
A better fix for the PacketAliasProxyRule() call.
...
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
2001-02-10 17:26:14 +00:00
Ruslan Ermilov
036f8336fa
mdoc(7) police: replace two -unfilled displays with -tag lists.
...
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.
2001-02-07 16:02:21 +00:00
Brian Somers
7f89db65f5
Add a ``Usable'' function to the ccp switch. The function
...
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.
2001-02-04 22:53:11 +00:00
Brian Somers
64602637c7
MPPE_MasterKeyValid is only there if HAVE_DES is defined.
2001-02-04 01:20:33 +00:00
Brian Somers
c42627ffff
Don't send an authentication failure response if we fail sending
...
a radius accounting packet.
2001-02-04 01:08:26 +00:00
Brian Somers
019d32bf74
Make the MPPE MasterKey Invalid messages a bit clearer (it now
...
complains that you can't do MPPE without CHAP81).
Reset MasterKeyValid to zero when we hit phase DEAD.
2001-02-04 01:08:24 +00:00
Brian Somers
2fc2f70582
Untangle some cunfusion between the CLOSE_STAYDOWN, CLOSE_LCP and
...
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.
2001-02-04 01:08:22 +00:00
Brian Somers
728ef5b2b0
Try to kldload if_tun if we get ENOENT from opening /dev/tunN -
...
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).
2001-02-02 01:41:26 +00:00
Ruslan Ermilov
610a5778c5
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:44:04 +00:00
Brian Somers
2525421508
Fix some log_Printf() casting
...
Obtained from: NetBSD (pkgsrc)
2001-01-29 08:46:58 +00:00
Brian Somers
37b8a5c7bd
Only remove socket files with ``set server open''.
...
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.
2001-01-29 01:35:06 +00:00
Brian Somers
021996f177
Don't pass PacketAliasProxyRule() a buffer with leading whitespace as it
...
can't handle it.
2001-01-28 21:56:27 +00:00
Brian Somers
501fe45f67
Fix arg count
2001-01-26 01:48:16 +00:00
Brian Somers
15c8dc2a03
If executing the stuff from ppp.linkdown results in a state change,
...
don't continue adjusting the ipcp state machine.
This allows ``down'' to work in ppp.linkdown - useful for a tunnel
setup.
2001-01-26 01:43:38 +00:00
Brian Somers
74457d3d43
Allow ``set server closed'' to close the diagnostic socket.
...
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.
2001-01-26 01:41:34 +00:00
Brian Somers
d8a8ae09ed
Fix for NetBSD where
...
.Oc Oc
.Xc
doesn't seem to work....
2001-01-22 11:35:00 +00:00
Brian Somers
7d39b1e3be
Handle SECDNS being rejected when PRIDNS is not
...
Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org>
PR: 24518
2001-01-22 01:43:46 +00:00
Brian Somers
165fbe2672
Use fstat to check if descriptor 0 is a socket.
...
Suggested by: julian
2001-01-14 00:54:48 +00:00
Brian Somers
12df0d6c58
Log the ``MPPE: MasterKey is invalid...'' message as a CCP
...
diagnostic rather than a warning.
2000-12-29 22:25:56 +00:00
Ruslan Ermilov
8b5c4af3ff
Prepare for mdoc(7)NG.
2000-12-27 15:30:30 +00:00
Ruslan Ermilov
88895b252c
Add a missing dot.
2000-12-15 07:34:01 +00:00
Brian Somers
690a66afb0
Correct the documented default behaviour of mschap, mschap81 and MPPE.
...
Pointed out by: Mark Knight <markk@knigma.org>
2000-12-15 01:09:38 +00:00
Ruslan Ermilov
7a2650d625
mdoc(7) police: use canonical form of .Dd macro.
2000-12-11 15:57:16 +00:00
Brian Somers
723aebe85e
Mention the MTU in ``show iface''.
2000-12-01 03:22:18 +00:00
Brian Somers
c63c8e7638
Call MSCHAP CHAP80 in ``show lcp'' so that it's consistent with CHAP81.
2000-11-29 15:47:35 +00:00
Brian Somers
17aa4afba3
Use only the bit after the ``\'' when hashing the challenge in
...
MSChapv2
Submitted by: Ustimenko Semen <semen@iclub.nsu.ru>
2000-11-28 22:50:40 +00:00
Brian Somers
94d7be5294
Add ``enable/disable tcpmssfixup'', defaulting to enabled.
...
Suggested by: julian
Hijacked from: ru (ports/net/tcpmssd)
2000-11-28 13:18:35 +00:00
Ben Smithurst
aa11a6dde4
various typo and minor punctuation changes.
...
PR: 23111
Submitted by: Jimmy Olgeni <olgeni@uli.it>
2000-11-28 11:35:14 +00:00
Ruslan Ermilov
e97407b4f2
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 20:10:44 +00:00
Brian Somers
b43607b7f2
Some gratuitous whitespace changes.
2000-11-19 16:58:59 +00:00
Brian Somers
a080fda810
Describe how to tunnel properly.
...
Requested by: Greg Quinlan <greg@macquarrie.com.au>
2000-11-19 16:54:57 +00:00
Brian Somers
385167a6b0
Accept MSCHAPv2 by default.
...
Enable and accept MPPE by default.
2000-11-19 16:53:50 +00:00