From owner-freebsd-isdn Fri Jun 19 01:27:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA20545 for freebsd-isdn-outgoing; Fri, 19 Jun 1998 01:27:56 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from peedub.muc.de (newpc.muc.ditec.de [194.120.126.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA20524 for ; Fri, 19 Jun 1998 01:27:49 -0700 (PDT) (envelope-from garyj@peedub.muc.de) Received: from peedub.muc.de (localhost [127.0.0.1]) by peedub.muc.de (8.8.8/8.6.9) with ESMTP id KAA04767; Fri, 19 Jun 1998 10:20:37 +0200 (CEST) Message-Id: <199806190820.KAA04767@peedub.muc.de> X-Mailer: exmh version 2.0.1 12/23/97 To: balu@dva.in-berlin.de (Boris Staeblow) cc: garyj@muc.de, freebsd-isdn@FreeBSD.ORG Subject: Re: ifconfig iprX down -> disconnect? Reply-To: Gary Jennejohn In-reply-to: Your message of "Fri, 19 Jun 1998 00:32:05 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 19 Jun 1998 10:20:36 +0200 From: Gary Jennejohn Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Boris Staeblow writes: >Gary Jennejohn writes: >> Boris Staeblow writes: >> > >> >is it planned to implement the function in i4b to disconnect a line >> >using ifconfig iprX down (like bisdn has done) ? >> > >> >> it already works that way. > >??? > >I've 0.62, FreeBSD-current, Teles S0/16 and it doesn't work. >When I type ifconfig ipr0 down the line stay online (-> nothing happens) >until I kill it via the isdnd-menu or the timeout occur. > >Do I need special settings in the isdnd.rc? > this has nothing to do with isdnd.rc, it's handled in the kernel. Sorry, I didn't test it with 0.62. I thought it used to work with older versions, but now that I look at the code I don't see how it ever could have. I must have confused ipr with isppp. I _know_ that isppp works. Try this (untested except for compiling) patch and report back to the list. This is basically the same code used by isppp. *** i4b_ipr.c.orig Fri Jun 19 10:01:42 1998 --- i4b_ipr.c Fri Jun 19 10:05:31 1998 *************** *** 464,469 **** --- 464,470 ---- struct ifaddr *ifa = (struct ifaddr *)data; int s; int error = 0; + call_desc_t *cd = sc->sc_cdp; s = SPLI4B(); *************** *** 484,490 **** (sc->sc_if.if_flags & IFF_RUNNING)) { /* DISCONNECT */ ! /* sc->sc_if.if_flags &= ~IFF_RUNNING; */ } microtime(&sc->sc_if.if_lastchange); break; --- 485,495 ---- (sc->sc_if.if_flags & IFF_RUNNING)) { /* DISCONNECT */ ! /* this is the way Helle does it in the timeout routine */ ! (*ctrl_desc[cd->controller].N_DISCONNECT_REQUEST)(cd->cdid, CAUSE_NORMAL); ! /* should be generalized, not just disconn due to timeouts */ ! i4b_l4_idle_timeout_ind(cd); ! sc->sc_if.if_flags &= ~IFF_RUNNING; } microtime(&sc->sc_if.if_lastchange); break; --- Gary Jennejohn Home - garyj@muc.de Work - garyj@fkr.dec.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message