From owner-freebsd-isdn Fri Jul 14 7:10:26 2000 Delivered-To: freebsd-isdn@freebsd.org Received: from widukind.bi.teuto.net (widukind.bi.teuto.net [212.8.197.28]) by hub.freebsd.org (Postfix) with ESMTP id 8E22737BDDE for ; Fri, 14 Jul 2000 07:10:20 -0700 (PDT) (envelope-from martin@rumolt.teuto.de) Received: from rumolt.teuto.de (IDENT:root@rumolt.teuto.de [212.8.203.81]) by widukind.bi.teuto.net (8.9.3/8.9.3) with ESMTP id QAA06902; Fri, 14 Jul 2000 16:10:19 +0200 Received: (from martin@localhost) by rumolt.teuto.de (8.10.2/8.10.2) id e6EE6XO00380; Fri, 14 Jul 2000 16:06:33 +0200 (MEST) From: Martin Husemann Message-Id: <200007141406.e6EE6XO00380@rumolt.teuto.de> Subject: Re: Calling a programm *before* the line is taken down. In-Reply-To: <20000714103812.A6553@malcolm.ailis.de> from "Doobee R . Tzeck" at "Jul 14, 2000 10:38:12 am" To: drt@ailis.de (Doobee R . Tzeck) Date: Fri, 14 Jul 2000 16:06:33 +0200 (MEST) Cc: freebsd-isdn@FreeBSD.ORG Organization: Crusaders Catering Services Inc. ;-) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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