mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 22:54:52 +00:00
MYADDR6 in ppp.link{up,down} should match even when IPCP is enabled.
MFC after: 1 week
This commit is contained in:
parent
c7012f4a11
commit
1f8db65a89
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116443
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue