diff options
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; +} |