brooks
64e6eeb6c4
Use the length of the interface name, not the length of its address when
...
printing the name.
Approved by: brian
2004-01-21 22:00:50 +00:00
trhodes
3d9095c462
Xref the proper manual pages.
...
PR: 60999
Submitted by: Marc Silver <marcs@draenor.org>
2004-01-12 16:10:38 +00:00
harti
91fb8e3f9c
Replace all uses of the old netgraph constants NG_*LEN by the new
...
constants NG_*SIZ that include the trailing NUL byte. This change
is mostly mechanical except for the replacement of a couple of snprintf()
and sprintf() calls with strlcpy.
2003-11-15 15:26:35 +00:00
brian
ba7b98841d
Ignore case when comparing CHAP/CHAP81 responses
...
PR: 31771
2003-11-10 21:56:02 +00:00
ru
edb6523b57
Basic PAM authentication support.
2003-10-29 20:32:19 +00:00
marcus
e19a1e64d2
Add Cisco Skinny Station protocol support to libalias, natd, and ppp.
...
Skinny is the protocol used by Cisco IP phones to talk to Cisco Call
Managers. With this code, one can use a Cisco IP phone behind a FreeBSD
NAT gateway.
Currently, having the Call Manager behind the NAT gateway is not supported.
More information on enabling Skinny support in libalias, natd, and ppp
can be found in those applications' manpages.
PR: 55843
Reviewed by: ru
Approved by: ru
MFC after: 30 days
2003-09-23 07:41:55 +00:00
markm
6df3498483
Hide more crypto from being crunched at release time.
2003-07-24 20:20:16 +00:00
markm
376c7c030b
Don't check for the existance of src/crypto/ for building items that
...
may contain crypto. The days of ITAR paranoia are over, and the simple
macro tests that remain are sufficient.
2003-07-24 18:30:25 +00:00
ume
7407066674
name union.
2003-06-28 15:37:04 +00:00
rwatson
bc7d9d78f7
Remove world read bit from the ppp binary; we don't do world-execute,
...
so it was inconsistent (although probably not harmful) to have
world-read.
Submitted by: Socketd <db@traceroute.dk>
2003-06-23 15:37:08 +00:00
ume
9a0ed1c6de
Though manpage says that 0.0.0.0 can be used as HISADDR for gw
...
in Framed-Route, it didn't work. Since ncprange_aton() treats
0.0.0.0 and :: as prefixlen=0, we need to care the case.
MFC after: 1 week
2003-06-21 10:14:52 +00:00
ume
65d4714c1b
Mention the use of Framed-IPv6-Prefix.
...
MFC after: 1 week
2003-06-20 18:14:57 +00:00
ume
181d2a900a
IPV6PREFIX is set when Framed-IPv6-Prefix is defined, You may
...
want to pass the value to upper layer protocol such as DHCPv6
for prefix delegation.
MFC after: 1 week
2003-06-20 16:15:59 +00:00
ume
792e4c0249
Mention the use of Framed-IPv6-Route.
...
MFC after: 1 week
2003-06-20 15:44:52 +00:00
ume
29e5dc90df
Do RADIUS accounting on IPV6CP.
...
MFC after: 1 week
2003-06-19 18:55:49 +00:00
ume
3a0fbd5a35
Oops, I put unused variable in my previous commit.
...
MFC after: 1 week
2003-06-19 18:28:37 +00:00
ume
b702eda642
Install routes specified by Framed-IPv6-Route. Since the format
...
of Framed-IPv6-Route is user defined, it follows Framed-IP-route.
MFC after: 1 week
2003-06-19 18:19:31 +00:00
ume
ad09c2b1f7
MYADDR6 in ppp.link{up,down} should match even when IPCP is enabled.
...
MFC after: 1 week
2003-06-16 15:19:25 +00:00
kris
3faa870a3b
Add missing header for system_Select() prototype
2003-06-12 07:48:45 +00:00
peter
9a47cfedaa
Add a pretty cheesy hack to avoid a gcc-3.2.2 ICE (internal compiler
...
error) on amd64 when doing pointer subtraction. This bug is already
fixed in gcc-3.3 (waiting for after the branch), and the hack will be
backed out at the first opportunity. This is in the ipv6 code path.
Approved by: re (scottl)
2003-05-25 07:39:06 +00:00
ru
facfefd315
Erase whitespace at EOL.
...
Approved by: re (blanket)
2003-05-22 11:56:41 +00:00
ru
74dbdc41d8
Previous revision broke release building, unbreak it.
...
Prodded by: scottl
2003-05-20 07:07:48 +00:00
des
e5d2d778eb
Retire the useless NOSECURE knob.
...
Approved by: re (scottl)
2003-05-19 15:52:01 +00:00
ume
bdc1f5ae63
When session is over, IPv6 default route to tun should be
...
removed, too.
MFC after: 1 week
2003-04-05 10:10:33 +00:00
ume
eb6d89b383
Set link-local address of tun interface with prefixlen = 64
...
instead of 128. It makes RA happy.
Reported by: rafa@dif.um.es ,
SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp>
Reviewed by: SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp>
MFC after: 1 week
2003-04-04 11:09:08 +00:00
ume
0d084321c4
If IPCP is disabled, susccess of IPV6CP negotiation is sufficient
...
to communicate by IPv6. So, the prompt should be `PPP' rather
than `PPp'.
2003-03-28 18:23:43 +00:00
ume
19228f1dbe
Don't install wrong IPv6 route by add command.
2003-03-26 06:30:11 +00:00
brian
ba277a3e14
Passing a u_char to ntohs() is guaranteed to give the wrong answer !
...
Submitted by: Francis Dupont <Francis.Dupont@enst-bretagne.fr>
2003-03-26 02:27:32 +00:00
brian
a3b7ff0585
Add a ``force-scripts'' option for using chat scripts with -direct and
...
-dedicated links.
Submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
2003-03-26 02:03:08 +00:00
ume
f455bf97a4
Once ppp session is over, the route to ff02::tun0/32 was
...
deleted, and never came back. Now, the route to
ff02::tun0/32 is installed at the end of IPV6CP negitiaton.
2003-03-25 17:01:39 +00:00
ume
9285b79003
We need filling scopeid to install routes for link-local
...
scope addresses.
2003-03-25 16:49:08 +00:00
ume
f92a704df5
Since ppp.link{up,down} is invoked at the end of IPCP negotiation, if
...
we need ppp.link{up,down}, we couldn't disable IPCP. Now, if IPCP is
disabled, ppp.link{up,down} is invoked at the end of IPV6CP
negotiation.
2003-03-25 15:59:27 +00:00
schweikh
d3367c5f5d
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
...
especially in troff files.
2003-01-01 18:49:04 +00:00
peter
97526c738c
utmp.ut_time and lastlog.ll_time are explicitly int32_t rather than
...
time_t. Deal with the possibility that time_t != int32_t. This boils
down to this sort of thing:
- time(&ut.ut_time);
+ ut.ut_time = time(NULL);
and similar for ctime(3) etc. I've kept it minimal for the stuff
that may need to be portable (or 3rd party code), but used Matt's time32
stuff for cases where that isn't as much of a concern.
Approved by: re (jhb)
2002-11-15 22:42:00 +00:00
brian
f3374bb45c
If the peer gives us 0.0.0.0 as his IP number, NAK it rather than accepting
...
it as being in range.
set ifaddr 1.2.3.4/0 5.6.7.8/0
no longer allows 0.0.0.0 as a valid IP.
Reported/tested by: Bohdan Horst <nexus@hoth.amu.edu.pl>
MFC after: 3 days
2002-09-23 22:40:43 +00:00
brian
5070b14ce0
Unbreak -DNOINET6
...
Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
MFC after: 1 day
2002-09-02 13:34:27 +00:00
sobomax
1b5413df63
Correctly handle ifr.ifr_flags/ifr.ifr_flagshigh like ifconfig(8) does.
...
MFC after: 1 day
2002-08-29 12:52:28 +00:00
brian
4a8007c87f
- made ppp compliant to RFC 2472 (based on a patch from another
...
contributor)
- support ipv6cpretry and ipv6cpretries, which are IPv6 versions
of ipcpretry and ipcpretries.
- improve handling of IPv6 link-local addresses
Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
2002-08-29 02:44:58 +00:00
brian
f2e99a8ed2
Include the correct file (stdarg.h) and use va_list rather than _BSD_VA_LIST_
...
Suggested by: mike
2002-08-27 20:11:58 +00:00
brian
b7dfdde9ad
Use _BSD_VA_LIST_ rather than __va_list if it's defined
2002-08-27 04:37:04 +00:00
brian
9dd51f0cd2
Correct the FAQ url
...
Submitted by: Olivier Tharan <olive@oban.frmug.org>
2002-08-26 20:48:07 +00:00
charnier
aa31b7d1e4
Replace various spelling with FALLTHROUGH which is lint()able
2002-08-25 13:30:43 +00:00
mike
9e6f796b0d
o Merge <machine/ansi.h> and <machine/types.h> into a new header
...
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
macros, which are only MD because of gratuitous differences between
architectures.
o Change all headers to make use of this. This mainly involves
changing:
#ifdef _BSD_FOO_T_
typedef _BSD_FOO_T_ foo_t;
#undef _BSD_FOO_T_
#endif
to:
#ifndef _FOO_T_DECLARED
typedef __foo_t foo_t;
#define _FOO_T_DECLARED
#endif
Concept by: bde
Reviewed by: jake, obrien
2002-08-21 16:20:02 +00:00
ru
ce971426f4
mdoc(7) police: Removed redundant .Ns calls.
2002-08-13 16:07:28 +00:00
blackend
38c0bac808
Correct URL to the FAQ
...
MFC after: 1 week
2002-07-31 10:05:00 +00:00
blackend
8ce62b66d8
Correct links to Handbook's pages, old URLs does not work anymore.
...
MFC after: 1 week
2002-07-30 21:04:26 +00:00
brian
ae9417246c
Do a case insensitive comparison when comparing the ms-chap response
...
string.
2002-07-30 08:09:26 +00:00
brian
0ffeeffe3e
Remove unused calls to inet_addr()
2002-07-18 18:50:05 +00:00
brian
d046f882cc
Back out the previous revision
...
Objected to by: Andre Oppermann <oppermann@pipeline.ch>
After Andre's objection, I've re-examined rfc 2759 and noted that it
says that the domain name shouldn't be used when generating the
NT-Response field. So it looks like the bug is in freeradius rather
than in ppp.
2002-07-04 23:33:35 +00:00
brian
9ba6d06dcf
If we've given a domain name prefix as the authentication name, strip
...
it off before passing it on to the RADIUS server for authentication.
2002-07-03 20:51:13 +00:00