From owner-freebsd-isdn@FreeBSD.ORG Mon May 12 13:47:23 2003 Return-Path: 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 661B537B404 for ; Mon, 12 May 2003 13:47:23 -0700 (PDT) Received: from studi.informatik.uni-stuttgart.de (studi.informatik.uni-stuttgart.de [129.69.212.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A240143FBF for ; Mon, 12 May 2003 13:47:21 -0700 (PDT) (envelope-from porlrt@studi.informatik.uni-stuttgart.de) Received: from marvin ([129.69.212.19] helo=marvin.informatik.uni-stuttgart.de ident=porlrt) by studi.informatik.uni-stuttgart.de with esmtp (Exim 3.33 #1) id 19FK8z-0003i1-00; Mon, 12 May 2003 22:43:33 +0200 Date: Mon, 12 May 2003 22:47:02 +0200 (CEST) From: Robert Porl X-X-Sender: porlrt@marvin.informatik.uni-stuttgart.de To: freebsd-isdn@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: tech@openbsd.org Subject: OpenBSD 3.3-current and i4b experiment / (un)timeout problem X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2003 20:47:23 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi folks ! I am currently building a wireless isdn gateway machine whose sole purpose will be to connect an iBook to the internet. I chose to use OpenBSD as the operating system since i appreciate their viewpoint on security very much. So i started to familiarize myself with the system, until i discovered in a sudden shock that isdn4bsd does not support versions higher than OpenBSD 2.6. After doing some research on the subject, including browsing old mailing list archives, i found patched versions of isdn4bsd and the user-ppp daemon on this site: http://www.zilium.de/~joerg/obsd-isdn.html Those are for OpenBSD 2.8. They are also quite old (version 0.90 dated 1999), but that doesn't bother me much... as long as it works ;-) Anyway, i now tried applying those sources to an OpenBSD 3.3-current tree (recently synced) and manually fixing one rejected portion of sys/i386/i386/conf.c, which was pretty easy since it only consisted of some include lines and some cdev definitions. I also got one Makefile error for some firmware loading utility which i don't need (i want to use an old Teles S0-16 isa card), so i ignored it. After adding the needed options to my kernel config file, running config and "make depend", i tried to compile the kernel with "make". At first it failed with a warning message about implicit function declarations which was treaded as an error as of OpenBSD's conservative Makefile settings. After removing "-Werror" from the Makefile, said portions compiled fine. But at linktime, i got a couple of "undefined references" from the following object files: i4b_rbch.o i4b_iframe.o i4b_l2timer.o i4b_l3timer.o i4b_l4.o i4b_l4timer.o i4b_l1fsm.o All of those references were to "timeout" and "untimeout". So i fired up google again and searched for those keywords in conjunction with i4b, and found some information about the same problems in NetBSD during a transition from "timeout" to "callout". So i guess that OpenBSD has made the same change somewhere between 2.8 and 3.3-current, and the interface has to be slightly adjusted to make i4b work again (at least version 0.90). Now unfortunatelly i am not a kernel developer, so i could only try some very primitive methods to dig up some further information. I ran a recursive grep over the entire source tree to find any ocurrances of "timeout" and "untimeout". After sorting out some similarly-named functions, all that was left were references to c files in sys/i4b, which further enforced my theory that there has beed an API change which i4b just doesn't know about yet, and THAT seems to be the problem. The i4b c files containing references to untimeout or timeout are: i4b_iframe.c i4b_l1fsm.c i4b_l2timer.c i4b_l3timer.c i4b_l4.c i4b_l4timer.c i4b_isppp.c i4b_rbch.c if_spppsubr.c i4b_isppp and if_spppsubr did not appear among the above object files, but that's probably so because i don't have sppp stuff in my kernel config. I tried looking at NetBSD's and FreeBSD's i4b trees and their respective versions of the above files. Unfortunatelly the more recent isdn4bsd implementation seem to differ too much from the old 0.90 version for me to be able to understand what has to be done. It seems to me that, for example, untimeout needs to be replaced with a function named STOP_TIMER, but since i understand neither the semantics of untimeout() nor STOP_TIMER(), i'd rather not screw around with this unless forced to ;-) So what i'd like to ask the list(s) is if someone can point me to a solution ? Maybe some kind soul with more knowledge than me wants to take a look at the situation and reproduce the steps i've taken ? Or maybe someone has already done something like this before and has a solution posted on his/her private webpage which i am just too blind to see ? Or, as a last resort, could someone try to explain to me (or point me to some docs about) how to do the transition from timeout/untimeout to the *_TIMER functions ? I am just learning C, so please don't make too much assumptions about my coding abilities when trying to do so -g-. I am aware that i4b support in OpenBSD was dropped because of insufficient user demand, and i don't want to whine about the situation. With limited development resources, sometimes decisions have to be made to drop support for seldom-used features. But hey, asking doesn't hurt i say, so here i go. Thanks for your patience in reading this lengthy post, and of course i already thank anyone who will try to help me in advance. So long, - -Robert - -- "They that can give up essential liberty to obtain a little temporary safety won't have, nor do they deserve, either one." -Benjamin Franklin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj7ACFQACgkQbQeoBktF+rfmigCeLbtWNpSw7Waix+enOoEYnRzE dqMAmwYboFFzC6uuyr4Qiryy2O3IO7mu =iyrc -----END PGP SIGNATURE----- From owner-freebsd-isdn@FreeBSD.ORG Wed May 14 10:22:51 2003 Return-Path: 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 6E32237B401 for ; Wed, 14 May 2003 10:22:51 -0700 (PDT) Received: from www.raditex.se (www.raditex.se [192.5.36.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36C0D43FA3 for ; Wed, 14 May 2003 10:22:50 -0700 (PDT) (envelope-from gh@raditex.se) Received: from gandalf.raditex.se (gandalf.raditex.se. [192.5.36.18]) by www.raditex.se (8.12.9/8.12.9) with ESMTP id h4EJLlqR002034 for ; Wed, 14 May 2003 19:21:47 GMT Date: Wed, 14 May 2003 20:06:20 +0000 (GMT) From: G Hasse To: freebsd-isdn@freebsd.org In-Reply-To: <20030506204126.GA606@theater.foldr.org> Message-ID: <20030514200144.T1853-100000@gandalf.raditex.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: State of interface X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2003 17:22:51 -0000 Hello! I have a machine that have two ISDN cards and 10 ispXX interfaces. So there is many more isp interfaces than there is avilable ISDN-phone lines. In the control panel (on ttyv6) I can follow the call progress - and this works nice. BUT! sometimes I realy need to connect to the system remotly and fix someting. Is there any way to se the state on the interface by fore example ifconfig. I would like to have something like the UP flag on the interface to be acompnied by a "ACTIVE" flag to know it the interface has an active ISDN line for the moment? Any ideas? 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 From owner-freebsd-isdn@FreeBSD.ORG Wed May 14 13:01:49 2003 Return-Path: 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 89DDD37B401 for ; Wed, 14 May 2003 13:01:49 -0700 (PDT) Received: from peedub.jennejohn.org (p213.54.210.153.tisdip.tiscali.de [213.54.210.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94D8943F85 for ; Wed, 14 May 2003 13:01:47 -0700 (PDT) (envelope-from garyj@jennejohn.org) Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.9/8.11.6) with ESMTP id h4EK1iR0005579; Wed, 14 May 2003 22:01:44 +0200 (CEST) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200305142001.h4EK1iR0005579@peedub.jennejohn.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: G Hasse In-Reply-To: Message from G Hasse <20030514200144.T1853-100000@gandalf.raditex.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 14 May 2003 22:01:44 +0200 From: Gary Jennejohn cc: freebsd-isdn@freebsd.org Subject: Re: State of interface X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2003 20:01:49 -0000 G Hasse writes: > > Hello! > > I have a machine that have two ISDN cards and 10 > ispXX interfaces. So there is many more isp interfaces > than there is avilable ISDN-phone lines. > In the control panel (on ttyv6) I can follow the > call progress - and this works nice. BUT! sometimes I > realy need to connect to the system remotly and fix > someting. Is there any way to se the state on the > interface by fore example ifconfig. > > I would like to have something like the UP flag on > the interface to be acompnied by a "ACTIVE" flag to > know it the interface has an active ISDN line for the moment? > > Any ideas? > It seems like IF_RUNNING should be set if the interface is active. --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de From owner-freebsd-isdn@FreeBSD.ORG Wed May 14 13:13:23 2003 Return-Path: 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 7093037B401 for ; Wed, 14 May 2003 13:13:23 -0700 (PDT) Received: from www.raditex.se (www.raditex.se [192.5.36.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D3DB43F3F for ; Wed, 14 May 2003 13:13:22 -0700 (PDT) (envelope-from gh@raditex.se) Received: from gandalf.raditex.se (gandalf.raditex.se. [192.5.36.18]) by www.raditex.se (8.12.9/8.12.9) with ESMTP id h4EMCGqR002323; Wed, 14 May 2003 22:12:16 GMT Date: Wed, 14 May 2003 22:56:49 +0000 (GMT) From: G Hasse To: Gary Jennejohn In-Reply-To: <200305142001.h4EK1iR0005579@peedub.jennejohn.org> Message-ID: <20030514225548.O1965-100000@gandalf.raditex.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-isdn@freebsd.org Subject: Re: State of interface X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2003 20:13:23 -0000 On Wed, 14 May 2003, Gary Jennejohn wrote: > > I would like to have something like the UP flag on > > the interface to be acompnied by a "ACTIVE" flag to > > know it the interface has an active ISDN line for the moment? > > > > Any ideas? > > > > It seems like IF_RUNNING should be set if the interface is active. Correct! My eyes was foggy! Thanks. 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