diff options
author | brian <brian@FreeBSD.org> | 1997-05-10 15:37:40 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-05-10 15:37:40 +0000 |
commit | 1a9ed5bd577915dcf35f9a3e3828524cacb87610 (patch) | |
tree | bfda3c27a94282335b451cabbd14c7d504d9bf14 /usr.sbin/ppp/ipcp.c | |
parent | 6f36e2eccf49524bd4de897bfe7947bf6020aec1 (diff) | |
download | FreeBSD-src-1a9ed5bd577915dcf35f9a3e3828524cacb87610.zip FreeBSD-src-1a9ed5bd577915dcf35f9a3e3828524cacb87610.tar.gz |
Refuse to negotiate HISADDR of 0.0.0.0 (NAK it)
Submitted by: NAKAMURA Motonori <motonori@econ.kyoto-u.ac.jp>
Diffstat (limited to 'usr.sbin/ppp/ipcp.c')
-rw-r--r-- | usr.sbin/ppp/ipcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index fc00b62..1613fd9 100644 --- a/usr.sbin/ppp/ipcp.c +++ b/usr.sbin/ppp/ipcp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ipcp.c,v 1.13 1997/02/22 16:10:20 peter Exp $ + * $Id: ipcp.c,v 1.14 1997/05/10 01:22:12 brian Exp $ * * TODO: * o More RFC1772 backwoard compatibility @@ -309,8 +309,8 @@ struct in_addr ipaddr; logprintf("%x, %x\n", htonl(prange->ipaddr.s_addr & prange->mask.s_addr), htonl(ipaddr.s_addr & prange->mask.s_addr)); #endif - return((prange->ipaddr.s_addr & prange->mask.s_addr) == - (ipaddr.s_addr & prange->mask.s_addr)); + return (prange->ipaddr.s_addr & prange->mask.s_addr) == + (ipaddr.s_addr & prange->mask.s_addr) && ipaddr.s_addr; } static void |