diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2010-10-23 15:16:04 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2010-10-23 15:16:04 +0400 |
commit | a970c053a5c74d39ec5f6c14fb36b4f092eaf1b5 (patch) | |
tree | 3663cafa808021001f7b59cda458b84f5abc2ef3 /accel-pptpd/ppp/ipcp_opt_ipaddr.c | |
parent | ce95b416f4b6c5012073bb14c0b48c6b3a81fc33 (diff) | |
download | accel-ppp-xebd-a970c053a5c74d39ec5f6c14fb36b4f092eaf1b5.tar.gz accel-ppp-xebd-a970c053a5c74d39ec5f6c14fb36b4f092eaf1b5.zip |
pppd_compat: ip-pre-up call moved to proper place
ppp: don't negotiate mru after ConfNak received
Diffstat (limited to 'accel-pptpd/ppp/ipcp_opt_ipaddr.c')
-rw-r--r-- | accel-pptpd/ppp/ipcp_opt_ipaddr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pptpd/ppp/ipcp_opt_ipaddr.c b/accel-pptpd/ppp/ipcp_opt_ipaddr.c index 3bec543..ffba072 100644 --- a/accel-pptpd/ppp/ipcp_opt_ipaddr.c +++ b/accel-pptpd/ppp/ipcp_opt_ipaddr.c @@ -12,6 +12,7 @@ #include "log.h" #include "ipdb.h" #include "iprange.h" +#include "events.h" #include "memdebug.h" @@ -121,6 +122,10 @@ ack: ipcp->ppp->ipaddr = ipaddr_opt->ip->addr; ipcp->ppp->peer_ipaddr = ipaddr_opt->ip->peer_addr; + triton_event_fire(EV_PPP_PRE_UP, ipcp->ppp); + if (ipcp->ppp->stop_time) + return IPCP_OPT_ACK; + memset(&ifr, 0, sizeof(ifr)); memset(&addr, 0, sizeof(addr)); |