Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2000 16:06:33 +0200 (MEST)
From:      Martin Husemann <martin@rumolt.teuto.de>
To:        drt@ailis.de (Doobee R . Tzeck)
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: Calling a programm *before* the line is taken down.
Message-ID:  <200007141406.e6EE6XO00380@rumolt.teuto.de>
In-Reply-To: <20000714103812.A6553@malcolm.ailis.de> from "Doobee R . Tzeck" at "Jul 14, 2000 10:38:12 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> It seems to me, I have to find all calls to N_DISCONNECT_REQUEST in i4bdrv.c
> and i4bl4.c and chage them to sending a special Message like
> WILL_DISCONECT_IND to userland, wait 5 seconds and then disconnect.

I'm not sure this will work at this level: think of sudden ISDN disconnects
(i.e. the famous cleaning woman pulling the line)

What you need is a notification from ispp before it changes IPCP state to down,
but that may be too late too.

If you are just concernd about isdnd's idle timeout: simple add another
timer triggering an adjustable time before the idle timeout occurs and set
a special flag noting that the connection is going to drop now (idle timeout
will not fire, because you are causing network traffic again).

Or add an external program that is queried on idle timeout, returning either
0 (we may shut down the connection) or some error code (no, let's stay online).


Martin


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007141406.e6EE6XO00380>