summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-06-16 15:19:25 +0000
committerume <ume@FreeBSD.org>2003-06-16 15:19:25 +0000
commitad09c2b1f782a02769ed2aedd560b85f2ba7302a (patch)
treeec34f20e4df6e4f191f2044acdd1d2f8d55f5ee9 /usr.sbin/ppp
parent9c1053eebfc83e6a0ff5520a3e9f307e2fe2495a (diff)
downloadFreeBSD-src-ad09c2b1f782a02769ed2aedd560b85f2ba7302a.zip
FreeBSD-src-ad09c2b1f782a02769ed2aedd560b85f2ba7302a.tar.gz
MYADDR6 in ppp.link{up,down} should match even when IPCP is enabled.
MFC after: 1 week
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