summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/ipv6cp.c44
1 files changed, 20 insertions, 24 deletions
diff --git a/usr.sbin/ppp/ipv6cp.c b/usr.sbin/ppp/ipv6cp.c
index 6c52d52..bc76091 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);
OpenPOWER on IntegriCloud