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
This commit is contained in:
Tatsumi Hosokawa 2002-04-04 08:43:00 +00:00
parent fffd793af9
commit 33b47634a8
2 changed files with 5 additions and 1 deletions

View File

@ -170,7 +170,8 @@ auth_Select(struct bundle *bundle, const char *name)
}
#ifndef NORADIUS
if (bundle->radius.valid && bundle->radius.ip.s_addr != INADDR_NONE) {
if (bundle->radius.valid && bundle->radius.ip.s_addr != INADDR_NONE &&
bundle->radius.ip.s_addr != RADIUS_INADDR_POOL) {
/* We've got a radius IP - it overrides everything */
if (!ipcp_UseHisIPaddr(bundle, bundle->radius.ip))
return 0;

View File

@ -76,3 +76,6 @@ extern void radius_Account(struct radius *, struct radacct *,
#define RAD_START 1
#define RAD_STOP 2
#endif
/* Get address from NAS pool */
#define RADIUS_INADDR_POOL htonl(0xfffffffe) /* 255.255.255.254 */