diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-06-16 15:19:25 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-06-16 15:19:25 +0000 |
| commit | 1f8db65a89bc0f44f6583663bbfa32f87f3bf0cd (patch) | |
| tree | ec34f20e4df6e4f191f2044acdd1d2f8d55f5ee9 | |
| parent | c7012f4a11b48bf77823f24d247cac20df091f0c (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ppp/ipv6cp.c | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/usr.sbin/ppp/ipv6cp.c b/usr.sbin/ppp/ipv6cp.c index 6c52d524c4c0..bc76091bb9bd 100644 --- a/usr.sbin/ppp/ipv6cp.c +++ b/usr.sbin/ppp/ipv6cp.c @@ -474,19 +474,17 @@ ipv6cp_LayerUp(struct fsm *fp) /* XXX: Call radius_Account() */ - if (!Enabled(fp->bundle, OPT_IPCP)) { - /* - * XXX this stuff should really live in the FSM. Our config should - * associate executable sections in files with events. - */ - if (system_Select(fp->bundle, tbuff, LINKUPFILE, NULL, NULL) < 0) { - if (bundle_GetLabel(fp->bundle)) { - if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), - LINKUPFILE, NULL, NULL) < 0) - system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL); - } else + /* + * XXX this stuff should really live in the FSM. Our config should + * associate executable sections in files with events. + */ + if (system_Select(fp->bundle, tbuff, LINKUPFILE, NULL, NULL) < 0) { + if (bundle_GetLabel(fp->bundle) && !Enabled(fp->bundle, OPT_IPCP)) { + if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), + LINKUPFILE, NULL, NULL) < 0) system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL); - } + } else + system_Select(fp->bundle, "MYADDR6", LINKUPFILE, NULL, NULL); } fp->more.reqs = fp->more.naks = fp->more.rejs = ipv6cp->cfg.fsm.maxreq * 3; @@ -509,19 +507,17 @@ ipv6cp_LayerDown(struct fsm *fp) /* XXX: Call radius_Account() */ - if (!Enabled(fp->bundle, OPT_IPCP)) { - /* - * XXX this stuff should really live in the FSM. Our config should - * associate executable sections in files with events. - */ - if (system_Select(fp->bundle, addr, LINKDOWNFILE, NULL, NULL) < 0) { - if (bundle_GetLabel(fp->bundle)) { - if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), - LINKDOWNFILE, NULL, NULL) < 0) - system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL); - } else + /* + * XXX this stuff should really live in the FSM. Our config should + * associate executable sections in files with events. + */ + if (system_Select(fp->bundle, addr, LINKDOWNFILE, NULL, NULL) < 0) { + if (bundle_GetLabel(fp->bundle) && !Enabled(fp->bundle, OPT_IPCP)) { + if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), + LINKDOWNFILE, NULL, NULL) < 0) system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL); - } + } else + system_Select(fp->bundle, "MYADDR6", LINKDOWNFILE, NULL, NULL); } ipv6cp_Setup(ipv6cp); |
