If the peer asks for IP 0.0.0.0, choose an IP ourselves
without looking for it in our IP list (and if found, trying to ifconfig it!).
This commit is contained in:
parent
45d6875df6
commit
f5fb6bd02a
@ -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.41 1997/12/06 22:43:58 brian Exp $
|
||||
* $Id: ipcp.c,v 1.42 1997/12/13 02:37:24 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
* o More RFC1772 backwoard compatibility
|
||||
@ -382,7 +382,8 @@ IpcpDecodeConfig(u_char * cp, int plen, int mode_type)
|
||||
switch (mode_type) {
|
||||
case MODE_REQ:
|
||||
if (iplist_isvalid(&DefHisChoice)) {
|
||||
if (iplist_ip2pos(&DefHisChoice, ipaddr) < 0 ||
|
||||
if (ipaddr.s_addr == INADDR_ANY ||
|
||||
iplist_ip2pos(&DefHisChoice, ipaddr) < 0 ||
|
||||
OsTrySetIpaddress(DefMyAddress.ipaddr, ipaddr) != 0) {
|
||||
LogPrintf(LogIPCP, "%s: Address invalid or already in use\n",
|
||||
inet_ntoa(ipaddr));
|
||||
|
Loading…
Reference in New Issue
Block a user