From owner-freebsd-isdn Sun Jan 19 5:29:20 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AEDA37B406 for ; Sun, 19 Jan 2003 05:29:20 -0800 (PST) Received: from fragma.wildcardinternet.co.uk (fragma.wildcardinternet.co.uk [195.82.114.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62CFF43F1E for ; Sun, 19 Jan 2003 05:29:19 -0800 (PST) (envelope-from j.a.mcguire@i-benefit.co.uk) Received: from pam80-1-11-183.man.dial.ntli.net ([80.1.11.183] helo=i-benefit.co.uk) by fragma.wildcardinternet.co.uk with esmtp (Exim 3.35 #1) id 18aFVm-000I4j-00 for freebsd-isdn@freebsd.org; Sun, 19 Jan 2003 13:29:18 +0000 Message-ID: <3E2AA877.2020608@i-benefit.co.uk> Date: Sun, 19 Jan 2003 13:30:31 +0000 From: James McGuire User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-isdn@freebsd.org Subject: HFC device driver status Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Just wondering if someone could update me on the status of the HFC-S based ISDN driver? Is it likely to be included in the 5.0 release? I've scoured the web beforehand and the last update I could see was from mid 2002. Thanks in advance James To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Jan 19 8:51: 3 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F95337B401; Sun, 19 Jan 2003 08:51:00 -0800 (PST) Received: from ua.fm (smtpav.ua.fm [195.248.190.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id C43F043ED8; Sun, 19 Jan 2003 08:50:56 -0800 (PST) (envelope-from slavex@ua.fm) Received: from [195.248.191.44] (account ) by ua.fm (CommuniGate Pro WebUser 3.5.9) with HTTP id 21066749; Sun, 19 Jan 2003 19:50:54 +0200 From: Subject: Troubles with isdnd To: freebsd-hardware@FreeBSD.ORG Cc: freebsd-isdn@FreeBSD.ORG X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Sun, 19 Jan 2003 19:50:54 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="KOI8-R"; format="flowed" Content-Transfer-Encoding: 8bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I`ve just istalled 4.7 with Fritz 2 PCI internal ISDN Card. Problem is that I cant establish Internet connection with my provider under freebsd :( When I try to up isp0 interface I get this: Dec 23 15:29:42 server isdnd[310]: DMN i4b isdn daemon started (pid = 310) Dec 23 15:29:43 server /kernel: i4b-L1 ifpi2_ph_data_req: No Space in TX FIFO, state = F4 Awaiting Signal Dec 23 15:29:45 server /kernel: i4b-L1 timer3_expired: state = F4 Awaiting Signal Dec 23 15:29:45 server /kernel: ifpi2_recover 0 Dec 23 15:29:45 server /kernel: i4b-L2 i4b_T202_timeout: unit 0, N202 = 3 Dec 23 15:29:45 server /kernel: i4b-L1 ifpi2_ph_data_req: still in state F3! Dec 23 15:29:45 server /kernel: i4b-L1 ifpi2_ph_data_req: No Space in TX FIFO, state = F4 Awaiting Signal Dec 23 15:29:47 server /kernel: i4b-L3 T303_timeout: SETUP not answered, cr = 122 Dec 23 15:29:47 server /kernel: i4b-L3 next_l3state: FSM illegal state, state = ST_OW - Out Wait EST, event = EV_T303EXP - T303 timeout! Dec 23 15:29:47 server /kernel: i4b-L1 timer3_expired: state = F4 Awaiting Signal Dec 23 15:29:47 server /kernel: ifpi2_recover 0 or this: Dec 23 15:24:18 server /kernel: i4b-L2 F_ILL: FSM function F_ILL executing Dec 23 15:24:18 server /kernel: i4b-L2 i4b_next_l2state: FSM illegal state, state = ST_EST_AW_TEI, event = EV_DLESTRQ! Dec 23 15:24:18 server isdnd[55]: ERR decr_free_channels: controller [0] already 0 free chans! Dec 23 15:24:20 server /kernel: i4b-L1 timer3_expired: state = F4 Awaiting Signal Dec 23 15:24:20 server /kernel: ifpi2_recover 0 Dec 23 15:24:22 server /kernel: i4b-L3 T303_timeout: SETUP not answered, cr = 63 Dec 23 15:24:22 server /kernel: i4b-L3 next_l3state: FSM illegal state, state = ST_OW - Out Wait EST, event = EV_T303EXP - T303 timeout! after that isdnd do nothing on any other attempt to up isp0 and have to be restarted / re-read its config Seems like hardware problem? ( I tried to change not only slots, bios`s irq & pnp, but even changed motheboards ) I really cant establish connection on my isdn line for 5-15 redial under windows, but isdnd doesnt redial at all, it hangs up on first attempt, flooding the console with above messages and have to be restarted. How may it be solved if isdnd doesn`t act on any redial attempt after the errors? I have found similiar problem in isdn FAQ (#9), but answers doesnt really help: >Even when the testsoftware under DOS is working, don't be shure, that >your hw-setup is correct for xxx(x)BSD. Triplecheck all your IRQ and >enable and disable PNP to triple-verify. Even unconfigured devices can >block your card. ..... >And that took me more than 2 months to discover :-(((( May it be a problem with mycard driver in 4.7 or i4b ? Sory for long text, but I decided to write some lines from configs: isdnd.rc name = ALKAR usrdevicename = isp usrdeviceunit = 0 isdncontroller = 0 isdnchannel = -1 local-phone-dialout = 111 remote-phone-dialout = 7111111 remdial-handling = first dialin-reaction = ignore dialout-type = normal dialretries = 10 b1protocol = hdlc idletime-incoming = 1 idletime-outgoing = 5 ratetype = 0 unitlength = 90 unitlengthsrc = rate dialrandincr = off direction = out rc.conf ... ifconfig_isp0="inet 0.0.0.0 0.0.0.1 netmask 255.255.255.255 link1" # get from DHCP sppp_interfaces="isp0" # example: sppp over ISDN spppconfig_isp0="authproto=pap myauthname=optima myauthsecret='optima' hisauthproto=none" defaultrouter="0.0.0.1" # Get from DHCP isdn_enable="YES" # Enable the ISDN subsystem (or NO). isdn_fsdev="/dev/ttyv4" # Output device for fullscreen mode isdn_flags="NO" # Flags for isdnd isdn_trace="NO" # Enable the ISDN trace subsystem (or NO). isdn_traceflags="-f /var/tmp/isdntrace0" # Flags for isdntrace kernel is compiled to use "ifpi2" Thanks in advance ---- HOBOCTI ABTO http://auto.alkar.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Jan 19 9:30:24 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 257DB37B415; Sun, 19 Jan 2003 09:30:22 -0800 (PST) Received: from www.raditex.se (www.raditex.se [192.5.36.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57B4D441AC; Sun, 19 Jan 2003 09:27:31 -0800 (PST) (envelope-from gh@raditex.se) Received: from gandalf.sickla.raditex.se (gandalf.raditex.se [192.5.36.18]) by www.raditex.se (8.12.6/8.12.6) with ESMTP id h0JHQEeh022929; Sun, 19 Jan 2003 17:26:14 GMT (envelope-from gh@raditex.se) Date: Sun, 19 Jan 2003 19:39:59 +0000 (GMT) From: G Hasse To: Cc: , Subject: Re: Troubles with isdnd In-Reply-To: Message-ID: <20030119193925.S64257-100000@gandalf.raditex.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I had a lot of problem with small variables like ispppcontrol isp1 lcp-timeout=3D1000 Try different values with those. G=F6ran ---------------------------------------------------------------- G=F6ran Hasse email: gh@raditex.se Tel: 08-6949270 Raditex AB http://www.raditex.se Fax: 08-4420570 Sickla Alle 7, 1tr Mob: 070-5530148 131 34 NACKA, SWEDEN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Jan 19 12: 0:38 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C28137B42C for ; Sun, 19 Jan 2003 12:00:37 -0800 (PST) Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AB2543F7E for ; Sun, 19 Jan 2003 12:00:15 -0800 (PST) (envelope-from garyj@jennejohn.org) Received: from fwd11.sul.t-online.de by mailout04.sul.t-online.com with smtp id 18aLc6-00007L-03; Sun, 19 Jan 2003 21:00:14 +0100 Received: from peedub.jennejohn.org (520017439985-0001@[217.235.113.11]) by fmrl11.sul.t-online.com with esmtp id 18aLbv-1pZTN2C; Sun, 19 Jan 2003 21:00:03 +0100 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id h0JJxtsw004218; Sun, 19 Jan 2003 20:59:56 +0100 (CET) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200301191959.h0JJxtsw004218@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: James McGuire Cc: freebsd-isdn@freebsd.org Subject: Re: HFC device driver status Reply-To: Gary Jennejohn In-reply-to: Your message of "Sun, 19 Jan 2003 13:30:31 GMT." <3E2AA877.2020608@i-benefit.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 19 Jan 2003 20:59:55 +0100 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org James McGuire writes: > Just wondering if someone could update me on the status of the HFC-S > based ISDN driver? Is it likely to be included in the 5.0 release? I've > scoured the web beforehand and the last update I could see was from mid > 2002. > It's now much too late to add anything to 5.0. I can't say when or even if there will be a driver for the HFC-S, although the last I heard Hellmuth Michaelis is (slowly) working on one. --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Jan 21 11:33:21 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2B9A37B401 for ; Tue, 21 Jan 2003 11:33:18 -0800 (PST) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE5CC43F13 for ; Tue, 21 Jan 2003 11:33:12 -0800 (PST) (envelope-from garyj@jennejohn.org) Received: from fwd06.sul.t-online.de by mailout11.sul.t-online.com with smtp id 18b490-000888-0C; Tue, 21 Jan 2003 20:33:10 +0100 Received: from peedub.jennejohn.org (520017439985-0001@[217.235.125.159]) by fmrl06.sul.t-online.com with esmtp id 18b48w-1EuC3MC; Tue, 21 Jan 2003 20:33:06 +0100 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id h0LJWp94037673; Tue, 21 Jan 2003 20:33:03 +0100 (CET) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200301211933.h0LJWp94037673@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: Volker Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: i4b newbie questions: debugging and pppd Reply-To: Gary Jennejohn In-reply-to: Your message of "Fri, 17 Jan 2003 13:52:21 +0100." <5.1.0.14.2.20030112235119.04e3ade0@mail.vwsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 21 Jan 2003 20:32:51 +0100 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Volker writes: > 1) I've been able to setup a PPP dial-out using userland PPP but that's not > my preference. I would like to get it working using kernel PPP(d) or using > the isp? network interfaces (as I suspect a userland PPP to work slower > than the isp drivers). > Userland PPP easily keeps up with a DSL link, so I doubt that speed is an issue. Also, /usr/sbin/ppp is the _only_ way to do channel bundling. > Using kernel PPP as far as I understand I'm unable to set the number to > dial anywhere but in the isdnd.rc file (using userland PPP I'm using the > command 'set phone 12345' to set the number to be dialed) - using kernel > PPP I have to configure this number in isdnd.rc and can't change it on the > fly, am I wrong?? Has anybody have an example on how to use kernel PPP with > i4b or isn't kernel PPP with i4b possible at all?? > If by "kernel PPP" you mean pppd, then, yes, there is no way to use it with i4b. However, what you write is confusing, because isdnd.rc _is_ for, among other things, PPP using the isp-interfaces. Of course you can change a tel. number in insdnd.rc and force isdnd to re-read isdnd.rc (SIGHUP, but it also closes all active connections) Read the isdnd man page. It's also possible to specify a comma-separated list of telephone numbers in isdnd.rc. Read the isdnd.rc man page, especially remdial-handling. > 2) Is someone able to give me a good pointer on how to debug the > authentication using the isp? network interfaces? I know it's boring to > investigate someone else's debug logs so I would like to do it but my > knowledge is far away from being of any use for that. > [snip] > Maybe my problem is also somewhat related to the routing information I'm > trying to use. I'm using ifconfig ispX 0.0.0.0 0.0.0.1 netmask 0xffffffff > to get the dynamic IP address from my ISP (this one is working) and later > setting a default route to 0.0.0.1 - using an IP address of 10.1.1.1 for > example as the gateway address also didn't work, so I'm still trying with > 0.0.0.1. I just tried that because my ISP is using dynamic IP addresses and > also I don't know the gateway address before dialing up. > > Any hints on how to debug this problem?? > Use ``route add default -interface ispX''. At least, that's what I always used, when I was still using ISDN. Weird is that sppp should not demand an address from your ISP if his address is really set to 0.0.0.1, per the sppp man page. > 3) No autodial: when using 'ifconfig .... -link1' i4b is in auto-dial > (dial-on-demand) mode. What if I want to control this manually (no dial on > demand)? Will I be able to specify '-link0' and set the interface up and > down for dialing / disconnecting or what else has to be done to control > dialing?? > Don't know anymore, I've forgotten whether this is even possible. If you don't want to auto-dial then just ``ifconfig down'' the interface when it's not in use. > 4) Fax blues: I'm using a passive AVM Fritz!Card PCI. I was reading while > not having a CAPI driver / subsystem, I won't have fax support (I know G3 > is a lot a calculation and D/A operation while using digital devices). > There's a driver i4bcapi for the B1, does this mean that when using a B1 > one might have fax capabilities? If so, would the capi4hylafax (AVM) work > under i4b? Has anybody tested that? > > I really need fax support and don't want to throw in a modem just for the > faxing stuff, so I'm looking for alternatives. Does anybody here tried to > get capi4linux (AVM) to work under bsd? Would it be possible to have a > ported capi4linux and i4b on the same machine?? > > What are my options for faxing? > Install WinBlows. Not even Linux supports FAXing on passive cards AFAIK. The only way to use capi4linux (assuming that it's not one of those AVM packets with proprietary .o's and some simple glue code) would be to port it. You can't use Linux drivers with FreeBSD. The Linuxulator is not quite _that_ good. --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Jan 21 12:18:21 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 689C437B401 for ; Tue, 21 Jan 2003 12:18:19 -0800 (PST) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6329943ED8 for ; Tue, 21 Jan 2003 12:18:13 -0800 (PST) (envelope-from garyj@jennejohn.org) Received: from fwd10.sul.t-online.de by mailout01.sul.t-online.com with smtp id 18b4qT-0003MJ-06; Tue, 21 Jan 2003 21:18:05 +0100 Received: from peedub.jennejohn.org (520017439985-0001@[217.235.125.159]) by fmrl10.sul.t-online.com with esmtp id 18b4qN-1e9OQyC; Tue, 21 Jan 2003 21:17:59 +0100 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id h0LKHc94041492; Tue, 21 Jan 2003 21:17:42 +0100 (CET) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200301212017.h0LKHc94041492@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: G Hasse Cc: Ari Suutari , freebsd-isdn@FreeBSD.ORG Subject: Re: Problem with "no bufferspace" Reply-To: Gary Jennejohn In-reply-to: Your message of "Wed, 15 Jan 2003 20:50:17 GMT." <20030115204904.L55664-100000@gandalf.raditex.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 21 Jan 2003 21:17:38 +0100 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org G Hasse writes: > On Wed, 15 Jan 2003, Ari Suutari wrote: > > > > What if i define all interfaces to use a specific isdnchannel > > > then it might be signaled "busy"? Have anyone tried this? > > > > > > I have boxes with two isp interfaces which both > > have isdnchannel set to -1. isdnd seems to be smart enough > > to pick a free channel. Still, when dialling has failed > > the isp interface is left into 'establish' state and it > > never recovers without doing ifconfig down & up. > > Ok. Then there seems to be a real "bug" here. (If our configuratons > are correct). I have many "interfaces" but just two ISDN channels, > but this don't seems to be the problem then. > OK, assuming you guys are using 4.7 or -stable, I'd appreciate if you could apply this patch and tell the list what (if anything) comes out of the new debug printf's when you see the problem. Thanks! --- driver/i4b_isppp.c.orig Tue Jan 21 20:58:56 2003 +++ driver/i4b_isppp.c Tue Jan 21 21:01:34 2003 @@ -580,6 +580,7 @@ /* new stuff to check that the active channel is being closed */ if (cd != sc->sc_cdp) { + printf("isp%d, channel%d not active!", unit, cd->channelid); NDBGL4(L4_ISPDBG, "isp%d, channel%d not active!", unit, cd->channelid); splx(s); return; @@ -602,6 +603,8 @@ sc->sc_state = ST_IDLE; sp->pp_down(sp); /* tell PPP we have hung up */ } + else + printf("%s: sc->sc_state != ST_CONNECTED\n", __FUNCTION__); splx(s); } --- layer4/i4b_l4.c.orig Tue Jan 21 20:58:33 2003 +++ layer4/i4b_l4.c Tue Jan 21 21:11:22 2003 @@ -464,6 +464,8 @@ (*cd->dlt->line_disconnected)(cd->driver_unit, (void *)cd); i4b_unlink_bchandrvr(cd); } + else + printf("%s: cd->dlt is NULL\n", __FUNCTION__); if((cd->channelid >= 0) && (cd->channelid < ctrl_desc[cd->controller].nbch)) { --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Jan 21 23:33:31 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2718437B401 for ; Tue, 21 Jan 2003 23:33:27 -0800 (PST) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9C3D43F13 for ; Tue, 21 Jan 2003 23:33:25 -0800 (PST) (envelope-from ari.suutari@syncrontech.com) Received: from coffee.syncrontech.com (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.6/8.12.6) with ESMTP id h0M7XI62086794; Wed, 22 Jan 2003 09:33:18 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari To: Gary Jennejohn , G Hasse Subject: Re: Problem with "no bufferspace" Date: Wed, 22 Jan 2003 09:33:18 +0200 User-Agent: KMail/1.4.3 Cc: freebsd-isdn@FreeBSD.ORG References: <200301212017.h0LKHc94041492@peedub.jennejohn.org> In-Reply-To: <200301212017.h0LKHc94041492@peedub.jennejohn.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200301220933.18435.ari.suutari@syncrontech.com> X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I tried this on test environment, which tries to open connection to another box which has been changed so that in never answers the incoming call. Here is what happens (on freebsd 4.7-stable which tries to dial) # ifconfig isp1 isp1: flags=3Da011 mtu 1500 inet 192.168.99.1 --> 192.168.99.2 netmask 0xffffff00 # ping 192.168.99.2 PING 192.168.99.2 (192.168.99.2): 56 data bytes ^C On console I now see: Jan 22 09:17:18 test /kernel: i4b: unit 0, assigned TEI =3D 67 =3D 0x43 Jan 22 09:17:19 test /kernel: i4b_l4_disconnect_ind: cd->dlt is NULL On isdnd log: Jan 22 09:17:18 test isdnd[69]: DBG msg_dialout: dial req from isp, unit= 1 Jan 22 09:17:18 test isdnd[69]: DBG setup_dialout: entry StMobile ok! Jan 22 09:17:18 test isdnd[69]: DBG find_by_device_for_dialout: found ent= ry 1! Jan 22 09:17:18 test isdnd[69]: DBG FSM event [msg-dialout]: [idle =3D> d= ialing] Jan 22 09:17:18 test isdnd[69]: DBG F_DIAL: local dial out request Jan 22 09:17:18 test isdnd[69]: DBG select_first_dialno: only one no, no = =3D=20 xxxx Jan 22 09:17:18 test isdnd[69]: CHD 00001 StMobile rate 0 sec/unit (conf) Jan 22 09:17:18 test isdnd[69]: DBG sendm_connect_req: ctrl =3D 0, chan =3D= -1 Jan 22 09:17:18 test isdnd[69]: DBG decr_free_channels: ctrl 0, now 1 cha= n=20 free Jan 22 09:17:18 test isdnd[69]: CHD 00001 StMobile dialing out from yyyy = to=20 xxxx Jan 22 09:17:18 test isdnd[69]: DBG msg_l12stat_ind: unit 0, layer 1, sta= te 1 Jan 22 09:17:18 test isdnd[69]: DBG msg_teiasg_ind: unit 0, tei =3D 67 Jan 22 09:17:18 test isdnd[69]: DBG msg_l12stat_ind: unit 0, layer 2, sta= te 1 Jan 22 09:17:18 test isdnd[69]: DBG set_channel_busy: controller [0] chan= nel=20 B1 set to BUSY! Jan 22 09:17:18 test isdnd[69]: CHD 00001 StMobile outgoing call proceedi= ng=20 (ctl 0, ch 0) Jan 22 09:17:19 test isdnd[69]: CHD 00001 StMobile outgoing call disconne= cted=20 (remote) Jan 22 09:17:19 test isdnd[69]: CHD 00001 StMobile cause 38: Network out = of=20 order (Q.850) Jan 22 09:17:19 test isdnd[69]: DBG set_channel_idle: controller [0] chan= nel=20 B1 set to IDLE! Jan 22 09:17:19 test isdnd[69]: DBG incr_free_channels: ctrl 0, now 2 cha= n=20 free Jan 22 09:17:19 test isdnd[69]: DBG F_DFL: dial retry fail, dial retries=20 exhausted Jan 22 09:17:19 test isdnd[69]: DBG dialresponse: sent [temporary failure= ] Jan 22 09:17:19 test isdnd[69]: DBG FSM (SUSE) event [msg-disc-ind]: [dia= ling=20 =3D> idle] Jan 22 09:17:29 test isdnd[69]: DBG msg_l12stat_ind: unit 0, layer 2, sta= te 0 Jan 22 09:17:39 test isdnd[69]: DBG msg_l12stat_ind: unit 0, layer 1, sta= te 0 Now, when I look at the isp1 with spppcontrol: # spppcontrol isp1 isp1: phase=3Destablish it is still in 'establish' state. Now, if I try to ping the remote again, nothing happens, because the interface is in 'establish' state and it thinks that something is still going on. The packet is just queued... keep on pinging and: # ping 192.168.99.2 PING 192.168.99.2 (192.168.99.2): 56 data bytes ping: sendto: No buffer space available ping: sendto: No buffer space available So there is something wrong when isdnd sends dial response: Jan 22 09:17:19 test isdnd[69]: DBG dialresponse: sent [temporary failure= ] it must be so that this is not catched by isp device -- it should go back to 'idle', shoudn't it ? =09Ari S. On Tuesday 21 January 2003 22:17, Gary Jennejohn wrote: > G Hasse writes: > > On Wed, 15 Jan 2003, Ari Suutari wrote: > > > > What if i define all interfaces to use a specific isdnchannel > > > > then it might be signaled "busy"? Have anyone tried this? > > > > > > I have boxes with two isp interfaces which both > > > have isdnchannel set to -1. isdnd seems to be smart enough > > > to pick a free channel. Still, when dialling has failed > > > the isp interface is left into 'establish' state and it > > > never recovers without doing ifconfig down & up. > > > > Ok. Then there seems to be a real "bug" here. (If our configuratons > > are correct). I have many "interfaces" but just two ISDN channels, > > but this don't seems to be the problem then. > > OK, assuming you guys are using 4.7 or -stable, I'd appreciate if you > could apply this patch and tell the list what (if anything) comes out > of the new debug printf's when you see the problem. Thanks! > > --- driver/i4b_isppp.c.orig=09Tue Jan 21 20:58:56 2003 > +++ driver/i4b_isppp.c=09Tue Jan 21 21:01:34 2003 > @@ -580,6 +580,7 @@ > =09/* new stuff to check that the active channel is being closed */ > =09if (cd !=3D sc->sc_cdp) > =09{ > +=09=09printf("isp%d, channel%d not active!", unit, cd->channelid); > =09=09NDBGL4(L4_ISPDBG, "isp%d, channel%d not active!", unit, cd->chan= nelid); > =09=09splx(s); > =09=09return; > @@ -602,6 +603,8 @@ > =09=09sc->sc_state =3D ST_IDLE; > =09=09sp->pp_down(sp);=09/* tell PPP we have hung up */ > =09} > +=09else > +=09=09printf("%s: sc->sc_state !=3D ST_CONNECTED\n", __FUNCTION__); > > =09splx(s); > } > --- layer4/i4b_l4.c.orig=09Tue Jan 21 20:58:33 2003 > +++ layer4/i4b_l4.c=09Tue Jan 21 21:11:22 2003 > @@ -464,6 +464,8 @@ > =09=09(*cd->dlt->line_disconnected)(cd->driver_unit, (void *)cd); > =09=09i4b_unlink_bchandrvr(cd); > =09} > +=09else > +=09=09printf("%s: cd->dlt is NULL\n", __FUNCTION__); > > =09if((cd->channelid >=3D 0) && (cd->channelid < > ctrl_desc[cd->controller].nbch)) { > > --- > Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Jan 22 3:59:58 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C90AB37B401 for ; Wed, 22 Jan 2003 03:59:56 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBB6F43EB2 for ; Wed, 22 Jan 2003 03:59:50 -0800 (PST) (envelope-from garyj@jennejohn.org) Received: from fwd02.sul.t-online.de by mailout03.sul.t-online.com with smtp id 18bJXq-00065x-08; Wed, 22 Jan 2003 12:59:50 +0100 Received: from peedub.jennejohn.org (520017439985-0001@[217.80.233.40]) by fmrl02.sul.t-online.com with esmtp id 18bJXm-0BopKyC; Wed, 22 Jan 2003 12:59:46 +0100 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id h0MBxbWs002893; Wed, 22 Jan 2003 12:59:38 +0100 (CET) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200301221159.h0MBxbWs002893@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: Ari Suutari Cc: Gary Jennejohn , G Hasse , freebsd-isdn@FreeBSD.ORG Subject: Re: Problem with "no bufferspace" Reply-To: Gary Jennejohn In-reply-to: Your message of "Wed, 22 Jan 2003 09:33:18 +0200." <200301220933.18435.ari.suutari@syncrontech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 22 Jan 2003 12:59:37 +0100 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ari Suutari writes: > I tried this on test environment, which tries to open connection > to another box which has been changed so that in never answers > the incoming call. > Thanks! > Here is what happens (on freebsd 4.7-stable which tries to dial) > > # ifconfig isp1 > isp1: flags=a011 mtu 1500 > inet 192.168.99.1 --> 192.168.99.2 netmask 0xffffff00 > > # ping 192.168.99.2 > PING 192.168.99.2 (192.168.99.2): 56 data bytes > ^C > > On console I now see: > Jan 22 09:17:18 test /kernel: i4b: unit 0, assigned TEI 67 0x43 > Jan 22 09:17:19 test /kernel: i4b_l4_disconnect_ind: cd->dlt is NULL This is the culprit. The routine which detaches the isp is never called because the pointer is NULL. I wonder why? Might need to add more debugging to the kernel to find out. Either dlt is never getting set, or it's being set to NULL too early. > Now, if I try to ping the remote again, nothing happens, because > the interface is in 'establish' state and it thinks that something > is still going on. The packet is just queued... keep on pinging and: > > # ping 192.168.99.2 > PING 192.168.99.2 (192.168.99.2): 56 data bytes > ping: sendto: No buffer space available > ping: sendto: No buffer space available > > So there is something wrong when isdnd sends dial response: > Jan 22 09:17:19 test isdnd[69]: DBG dialresponse: sent [temporary failure] > > it must be so that this is not catched by isp device -- it should > go back to 'idle', shoudn't it ? > It should, but since dlt is NULL it can't happen. Examine the code, it's pretty obvious. --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Jan 22 4:21:44 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AD0D37B401 for ; Wed, 22 Jan 2003 04:21:43 -0800 (PST) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05A0E43F18 for ; Wed, 22 Jan 2003 04:21:42 -0800 (PST) (envelope-from ari.suutari@syncrontech.com) Received: from coffee.syncrontech.com (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.6/8.12.6) with ESMTP id h0MCLeEI001955; Wed, 22 Jan 2003 14:21:40 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari To: Gary Jennejohn Subject: Re: Problem with "no bufferspace" Date: Wed, 22 Jan 2003 14:21:40 +0200 User-Agent: KMail/1.4.3 Cc: G Hasse , freebsd-isdn@FreeBSD.ORG References: <200301221159.h0MBxbWs002893@peedub.jennejohn.org> In-Reply-To: <200301221159.h0MBxbWs002893@peedub.jennejohn.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200301221421.40027.ari.suutari@syncrontech.com> X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, > > It should, but since dlt is NULL it can't happen. Examine the code, it'= s > pretty obvious. =09Yes, you are right. Looks like dlt is set in i4b_link_bchandrvr, which= is =09called by i4b_l4_connect_active_ind. But could it be that =09this is not called at all because the connection never goes 'active' ? =09=09Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Jan 22 5:36:33 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6315D37B401 for ; Wed, 22 Jan 2003 05:36:31 -0800 (PST) Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id B65D543EB2 for ; Wed, 22 Jan 2003 05:36:25 -0800 (PST) (envelope-from garyj@jennejohn.org) Received: from fwd01.sul.t-online.de by mailout04.sul.t-online.com with smtp id 18bL3I-0007Ch-01; Wed, 22 Jan 2003 14:36:24 +0100 Received: from peedub.jennejohn.org (520017439985-0001@[217.80.233.40]) by fmrl01.sul.t-online.com with esmtp id 18bL31-052NYeC; Wed, 22 Jan 2003 14:36:07 +0100 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id h0MDZeWs003663; Wed, 22 Jan 2003 14:35:46 +0100 (CET) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200301221335.h0MDZeWs003663@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: Ari Suutari Cc: G Hasse , freebsd-isdn@FreeBSD.ORG Subject: Re: Problem with "no bufferspace" Reply-To: Gary Jennejohn In-reply-to: Your message of "Wed, 22 Jan 2003 14:21:40 +0200." <200301221421.40027.ari.suutari@syncrontech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 22 Jan 2003 14:35:40 +0100 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ari Suutari writes: > Hi, > > > > > It should, but since dlt is NULL it can't happen. Examine the code, it's > > pretty obvious. > > Yes, you are right. Looks like dlt is set in i4b_link_bchandrvr, which > is > called by i4b_l4_connect_active_ind. But could it be that > this is not called at all because the connection never goes 'active' ? > Hmm, that seems very likely. The question is, how to handle this? Well, here's an ugly hack which _may_ work. Note that you have to apply this against a "virgin" version of the file. --- layer4/i4b_l4.c.orig Tue Jan 21 20:58:33 2003 +++ layer4/i4b_l4.c Wed Jan 22 14:23:25 2003 @@ -464,6 +464,22 @@ (*cd->dlt->line_disconnected)(cd->driver_unit, (void *)cd); i4b_unlink_bchandrvr(cd); } + else + { + printf("%s: cd->dlt is NULL\n", __FUNCTION__); + /* hack to get dlt filled in in the case where the dialout */ + /* failed. We still need to inform the driver that it should */ + /* clean up things. NOTE: should set dlt to NULL also. */ + i4b_link_bchandrvr(cd); + if(cd->dlt != NULL) + { + (*cd->dlt->line_disconnected)(cd->driver_unit, + (void *)cd); + i4b_unlink_bchandrvr(cd); + } + else + printf("%s: cd->dlt is still NULL!\n", __FUNCTION__); + } if((cd->channelid >= 0) && (cd->channelid < ctrl_desc[cd->controller].nbch)) { --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Jan 23 23:49:49 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52B4637B401 for ; Thu, 23 Jan 2003 23:49:48 -0800 (PST) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF01343F43 for ; Thu, 23 Jan 2003 23:49:46 -0800 (PST) (envelope-from ari.suutari@syncrontech.com) Received: from coffee (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.6/8.12.6) with SMTP id h0O7niEI075449; Fri, 24 Jan 2003 09:49:44 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Message-ID: <00c301c2c37d$2b3495b0$2508473e@coffee> From: "Ari Suutari" To: "Gary Jennejohn" Cc: "G Hasse" , References: <200301221335.h0MDZeWs003663@peedub.jennejohn.org> Subject: Re: Problem with "no bufferspace" Date: Fri, 24 Jan 2003 09:49:47 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Didn't work. Same behaviour as before, except that I got following to console: i4b: unit 0, assigned TEI = 68 = 0x44 i4b_l4_disconnect_ind: cd->dlt is NULL isp1, channel0 not active! Actually it seems that i4bisppp_disconnect does nothing, even it is called. Ari S. ----- Original Message ----- From: "Gary Jennejohn" > Hmm, that seems very likely. The question is, how to handle this? > > Well, here's an ugly hack which _may_ work. Note that you have to apply > this against a "virgin" version of the file. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Jan 24 0:18:29 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F094837B401 for ; Fri, 24 Jan 2003 00:18:28 -0800 (PST) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97EE843EB2 for ; Fri, 24 Jan 2003 00:18:27 -0800 (PST) (envelope-from ari.suutari@syncrontech.com) Received: from coffee (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.6/8.12.6) with SMTP id h0O8ILEI077569; Fri, 24 Jan 2003 10:18:21 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Message-ID: <00c701c2c381$2a80b230$2508473e@coffee> From: "Ari Suutari" To: "Gary Jennejohn" Cc: "G Hasse" , References: <200301221335.h0MDZeWs003663@peedub.jennejohn.org> Subject: Re: Problem with "no bufferspace" Date: Fri, 24 Jan 2003 10:18:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi again, I wonder if the cleanup could be done in i4bispp_dialresponse ? I think that it is called when dialing fails (testing right now). Ari S. ----- Original Message ----- From: "Gary Jennejohn" To: "Ari Suutari" Cc: "G Hasse" ; Sent: Wednesday, January 22, 2003 3:35 PM Subject: Re: Problem with "no bufferspace" > > Well, here's an ugly hack which _may_ work. Note that you have to apply > this against a "virgin" version of the file. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Jan 24 0:47:16 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4984A37B486 for ; Fri, 24 Jan 2003 00:47:12 -0800 (PST) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42E4C43F1E for ; Fri, 24 Jan 2003 00:47:11 -0800 (PST) (envelope-from ari.suutari@syncrontech.com) Received: from coffee (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.6/8.12.6) with SMTP id h0O8l9EI079454; Fri, 24 Jan 2003 10:47:09 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Message-ID: <00dd01c2c385$308ba500$2508473e@coffee> From: "Ari Suutari" To: "Gary Jennejohn" Cc: "G Hasse" , References: <200301221335.h0MDZeWs003663@peedub.jennejohn.org> Subject: Re: Problem with "no bufferspace" - solution Date: Fri, 24 Jan 2003 10:47:12 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Here is a patch that works for me. The only problem is that I got following message to console: Jan 24 10:33:04 test /kernel: isp1: lcp illegal down in state starting when dialing fails. Maybe something else than sp->pp_down should be used to close down sppp layer. However, the sppp layer returns to idle state and new ping tries to dial again. Ari S. *** i4b_isppp.c.orig Wed Apr 24 21:45:24 2002 --- i4b_isppp.c Fri Jan 24 10:32:32 2003 *************** *** 614,619 **** --- 614,620 ---- i4bisppp_dialresponse(int unit, int status, cause_t cause) { struct i4bisppp_softc *sc = &i4bisppp_softc[unit]; + struct sppp *sp = &sc->sc_if_un.scu_sp; NDBGL4(L4_ISPDBG, "isp%d: status=%d, cause=%d", unit, status, cause); *************** *** 628,633 **** --- 629,639 ---- while((m = sppp_dequeue(&sc->sc_if)) != NULL) m_freem(m); } + + sc->sc_cdp = (call_desc_t *)0; + /* do thhis here because pp_down calls i4bisppp_tlf */ + sc->sc_state = ST_IDLE; + sp->pp_down(sp); /* tell PPP we have hung up */ } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Jan 24 3:38:30 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9327837B401 for ; Fri, 24 Jan 2003 03:38:28 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90B4243E4A for ; Fri, 24 Jan 2003 03:38:27 -0800 (PST) (envelope-from garyj@jennejohn.org) Received: from fwd10.sul.t-online.de by mailout03.sul.t-online.com with smtp id 18c2AD-0006rP-05; Fri, 24 Jan 2003 12:38:25 +0100 Received: from peedub.jennejohn.org (520017439985-0001@[217.235.117.132]) by fmrl10.sul.t-online.com with esmtp id 18c29u-0gpVIWC; Fri, 24 Jan 2003 12:38:06 +0100 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id h0OBbp6e003767; Fri, 24 Jan 2003 12:37:52 +0100 (CET) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200301241137.h0OBbp6e003767@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: "Ari Suutari" Cc: "G Hasse" , freebsd-isdn@FreeBSD.ORG Subject: Re: Problem with "no bufferspace" - solution Reply-To: Gary Jennejohn In-reply-to: Your message of "Fri, 24 Jan 2003 10:47:12 +0200." <00dd01c2c385$308ba500$2508473e@coffee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 24 Jan 2003 12:37:51 +0100 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Ari Suutari" writes: > Hi, > > Here is a patch that works for me. The only problem is that > I got following message to console: > > Jan 24 10:33:04 test /kernel: isp1: lcp illegal down in state starting > > when dialing fails. Maybe something else than > sp->pp_down should be used to close down sppp layer. > However, the sppp layer returns to idle state and > new ping tries to dial again. > The LCP is most probably still in STATE_INITIAL since no data were ever exchanged with the other end. I recommend something like this (this is not a diff! I just added code here): > Ari S. > > *** i4b_isppp.c.orig Wed Apr 24 21:45:24 2002 > --- i4b_isppp.c Fri Jan 24 10:32:32 2003 > *************** > *** 614,619 **** > --- 614,620 ---- > i4bisppp_dialresponse(int unit, int status, cause_t cause) > { > struct i4bisppp_softc *sc = &i4bisppp_softc[unit]; > + struct sppp *sp = &sc->sc_if_un.scu_sp; struct ifnet *ifp = &sp->pp_if; > > NDBGL4(L4_ISPDBG, "isp%d: status=%d, cause=%d", unit, status, > cause); > > *************** > *** 628,633 **** > --- 629,639 ---- > while((m = sppp_dequeue(&sc->sc_if)) != NULL) > m_freem(m); > } /* taken from spp_lcp_down */ if ((ifp->if_flags & (IFF_AUTO | IFF_PASSIVE)) == 0) if_down(ifp); else { sp->pp_flags &= ~PP_CALLIN; #if 0 /* we assume STATE_INITIAL here! */ /* these lines kept for information only */ if (sp->state[IDX_LCP] != STATE_INITIAL) lcp.Close(sp); #endif ifp->if_flags &= ~IFF_RUNNING; } > } > } > Get the idea? --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Jan 24 3:41:55 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5186A37B401 for ; Fri, 24 Jan 2003 03:41:54 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC68A43F1E for ; Fri, 24 Jan 2003 03:41:53 -0800 (PST) (envelope-from garyj@jennejohn.org) Received: from fwd10.sul.t-online.de by mailout03.sul.t-online.com with smtp id 18c2DY-0006rP-0I; Fri, 24 Jan 2003 12:41:52 +0100 Received: from peedub.jennejohn.org (520017439985-0001@[217.235.117.132]) by fmrl10.sul.t-online.com with esmtp id 18c2DV-1jh7ZIC; Fri, 24 Jan 2003 12:41:49 +0100 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id h0OBfi6e003789; Fri, 24 Jan 2003 12:41:45 +0100 (CET) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200301241141.h0OBfi6e003789@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: "Ari Suutari" Cc: "G Hasse" , freebsd-isdn@FreeBSD.ORG Subject: Re: Problem with "no bufferspace" - solution Reply-To: Gary Jennejohn In-reply-to: Your message of "Fri, 24 Jan 2003 12:37:51 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 24 Jan 2003 12:41:44 +0100 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Gary Jennejohn writes: > > while((m = sppp_dequeue(&sc->sc_if)) != NULL) > > m_freem(m); > > } > /* taken from spp_lcp_down */ > if ((ifp->if_flags & (IFF_AUTO | IFF_PASSIVE)) == 0) > if_down(ifp); > else { > sp->pp_flags &= ~PP_CALLIN; > #if 0 > /* we assume STATE_INITIAL here! */ > /* these lines kept for information only */ > if (sp->state[IDX_LCP] != STATE_INITIAL) > lcp.Close(sp); > #endif > ifp->if_flags &= ~IFF_RUNNING; > } + sc->sc_state = ST_IDLE; > > } > > } > > > replying to my own mail. Also keep the ST_IDLE! --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Jan 24 5:28: 3 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9067437B401 for ; Fri, 24 Jan 2003 05:28:02 -0800 (PST) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id C368043F13 for ; Fri, 24 Jan 2003 05:28:00 -0800 (PST) (envelope-from ari.suutari@syncrontech.com) Received: from raisa (raisa.lemi.suutari.iki.fi [192.168.53.2]) by guinness.syncrontech.com (8.12.6/8.12.6) with SMTP id h0ODRrEI099998; Fri, 24 Jan 2003 15:27:54 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Message-ID: <000b01c2c3ad$8d0615e0$0235a8c0@raisa> From: "Ari Suutari" To: "Gary Jennejohn" Cc: "G Hasse" , References: <200301241141.h0OBfi6e003789@peedub.jennejohn.org> Subject: Re: Problem with "no bufferspace" - solution Date: Fri, 24 Jan 2003 15:36:01 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, > Gary Jennejohn writes: > > #if 0 > > /* we assume STATE_INITIAL here! */ > > /* these lines kept for information only */ > > if (sp->state[IDX_LCP] != STATE_INITIAL) > > lcp.Close(sp); > > #endif Layer is not in initial state, it is in starting state. So this code should be executed here. The only problem is that it references many internal defines of if_spppsubr.c. Wouldn't it be easier to make lcp_down if if_spppsubr.c smarter so it wouldn't complain like it now does ? Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Jan 24 6:19: 5 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0DBD37B401 for ; Fri, 24 Jan 2003 06:19:02 -0800 (PST) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BB2C43F18 for ; Fri, 24 Jan 2003 06:19:01 -0800 (PST) (envelope-from ari.suutari@syncrontech.com) Received: from raisa (raisa.lemi.suutari.iki.fi [192.168.53.2]) by guinness.syncrontech.com (8.12.6/8.12.6) with SMTP id h0OEIxEI003830; Fri, 24 Jan 2003 16:18:59 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Message-ID: <001001c2c3b4$b013ea60$0235a8c0@raisa> From: "Ari Suutari" To: "Gary Jennejohn" Cc: "G Hasse" , References: <200301241137.h0OBbp6e003767@peedub.jennejohn.org> Subject: Re: Problem with "no bufferspace" - solution Date: Fri, 24 Jan 2003 16:27:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, > > The LCP is most probably still in STATE_INITIAL since no data were ever > exchanged with the other end. > > I recommend something like this (this is not a diff! I just added code > here): > I did some reading on PPP RFC (1661). The correct way for physical layer to signal that it is no longer able to carry packet is to use Down event. So I think that my original code was correct. The problem is in sppp layer, which works otherwise ok but prints out extraneous message. The PPP RFC doesn't say that it is legal to receive Down event when LCP is in starting state but says elsewhere that Down is the event to use by physical layer... Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Jan 24 7:22:43 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3715C37B401; Fri, 24 Jan 2003 07:22:42 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 923CA43F5B; Fri, 24 Jan 2003 07:22:34 -0800 (PST) (envelope-from garyj@jennejohn.org) Received: from fwd02.sul.t-online.de by mailout03.sul.t-online.com with smtp id 18c5f7-00073Z-0A; Fri, 24 Jan 2003 16:22:33 +0100 Received: from peedub.jennejohn.org (520017439985-0001@[217.228.218.76]) by fmrl02.sul.t-online.com with esmtp id 18c5ev-1QSFPMC; Fri, 24 Jan 2003 16:22:21 +0100 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id h0OFLwj1014253; Fri, 24 Jan 2003 16:22:10 +0100 (CET) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200301241522.h0OFLwj1014253@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: "Ari Suutari" Cc: "G Hasse" , joerg@freebsd.org, freebsd-isdn@freebsd.org Subject: Re: Problem with "no bufferspace" - solution Reply-To: Gary Jennejohn In-reply-to: Your message of "Fri, 24 Jan 2003 15:36:01 +0200." <000b01c2c3ad$8d0615e0$0235a8c0@raisa> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Fri, 24 Jan 2003 16:21:58 +0100 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Ari Suutari" writes: > > Gary Jennejohn writes: > > > #if 0 > > > /* we assume STATE_INITIAL here! */ > > > /* these lines kept for information only */ > > > if (sp->state[IDX_LCP] != STATE_INITIAL) > > > lcp.Close(sp); > > > #endif > > Layer is not in initial state, it is in starting state. > So this code should be executed here. The only > problem is that it references many internal defines > of if_spppsubr.c. Wouldn't it be easier to make > lcp_down if if_spppsubr.c smarter so it wouldn't > complain like it now does ? > [Note: 2 mails handled in one] In that case my suggestion is incorrect. Your patch is the correct way to do it. "Ari Suutari" writes: > I did some reading on PPP RFC (1661). The correct way for > physical layer to signal that it is no longer able to carry packet > is to use Down event. So I think that my original code was correct. > The problem is in sppp layer, which works otherwise ok > but prints out extraneous message. > > The PPP RFC doesn't say that it is legal to receive > Down event when LCP is in starting state but says > elsewhere that Down is the event to use by physical layer... I suppose. if_spppsubr.c is Jörg Wunsch's baby. We should ask him his opinion. I'm pretty sure that he's subscribed to this list. But I'll Cc: him. Jörg, any problem aith adding something like this to sppp_down_event? (not a real diff) case STATE_CLOSING: + case STATE_STARTING: sppp_cp_change_state(cp, sp, STATE_INITIAL); break; --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message