diff options
author | brian <brian@FreeBSD.org> | 1998-10-24 01:08:45 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-10-24 01:08:45 +0000 |
commit | cb6bccf1dc60c955024134903445d05945bc35ed (patch) | |
tree | 156da8f3c1b24a827c03c07dea9db235785f08ae /usr.sbin/ppp/bundle.c | |
parent | 2dd69edc856356b5cc916927ac51649c15ff753f (diff) | |
download | FreeBSD-src-cb6bccf1dc60c955024134903445d05945bc35ed.zip FreeBSD-src-cb6bccf1dc60c955024134903445d05945bc35ed.tar.gz |
Loosen our restrictions on setting enddisc, mrru,
shortseq, authname and authkey.
o Auth{name,key} may additionally be set in PHASE_ESTABLISH.
o The others may be set in PHASE_ESTABLISH as long as no links
have yet reached DATALINK_LCP.
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 28da452..8bc26e4 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bundle.c,v 1.35 1998/09/17 00:45:25 brian Exp $ + * $Id: bundle.c,v 1.36 1998/10/22 02:32:48 brian Exp $ */ #include <sys/param.h> @@ -1695,3 +1695,16 @@ bundle_setsid(struct bundle *bundle, int holdsession) break; } } + +int +bundle_HighestState(struct bundle *bundle) +{ + struct datalink *dl; + int result = DATALINK_CLOSED; + + for (dl = bundle->links; dl; dl = dl->next) + if (result < dl->state) + result = dl->state; + + return result; +} |