From 4eb8b1640da7e94f86d06b6e1be9f88fb33663c9 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Tue, 29 Jul 1997 22:37:04 +0000 Subject: [PATCH] Set up the alias address before executing the contents of ppp.linkup. --- usr.sbin/ppp/ipcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index 2b45c37d0f7..ae5e405a223 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.21 1997/06/09 03:27:24 brian Exp $ + * $Id: ipcp.c,v 1.22 1997/06/25 19:30:00 brian Exp $ * * TODO: * o More RFC1772 backwoard compatibility @@ -280,11 +280,11 @@ struct fsm *fp; LogPrintf(LogERROR, "IpcpLayerUp: unable to set ip address\n"); return; } + if (mode & MODE_ALIAS) + VarSetPacketAliasAddress(IpcpInfo.want_ipaddr); OsLinkup(); IpcpStartReport(); StartIdleTimer(); - if (mode & MODE_ALIAS) - VarSetPacketAliasAddress(IpcpInfo.want_ipaddr); } void