mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Refuse to negotiate HISADDR of 0.0.0.0 (NAK it)
Submitted by: NAKAMURA Motonori <motonori@econ.kyoto-u.ac.jp>
This commit is contained in:
parent
eca42d3ce0
commit
057df964f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25661
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user