Brian Somers
12b5aaba39
Cast pid_t to long for printf()ing
...
Obtained from: OpenBSD
2002-06-06 01:39:46 +00:00
Brian Somers
7b5e6f62fb
Add a missing ``a''.
2002-06-03 21:36:20 +00:00
Brian Somers
aadbb4eab1
Don't send a RAD_NAS_IP_ADDRESS attribute as RAD_NAS_IDENTIFIER is
...
sufficient.
In fact, using both breaks the radiator RADIUS daemon when used with
a db as it maps both attributes to the same field value and then
fails the insert.
I decided to remove RAD_NAS_IP_ADDRESS on the basis that rfc2138 says:
An Access-Request MUST contain a User-Name attribute. It SHOULD
contain either a NAS-IP-Address attribute or NAS-Identifier
attribute (or both, although that is not recommended). It MUST
despite the fact that this not recommended bit was removed from the
updated rfc.
2002-06-02 14:27:02 +00:00
Brian Somers
42df3c252e
Coerce pid_t to long rather than int for better portability.
...
Suggested by: Theo de Raadt <deraadt@openbsd.org>
2002-05-27 23:19:53 +00:00
Brian Somers
d4ff125fc1
Increase the maximum FSM option length to 50
2002-05-22 21:17:13 +00:00
Brian Somers
b08bf2de64
Add some missing #includes that weren't required due to namespace polution
...
in our headers.
Submitted by: bde
2002-05-22 21:08:58 +00:00
Brian Somers
3eaa768da0
Mention our support of the authentication side of rfc2548
2002-05-21 10:54:07 +00:00
Brian Somers
d5caaf02c1
Document RAD_MICROSOFT_MS_CHAP2_SUCCESS.
2002-05-18 23:58:15 +00:00
Brian Somers
5bc74cd68f
Put back <string.h>
2002-05-17 00:44:54 +00:00
Brian Somers
52c555907f
Add some OpenBSD includes
2002-05-16 14:47:19 +00:00
Brian Somers
6573c25286
Fix a mis-placed #else/#endif
2002-05-16 14:28:32 +00:00
Brian Somers
a16061b236
Handle MS-CHAPv2 authentication correctly via the RADIUS server (if it's
...
configured).
Handle internal failures in radius_Authenticate() correctly.
Bump the ppp version number.
This doesn't yet work with MPPE. More will follow.
Sponsored by: Mozoon
2002-05-16 13:34:20 +00:00
Brian Somers
6f4cd65600
Fix an include for NetBSD
2002-05-14 17:50:25 +00:00
Brian Somers
d76a00091c
Avoid a rather bizarre warning from gcc 3.1:
...
/usr/src/usr.sbin/ppp/cbcp.c:566:61: warning: trigraph ??! ignored
2002-05-14 13:32:30 +00:00
Brian Somers
de59e178aa
o Clean up some #includes
...
o Bump version number to 3.0.4
o When talking to a RADIUS server, provide a NAS-Port-Type.
When the NAS-Port-Type is Ethernet, provide a NAS-Port value equal
to the SESSIONID from the environment in direct mode or the
NGM_PPPOE_SESSIONID message in other modes. If no SESSIONID is found,
default to the interface index in client mode or zero in server mode.
When the NAS-Port-Type is ISDN, set the NAS-Port to the minor number
of the physical device (ie, the N in /dev/i4brbchN).
This makes it easier for the RADIUS server to identify the client
WRT accounting data etc.
Prompted by: lsz8425 <lsz8425@mail.cd.hn.cn>
2002-05-14 12:55:39 +00:00
Brian Somers
a43e859d63
Calculate the number of open links properly when deciding on whether to
...
just send PROTO_IP packets when we've got only one link up in multi-link
mode.
Problem noted by: Adrian Close <adrian@fernhilltec.com.au>
MFC after: 1 week
2002-05-14 00:59:28 +00:00
Brian Somers
e0ae8e1950
Fix a syntax error
2002-05-13 20:25:47 +00:00
Brian Somers
413205628d
We don't need to include arpa/inet.h here. In fact, only FreeBSD needs
...
netinet/in.h.
2002-05-11 17:04:01 +00:00
Brian Somers
b50574e8bc
#include netinet/in.h when !__FreeBSD__ to silence some warnings from
...
the inclusion of arpa/inet.h
2002-05-11 10:54:45 +00:00
Brian Somers
35bed99ba9
NetBSD keeps des.h in /usr/include/openssl these days
2002-05-11 03:47:15 +00:00
Brian Somers
ff8e577bc6
Add support for MS-CHAP authentication via a RADIUS server.
...
Add support for Reply-Message and MS-CHAP-Error.
Sponsored by: Monzoon
2002-05-10 03:11:35 +00:00
Brian Somers
299920e5ed
Don't corrupt MP fragments when they're put back on the front of our
...
inbound queue.
Submitted by: "Amit K. Rao" <arao@niksun.com>
PR: 37813
MFC after: 1 week
Also fix a typo while I'm here.
2002-05-07 12:48:45 +00:00
Brian Somers
bf1eaec5e8
Understand the Session-Timeout RADIUS attribute
...
Store the Filter-Id attribute (we don't do anything with it yet)
Submitted mostly by: andrew pavlov <and@kremenchug.net>
2002-05-07 10:06:54 +00:00
Brian Somers
c1d57c383a
Tweak a data type from char * to u_char *
2002-05-04 21:47:43 +00:00
Brian Somers
e1e3d2ca69
Make ``set mru'' require a context. In multi-link mode, there's no
...
point in being allowed to ``set mru'' for the MP lcp layer.
Spotted by: Richard Browne <richb@timestone.com.au>
MFC after: 1 month
2002-05-04 19:38:43 +00:00
Brian Somers
d9c83d7b81
Bump the version to mark the fixed FSM TLD ordering
2002-05-01 10:08:10 +00:00
Brian Somers
d14cc5f96a
If we receive a config request while Open, call TLD *before* decoding
...
the request as TLD may initialise fields that are set when decoding the
request.
MFC after: 1 week
2002-05-01 10:04:49 +00:00
Brian Somers
69f6ed253d
Allow the peer to modify the LQR interval
2002-05-01 07:49:07 +00:00
Dag-Erling Smørgrav
d397408818
Usage style sweep: spell "usage" with a small 'u'.
...
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
Brian Somers
768dc55092
Don't load the netgraph line discipline. When it's in use, TIOCMGET
...
fails and on loss of carrier, the device doesn't become selectable with
0 bytes to read.
Problem reported by: ache
2002-04-21 02:00:29 +00:00
Brian Somers
d5f694305a
Add variable substitutions for SOCKNAME, IPOCTETSIN, IPOCTETSOUT, IPPACKETSIN,
...
IPPACKETSOUT, IPV6OCTETSIN, IPV6OCTETSOUT, IPV6PACKETSIN, IPV6PACKETSOUT,
OCTETSIN, OCTETSOUT, PACKETSIN, PACKETSOUT and SOCKNAME.
2002-04-17 12:38:59 +00:00
Brian Somers
7e1c2e33be
Don't display an extraneous ``: '' with some packets in/packets out diagnostics
2002-04-16 23:57:21 +00:00
Brian Somers
ff360cc91b
Make the way FSM options are processed easier to read by using structures
...
instead of u_char *.
The changes are cosmetic except:
RecvConfigAck() now displays the options that are being ACK'd
Huge (bogus) options sent from the peer won't cause an infinite loop
SendIdent and ReceiveIdent are displayed consistenlty with other FSM data
LCP AUTHPROTO options that aren't understood are NAK'd, not REJ'd
2002-04-16 23:57:09 +00:00
Brian Somers
5476d2e5aa
When it's necessary to kldload tun(4), don't forget to re-try to open
...
tun0.
Submitted by: qhwt@myrealbox.com
2002-04-15 00:14:40 +00:00
Tatsumi Hosokawa
33b47634a8
Get tun P2P address from the local pool if RADIUS server returned
...
255.255.255.254 as client ipaddr.
Reviewed-By: freebsd-net mailing list
2002-04-04 08:43:00 +00:00
Brian Somers
c007b10217
Fix a typo
2002-03-31 01:57:06 +00:00
Brian Somers
97486b090f
Add a missing ``#ifndef NONETGRAPH''
2002-03-31 01:56:34 +00:00
Brian Somers
3089715715
Remove some extraneous whitespace
2002-03-31 01:51:15 +00:00
Brian Somers
25f2690c32
Include arpa/inet.h
2002-03-31 01:36:08 +00:00
Ruslan Ermilov
dabd255998
Fix CLEANFILES.
2002-03-30 17:57:51 +00:00
Brian Somers
356bf92dce
Add a sprinkling of mp_Down() calls to ensure that we don't think that
...
the multi-link NCP is up when it isn't.
2002-03-30 12:52:55 +00:00
Brian Somers
afb28bf732
Don't use the RTF_GATEWAY flag and pass the RTA_GATEWAY address when updating
...
routes.
2002-03-30 12:50:49 +00:00
Brian Somers
ad65ae3a27
Add a missing break
2002-03-30 12:47:29 +00:00
Brian Somers
fb11a9c23d
Merge the NETGRAPH branch into HEAD. tty devices now use netgraph's line
...
discipline to do the async escaping, but no other benefits are available yet.
Change ``ifdef HAVE_DES'' to ``ifndef NODES'' for consistency.
Make the Makefile a little more sane WRT RELEASE_CRUNCH.
2002-03-30 12:30:09 +00:00
Brian Somers
af154d5ce6
Fix a typo
...
Submitted by: dirk
2002-03-25 14:14:31 +00:00
Ruslan Ermilov
bd41558c17
mdoc(7) police: .Va -> .Ev.
2002-03-15 17:03:05 +00:00
Brian Somers
d919580716
Use the return value from snprintf() to keep a track of the length of
...
the display string in MPPEDispOpts.
PR: 35836
MFC After: 2 weeks
2002-03-13 10:21:19 +00:00
Brian Somers
dc65642605
Handle B460800 and B921600 being defined in <termios.h>
2002-03-12 16:05:26 +00:00
Brian Somers
b84271d866
Don't drop the last character from ut_line in ID0logout().
...
PR: 35531
MFC after: 2 weeks
2002-03-05 13:03:11 +00:00
Brian Somers
ea59de3733
Don't blow away ``set escape'' settings when we've completed the
...
login phase. Just initialise the correct parts.
Originially submitted by: Vladimir B. Machulsky <bofhmail@yahoo.com>
2002-03-04 10:08:57 +00:00