Allow the use of HISADDR & MYADDR in ppp.conf.
This commit is contained in:
parent
88743248da
commit
ee12f7779b
@ -17,7 +17,7 @@
|
|||||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*
|
*
|
||||||
* $Id: command.c,v 1.72 1997/08/21 16:18:07 brian Exp $
|
* $Id: command.c,v 1.73 1997/08/21 16:21:28 brian Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -1184,11 +1184,15 @@ char **argv;
|
|||||||
DefHisAddress.width = 0;
|
DefHisAddress.width = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IpcpInfo.want_ipaddr.s_addr = DefMyAddress.ipaddr.s_addr;
|
||||||
|
IpcpInfo.his_ipaddr.s_addr = DefHisAddress.ipaddr.s_addr;
|
||||||
|
|
||||||
if ((mode & MODE_AUTO) ||
|
if ((mode & MODE_AUTO) ||
|
||||||
((mode & MODE_DEDICATED) && dstsystem)) {
|
((mode & MODE_DEDICATED) && dstsystem)) {
|
||||||
if (OsSetIpaddress(DefMyAddress.ipaddr, DefHisAddress.ipaddr, ifnetmask) < 0)
|
if (OsSetIpaddress(DefMyAddress.ipaddr, DefHisAddress.ipaddr, ifnetmask) < 0)
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user