From owner-freebsd-isdn Sun Apr 5 01:28:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA20551 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 01:28:39 -0800 (PST) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from server.amis.net (server.amis.net [195.10.52.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA20546 for ; Sun, 5 Apr 1998 01:28:35 -0800 (PST) (envelope-from blaz@gold.amis.net) Received: (from uucp@localhost) by server.amis.net (8.8.8/8.8.8) with UUCP id LAA25110; Sun, 5 Apr 1998 11:25:42 +0200 (CEST) Received: from localhost (blaz@localhost) by gold.amis.net (8.8.8/8.8.8) with SMTP id KAA00456; Sun, 5 Apr 1998 10:43:23 +0200 (CEST) Date: Sun, 5 Apr 1998 10:43:22 +0200 (CEST) From: Blaz Zupan To: Poul-Henning Kamp cc: Wolfgang Helbig , freebsd-isdn@FreeBSD.ORG Subject: Re: i4b-L1-F_ill:What is this? (fwd) In-Reply-To: <6003.891714612@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I think this is related to the "the-phone-must-work-in-an-emegency- > phantom-power". Depending on your telco and the phase of the moon, > the NT will aggressively try to shut down everybody on the bus who > might be using power, to reduce the load on the telcos power bill. > I belive the danish version of the Siemens NT act differently in > this respect if you don't plug in the powercord to the NT. Hmmm. I *did* reprogram my NT from the defaults. On my Ascom NT you need to select which port will be active when there is no power (ie when the NT is powered from the switch). The default is the S0 bus. But as I don't have any phones on the S0 bus I selected one of the analog ports as the "default" port. This could be related. I can try reprograming the NT to the default and then run some time with that or try to unplug the powercord from the NT and see what happens. Blaz Zupan, blaz@medinet.si, http://home.amis.net/blaz Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Apr 5 01:34:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA21698 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 01:34:38 -0800 (PST) (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 BAA21691 for ; Sun, 5 Apr 1998 01:34:35 -0800 (PST) (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 LAA02331 for ; Sun, 5 Apr 1998 11:35:45 +0200 (CEST) Message-Id: <199804050935.LAA02331@peedub.muc.de> X-Mailer: exmh version 2.0.1 12/23/97 To: freebsd-isdn@FreeBSD.ORG Subject: Re: -current: Undefined symbol `_time' referenced from text segment Reply-To: Gary Jennejohn In-reply-to: Your message of "Sat, 04 Apr 1998 16:41:47 +0200." <199804041441.QAA00351@rvc1.informatik.ba-stuttgart.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 05 Apr 1998 11:35:45 +0200 From: Gary Jennejohn Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wolfgang Helbig writes: >> >> It's very simply, just call getmicrotime() instead. > >This is a diff merging phk's latest changes to i4b, including >his patch fighting the slowdown of netscape, xterm etc ... > >(BTW, phk, I hardly noticed a slowdown on my machine (i486DX4 100 Mhz), >before your patch, after the patch I didn't notice any slowdown!) > >I'm not sure I did everthing right ... >But it seems to work on my machine (-curren) and still to compile on 2.2.5 . > unfortuantely, you eliminated some changes which NetBSD requires. Otherwise, these look very similar to the patches which I sent Hellmuth yesterday :) BTW Hellmuth, since these are more recent than mine I suggest using these (except for the NetBSD damage, of course). --- 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 From owner-freebsd-isdn Sun Apr 5 01:57:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA23872 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 01:57:05 -0800 (PST) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA23864 for ; Sun, 5 Apr 1998 01:57:03 -0800 (PST) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.8/8.8.5) id LAA00234; Sun, 5 Apr 1998 11:54:20 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199804050954.LAA00234@rvc1.informatik.ba-stuttgart.de> Subject: Re: -current: Undefined symbol `_time' referenced from text segment In-Reply-To: <199804050935.LAA02331@peedub.muc.de> from Gary Jennejohn at "Apr 5, 98 11:35:45 am" To: garyj@muc.de Date: Sun, 5 Apr 1998 11:54:19 +0200 (MET DST) Cc: freebsd-isdn@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (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 > Wolfgang Helbig writes: > >> > >> It's very simply, just call getmicrotime() instead. > > > >This is a diff merging phk's latest changes to i4b, including > >his patch fighting the slowdown of netscape, xterm etc ... > > > >(BTW, phk, I hardly noticed a slowdown on my machine (i486DX4 100 Mhz), > >before your patch, after the patch I didn't notice any slowdown!) > > > >I'm not sure I did everthing right ... > >But it seems to work on my machine (-curren) and still to compile on 2.2.5 . In the meantime I can confirm that it even runs on 2.2.5 (ipr and isppp) > unfortuantely, you eliminated some changes which NetBSD requires. Otherwise, Oops, sorry about that. I really tried not to ... Where did I screw it up? > these look very similar to the patches which I sent Hellmuth yesterday :) > > BTW Hellmuth, since these are more recent than mine I suggest using these > (except for the NetBSD damage, of course). > > --- > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Apr 5 03:36:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA29803 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 03:36:42 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from server.amis.net (server.amis.net [195.10.52.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA29749 for ; Sun, 5 Apr 1998 03:36:36 -0700 (PDT) (envelope-from blaz@gold.amis.net) Received: (from uucp@localhost) by server.amis.net (8.8.8/8.8.8) with UUCP id MAA29016; Sun, 5 Apr 1998 12:36:21 +0200 (CEST) Received: from localhost (blaz@localhost) by gold.amis.net (8.8.8/8.8.8) with SMTP id MAA00622; Sun, 5 Apr 1998 12:36:03 +0200 (CEST) Date: Sun, 5 Apr 1998 12:36:02 +0200 (CEST) From: Blaz Zupan To: Wolfgang Helbig cc: freebsd-isdn@FreeBSD.ORG Subject: Re: i4b-L1-F_ill:What is this? (fwd) In-Reply-To: <199804041035.MAA00661@rvc1.informatik.ba-stuttgart.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Does this trick work w/o I4B_SMP_WORKAROUND? > Please apply this patch: I was running a kernel with the patch and I4B_SMP_WORKAROUND yesterday without any trouble (except for the error messages that I already posted). Today I am running a kernel without I4B_SMP_WORKAROUND and it seems to work just the same, i.e. the workaround has absolutely no effect on the operation of i4b on my machine. So it seems like the patch fixed the problem. Now my questions is, is this patch only a "test" or can it be applied to the i4b source tree in the future, i.e. does it only work on my (and possibly some other machines) but breaks something on other machines? Is anybody else running the same patch without problems? Blaz Zupan, blaz@medinet.si, http://home.amis.net/blaz Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Apr 5 04:42:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA09102 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 04:42:00 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA09010 for ; Sun, 5 Apr 1998 04:41:47 -0700 (PDT) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.8/8.8.5) id NAA00305; Sun, 5 Apr 1998 13:40:51 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199804051140.NAA00305@rvc1.informatik.ba-stuttgart.de> Subject: Re: i4b-L1-F_ill:What is this? (fwd) In-Reply-To: from Blaz Zupan at "Apr 5, 98 12:36:02 pm" To: blaz@gold.amis.net (Blaz Zupan) Date: Sun, 5 Apr 1998 13:40:43 +0200 (MET DST) Cc: helbig@Informatik.BA-Stuttgart.DE, freebsd-isdn@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (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 > > Does this trick work w/o I4B_SMP_WORKAROUND? > > Please apply this patch: > > I was running a kernel with the patch and I4B_SMP_WORKAROUND yesterday > without any trouble (except for the error messages that I already posted). > Today I am running a kernel without I4B_SMP_WORKAROUND and it seems to > work just the same, i.e. the workaround has absolutely no effect on the > operation of i4b on my machine. > > So it seems like the patch fixed the problem. Now my questions is, is this > patch only a "test" or can it be applied to the i4b source tree in the > future, i.e. does it only work on my (and possibly some other machines) > but breaks something on other machines? Is anybody else running the same > patch without problems? No, as far as I know. You need this patch because your ASCOM does not accept an activation request after it issued a deactivation request, as opposed to the NT the german telco supplied. Both NTs seem to issue the deactivation request if layer2 is not activated some time after layer1. So I suggested to delay activation of layer1 until it is needed and to initialize (i. e. send a TEI request) right after layer1 is up. This is the effect of the patch I sent to you--at the cost of an extra wait of 2 seconds. For the time being don't expect that patch to be integrated into i4b. But, if Hellmuth agrees, the initialization of all layers will be delayed until triggered from userland. If this is done, you won't need the patch anymore--and the SMP people won't need their workaround. Thank you for your contribution, Wolfgang To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Apr 5 05:47:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA15342 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 05:47:33 -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 FAA15336 for ; Sun, 5 Apr 1998 05:47:29 -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 OAA02553 for ; Sun, 5 Apr 1998 14:48:36 +0200 (CEST) Message-Id: <199804051248.OAA02553@peedub.muc.de> X-Mailer: exmh version 2.0.1 12/23/97 To: freebsd-isdn@FreeBSD.ORG Subject: Re: -current: Undefined symbol `_time' referenced from text segment Reply-To: Gary Jennejohn In-reply-to: Your message of "Sun, 05 Apr 1998 11:54:19 +0200." <199804050954.LAA00234@rvc1.informatik.ba-stuttgart.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 05 Apr 1998 14:48:36 +0200 From: Gary Jennejohn Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wolfgang Helbig writes: >> unfortuantely, you eliminated some changes which NetBSD requires. Otherwise, > >Oops, sorry about that. I really tried not to ... >Where did I screw it up? > some deletions were merely in comments, so not harmful (that's how I noticed that you'd deleted NetBSD stuff). This, however (if_spppsubr.c), will break NetBSD: @@ -2584,7 +2606,7 @@ continue; } else { if (desiredaddr == hisaddr || - (hisaddr == 1 && desiredaddr != 0)) { + hisaddr == 1 && desiredaddr != 0) { /* * Peer's address is same as our value, * this is agreeable. Gonna conf-ack NetBSD _needs_ those parens. It almost looks like you're using an older version of if_spppsubr.c. There may be others which I didn't notice, since I don't run NetBSD. --- 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 From owner-freebsd-isdn Sun Apr 5 07:56:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA27865 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 07:56:44 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA27860 for ; Sun, 5 Apr 1998 07:56:35 -0700 (PDT) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.8/8.8.5) id QAA00283; Sun, 5 Apr 1998 16:56:17 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199804051456.QAA00283@rvc1.informatik.ba-stuttgart.de> Subject: Re: -current: Undefined symbol `_time' referenced from text segment In-Reply-To: <199804051248.OAA02553@peedub.muc.de> from Gary Jennejohn at "Apr 5, 98 02:48:36 pm" To: garyj@muc.de Date: Sun, 5 Apr 1998 16:56:17 +0200 (MET DST) Cc: hm@hcs.de (Hellmuth Michaelis), freebsd-isdn@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (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 > Wolfgang Helbig writes: > >> unfortuantely, you eliminated some changes which NetBSD requires. Otherwise, > > > >Oops, sorry about that. I really tried not to ... > >Where did I screw it up? > > > > some deletions were merely in comments, so not harmful (that's how I noticed > that you'd deleted NetBSD stuff). Don't know how that happened. Here is another try. This is a diff for if_spppsubr.c only, this time w/o deleting comments and breaking NetBSD support (hopefully). Hellmuth, please don't apply the if_spppsubr.c patch from the big diff I sent yesterday, it's at the end of the file. Instead try this one: Wolfgang --- /home/helbig/src/i4b/sppp/if_spppsubr.c Thu Mar 19 20:36:57 1998 +++ sppp/if_spppsubr.c Sun Apr 5 16:40:58 1998 @@ -17,7 +17,7 @@ * * From: Version 2.4, Thu Apr 30 17:17:21 MSD 1997 * - * From: if_spppsubr.c,v 1.32 1998/02/09 06:09:57 eivind Exp + * From: if_spppsubr.c,v 1.36 1998/04/04 13:26:03 phk Exp * * $Id: if_spppsubr.c,v 1.10 1998/03/19 19:36:57 hm Exp $ */ @@ -33,6 +33,9 @@ #include #include #include +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 +#include +#endif #include #include #include @@ -1031,7 +1034,11 @@ ++sp->pp_loopcnt; /* Generate new local sequence number */ +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + read_random((char*)&sp->pp_seq, sizeof sp->pp_seq); +#else sp->pp_seq ^= time.tv_sec ^ time.tv_usec; +#endif break; } sp->pp_loopcnt = 0; @@ -1059,8 +1066,16 @@ struct ppp_header *h; struct cisco_packet *ch; struct mbuf *m; +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + struct timeval tv; +#else u_long t = (time.tv_sec - boottime.tv_sec) * 1000; +#endif +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + getmicroruntime(&tv); +#endif + MGETHDR (m, M_DONTWAIT, MT_DATA); if (! m) return; @@ -1077,8 +1092,14 @@ ch->par1 = htonl (par1); ch->par2 = htonl (par2); ch->rel = -1; + +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + ch->time0 = htons ((u_short) (tv.tv_sec >> 16)); + ch->time1 = htons ((u_short) tv.tv_sec); +#else ch->time0 = htons ((u_short) (t >> 16)); ch->time1 = htons ((u_short) t); +#endif if (debug) log(LOG_DEBUG, @@ -2168,7 +2189,11 @@ if (magic == ~sp->lcp.magic) { if (debug) addlog("magic glitch "); - sp->lcp.magic += time.tv_sec + time.tv_usec; +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + read_random((char*)&sp->lcp.magic, sizeof sp->lcp.magic); +#else + sp->lcp.magic = time.tv_sec + time.tv_usec; +#endif } else { sp->lcp.magic = magic; if (debug) @@ -2328,7 +2353,11 @@ if (sp->lcp.opts & (1 << LCP_OPT_MAGIC)) { if (! sp->lcp.magic) +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + read_random((char*)&sp->lcp.magic, sizeof sp->lcp.magic); +#else sp->lcp.magic = time.tv_sec + time.tv_usec; +#endif opt[i++] = LCP_OPT_MAGIC; opt[i++] = 6; opt[i++] = sp->lcp.magic >> 24; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Apr 5 11:02:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA18122 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 11:02:26 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from casparc.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA18112 for ; Sun, 5 Apr 1998 11:02:18 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0yLtk3-00298iC; Sun, 5 Apr 98 20:02 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Sun, 5 Apr 1998 19:33:14 +0200 (CEST) (Smail-3.2.0.91 1997-Jan-14 #3 built 1998-Feb-14) Received: by bert.kts.org via sendmail with stdio id for freebsd-isdn@freebsd.org; Sun, 5 Apr 1998 19:30:17 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #7 built 1997-Jul-4) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: i4b-L1-F_ill:What is this? (fwd) In-Reply-To: <199804051140.NAA00305@rvc1.informatik.ba-stuttgart.de> from Wolfgang Helbig at "Apr 5, 98 01:40:43 pm" To: freebsd-isdn@FreeBSD.ORG (ISDN for BSD) Date: Sun, 5 Apr 1998 19:30:17 +0200 (CEST) Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL31H (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 Wolfgang Helbig wrote: > But, if Hellmuth agrees, the initialization of all layers will be > delayed until triggered from userland. If this is done, you won't need > the patch anymore--and the SMP people won't need their workaround. Two things should (and will) be done: - several parts of the ISDN stack will be put under some sort of activation control by the device /dev/isdn. (This is one of the things the already in place "command" and "status" primitives were meant for.) - a careful look at layer one's duties must take place, meaning that PH_ACTIVATE_REQ and _IND and PH_DEACTIVATE_IND have to be properly implemented and trigger the proper actions (the layer 1 implementation is the oldest [als ich noch am blauaeugigsten war], and i rewrote the other layers at least twice each but layer 1 not, so this has to change ;-) ). hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe "Those who can, do. Those who can't, talk. And those who can't talk, talk about talking." (B. Shaw) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Apr 5 11:32:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA21287 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 11:32:17 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from casparc.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA21282 for ; Sun, 5 Apr 1998 11:32:09 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0yLuD3-00298iC; Sun, 5 Apr 98 20:32 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Sun, 5 Apr 1998 19:48:52 +0200 (CEST) (Smail-3.2.0.91 1997-Jan-14 #3 built 1998-Feb-14) Received: by bert.kts.org via sendmail with stdio id for freebsd-isdn@freebsd.org; Sun, 5 Apr 1998 19:45:54 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #7 built 1997-Jul-4) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: Callback with i4b In-Reply-To: <199804041157.NAA01485@rvc1.informatik.ba-stuttgart.de> from Wolfgang Helbig at "Apr 4, 98 01:57:04 pm" To: freebsd-isdn@FreeBSD.ORG (ISDN for BSD) Date: Sun, 5 Apr 1998 19:45:54 +0200 (CEST) Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL31H (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 Wolfgang Helbig wrote: > > Is anybody successfully using callback with i4b? I have a setup where I > > It works fine with a bisdn machine calling back. > > There seem to be some problems, it *both* i4b-machines are connected to > a PBX instead of directly to an NT from the telecom. I am almost only using callback and calledback and use normal dialing just for test purposes. It doesn't matter if both machines are on a PBX or not or if one is bisdn based or i4b based or any combination of these. AFAIK yet, the problems are based on several things: - isdnd is currently no able to handle simultaneous callins and callouts (the callout for a callback destination goes out on one B channel and before this call is terminated the callback comes in on the other B channel). Changing isdnd to be able to handle this situation is non-trivial. - isdnd's state machine and timing machinery is currently not completely implemented and needs some thinking and cleanup. - there seem to be one or more race condition(s) somewhere in the stack which needs to be found and fixed. hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe "Those who can, do. Those who can't, talk. And those who can't talk, talk about talking." (B. Shaw) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Apr 5 11:32:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA21396 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 11:32:28 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from casparc.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA21353 for ; Sun, 5 Apr 1998 11:32:23 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0yLuDK-00298iC; Sun, 5 Apr 98 20:32 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Sun, 5 Apr 1998 19:52:02 +0200 (CEST) (Smail-3.2.0.91 1997-Jan-14 #3 built 1998-Feb-14) Received: by bert.kts.org via sendmail with stdio id for freebsd-isdn@FreeBSD.ORG; Sun, 5 Apr 1998 19:49:05 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #7 built 1997-Jul-4) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: i4b-0.51 on FreeBSD-2.2.2 ? In-Reply-To: <3.0.32.19980404135659.00749da0@cyclone.degnet.baynet.de> from Malte Lance at "Apr 4, 98 01:57:00 pm" To: malte@webmore.com (Malte Lance) Date: Sun, 5 Apr 1998 19:49:05 +0200 (CEST) Cc: freebsd-isdn@FreeBSD.ORG Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL31H (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 Malte Lance wrote: > Did anyone succeed on installing and running i4b-0.51 under FreeBSD-2.2.2 > WITH sppp ? yes and yes and no - i'm not running sppp but i see no reason why it should not run. hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe "Those who can, do. Those who can't, talk. And those who can't talk, talk about talking." (B. Shaw) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Apr 5 11:32:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA21505 for freebsd-isdn-outgoing; Sun, 5 Apr 1998 11:32:52 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from casparc.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA21497 for ; Sun, 5 Apr 1998 11:32:47 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0yLuDe-00298iC; Sun, 5 Apr 98 20:32 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Sun, 5 Apr 1998 20:10:00 +0200 (CEST) (Smail-3.2.0.91 1997-Jan-14 #3 built 1998-Feb-14) Received: by bert.kts.org via sendmail with stdio id for freebsd-isdn@FreeBSD.ORG; Sun, 5 Apr 1998 20:07:03 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #7 built 1997-Jul-4) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: unitlengthsrc=rates ignored? and: Problems with "FSM illegal state". In-Reply-To: <19980404142106.30341@magnus.factum-data.de> from Pascal Gienger at "Apr 4, 98 02:21:06 pm" To: p@znet.de (Pascal Gienger) Date: Sun, 5 Apr 1998 20:07:03 +0200 (CEST) Cc: freebsd-isdn@FreeBSD.ORG Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL31H (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 Pascal Gienger wrote: > Ich habe 2 Probleme mit i4b 00.51: > > 1.) > I am a subscriber of AOCD information. But due to the many special tariffs > of Deutsche Telekom, they are getting less useful. At weekends, I have the > "CityWeekend" tariff giving me 240 seconds-units during Saturday and > Sunday. > So i changed "isdnd.rates" (ra0, day 0 and 6 with 240secs in the period > 00-24) and I changed the unitlenghtsrc in isdnd.rc to > unitlenghtsrc = rates > > Now, after successfully establishing a connection, isdnd reports that > it will use 240 seconds/unit. Fine.... until the first AOCD accounting > packet arrives. :( This overrides isdnd's mechanism as if I typed > "unitlengthsrc = aocd". So I would consider this a bug. ;-) If I put > "unitlengthsrc = rates" in my isdnd.rc, I want isdnd to take his info from > isdnd.rates, and not from AOCD. ;-)) Shorthold based on AOCD is currently not fully implemented in isdnd. Anyway, in case it were already fully implemented, it would still say what it will use based on the rates file, because you know the unitlength not before the second AOCD frame, so what do you do for the first unit ? Right, a good guess :-) > After some connections and disconnections, I am not able any more to > hangup manually a connection. isdnd reports a line like this: > > Apr 3 13:51:06 finesse isdnd[2573]: ERR FSM ILLEGAL STATE [disconnect-req: \ > idle => Illegal State] This seems to be a bug in isdnd! > The problem of missed interrupts and buffer overruns while receiving data > is still there. In i4b 00.42 I got many messages saying > > Mar 2 23:44:02 finesse /kernel: i4b-L1-isic_hscx_irq: RAWHDLC rx buffer \ > overflow in RPF, in_len=2048 > > It always appeared when swichting fastly between virtual syscons consoles. > > Now with i4b 00.51 it doesn't appear any more, but the effects are remaining > the same. TCP/IP packets are missed and the connection does not transfer any > data for 2 oder 3 seconds. > Is a 486DX33 perhaps too slow to answer all the generated interrupts? It _should_ be ok but currently there are problems in i4b's interrupt handling. I don't know how long syscons blocks IRQs when switching screens, but i don't see the problem on a 486/66, i4b even ran tests on a 386/20 here without any noticable problems; i'm using pcvt everywhere, obviously. hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe "Those who can, do. Those who can't, talk. And those who can't talk, talk about talking." (B. Shaw) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 01:27:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA21620 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 01:27:03 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mailext02.compaq.com (mailext02.compaq.com [207.18.199.33]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA21612 for ; Mon, 6 Apr 1998 01:27:00 -0700 (PDT) (envelope-from Stephan.Kauss@COMPAQ.COM) Received: from mail.compaq.com(really [207.18.199.35]) by mailext02.compaq.com via sendmail with smtp id for ; Mon, 6 Apr 1998 03:19:34 -0500 (CDT) (Smail-3.2.0.93 1997-Apr-12 #2 built 1997-Dec-21) Received: from exchou-conn02.im.hou.compaq.com(really [172.18.22.250]) by mail.compaq.com via sendmail with esmtp id for ; Mon, 6 Apr 98 03:17:51 -0500 (CDT) (/\##/\ Smail3.1.30.16 #30.10 built 18-dec-97) Message-Id: Received: by EXCHOU-CONN02.im.hou.compaq.com with Internet Mail Service (5.5.1960.3) id <21V7H088>; Mon, 6 Apr 1998 03:26:57 -0500 From: "Kauss, Stephan" To: freebsd-isdn@FreeBSD.ORG Date: Mon, 6 Apr 1998 03:26:55 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org subscribe freebsd-isdn ---------------------------------------------------- Stephan Kauss Tandem Computer Europe INC. http://www.tektonic.de Tektonic eMail:ska@hprc.tandem.com Max-Plank-Str. 36 Tel.: +49-6172-734-329 61381 Friedrichsdorf Fax : +49-6172-74655 // A rainy day on a boat is better than a sunny day in the office To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 01:43:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA24007 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 01:43:37 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mailext02.compaq.com (mailext02.compaq.com [207.18.199.33]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA24002 for ; Mon, 6 Apr 1998 01:43:34 -0700 (PDT) (envelope-from Stephan.Kauss@COMPAQ.COM) Received: from mail.compaq.com(really [207.18.199.35]) by mailext02.compaq.com via sendmail with smtp id for ; Mon, 6 Apr 1998 03:36:06 -0500 (CDT) (Smail-3.2.0.93 1997-Apr-12 #2 built 1997-Dec-21) Received: from exchou-conn02.im.hou.compaq.com(really [172.18.22.250]) by mail.compaq.com via sendmail with esmtp id for ; Mon, 6 Apr 98 03:34:23 -0500 (CDT) (/\##/\ Smail3.1.30.16 #30.10 built 18-dec-97) Message-Id: Received: by EXCHOU-CONN02.im.hou.compaq.com with Internet Mail Service (5.5.1960.3) id <21V72AQ1>; Mon, 6 Apr 1998 03:43:29 -0500 From: "Kauss, Stephan" To: hm@kts.org Cc: freebsd-isdn@FreeBSD.ORG Subject: ISDN4BSD send speech sign for an raw packed connection Date: Mon, 6 Apr 1998 03:43:25 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain; charset="ISO-8859-1" Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, I try to switch from BISDN to ISDN4BSD and get failed during the connection. My environment : FreeBSD 2.2.1 isdn4bsd 5.0 Marc 1998 Natd 1.8 IP firewall and Try to do a callback call to an Linux box. If I understand the log correct ISDN4BSD try to do all voice (cap=speech) call and my opposite side didn't call back on voice call's. Any idea what I do wrong ? Thanks Stephan Here is the trace log : =========== isdntrace controller #0 =========== started Sat Apr 4 15:18:45 1998 -- TE->NT - unit:0 - frame:000221 - time:04.04 15:19:41.12 - length:3 ---------- Dump:000 00 97 7f ... LAPD: SAP=0 (Call Control), C, TEI=75, U-Frame: SABME PF 1 -- NT->TE - unit:0 - frame:000222 - time:04.04 15:19:41.14 - length:3 ---------- Dump:000 00 97 73 ..s LAPD: SAP=0 (Call Control), R, TEI=75, U-Frame: UA PF 1 -- TE->NT - unit:0 - frame:000223 - time:04.04 15:19:41.14 - length:42 --------- Dump:000 00 97 00 00 .... LAPD: SAP=0 (Call Control), C, TEI=75, I-Frame: N(S) 0 N(R) 0 P 0 Dump:004 08 01 63 05 a1 04 03 80 90 a3 18 01 83 6c 09 81 ..c.\041....\043 ...l.. Dump:020 38 32 33 37 35 30 38 33 70 0c 81 30 36 31 37 32 82375083p..06172 Dump:036 37 33 34 35 32 32 734522 Q931: pd=Q.931/I.451, cr=0x63 (from origination), message=SETUP: [sending complete] [bearer capability: cap=speech std=CCITT rate=64 kbit/s mode=circuit layer1=G.711 A-law] [channel id: channel=any channel (preferred)] [calling party number: 82375083 (type=unknown, plan=ISDN)] [called party number: 06172734522 (type=unknown, plan=ISDN)] -- NT->TE - unit:0 - frame:000224 - time:04.04 15:19:41.17 - length:4 ---------- Dump:000 00 97 01 02 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 1 PF 0 -- NT->TE - unit:0 - frame:000225 - time:04.04 15:19:41.44 - length:11 --------- Dump:000 02 97 00 02 .... LAPD: SAP=0 (Call Control), C, TEI=75, I-Frame: N(S) 0 N(R) 1 P 0 Dump:004 08 01 e3 02 18 01 89 ..\143.... Q931: pd=Q.931/I.451, cr=0x63 (from destination), message=CALL PROCEEDING: [channel id: channel=B-1 (exclusive)] -- TE->NT - unit:0 - frame:000226 - time:04.04 15:19:41.44 - length:4 ---------- Dump:000 02 97 01 02 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 1 PF 0 -- NT->TE - unit:0 - frame:000227 - time:04.04 15:19:43.01 - length:12 --------- Dump:000 02 97 02 02 .... LAPD: SAP=0 (Call Control), C, TEI=75, I-Frame: N(S) 1 N(R) 1 P 0 Dump:004 08 01 e3 03 1e 02 85 82 ..\143..... Q931: pd=Q.931/I.451, cr=0x63 (from destination), message=PROGRESS: [progress ind: Std=CCITT, Loc=Private network serving remote user Description: Destination address is non-ISDN] -- TE->NT - unit:0 - frame:000228 - time:04.04 15:19:43.01 - length:4 ---------- Dump:000 02 97 01 04 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 2 PF 0 -- NT->TE - unit:0 - frame:000229 - time:04.04 15:19:51.18 - length:16 --------- Dump:000 02 97 04 02 .... LAPD: SAP=0 (Call Control), C, TEI=75, I-Frame: N(S) 2 N(R) 1 P 0 Dump:004 08 01 e3 45 08 02 85 92 1e 02 82 88 ..\143E........ Q931: pd=Q.931/I.451, cr=0x63 (from destination), message=DISCONNECT: [cause: 0x12: No user responding (location=private network serving remote user, std=CCITT)] [progress ind: Std=CCITT, Loc=Public network serving local user Description: In-band info or appropriate pattern now available] -- TE->NT - unit:0 - frame:000230 - time:04.04 15:19:51.18 - length:8 ---------- Dump:000 00 97 02 06 .... Dump:000 00 97 02 06 .... LAPD: SAP=0 (Call Control), C, TEI=75, I-Frame: N(S) 1 N(R) 3 P 0 Dump:004 08 01 63 4d ..cM Q931: pd=Q.931/I.451, cr=0x63 (from origination), message=RELEASE: -- NT->TE - unit:0 - frame:000231 - time:04.04 15:19:51.20 - length:4 ---------- Dump:000 00 97 01 04 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 2 PF 0 -- NT->TE - unit:0 - frame:000232 - time:04.04 15:19:51.26 - length:8 ---------- Dump:000 02 97 06 04 .... LAPD: SAP=0 (Call Control), C, TEI=75, I-Frame: N(S) 3 N(R) 2 P 0 Dump:004 08 01 e3 5a ..\143Z Q931: pd=Q.931/I.451, cr=0x63 (from destination), message=RELEASE COMPLETE: -- TE->NT - unit:0 - frame:000233 - time:04.04 15:19:51.26 - length:4 ---------- Dump:000 02 97 01 08 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 4 PF 0 -- NT->TE - unit:0 - frame:000234 - time:04.04 15:20:01.28 - length:4 ---------- Dump:000 02 97 01 05 .... LAPD: SAP=0 (Call Control), C, TEI=75, S-Frame: RR N(R) 2 PF 1 -- TE->NT - unit:0 - frame:000235 - time:04.04 15:20:01.28 - length:4 ---------- Dump:000 02 97 01 09 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 4 PF 1 -- NT->TE - unit:0 - frame:000236 - time:04.04 15:20:11.38 - length:4 ---------- Dump:000 02 97 01 05 .... LAPD: SAP=0 (Call Control), C, TEI=75, S-Frame: RR N(R) 2 PF 1 -- TE->NT - unit:0 - frame:000237 - time:04.04 15:20:11.38 - length:4 ---------- Dump:000 02 97 01 09 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 4 PF 1 -- NT->TE - unit:0 - frame:000238 - time:04.04 15:20:21.48 - length:4 ---------- Dump:000 02 97 01 05 .... LAPD: SAP=0 (Call Control), C, TEI=75, S-Frame: RR N(R) 2 PF 1 -- TE->NT - unit:0 - frame:000239 - time:04.04 15:20:21.48 - length:4 ---------- Dump:000 02 97 01 09 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 4 PF 1 -- NT->TE - unit:0 - frame:000240 - time:04.04 15:20:31.58 - length:4 ---------- Dump:000 02 97 01 05 .... LAPD: SAP=0 (Call Control), C, TEI=75, S-Frame: RR N(R) 2 PF 1 -- TE->NT - unit:0 - frame:000241 - time:04.04 15:20:31.58 - length:4 ---------- Dump:000 02 97 01 09 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 4 PF 1 -- NT->TE - unit:0 - frame:000242 - time:04.04 15:20:41.68 - length:4 ---------- Dump:000 02 97 01 05 .... LAPD: SAP=0 (Call Control), C, TEI=75, S-Frame: RR N(R) 2 PF 1 -- TE->NT - unit:0 - frame:000243 - time:04.04 15:20:41.68 - length:4 ---------- Dump:000 02 97 01 09 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 4 PF 1 -- NT->TE - unit:0 - frame:000244 - time:04.04 15:20:51.78 - length:4 ---------- Dump:000 02 97 01 05 .... LAPD: SAP=0 (Call Control), C, TEI=75, S-Frame: RR N(R) 2 PF 1 -- TE->NT - unit:0 - frame:000245 - time:04.04 15:20:51.78 - length:4 ---------- Dump:000 02 97 01 09 .... LAPD: SAP=0 (Call Control), R, TEI=75, S-Frame: RR N(R) 4 PF 1 -- NT->TE - unit:0 - frame:000246 - time:04.04 15:21:01.88 - length:4 ---------- Dump:000 02 97 01 05 .... LAPD: SAP=0 (Call Control), C, TEI=75, S-Frame: RR N(R) 2 PF 1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 02:50:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA29683 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 02:50:31 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from cyclone.degnet.baynet.de (www.degnet.baynet.de [194.95.214.129]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA29639 for ; Mon, 6 Apr 1998 02:50:26 -0700 (PDT) (envelope-from malte@webmore.com) Received: from bachus (unverified [194.95.214.188]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Mon, 06 Apr 1998 11:48:08 +0200 Message-Id: <3.0.32.19980406113808.0076f824@cyclone.degnet.baynet.de> X-Sender: moos@cyclone.degnet.baynet.de X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Mon, 06 Apr 1998 11:38:09 +0000 To: hm@kts.org From: Malte Lance Subject: Re: i4b-0.51 on FreeBSD-2.2.2 ? Cc: freebsd-isdn@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 19:49 05.04.98 +0200, Hellmuth Michaelis wrote: >Malte Lance wrote: > >> Did anyone succeed on installing and running i4b-0.51 under FreeBSD-2.2.2 >> WITH sppp ? > >yes and yes and no - i'm not running sppp but i see no reason why it should >not run. Would it be possible in any way to run user-land-ppp with i4b ? Thanks for your reply. Malte Lance malte@webmore.com > >hellmuth >-- >Hellmuth Michaelis hm@kts.org Hamburg, Europe > "Those who can, do. Those who can't, talk. > And those who can't talk, talk about talking." (B. Shaw) > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 04:23:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA10063 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 04:23:51 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA10058 for ; Mon, 6 Apr 1998 04:23:49 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [194.198.43.36]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id MAA20719; Mon, 6 Apr 1998 12:23:02 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id NAA01781; Mon, 6 Apr 1998 13:23:46 +0200 (MET DST) Message-ID: <19980406132345.07990@follo.net> Date: Mon, 6 Apr 1998 13:23:45 +0200 From: Eivind Eklund To: Malte Lance , hm@kts.org Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: i4b-0.51 on FreeBSD-2.2.2 ? References: <3.0.32.19980406113808.0076f824@cyclone.degnet.baynet.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <3.0.32.19980406113808.0076f824@cyclone.degnet.baynet.de>; from Malte Lance on Mon, Apr 06, 1998 at 11:38:09AM +0000 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Apr 06, 1998 at 11:38:09AM +0000, Malte Lance wrote: > At 19:49 05.04.98 +0200, Hellmuth Michaelis wrote: > >Malte Lance wrote: > > > >> Did anyone succeed on installing and running i4b-0.51 under FreeBSD-2.2.2 > >> WITH sppp ? > > > >yes and yes and no - i'm not running sppp but i see no reason why it should > >not run. > > Would it be possible in any way to run user-land-ppp with i4b ? Yes, but it require some modifications to i4b. I'm working on it (albeit very slowly :-( Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 05:15:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA16186 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 05:15:55 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from cyclone.degnet.baynet.de (www.degnet.baynet.de [194.95.214.129]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA16181 for ; Mon, 6 Apr 1998 05:15:51 -0700 (PDT) (envelope-from malte@webmore.com) Received: from bachus (unverified [194.95.214.174]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Mon, 06 Apr 1998 14:13:42 +0200 Message-Id: <3.0.32.19980406140339.006ed27c@cyclone.degnet.baynet.de> X-Sender: moos@cyclone.degnet.baynet.de X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Mon, 06 Apr 1998 14:03:39 +0000 To: Eivind Eklund , hm@kts.org From: Malte Lance Subject: Re: i4b-0.51 on FreeBSD-2.2.2 ? Cc: freebsd-isdn@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 13:23 06.04.98 +0200, Eivind Eklund wrote: >On Mon, Apr 06, 1998 at 11:38:09AM +0000, Malte Lance wrote: >> At 19:49 05.04.98 +0200, Hellmuth Michaelis wrote: >> >Malte Lance wrote: >> > >> >> Did anyone succeed on installing and running i4b-0.51 under FreeBSD-2.2.2 >> >> WITH sppp ? >> > >> >yes and yes and no - i'm not running sppp but i see no reason why it should >> >not run. >> >> Would it be possible in any way to run user-land-ppp with i4b ? > >Yes, but it require some modifications to i4b. I'm working on it (albeit >very slowly :-( BTW, i have a Teles-16.3-ISA-card that i don't use anymore (i am happy with Fritz/AVM ;) . If it would be of any use to you or the developers of the i4b-stuff for FreeBSD i would denote it for free. Just drop me an email with an adress where to send it to. Malte Lance malte@webmore.com > >Eivind. > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-isdn" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 05:22:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA17227 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 05:22:44 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gatekeeper.alcatel.no (ns0.alcatel.no [193.213.238.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA17180 for ; Mon, 6 Apr 1998 05:22:41 -0700 (PDT) (envelope-from arve.ronning@alcatel.no) Received: from stkd71.alcatel.no by gatekeeper.alcatel.no (8.8.8/Alcanet-SC) id OAA21030; Mon, 6 Apr 1998 14:22:39 +0200 (MET DST) Received: by stkd71.alcatel.no (5.65/DEC-Ultrix/4.3) id AA08699; Mon, 6 Apr 1998 14:21:56 +0200 Message-Id: <3528C873.88DEB913@alcatel.no> Date: Mon, 06 Apr 1998 14:20:03 +0200 From: Arve Ronning X-Mailer: Mozilla 4.03 [en] (Win95; I) Mime-Version: 1.0 To: freebsd-isdn@FreeBSD.ORG Subject: I4B: IPCP address negotiation Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following is a slightly edited log from a _successful_ call to my ISP Apr 5 12:27:03 Gate /kernel: isppp0: ipcp input(req-sent): ipcp nak opts: address [wantaddr 192.193.194.179] [agree] ipcp output ipcp input(req-sent): ipcp parse opts: address ipcp parse opt values: address 0.0.0.1 [ack] send conf-ack ipcp output ipcp input(ack-sent): ipcp tlu If I understand this correctly, my end accepts his proposal to use hisaddr = 192.193.194.244. However, netstat shows that my end continues to use hisaddr = 0.0.0.1. I'm worried about sending an illegal IP address onto the Internet. Is this behaviour on i4b's part correct ? If yes, what makes 0.0.0.1 special ? (reserved use in PPP ?) Thanx for your time, And : thanx to all involved for the excellent i4b work. -Arve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 05:38:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA18691 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 05:38:05 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA18671 for ; Mon, 6 Apr 1998 05:38:00 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id OAA10100; Mon, 6 Apr 1998 14:35:53 +0200 (CEST) To: Arve Ronning cc: freebsd-isdn@FreeBSD.ORG Subject: Re: I4B: IPCP address negotiation In-reply-to: Your message of "Mon, 06 Apr 1998 14:20:03 +0200." <3528C873.88DEB913@alcatel.no> Date: Mon, 06 Apr 1998 14:35:53 +0200 Message-ID: <10098.891866153@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <3528C873.88DEB913@alcatel.no>, Arve Ronning writes: >The following is a slightly edited log from a _successful_ >call to my ISP > > Apr 5 12:27:03 Gate /kernel: isppp0: > > ipcp input(req-sent): > ipcp nak opts: address [wantaddr 192.193.194.179] [agree] > ipcp output > ipcp input(req-sent): > ipcp parse opts: address > ipcp parse opt values: address 0.0.0.1 [ack] send conf-ack > ipcp output > ipcp input(ack-sent): > ipcp tlu > >If I understand this correctly, my end accepts his proposal to use >hisaddr = 192.193.194.244. However, netstat shows that my end >continues to use hisaddr = 0.0.0.1. I'm worried about sending an >illegal IP address onto the Internet. This is all correct, you will not send illegal IPs. >If yes, what makes 0.0.0.1 special ? (reserved use in PPP ?) Read the manpage. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "Drink MONO-tonic, it goes down but it will NEVER come back up!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 07:51:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA02123 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 07:51:52 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA02118 for ; Mon, 6 Apr 1998 07:51:49 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (1482 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Mon, 6 Apr 1998 16:51:31 +0200 (METDST) (Smail-3.2.0.97 1997-Aug-19 #16 built 1997-Oct-22) Received: by hcswork.hcs.de (Smail3.1.29.0 #12) id m0yMDGl-0000c2C; Mon, 6 Apr 98 16:53 METDST Message-Id: From: hm@hcs.de (Hellmuth Michaelis) Subject: Re: ISDN4BSD send speech sign for an raw packed connection In-Reply-To: from "Kauss, Stephan" at "Apr 6, 98 03:43:25 am" To: Stephan.Kauss@COMPAQ.COM (Kauss Stephan) Date: Mon, 6 Apr 1998 16:53:06 +0200 (METDST) Cc: freebsd-isdn@FreeBSD.ORG (ISDN Mailinglist) Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (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 >From the keyboard of Kauss, Stephan: > If I understand the log correct ISDN4BSD try to do all voice (cap=speech) > call and my opposite side didn't call back on voice call's. Strange! > Any idea what I do wrong ? What is your isdnd.rc setting for b1protocol for this entry ? hellmuth -- Hellmuth Michaelis Tel +49 40 559747-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 559747-77 Oldesloer Strasse 97-99 Mail hm@hcs.de 22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 08:49:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA09896 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 08:49:26 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from schubert.promo.de (schubert.Promo.DE [194.45.188.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA09890 for ; Mon, 6 Apr 1998 08:49:21 -0700 (PDT) (envelope-from stefan@promo.de) Received: from stefan.promo.de (stefan.Promo.DE [194.45.188.81]) by schubert.promo.de (8.8.8/8.8.8) with SMTP id RAA25546; Mon, 6 Apr 1998 17:42:12 +0200 (MET DST) Date: Mon, 06 Apr 1998 17:44:27 +0200 From: "Stefan Bethke" To: "Poul-Henning Kamp" , "Wolfgang Helbig" cc: "Blaz Zupan" , freebsd-isdn@FreeBSD.ORG Subject: Re: i4b-L1-F_ill:What is this? (fwd) Message-ID: <1595423.3100873467@stefan.promo.de> X-Mailer: Mulberry Demo (MacOS) [1.3.2, s/n Evaluation] X-Licensed-To: Unlicensed - for evaluation only 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 --On Sam, 4. Apr 1998 20:30 Uhr +0200 "Poul-Henning Kamp" wrote: > >>So we learned that the ASCOM-NT does not like an activation of layer1, >>if the activated layer1 is not used for anything. This is very similar >>to my NT from the german telecom. But then i4b tries to reactivate >>layer 1. This is successfull with my NT but seemingly not with the >>ASCOM-NT. > > I think this is related to the "the-phone-must-work-in-an-emegency- > phantom-power". Depending on your telco and the phase of the moon, > the NT will aggressively try to shut down everybody on the bus who > might be using power, to reduce the load on the telcos power bill. > > I belive the danish version of the Siemens NT act differently in > this respect if you don't plug in the powercord to the NT. As far as I have learned, the "emergency power" feature works like this: if the NT has local power (from its power cord), it supplies power to the bus, and, depending on the model, also drives it's U interface circuits from that. If there is no local power, the NT will power itself from the U interface, and will supply power to the S interface, but with polarity reversed. Only a single device on the bus is allowed to run with this setting; usually, you will have a switch on your phone to set whether to run in "emergency mode". Power consumption on the bus is severely limited (not so much because of the telcos power bill, but due to the max. line length of 6 km or so for the U interface, and the physical inability of providing a high current DC supply over that length of wire). Also I believe that the NT might not be involved at all in L1 transitions, but will simply relay U transitions to the S bus, so it might well be the switch thats responsible. This makes sense, as only the switch is involved in L2 states (and TEI assignment), so effectivly, the switch is conserving its ressources when deactiving L1 after some L2 idle time (because L1 must be brought up again before any L2 activity can take place). Just my 4 pf... Stefan -- Stefan Bethke Promo Datentechnik | Tel. +49-40-851744-18 + Systemberatung GmbH | Fax. +49-40-851744-44 Eduardstrasse 46-48 | e-mail: stefan@Promo.DE D-20257 Hamburg | http://www.Promo.DE/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 13:54:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA11684 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 13:54:53 -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 NAA11637 for ; Mon, 6 Apr 1998 13:54:41 -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 AAA00904 for ; Tue, 7 Apr 1998 00:54:37 +0200 (CEST) Message-Id: <199804062254.AAA00904@peedub.muc.de> X-Mailer: exmh version 2.0.1 12/23/97 To: freebsd-isdn@FreeBSD.ORG Subject: Re: Callback with i4b Reply-To: Gary Jennejohn In-reply-to: Your message of "Sun, 05 Apr 1998 19:45:54 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 07 Apr 1998 00:54:36 +0200 From: Gary Jennejohn Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hellmuth Michaelis writes: >AFAIK yet, the problems are based on several things: > > - isdnd is currently no able to handle simultaneous callins and > callouts (the callout for a callback destination goes out on > one B channel and before this call is terminated the callback > comes in on the other B channel). Changing isdnd to be able to > handle this situation is non-trivial. > this may also require some changes in the kernel. I'm willing to look into getting this working (I looked at a few months ago and still have a vague idea what's needed), unless someone else *really* wants to do it. I'm also thinking about doing this (from the TODO) - "- fix operation of close_allactive() in isdnd" since its current sorry state is basically my fault. Heck, Easter's coming - 4 day weekend :-) --- 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 From owner-freebsd-isdn Mon Apr 6 14:24:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA15893 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 14:24:43 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from uranus.factum-data.de (exim@[195.238.147.34]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA15884 for ; Mon, 6 Apr 1998 14:24:34 -0700 (PDT) (envelope-from p@znet.de) Received: from magnus.factum-data.de [195.238.147.51] (exim) by uranus.factum-data.de with smtp (Exim 1.82 #2) id 0yMJND-0002sO-00; Mon, 6 Apr 1998 23:24:11 +0200 Received: from pascal by magnus.factum-data.de with local (Exim 1.82 #2) id 0yMJMm-0000Il-00; Mon, 6 Apr 1998 23:23:44 +0200 Message-ID: <19980406232343.31646@magnus.factum-data.de> Date: Mon, 6 Apr 1998 23:23:43 +0200 From: Pascal Gienger To: hm@kts.org Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: unitlengthsrc=rates ignored? and: Problems with "FSM illegal state". References: <19980404142106.30341@magnus.factum-data.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: ; from Hellmuth Michaelis on Sun, Apr 05, 1998 at 08:07:03PM +0200 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Shorthold based on AOCD is currently not fully implemented in isdnd. > > Anyway, in case it were already fully implemented, it would still say > what it will use based on the rates file, because you know the unitlength > not before the second AOCD frame, so what do you do for the first unit ? > Right, a good guess :-) That was not the real problem. Problem is that I want isdnd to *IGNORE* AOCD-packets by typing "unitlengthsrc=rates", because Deutsche Telekom is not able to send me 240second-AOCD-Information on Saturday and Sunday afternoon. So ISDN accounting is always wrong (too expensive), 'cause AOCD packets are arriving every 150 seconds in these afternoons. PS: You are really doing a good job, you together. Ok there are bugs, and kernel hangs, but Windows Software or Teles Software would be RELEASE in that state and not alpha like i4b...... Pascal -- p@znet.de Factum Data - A woman without a man http://pascal.znet.de/ Pascal Gienger - is like a fish without 5734900@skyper.de (Subj!) Inselg. 13, 78462 KN - a bicycle... http://echo.znet.de:8888/ echo \8888:ed.tenz.ohce\\:ptth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Apr 6 14:33:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA16791 for freebsd-isdn-outgoing; Mon, 6 Apr 1998 14:33:18 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA16782 for ; Mon, 6 Apr 1998 14:33:10 -0700 (PDT) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.8/8.8.5) id XAA09241; Mon, 6 Apr 1998 23:33:12 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199804062133.XAA09241@rvc1.informatik.ba-stuttgart.de> Subject: Re: Callback with i4b In-Reply-To: <199804062254.AAA00904@peedub.muc.de> from Gary Jennejohn at "Apr 7, 98 00:54:36 am" To: garyj@muc.de Date: Mon, 6 Apr 1998 23:33:12 +0200 (MET DST) Cc: freebsd-isdn@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (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 > Hellmuth Michaelis writes: > >AFAIK yet, the problems are based on several things: > > > > - isdnd is currently no able to handle simultaneous callins and > > callouts (the callout for a callback destination goes out on > > one B channel and before this call is terminated the callback > > comes in on the other B channel). Changing isdnd to be able to > > handle this situation is non-trivial. > > > > this may also require some changes in the kernel. I'm willing to look > into getting this working (I looked at a few months ago and still have a > vague idea what's needed), unless someone else *really* wants to do it. Not me :-) Please go ahead ... > I'm also thinking about doing this (from the TODO) - > > "- fix operation of close_allactive() in isdnd" > > since its current sorry state is basically my fault. > > Heck, Easter's coming - 4 day weekend :-) Good for you and i4b. I'll have to visit my parents. Well, I like them, but ... BTW. What happened to your clock? Wolfgang To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Apr 7 03:24:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA02256 for freebsd-isdn-outgoing; Tue, 7 Apr 1998 03:24:23 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from casparc.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA02250 for ; Tue, 7 Apr 1998 03:24:20 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0yMUmL-00298XC; Tue, 7 Apr 98 11:34 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Tue, 7 Apr 1998 10:56:38 +0200 (CEST) (Smail-3.2.0.91 1997-Jan-14 #3 built 1998-Feb-14) Received: by bert.kts.org via sendmail with stdio id for freebsd-isdn@freebsd.org; Tue, 7 Apr 1998 10:53:45 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #7 built 1997-Jul-4) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: unitlengthsrc=rates ignored? and: Problems with "FSM illegal state". In-Reply-To: <19980406232343.31646@magnus.factum-data.de> from Pascal Gienger at "Apr 6, 98 11:23:43 pm" To: p@znet.de (Pascal Gienger) Date: Tue, 7 Apr 1998 10:53:45 +0200 (CEST) Cc: hm@kts.org, freebsd-isdn@FreeBSD.ORG Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL31H (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 Pascal Gienger wrote: > > Shorthold based on AOCD is currently not fully implemented in isdnd. > > > > Anyway, in case it were already fully implemented, it would still say > > what it will use based on the rates file, because you know the unitlength > > not before the second AOCD frame, so what do you do for the first unit ? > > Right, a good guess :-) > > That was not the real problem. Problem is that I want isdnd to *IGNORE* > AOCD-packets by typing "unitlengthsrc=rates" Ok, now i understand! hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe "Those who can, do. Those who can't, talk. And those who can't talk, talk about talking." (B. Shaw) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Apr 7 03:25:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA02434 for freebsd-isdn-outgoing; Tue, 7 Apr 1998 03:25:08 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from casparc.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA02403 for ; Tue, 7 Apr 1998 03:25:03 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0yMUq8-00298sC; Tue, 7 Apr 98 11:38 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Tue, 7 Apr 1998 11:11:41 +0200 (CEST) (Smail-3.2.0.91 1997-Jan-14 #3 built 1998-Feb-14) Received: by bert.kts.org via sendmail with stdio id for freebsd-isdn@freebsd.org; Tue, 7 Apr 1998 11:08:48 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #7 built 1997-Jul-4) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: Callback with i4b In-Reply-To: <199804062254.AAA00904@peedub.muc.de> from Gary Jennejohn at "Apr 7, 98 00:54:36 am" To: freebsd-isdn@FreeBSD.ORG (ISDN for BSD) Date: Tue, 7 Apr 1998 11:08:48 +0200 (CEST) Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL31H (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 Gary Jennejohn wrote: > > - isdnd is currently no able to handle simultaneous callins and > > callouts (the callout for a callback destination goes out on > > one B channel and before this call is terminated the callback > > comes in on the other B channel). Changing isdnd to be able to > > handle this situation is non-trivial. > > > > this may also require some changes in the kernel. No, i don't think so. I've had a look to the problem, but gave up temporarily because so much work is required. The kernel handles this situation fine, the problems are the datastructures in isdnd: The struct cfg_entry needs to be split up in two parts, one part containing the static and dynamic configuration for one logical link or in terms of isdnd, config entry. The other (part[s]) will be the (temporary) characteristic(s) of one or more (!) ISDN connections for that configured logical link. One or more means, that it may be one connection in case of a "normal" call; two connections in case of a callback/calledback entry and more than two in case of (future) channel bonding operations. What is needed is some form of static config entry, which has the start address of a dynamically allocated linked list describing the actual ISDN connections being active for that entry. When you start to implement this (which i did, but then stopped as i realized, how much work this will be), you will soon come to the point, where all the isdnd cdid management routines have to be rewritten, and all the routines accessing the dynamic part of the current isdnd's config entries. > I'm willing to look > into getting this working (I looked at a few months ago and still have a > vague idea what's needed), unless someone else *really* wants to do it. No no, just go ahead ! :-)))) hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe "Those who can, do. Those who can't, talk. And those who can't talk, talk about talking." (B. Shaw) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Apr 8 03:15:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA07140 for freebsd-isdn-outgoing; Wed, 8 Apr 1998 03:15:25 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA07119 for ; Wed, 8 Apr 1998 03:15:11 -0700 (PDT) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.8/8.8.5) id MAA15005 for FreeBSD-ISDN@FreeBSD.ORG; Wed, 8 Apr 1998 12:15:39 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199804081015.MAA15005@rvc1.informatik.ba-stuttgart.de> Subject: MD5...duplicate symbol To: FreeBSD-ISDN@FreeBSD.ORG (FreeBSD ISDN mailinglist) Date: Wed, 8 Apr 1998 12:15:38 +0200 (MET DST) X-Mailer: ELM [version 2.4ME+ PL30 (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 Hi, This only applies to FreeBSD current (3.0): You'll get error messages during kernel linking because md5c.c gets linked twice to the kernel, which results in duplicate symbol definitions. To fix it, delete the following two lines from your /sys/conf/files : kern/md5c.c optional sppp net/if_spppsubr.c optional sppp and run config YOUR_KERNEL_DEFINITION_FILE Here is a patch for FreeBSD/INSTALLATION including a hint: Wolfgang --- /home/helbig/src/i4b/FreeBSD/INSTALLATION Fri Apr 3 14:24:09 1998 +++ FreeBSD/INSTALLATION Wed Apr 8 12:00:20 1998 @@ -78,6 +78,7 @@ i4b/driver/i4b_ipr.c optional i4bipr i4b/driver/i4b_ctl.c optional i4bctl device-driver i4b/driver/i4b_isppp.c optional i4bisppp device-driver +# don't add the following two lines if you're running FreeBSD-current! kern/md5c.c optional sppp net/if_spppsubr.c optional sppp # support To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Apr 8 09:30:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA04782 for freebsd-isdn-outgoing; Wed, 8 Apr 1998 09:30:14 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA04756 for ; Wed, 8 Apr 1998 09:30:09 -0700 (PDT) (envelope-from arve.ronning@ah.telia.no) Received: from d1o203.telia.com (root@d1o203.telia.com [195.204.220.241]) by mailb.telia.com (8.8.8/8.8.8) with ESMTP id SAA11981 for ; Wed, 8 Apr 1998 18:30:04 +0200 (CEST) Received: from t7o201p29.telia.com (t7o201p29.telia.com [195.204.217.149]) by d1o203.telia.com (8.8.5/8.6.12) with SMTP id SAA01394 for ; Wed, 8 Apr 1998 18:30:01 +0200 (MET DST) X-Authentication-Warning: d1o203.telia.com: t7o201p29.telia.com [195.204.217.149] didn't use HELO protocol Message-ID: <352C2290.6FD4@ah.telia.no> Date: Wed, 08 Apr 1998 18:21:20 -0700 From: Arve Ronning X-Mailer: Mozilla 3.03 (Win16; I) MIME-Version: 1.0 To: freebsd-isdn@FreeBSD.ORG Subject: I4B & NAT Content-Type: text/plain; charset=us-ascii; name="UNTITLED.TXT" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="UNTITLED.TXT" Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Trying to build a router/gateway between my privat Ethernet and the Internet (via my ISP), I have problems with I4B or NAT (I think:). The 2.2.5-R kernel with options IPFIREWALL and IPDIVERT works fine with ISDN4BSD 0.50-alpha and firewall rule 'pass all from any to any'. However, when I add 'divert natd all from any to any via isppp0' and start natd, name server lookups to the ISP's NS don't work. Also, ping and nslookup fails from any other internal host. So: why doesn't this work ? (I know, it's probably a screw-up caused by my ignorance:). Any help would be appreciated. Any clues in the logs below ? Thanx for your time, -Arve 'natd -verbose -interface isppp0' logs: Ping Gate -> ISP -> Gate, OK Out [ICMP] 192.193.194.240 -> 10.0.0.1 aliased to 0.0.0.0 -> 10.0.0.1 In [ICMP] 10.0.0.1 -> 192.193.194.240 aliased to 10.0.0.1 -> 192.193.194.240 Nslookup Gate -> ISP -> ??, answer never reaches Gate Out [UDP] 192.193.194.240 -> 10.0.0.1 aliased to 0.0.0.0 -> 10.0.0.1 Out [UDP] 192.193.194.240 -> 10.0.0.1 aliased to 0.0.0.0 -> 10.0.0.1 Out [UDP] 192.193.194.240 -> 10.0.0.1 aliased to 0.0.0.0 -> 10.0.0.1 Ping Internal -> Gate -> ISP -> Gate, return never reaches Internal Out [ICMP] 172.16.3.40 -> 10.0.0.1 aliased to 0.0.0.0 -> 10.0.0.1 In [ICMP] 10.0.0.1 -> 192.193.194.240 aliased to 10.0.0.1 -> 192.193.194.240 Out [ICMP] 172.16.3.40 -> 10.0.0.1 aliased to 0.0.0.0 -> 10.0.0.1 In [ICMP] 10.0.0.1 -> 192.193.194.240 aliased to 10.0.0.1 -> 192.193.194.240 ipfw rules and routing tables: Gate# ipfw list 00100 divert 6668 ip from any to any via isppp0 00200 allow ip from any to any 65535 deny ip from any to any Gate# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default isppp0 USc 2 0 isppp0 0.0.0.1 default UH 0 0 isppp0 172.16.3/24 link#1 UC 0 0 172.16.3.40 8:0:2b:36:8:9d UHLW 3 2003 ed1 707 127.0.0.1 127.0.0.1 UH 0 0 lo0 Gate# netstat -in Name Mtu Network Address Ipkts Ierrs Opkts Oerrs ed1 1500 00.00.e8.a0.d4.09 3072 0 2029 0 ed1 1500 172.16.3/24 172.16.3.10 3072 0 2029 0 lp0* 1500 0 0 0 0 isppp 1500 51 4 79 0 isppp 1500 0/24 192.193.194.240 51 4 79 0 isppp 1500 0 0 0 0 isppp 1500 0 0 0 0 isppp 1500 0 0 0 0 ipr0* 1500 0 0 0 0 ipr1* 1500 0 0 0 0 ipr2* 1500 0 0 0 0 ipr3* 1500 0 0 0 0 lo0 16384 0 0 0 0 lo0 16384 127 127.0.0.1 0 0 0 0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Apr 8 09:45:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA08122 for freebsd-isdn-outgoing; Wed, 8 Apr 1998 09:45:52 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA08116 for ; Wed, 8 Apr 1998 09:45:48 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id SAA03325; Wed, 8 Apr 1998 18:39:25 +0200 (CEST) To: Arve Ronning cc: freebsd-isdn@FreeBSD.ORG Subject: Re: I4B & NAT In-reply-to: Your message of "Wed, 08 Apr 1998 18:21:20 PDT." <352C2290.6FD4@ah.telia.no> Date: Wed, 08 Apr 1998 18:39:24 +0200 Message-ID: <3323.892053564@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Also, ping and nslookup fails from any other internal host. > >So: why doesn't this work ? >(I know, it's probably a screw-up caused by my ignorance:). >Any help would be appreciated. > >Any clues in the logs below ? Did you remember to turn on ip forwarding in /etc/{rc.conf|sysconfig} ? -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "Drink MONO-tonic, it goes down but it will NEVER come back up!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Apr 8 12:12:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA04554 for freebsd-isdn-outgoing; Wed, 8 Apr 1998 12:12:23 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mailc.telia.com (root@mailc.telia.com [194.22.190.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA04548 for ; Wed, 8 Apr 1998 12:12:14 -0700 (PDT) (envelope-from arve.ronning@ah.telia.no) Received: from d1o203.telia.com (root@d1o203.telia.com [195.204.220.241]) by mailc.telia.com (8.8.8/8.8.8) with ESMTP id VAA15137 for ; Wed, 8 Apr 1998 21:12:10 +0200 (MET DST) Received: from t3o201p43.telia.com (t3o201p43.telia.com [195.204.216.163]) by d1o203.telia.com (8.8.5/8.6.12) with SMTP id VAA06732 for ; Wed, 8 Apr 1998 21:12:07 +0200 (MET DST) X-Authentication-Warning: d1o203.telia.com: t3o201p43.telia.com [195.204.216.163] didn't use HELO protocol Message-ID: <352C4A60.70A1@ah.telia.no> Date: Wed, 08 Apr 1998 21:11:12 -0700 From: Arve Ronning X-Mailer: Mozilla 3.03 (Win16; I) MIME-Version: 1.0 To: freebsd-isdn@FreeBSD.ORG Subject: [Fwd: Re: I4B & NAT] Content-Type: multipart/mixed; boundary="------------EFB1BB67D84" Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------EFB1BB67D84 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sorry, forgot to CC: the list :( -Arve --------------EFB1BB67D84 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <352C39D0.2EEC@ah.telia.no> Date: Wed, 08 Apr 1998 20:00:32 -0700 From: Arve Ronning X-Mailer: Mozilla 3.03 (Win16; I) MIME-Version: 1.0 To: Poul-Henning Kamp Subject: Re: I4B & NAT References: <3323.892053564@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Poul-Henning Kamp wrote: > > >Also, ping and nslookup fails from any other internal host. > > > >So: why doesn't this work ? > >(I know, it's probably a screw-up caused by my ignorance:). > >Any help would be appreciated. > > > >Any clues in the logs below ? > > Did you remember to turn on ip forwarding in /etc/{rc.conf|sysconfig} ? > Yes (or so I believe:), with the /etc/rc.conf line gateway_enable="YES" I believe that packets _are_ being forwarded from the local host 'Internal' to the ISP because natd says (from the original post): Out [ICMP] 172.16.3.40 -> 10.0.0.1 aliased to 0.0.0.0 -> 10.0.0.1 In [ICMP] 10.0.0.1 -> 192.193.194.240 aliased to 10.0.0.1 -> 192.193.194.240 where 'Internal' is 172.16.3.40; isppp0 on 'Gate' (my FreeBSD router/gateway box) is 192.193.194.240, and 10.0.0.1 is the ISP's host which I'm trying to ping. So I believe the exchange should be Out [ICMP] 172.16.3.40 -> 10.0.0.1 aliased to 0.0.0.0 -> 10.0.0.1 In [ICMP] 10.0.0.1 -> 192.193.194.240 aliased to 10.0.0.1 -> 172.16.3.40 ----------- Does this sound correct ? BTW, /etc/rc.conf also contains router_enable="NO" could that be my problem ? Regards. -Arve --------------EFB1BB67D84-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Apr 8 12:20:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA05161 for freebsd-isdn-outgoing; Wed, 8 Apr 1998 12:20:34 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA05151 for ; Wed, 8 Apr 1998 12:20:31 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id VAA03707; Wed, 8 Apr 1998 21:19:40 +0200 (CEST) To: Arve Ronning cc: freebsd-isdn@FreeBSD.ORG Subject: Re: [Fwd: Re: I4B & NAT] In-reply-to: Your message of "Wed, 08 Apr 1998 21:11:12 PDT." <352C4A60.70A1@ah.telia.no> Date: Wed, 08 Apr 1998 21:19:40 +0200 Message-ID: <3705.892063180@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> Did you remember to turn on ip forwarding in /etc/{rc.conf|sysconfig} ? >> >Yes (or so I believe:), with the /etc/rc.conf line >gateway_enable="YES" Sounds right. >I believe that packets _are_ being forwarded from the local host >'Internal' to the ISP because natd says (from the original post): I don't know natd, so you'll have to find somebody else to help you on this. >BTW, /etc/rc.conf also contains >router_enable="NO" >could that be my problem ? no. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "Drink MONO-tonic, it goes down but it will NEVER come back up!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Apr 8 13:29:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA13345 for freebsd-isdn-outgoing; Wed, 8 Apr 1998 13:29:24 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA13340 for ; Wed, 8 Apr 1998 13:29:22 -0700 (PDT) (envelope-from arve.ronning@ah.telia.no) Received: from d1o203.telia.com (root@d1o203.telia.com [195.204.220.241]) by mailb.telia.com (8.8.8/8.8.8) with ESMTP id WAA18860; Wed, 8 Apr 1998 22:29:15 +0200 (CEST) Received: from t7o201p44.telia.com (t7o201p44.telia.com [195.204.217.164]) by d1o203.telia.com (8.8.5/8.6.12) with SMTP id WAA23419; Wed, 8 Apr 1998 22:29:13 +0200 (MET DST) X-Authentication-Warning: d1o203.telia.com: t7o201p44.telia.com [195.204.217.164] didn't use HELO protocol Message-ID: <352C5C7C.364C@ah.telia.no> Date: Wed, 08 Apr 1998 22:28:28 -0700 From: Arve Ronning X-Mailer: Mozilla 3.03 (Win16; I) MIME-Version: 1.0 To: Poul-Henning Kamp CC: freebsd-isdn@FreeBSD.ORG Subject: Re: I4B & NAT References: <3705.892063180@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Poul-Henning Kamp wrote: > > >> Did you remember to turn on ip forwarding in /etc/{rc.conf|sysconfig} ? > >> > >Yes (or so I believe:), with the /etc/rc.conf line > >gateway_enable="YES" > > Sounds right. > > >I believe that packets _are_ being forwarded from the local host > >'Internal' to the ISP because natd says (from the original post): > > I don't know natd, so you'll have to find somebody else to help you > on this. > Ok, thanx for trying. There may be others on this list who could ---please ?? Regards -Arve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Apr 9 01:16:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA21934 for freebsd-isdn-outgoing; Thu, 9 Apr 1998 01:16:57 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA21925 for ; Thu, 9 Apr 1998 01:16:54 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (1286 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Thu, 9 Apr 1998 10:16:38 +0200 (METDST) (Smail-3.2.0.97 1997-Aug-19 #16 built 1997-Oct-22) Received: by hcswork.hcs.de (Smail3.1.29.0 #12) id m0yNCXE-0000bFC; Thu, 9 Apr 98 10:18 METDST Message-Id: From: hm@hcs.de (Hellmuth Michaelis) Subject: Re: I4B & NAT In-Reply-To: <352C2290.6FD4@ah.telia.no> from Arve Ronning at "Apr 8, 98 06:21:20 pm" To: arve.ronning@ah.telia.no (Arve Ronning) Date: Thu, 9 Apr 1998 10:18:12 +0200 (METDST) Cc: freebsd-isdn@FreeBSD.ORG Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (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 >From the keyboard of Arve Ronning: > The 2.2.5-R kernel with options IPFIREWALL and IPDIVERT works fine I'm sorry, i have no idea since i'm using ipfilter. hellmuth -- Hellmuth Michaelis Tel +49 40 559747-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 559747-77 Oldesloer Strasse 97-99 Mail hm@hcs.de 22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Apr 9 04:09:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA12464 for freebsd-isdn-outgoing; Thu, 9 Apr 1998 04:09:57 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from ns.EUnet-Bretagne.fr (ns.EUnet-Bretagne.fr [193.107.210.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA12448 for ; Thu, 9 Apr 1998 04:09:54 -0700 (PDT) (envelope-from Eric.Feillant@EUnet-Bretagne.fr) Received: from EUnet-Bretagne.fr (ericf.EUnet-Bretagne.fr [193.107.210.161]) by ns.EUnet-Bretagne.fr (8.8.7/8.8.7) with ESMTP id NAA10390; Thu, 9 Apr 1998 13:01:49 +0200 (MET DST) Message-ID: <352CAB62.4561B5C0@EUnet-Bretagne.fr> Date: Thu, 09 Apr 1998 13:05:06 +0200 From: Eric Feillant Organization: EUnet BRETAGNE groupe EUnet X-Mailer: Mozilla 4.03 [fr] (Win95; I) MIME-Version: 1.0 To: Poul-Henning Kamp CC: Arve Ronning , freebsd-isdn@FreeBSD.ORG Subject: Re: [Fwd: Re: I4B & NAT] References: <3705.892063180@critter.freebsd.dk> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Poul-Henning Kamp a écrit: > >> Did you remember to turn on ip forwarding in /etc/{rc.conf|sysconfig} ? > >> > >Yes (or so I believe:), with the /etc/rc.conf line > >gateway_enable="YES" > > Sounds right. > > >I believe that packets _are_ being forwarded from the local host > >'Internal' to the ISP because natd says (from the original post): > > I don't know natd, so you'll have to find somebody else to help you > on this. > > >BTW, /etc/rc.conf also contains > >router_enable="NO" > >could that be my problem ? > > no. > Can u send me u'r config file ? ( Natd.cf, ipfw.cf or rc.firewall, etc...) Eric. > -- > Poul-Henning Kamp FreeBSD coreteam member > phk@FreeBSD.ORG "Real hackers run -current on their laptop." > "Drink MONO-tonic, it goes down but it will NEVER come back up!" > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isdn" in the body of the message -- ========= ____ ===== Eric Feillant ======== / / / ___ ___ /_ ====== EUnet BRETAGNE ======= /---- / / / / /___/ / ======= 140, bd de Creach Gwen ====== /____ /___/ / / /___ /_ ======== 29000 QUIMPER, France ===== Bretagne ========= Tel:(+33) 298101620 Fax:(+33) 298101629 Eric.Feillant@EUnet.fr http://www.EUnet.fr Partenaire CISCO, CHECKPOINT (FIREWALL), BAY NETWORKS, NEWBRIDGE, SUN, CITRIX To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Apr 9 09:16:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA02511 for freebsd-isdn-outgoing; Thu, 9 Apr 1998 09:16:19 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from uriela.in-berlin.de (uriela.in-berlin.de [192.109.42.147]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA02411 for ; Thu, 9 Apr 1998 09:15:34 -0700 (PDT) (envelope-from nortobor.nostromo.in-berlin.de!ripley@never.mind.de) Received: by uriela.in-berlin.de (/\oo/\ Smail3.1.29.1 #29.8) from never.never.mind.de (193.101.72.4) with smtp id m0yNJyw-000LttC; Thu, 9 Apr 98 18:15 MET DST Received: by never.never.mind.de (linux Smail3.1.28.1 #1) id m0yNJyv-000ExbC; Thu, 9 Apr 98 18:15 MET DST Received: (from ripley@localhost) by nortobor.nostromo.in-berlin.de (8.8.7/8.8.7) id LAA12611; Thu, 9 Apr 1998 11:18:51 +0200 (CEST) (envelope-from ripley) Message-ID: <19980409111849.49940@nostromo.in-berlin.de> Date: Thu, 9 Apr 1998 11:18:49 +0200 From: "H. Eckert" To: freebsd-isdn@FreeBSD.ORG Subject: Re: I4B & NAT References: <352C2290.6FD4@ah.telia.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <352C2290.6FD4@ah.telia.no>; from Arve Ronning on Wed, Apr 08, 1998 at 06:21:20PM -0700 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Apr 08, 1998 at 06:21:20PM -0700, Arve Ronning wrote: > Gate# ipfw list > 00100 divert 6668 ip from any to any via isppp0 > 00200 allow ip from any to any > 65535 deny ip from any to any Compare with this: 02000 deny tcp from any 137-139 to any via ipi0 02001 deny udp from any 137-139 to any via ipi0 30000 divert 6668 ip from 10.175.55.0/24 to any via ipi0 30001 divert 6668 ip from any to via ipi0 > Gate# netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default isppp0 USc 2 0 isppp0 > 0.0.0.1 default UH 0 0 isppp0 Destination Gateway Flags Refs Use Netif Expire default 193.101.72.9 UGSc 2 71795 ipi0 193.101.72.9 UH 1 2478 ipi0 But then I'm not using PPP and have static IP-numbers on both sides of the connection. Greetings, Ripley -- http://www.in-berlin.de/User/nostromo/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Apr 10 13:41:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA05422 for freebsd-isdn-outgoing; Fri, 10 Apr 1998 13:41:23 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from maila.telia.com (root@maila.telia.com [194.236.189.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA05279 for ; Fri, 10 Apr 1998 13:40:32 -0700 (PDT) (envelope-from arve.ronning@ah.telia.no) Received: from d1o203.telia.com (root@d1o203.telia.com [195.204.220.241]) by maila.telia.com (8.8.8/8.8.8) with ESMTP id WAA02092; Fri, 10 Apr 1998 22:40:18 +0200 (CEST) Received: from t3o201p13.telia.com (t3o201p13.telia.com [195.204.216.133]) by d1o203.telia.com (8.8.5/8.6.12) with SMTP id WAA10304; Fri, 10 Apr 1998 22:40:11 +0200 (MET DST) X-Authentication-Warning: d1o203.telia.com: t3o201p13.telia.com [195.204.216.133] didn't use HELO protocol Message-ID: <352F00FD.14AE@ah.telia.no> Date: Fri, 10 Apr 1998 22:34:53 -0700 From: Arve Ronning X-Mailer: Mozilla 3.03 (Win16; I) MIME-Version: 1.0 To: Eric Feillant CC: freebsd-isdn@FreeBSD.ORG Subject: Re: I4B & NAT Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Eric Feillant wrote: > > Can u send me u'r config file ? ( Natd.cf, ipfw.cf or rc.firewall, etc...) > > Eric. > Ok... ------------- rc.firewall ------- # ISDN /usr/sbin/natd -log -interface isppp0 /sbin/ifconfig isppp0 down /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via isppp0 /sbin/ipfw add pass all from any to any --------------------------------- In case you need them, I also include rc.conf and isdnd.rc. TIA & Regards -Arve ------------- rc.conf ----------- #!/bin/sh # # This is rc.conf - a file full of useful variables that you can set # to change the default startup behavior of your system. # # All arguments must be in double or single quotes. # # $Id: rc.conf,v 1.1.2.27 1997/10/18 10:07:26 jkh Exp $ ############################################################## ### Important initial Boot-time options ##################### ############################################################## swapfile="NO" # Set to name of swapfile if aux swapfile desired. apm_enable="NO" # Set to YES if you want APM enabled. pccard_enable="NO" # Set to YES if you want to configure PCCARD devices. pccard_mem="DEFAULT" # If pccard_enable=YES, this is card memory address. pccard_ifconfig="NO" # Specialized pccard ethernet configuration (or NO). local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. ############################################################## ### Network configuration sub-section ###################### ############################################################## ### Basic network options: ### hostname="Gate.home.no" # Set this! nisdomainname="NO" # Set to NIS domain if using NIS (or NO). firewall_enable="YES" # ISDN # Set to YES to enable firewall functionality #firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) firewall_type="OPEN" # ISDN firewall_quiet="NO" # Set to YES to suppress rule display tcp_extensions="YES" # Allow RFC1323 & RFC1644 extensions (or NO). network_interfaces="ed1 isppp0 lo0" # List of network interfaces(lo0=loopback). ifconfig_ed1="inet 172.16.3.10 netmask 255.255.255.0" ifconfig_isppp0="link1 0.0.0.0 0.0.0.1 netmask 0xffffff00 debug" # ISDN ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. ### Network daemon (miscellaneous) & NFS options: ### syslogd_enable="YES" # Run syslog daemon (or NO). syslogd_flags="" # Flags to syslogd (if enabled). inetd_enable="YES" # Run the network daemon displatcher (or NO). inetd_flags="" # Optional flags to inetd. named_enable="NO" # Run named, the DNS server (or NO). named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled). kerberos_server_enable="NO" # Run a kerberos master server (or NO). rwhod_enable="NO" # Run the rwho daemon (or NO). amd_enable="NO" # Run amd service with $amd_flags (or NO). amd_flags="-a /net -c 1800 -k i386 -d my.domain -l syslog /host /etc/amd.map" nfs_client_enable="NO" # This host is an NFS client (or NO). nfs_client_flags="-n 4" # Flags to nfsiod (if enabled). nfs_server_enable="NO" # This host is an NFS server (or NO). nfs_server_flags="-u -t 4" # Flags to nfsd (if enabled). mountd_flags="-r" # Flags to mountd (if NFS server enabled). nfs_reserved_port_only="NO" # Provide NFS only on secure port (or NO). rpc_lockd_enable="NO" # Run NFS rpc.lockd (*broken!*) if nfs_server. rpc_statd_enable="YES" # Run NFS rpc.statd if nfs_server (or NO). portmap_enable="YES" # Run the portmapper service (or NO). portmap_flags="" # Flags to portmap (if enabled). xtend_enable="NO" # Run the X-10 power controller daemon. xtend_flags="" # Flags to xtend (if enabled). ### Network Time Services options: ### timed_enable="NO" # Run the time daemon (or NO). timed_flags="" # Flags to timed (if enabled). ntpdate_enable="NO" # Run the ntpdate to sync time (or NO). ntpdate_flags="" # Flags to ntpdate (if enabled). xntpd_enable="NO" # Run xntpd Network Time Protocol (or NO). xntpd_flags="" # Flags to xntpd (if enabled). tickadj_enable="NO" # Run tickadj (or NO). tickadj_flags="-Aq" # Flags to tickadj (if enabled). # Network Information Services (NIS) options: ### nis_client_enable="NO" # We're an NIS client (or NO). nis_client_flags="" # Flags to ypbind (if enabled). nis_ypset_enable="NO" # Run ypset at boot time (or NO). nis_ypset_flags="" # Flags to ypset (if enabled). nis_server_enable="NO" # We're an NIS server (or NO). nis_server_flags="" # Flags to ypserv (if enabled). nis_ypxfrd_enable="NO" # Run rpc.ypxfrd at boot time (or NO). nis_ypxfrd_flags="" # Flags to rpc.ypxfrd (if enabled). nis_yppasswdd_enable="NO" # Run rpc.yppasswdd at boot time (or NO). nis_yppasswdd_flags="" # Flags to rpc.yppasswdd (if enabled). ### Network routing options: ### defaultrouter="NO" # Set to default gateway (or NO). static_routes="" # Set to static route list (or leave empty). gateway_enable="YES" # ISDN # Set to YES if this host will be a gateway. router_enable="NO" # Set to YES to enable a routing daemon. router="routed" # Name of routing daemon to use if enabled. router_flags="-q" # Flags for routing daemon. mrouted_enable="NO" # Do multicast routing (see /etc/mrouted.conf). ipxgateway_enable="NO" # Set to YES to enable IPX routing. ipxrouted_enable="NO" # Set to YES to run the IPX routing daemon. ipxrouted_flags="" # Flags for IPX routing daemon. arpproxy_all="" # obsolete kernel option ARP_PROXY_ALL equiv. ############################################################## ### System console options ################################# ############################################################## keymap="NO" # keymap in /usr/share/syscons/keymaps/* (or NO). keyrate="NO" # keyboard rate to: slow, normal, fast (or NO). keybell="NO" # bell to duration.pitch or normal or visual (or NO). keychange="NO" # function keys default values (or NO). cursor="NO" # cursor type {normal|blink|destructive} (or NO). scrnmap="NO" # screen map in /usr/share/syscons/scrnmaps/* (or NO). font8x16="NO" # font 8x16 from /usr/share/syscons/fonts/* (or NO). font8x14="NO" # font 8x14 from /usr/share/syscons/fonts/* (or NO). font8x8="NO" # font 8x8 from /usr/share/syscons/fonts/* (or NO). blanktime="NO" # blank time (in seconds) or "NO" to turn it off. saver="NO" # screen saver desired: blank/green/snake/star/NO. moused_type="NO" # See man page for rc.conf(5) for available settings. moused_port="/dev/cuaa0" # Set to your mouse port (required if mousetype set). moused_flags="" # Any additional flags to moused. ############################################################## ### Miscellaneous administrative options ################### ############################################################## cron_enable="YES" # Run the periodic job daemon. lpd_enable="NO" # Run the line printer daemon. lpd_flags="" # Flags to lpd (if enabled). sendmail_enable="YES" # Run the sendmail daemon (or NO). sendmail_flags="-bd -q30m" # -bd is pretty mandatory. dumpdev="NO" # Device name to crashdump to (if enabled). check_quotas="NO" # Check quotas (or NO). accounting_enable="NO" # Turn on process accounting (or NO). ibcs2_enable="NO" # Ibcs2 (SCO) emulation loaded at startup (or NO). linux_enable="NO" # Linux emulation loaded at startup (or NO). rand_irqs="NO" # Stir the entropy pool (eg: "5 11" or NO). ############################################################## ### Allow local configuration override at the very end here ## ############################################################## if [ -f /etc/rc.conf.local ]; then . /etc/rc.conf.local fi --------------------------------- ------------- isdnd.rc ---------- #========================================================================= # SYSTEM section: isdnd global configuration parameters #========================================================================= system useacctfile = yes # generate accouting info to file acctall = on # generate info for everything acctfile = /var/log/isdnd.acct # name & location of accounting file rtprio = 25 # modify isdnd's priority #======================================================================= # sPPP #====================================================================== entry name = PPP usrdevicename = isppp usrdeviceunit = 0 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = local-phone-dialout = remote-phone-dialout = remdial-handling = first dialin-reaction = ignore dialout-type = normal b1protocol = hdlc idletime-incoming = 240 idletime-outgoing = 30 ratetype = 0 unitlength = 60 unitlengthsrc = conf dialretries = 3 dialrandincr = on recoverytime = 25 usedown = off downtries = 2 downtime = 30 --------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Apr 10 14:27:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA18121 for freebsd-isdn-outgoing; Fri, 10 Apr 1998 14:27:49 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from maila.telia.com (root@maila.telia.com [194.236.189.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA17976 for ; Fri, 10 Apr 1998 14:26:57 -0700 (PDT) (envelope-from arve.ronning@ah.telia.no) Received: from d1o203.telia.com (root@d1o203.telia.com [195.204.220.241]) by maila.telia.com (8.8.8/8.8.8) with ESMTP id XAA15372; Fri, 10 Apr 1998 23:26:42 +0200 (CEST) Received: from t2o201p46.telia.com (t2o201p46.telia.com [195.204.216.106]) by d1o203.telia.com (8.8.5/8.6.12) with SMTP id XAA20049; Fri, 10 Apr 1998 23:26:40 +0200 (MET DST) X-Authentication-Warning: d1o203.telia.com: t2o201p46.telia.com [195.204.216.106] didn't use HELO protocol Message-ID: <352F0C58.24E6@ah.telia.no> Date: Fri, 10 Apr 1998 23:23:20 -0700 From: Arve Ronning X-Mailer: Mozilla 3.03 (Win16; I) MIME-Version: 1.0 To: Eric Feillant CC: freebsd-isdn@FreeBSD.ORG Subject: Re: I4B & NAT Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Can u send me u'r config file ? ( Natd.cf, ipfw.cf or rc.firewall, etc...) > Argh... I forgot to include this file, which I'm using to start/stop the ISDN line: --------------------------------- #!/bin/sh if [ -f /var/run/isdnd.pid ] then echo 'Stopping ISDN line' kill `cat /var/run/isdnd.pid` ifconfig isppp0 down route delete default echo 'ISDN line Stopped' else echo 'Starting ISDN line' spppcontrol isppp0 myauthproto=pap myauthname=<<>>\ myauthkey=<<>> hisauthproto=none callin /usr/local/bin/isdnd -d0xf9 ifconfig isppp0 up route add default -interface isppp0 echo 'ISDN line Started' fi --------------------------------- -Arve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Apr 10 16:13:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA07046 for freebsd-isdn-outgoing; Fri, 10 Apr 1998 16:13:32 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA06938 for ; Fri, 10 Apr 1998 16:13:19 -0700 (PDT) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.8/8.8.5) id BAA00432 for FreeBSD-ISDN@FreeBSD.ORG; Sat, 11 Apr 1998 01:13:05 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199804102313.BAA00432@rvc1.informatik.ba-stuttgart.de> Subject: layer 1 rework To: FreeBSD-ISDN@FreeBSD.ORG (FreeBSD ISDN mailinglist) Date: Sat, 11 Apr 1998 01:13:05 +0200 (MET DST) X-Mailer: ELM [version 2.4ME+ PL30 (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 Hi, This is a rework of layer 1: - layer 1 is not any more activated during boot time, instead it is activated when needed -- i. e. its activated, when a data request is issued by layer 2. - a deactivate request from the S-interface (NT) is respected now. - the routine isic_isac_enable_clk() is not needed anymore and hence deleted. - in ph_data_req() more code is proteced from interrupts, and a bogus check (sc->sc_obuf != NULL) is removed. - mph_deactivate_req() is ready to be called from layer 2, to deactivate layer 1 if a disconnection happened. After mph_deactivate_req() is called, the net may deactivate layer 1, (if the S0-bus is not needed for other connections) mph_deactivate_req() is not called from layer 2. This is a diff against i4b_00.51 . It won't apply cleanly against an already patched version of i4b_00.51, i. e. the one which made it compile under FreeBSD-current. Wolfgang --- /home/helbig/src/i4b/layer1/i4b_l1fsm.c Thu Mar 19 20:36:55 1998 +++ layer1/i4b_l1fsm.c Fri Apr 10 23:06:05 1998 @@ -221,6 +221,8 @@ PH_Act_Ind(sc->sc_unit); MPH_Act_Ind(sc->sc_unit); + + isic_isac_l1_cmd(sc, CMD_AR8); /* activate request needed by ISAC */ T3_stop(sc); } @@ -238,6 +240,8 @@ MPH_Act_Ind(sc->sc_unit); MPH_Error_Ind(sc->sc_unit, 2); + + isic_isac_l1_cmd(sc, CMD_AR8); /* activate request needed by ISAC */ T3_stop(sc); } @@ -254,6 +258,8 @@ MPH_Act_Ind(sc->sc_unit); + isic_isac_l1_cmd(sc, CMD_AR10); /* activate request needed by ISAC */ + T3_stop(sc); } @@ -270,6 +276,8 @@ MPH_Act_Ind(sc->sc_unit); MPH_Error_Ind(sc->sc_unit, 2); + + isic_isac_l1_cmd(sc, CMD_AR10); /* activate request needed by ISAC */ T3_stop(sc); } @@ -290,8 +298,6 @@ F_PU2(struct isic_softc *sc) { DBGL1(L1_F_MSG, "F_PU", ("FSM function F_PU executing\n")) - - isic_isac_l1_cmd(sc, CMD_AR8); /* activate layer 1 */ } /*---------------------------------------------------------------------------* @@ -302,7 +308,7 @@ { DBGL1(L1_F_MSG, "F_DR", ("FSM function F_DR executing\n")) - isic_isac_l1_cmd(sc, CMD_TIM); /* activate layer 1 */ + isic_isac_l1_cmd(sc, CMD_DIU); /* power down ISAC */ MPH_Deact_Ind(sc->sc_unit); --- /home/helbig/src/i4b/layer1/i4b_l1.c Tue Mar 31 11:41:35 1998 +++ layer1/i4b_l1.c Fri Apr 10 23:13:49 1998 @@ -175,43 +175,33 @@ if(m == NULL) /* failsafe */ return (0); + s = SPLI4B(); + if(sc->sc_I430state != ST_F7) /* layer 1 running ? */ { DBGL1(L1_I_ERR, "ph_data_req", ("Not in ST_F7, sc->sc_I430state = %s\n", isic_printstate(sc))) /* timer T3 start !!! */ - if(isic_isac_enable_clk(sc) == 0) - isic_isac_l1_cmd(sc, CMD_AR8); +#if 0 if(freeflag == MBUF_FREE) i4b_Dfreembuf(m); return(0); - } - - if(sc->sc_obuf != NULL) /* transmitter currently busy ? */ - { - - DBGL1(L1_I_ERR, "ph_data_req", ("sc->sc_obuf != NULL, sc->sc_I430state = %s\n", isic_printstate(sc))) - - if(freeflag == MBUF_FREE) - i4b_Dfreembuf(m); - - return (0); +#endif + isic_isac_l1_cmd(sc, CMD_AR8); } if(sc->sc_state & ISAC_TX_ACTIVE) { if(sc->sc_obuf2 == NULL) { - s = SPLI4B(); sc->sc_obuf2 = m; /* save mbuf ptr */ if(freeflag) sc->sc_freeflag2 = 1; /* IRQ must mfree */ else sc->sc_freeflag2 = 0; /* IRQ must not mfree */ - splx(s); DBGL1(L1_I_MSG, "ph_data_req", ("using 2nd ISAC TX buffer, state = %s\n", isic_printstate(sc))) @@ -222,9 +212,14 @@ hdr.type = TRC_CH_D; hdr.dir = FROM_TE; hdr.count = ++sc->sc_trace_dcount; +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + getmicrotime(&hdr.time); +#else hdr.time = time; +#endif MPH_Trace_Ind(&hdr, m->m_len, m->m_data); } + splx(s); return(1); } @@ -233,6 +228,7 @@ if(freeflag == MBUF_FREE) i4b_Dfreembuf(m); + splx(s); return (0); } @@ -243,11 +239,14 @@ hdr.type = TRC_CH_D; hdr.dir = FROM_TE; hdr.count = ++sc->sc_trace_dcount; +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + getmicrotime(&hdr.time); +#else hdr.time = time; +#endif MPH_Trace_Ind(&hdr, m->m_len, m->m_data); } - s = SPLI4B(); sc->sc_state |= ISAC_TX_ACTIVE; /* set transmitter busy flag */ @@ -315,8 +314,7 @@ { /* timer T3 start !!! */ - if(isic_isac_enable_clk(sc) == 0) - isic_isac_l1_cmd(sc, CMD_AR8); + isic_isac_l1_cmd(sc, CMD_AR8); } return(1); } @@ -327,6 +325,14 @@ static int mph_deactivate_req(int unit) { +#ifdef __FreeBSD__ + struct isic_softc *sc = &isic_sc[unit]; +#else + struct isic_softc *sc = isic_find_sc(unit); +#endif + + isic_isac_l1_cmd(sc, CMD_DIU); + return(0); } --- /home/helbig/src/i4b/layer1/i4b_isac.c Tue Mar 31 12:00:45 1998 +++ layer1/i4b_isac.c Fri Apr 10 23:16:38 1998 @@ -100,6 +100,7 @@ isic_isac_irq(struct isic_softc *sc, int ista) { register u_char c = 0; + DBGL1(L1_F_MSG, "isic_isac_irq", ("ista =%#x\n", ista)) if(ista & ISAC_ISTA_EXI) /* extended interrupt */ { @@ -183,7 +184,11 @@ hdr.type = TRC_CH_D; hdr.dir = FROM_NT; hdr.count = ++sc->sc_trace_dcount; +#if defined(__FreeBSD__) && __FreeBSD__ >= 3 + getmicrotime(&hdr.time); +#else hdr.time = time; +#endif MPH_Trace_Ind(&hdr, sc->sc_ibuf->m_len, sc->sc_ibuf->m_data); } @@ -442,77 +447,6 @@ } /*---------------------------------------------------------------------------* - * L1 ISAC enable clocks - *---------------------------------------------------------------------------*/ -int -isic_isac_enable_clk(struct isic_softc *sc) -{ - u_char bitset; - u_char spcr; - - int count; - int i; - - bitset = (ISAC_READ(I_STAR)) & ISAC_STAR_BVS; - - count = 0; - - for(i=0; i < 500; i++) - { - if(((ISAC_READ(I_STAR)) & ISAC_STAR_BVS) != bitset) - { - if(++count > 6) - { - DBGL1(L1_I_SETUP, "isic_isac_enable_clk", ("clocks already running, return (i=%d,count=%d)\n",i,count)) - return(0); /* clocks were running */ - } - - i = 0; - - bitset = (ISAC_READ(I_STAR)) & ISAC_STAR_BVS; - } - } - - DBGL1(L1_I_SETUP, "isic_isac_enable_clk", ("clocks not running, starting clocks\n")) - - if(sc->sc_isac_version != ISAC_VA) - { - DBGL1(L1_I_SETUP, "isic_isac_enable_clk", ("ISAC version B, set IDC bit\n")) - - ISAC_WRITE(I_SQXR, ISAC_SQXR_IDC); - } - - spcr = ISAC_READ(I_SPCR); - - DBGL1(L1_I_SETUP, "isic_isac_enable_clk", ("SPCR = 0x%x\n", spcr)) - - ISAC_WRITE(I_SPCR, spcr | ISAC_SPCR_SPU); - - isic_isac_l1_cmd(sc, CMD_TIM); - - while((((ISAC_READ(I_CIRR)) >> 2) & 0x0f) != ISAC_CIRR_IPU) - { - if(++i > 1000) - break; - } - - if(i < 1000) - isic_next_state(sc, EV_PU); - - DBGL1(L1_I_SETUP, "isic_isac_enable_clk", ("PU loop left, i = %d\n", i)) - - ISAC_WRITE(I_SPCR, spcr); - - if(sc->sc_isac_version != ISAC_VA) - { - DBGL1(L1_I_SETUP, "isic_isac_enable_clk", ("ISAC version B, clear IDC bit\n")) - - ISAC_WRITE(I_SQXR, 0x00); - } - return(1); /* clocks were not running */ -} - -/*---------------------------------------------------------------------------* * L1 ISAC register setup *---------------------------------------------------------------------------*/ static void @@ -669,13 +603,6 @@ isic_isac_init(struct isic_softc *sc) { isic_isac_setup(sc); /* setup registers */ - - DELAY(SEC_DELAY / 5); - - /* activate Layer 1 */ - - if(isic_isac_enable_clk(sc) == 0) - isic_isac_l1_cmd(sc, CMD_AR8); return(0); } --- /home/helbig/src/i4b/layer1/i4b_l1.h Wed Apr 1 13:48:30 1998 +++ layer1/i4b_l1.h Fri Apr 10 23:43:01 1998 @@ -352,7 +352,6 @@ extern void isic_hscx_cmd( struct isic_softc *sc, int h_chan, unsigned char cmd ); extern void isic_hscx_waitxfw( struct isic_softc *sc, int h_chan ); extern void isic_init_linktab ( struct isic_softc *sc ); -extern int isic_isac_enable_clk ( struct isic_softc *sc ); extern int isic_isac_init ( struct isic_softc *sc ); extern void isic_isac_irq ( struct isic_softc *sc, int r ); extern void isic_isac_l1_cmd ( struct isic_softc *sc, int command ); @@ -387,7 +386,6 @@ extern void isic_hscx_cmd __P(( struct isic_softc *sc, int h_chan, unsigned char cmd )); extern void isic_hscx_waitxfw __P(( struct isic_softc *sc, int h_chan )); extern void isic_init_linktab __P((struct isic_softc *sc)); -extern int isic_isac_enable_clk __P((struct isic_softc *sc)); extern int isic_isac_init __P((struct isic_softc *sc)); extern void isic_isac_irq __P((struct isic_softc *sc, int r)); extern void isic_isac_l1_cmd __P((struct isic_softc *sc, int command)); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Apr 10 23:38:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA14383 for freebsd-isdn-outgoing; Fri, 10 Apr 1998 23:38:12 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA14372 for ; Fri, 10 Apr 1998 23:38:05 -0700 (PDT) (envelope-from rock@cs.uni-sb.de) Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.8.8/98010601) with ESMTP id IAA06622; Sat, 11 Apr 1998 08:38:01 +0200 (CEST) Received: from cs.uni-sb.de (acc2-223.telip.uni-sb.de [134.96.112.223]) by cs.uni-sb.de (8.8.8/1998022700) with ESMTP id IAA29696; Sat, 11 Apr 1998 08:38:00 +0200 (CEST) Message-ID: <352F0FA0.97AB9019@cs.uni-sb.de> Date: Sat, 11 Apr 1998 08:37:20 +0200 From: "D. Rock" X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.6 i86pc) MIME-Version: 1.0 To: Arve Ronning CC: freebsd-isdn@FreeBSD.ORG Subject: Re: I4B & NAT References: <352C2290.6FD4@ah.telia.no> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Arve Ronning wrote: > > Trying to build a router/gateway between my privat Ethernet and > the Internet (via my ISP), I have problems with I4B or NAT (I think:). > > The 2.2.5-R kernel with options IPFIREWALL and IPDIVERT works fine > with ISDN4BSD 0.50-alpha and firewall rule 'pass all from any to any'. > However, when I add 'divert natd all from any to any via isppp0' > and start natd, name server lookups to the ISP's NS don't work. > > Also, ping and nslookup fails from any other internal host. I had exactly the same problems. natd doesn't seem to get a message if the IP address of the interface changes (after successful dialout). I have to manually send a HUP signal to natd. I do this via the following (ugly?!) hack: I added the following two lines to the system section of isdnd.rc: regexpr = "call active" # look for matches in log messages regprog = hup_natd # execute program whan match is found The small script "hup_natd", located in /etc/isdn, looks like: #!/bin/sh pid=`cat /var/run/natd.pid` kill -HUP $pid sleep 3 kill -HUP $pid sleep 5 kill -HUP $pid It looks ugly, but at least for me it works. The two sleeps are necessary since I have to wait for ppp negotiation to complete (I don't get a message from isdnd for that). If I'm lucky I have my connection after 3 seconds, but 8 seconds should suffice for worst case (the first HUP without a sleep sometimes even succeeded on an slow 486/33 with 8MB RAM, more HUPs don't hurt). I'm really interested in some more elegant method. Daniel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sat Apr 11 03:24:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA15828 for freebsd-isdn-outgoing; Sat, 11 Apr 1998 03:24:58 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA15822 for ; Sat, 11 Apr 1998 03:24:55 -0700 (PDT) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.8/8.8.5) id MAA00303 for FreeBSD-ISDN@FreeBSD.ORG; Sat, 11 Apr 1998 12:25:00 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199804111025.MAA00303@rvc1.informatik.ba-stuttgart.de> Subject: first ICMP reply To: FreeBSD-ISDN@FreeBSD.ORG (FreeBSD ISDN mailinglist) Date: Sat, 11 Apr 1998 12:24:59 +0200 (MET DST) X-Mailer: ELM [version 2.4ME+ PL30 (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 Hi, For whatever reason, if doing a ping -c1 via a raw IP interface, the ICMP reply is not received. The diff, which is a major rework of isic_bchannel_start(), fixes this. I know, Hellmuth, you don't like this one, but still... It reduces duplicate code and simplifies isic_bchannel_start(), thus enhances readability and maintainability. There is one caveat: isic_bchannel_start() must not be called if nothing is enqueued for transmission. The only place where this might happen is in driver/i4b_isppp.c. This patch includes a fix for this as well. Again, this diff is against i4b-00.51, if you run the -current version of i4b-00.51 you'll have to patch some hunks manually. Happy Easter, Wolfgang --- /home/helbig/src/i4b/layer1/i4b_bchan.c Wed Mar 11 10:35:55 1998 +++ layer1/i4b_bchan.c Sat Apr 11 01:41:20 1998 @@ -179,179 +179,29 @@ #endif register isic_Bchan_t *chan = &sc->sc_chan[h_chan]; - register int next_len; - register int len; int s; - int activity = -1; - int cmd = 0; s = SPLI4B(); /* enter critical section */ - if(chan->state & HSCX_TX_ACTIVE) /* already running ? */ - { - splx(s); - return; /* yes, leave */ - } - - /* get next mbuf from queue */ - - IF_DEQUEUE(&chan->tx_queue, chan->out_mbuf_head); - - if(chan->out_mbuf_head == NULL) /* queue empty ? */ - { - splx(s); /* leave critical section */ - return; /* yes, exit */ - } - - /* init current mbuf values */ - - chan->out_mbuf_cur = chan->out_mbuf_head; - chan->out_mbuf_cur_len = chan->out_mbuf_cur->m_len; - chan->out_mbuf_cur_ptr = chan->out_mbuf_cur->m_data; - - /* activity indicator for timeout handling */ - - if(chan->bprot == BPROT_NONE) - { - if(!(isic_hscx_silence(chan->out_mbuf_cur->m_data, chan->out_mbuf_cur->m_len))) - activity = ACT_TX; - } - else - { - activity = ACT_TX; - } - - chan->state |= HSCX_TX_ACTIVE; /* we start transmitting */ - - if(sc->sc_trace & TRACE_B_TX) /* if trace, send mbuf to trace dev */ - { - i4b_trace_hdr_t hdr; - hdr.unit = unit; - hdr.type = (h_chan == HSCX_CH_A ? TRC_CH_B1 : TRC_CH_B2); - hdr.dir = FROM_TE; - hdr.count = ++sc->sc_trace_bcount; - hdr.time = time; - MPH_Trace_Ind(&hdr, chan->out_mbuf_cur->m_len, chan->out_mbuf_cur->m_data); - } - - len = 0; /* # of chars put into HSCX tx fifo this time */ - - /* - * fill the HSCX tx fifo with data from the current mbuf. if - * current mbuf holds less data than HSCX fifo length, try to - * get the next mbuf from (a possible) mbuf chain. if there is - * not enough data in a single mbuf or in a chain, then this - * is the last mbuf and we tell the HSCX that it has to send - * CRC and closing flag - */ - - while((len < HSCX_FIFO_LEN) && chan->out_mbuf_cur) - { - /* - * put as much data into the HSCX fifo as is - * available from the current mbuf - */ - - if((len + chan->out_mbuf_cur_len) >= HSCX_FIFO_LEN) - next_len = HSCX_FIFO_LEN - len; - else - next_len = chan->out_mbuf_cur_len; - -#ifdef NOTDEF - printf("b:mh=%x, mc=%x, mcp=%x, mcl=%d l=%d nl=%d # ", - chan->out_mbuf_head, - chan->out_mbuf_cur, - chan->out_mbuf_cur_ptr, - chan->out_mbuf_cur_len, - len, - next_len); -#endif - - /* wait for tx fifo write enabled */ - - isic_hscx_waitxfw(sc, h_chan); - - /* write what we have from current mbuf to HSCX fifo */ - - HSCX_WRFIFO(h_chan, chan->out_mbuf_cur_ptr, next_len); - - len += next_len; /* update # of bytes written */ - chan->txcount += next_len; /* statistics */ - chan->out_mbuf_cur_ptr += next_len; /* data ptr */ - chan->out_mbuf_cur_len -= next_len; /* data len */ - - /* - * in case the current mbuf (of a possible chain) data - * has been put into the fifo, check if there is a next - * mbuf in the chain. If there is one, get ptr to it - * and update the data ptr and the length - */ - - if((chan->out_mbuf_cur_len <= 0) && - ((chan->out_mbuf_cur = chan->out_mbuf_cur->m_next) != NULL)) - { - chan->out_mbuf_cur_ptr = chan->out_mbuf_cur->m_data; - chan->out_mbuf_cur_len = chan->out_mbuf_cur->m_len; - - if(sc->sc_trace & TRACE_B_TX) - { - i4b_trace_hdr_t hdr; - hdr.unit = unit; - hdr.type = (h_chan == HSCX_CH_A ? TRC_CH_B1 : TRC_CH_B2); - hdr.dir = FROM_TE; - hdr.count = ++sc->sc_trace_bcount; - hdr.time = time; - MPH_Trace_Ind(&hdr, chan->out_mbuf_cur->m_len, chan->out_mbuf_cur->m_data); - } - } - } - - /* - * if there is either still data in the current mbuf and/or - * there is a successor on the chain available issue just - * a XTF (transmit) command to HSCX. if ther is no more - * data available from the current mbuf (-chain), issue - * an XTF and an XME (message end) command which will then - * send the CRC and the closing HDLC flag sequence - */ - - if(chan->out_mbuf_cur && (chan->out_mbuf_cur_len > 0)) - { - /* - * more data available, send current fifo out. - * next xfer to HSCX tx fifo is done in the - * HSCX interrupt routine. - */ - - cmd |= HSCX_CMDR_XTF; - } - else - { - /* end of mbuf chain */ - - if(chan->bprot == BPROT_NONE) - cmd |= HSCX_CMDR_XTF; - else - cmd |= HSCX_CMDR_XTF | HSCX_CMDR_XME; - - i4b_Bfreembuf(chan->out_mbuf_head); /* free mbuf chain */ - - chan->out_mbuf_head = NULL; - chan->out_mbuf_cur = NULL; - chan->out_mbuf_cur_ptr = NULL; - chan->out_mbuf_cur_len = 0; - } - - /* call timeout handling routine */ - - if(activity == ACT_RX || activity == ACT_TX) - (*chan->drvr_linktab->bch_activity)(chan->drvr_linktab->unit, activity); - - if(cmd) - isic_hscx_cmd(sc, h_chan, cmd); - - splx(s); + if(!(chan->state & HSCX_TX_ACTIVE)) /* already running ? */ + { + /* init mbuf values */ + if (chan->out_mbuf_head != NULL) + DBGL1(L1_ERROR, "isic_bchannel_start", + ("out_mbuf_head != NULL")); + + DBGL1(L1_MESSAGE, "isic_bchannel_start", ("entered\n")); + + chan->out_mbuf_cur = chan->out_mbuf_head = NULL; + chan->out_mbuf_cur_len = 0; + chan->out_mbuf_cur_ptr = NULL; + + /* provoke an XPR interrupt */ + isic_hscx_cmd(sc, h_chan, HSCX_CMDR_XRES); + } + + splx(s); } /*---------------------------------------------------------------------------* --- /home/helbig/src/i4b/driver/i4b_isppp.c Thu Mar 19 20:36:51 1998 +++ driver/i4b_isppp.c Sat Apr 11 01:58:28 1998 @@ -93,6 +93,7 @@ #include #endif +#include #include #include @@ -305,7 +306,7 @@ switch(cmd) { case SIOCSIFFLAGS: #if 0 /* never used ??? */ - x = splimp(); + x = SPLI4B(); if ((ifp->if_flags & IFF_UP) == 0) UNTIMEOUT(i4bisppp_timeout, (void *)sp, sc->sc_ch); splx(x); @@ -324,6 +325,7 @@ { struct i4bisppp_softc *sc = ifp->if_softc; struct mbuf *m; + int enqueued = 0; int s; int unit = IFP2UNIT(ifp); @@ -333,9 +335,8 @@ if(sc->sc_state != ST_CONNECTED) return; - s = splimp(); + s = SPLI4B(); /*ifp->if_flags |= IFF_OACTIVE; - need to clear this somewhere */ - splx(s); while ((m = sppp_dequeue(&sc->sc_if)) != NULL) { #if NBPFILTER > 0 @@ -351,12 +352,16 @@ microtime(&ifp->if_lastchange); IF_ENQUEUE(isdn_linktab[unit]->tx_queue, m); + enqueued = 1; sc->sc_if.if_obytes += m->m_pkthdr.len; sc->sc_outb += m->m_pkthdr.len; sc->sc_if.if_opackets++; } - isdn_linktab[unit]->bch_tx_start(isdn_linktab[unit]->unit, + splx(s); + + if (enqueued) + isdn_linktab[unit]->bch_tx_start(isdn_linktab[unit]->unit, isdn_linktab[unit]->channel); } @@ -469,7 +474,7 @@ { struct i4bisppp_softc *sc = &i4bisppp_softc[unit]; struct sppp *sp = &sc->sc_if_un.scu_sp; - int s = splimp(); + int s = SPLI4B(); sc->sc_cdp = (call_desc_t *)cdp; sc->sc_state = ST_CONNECTED; @@ -503,7 +508,7 @@ struct i4bisppp_softc *sc = &i4bisppp_softc[unit]; struct sppp *sp = &sc->sc_if_un.scu_sp; - int s = splimp(); + int s = SPLI4B(); /* new stuff to check that the active channel is being closed */ if (cd != sc->sc_cdp) @@ -618,7 +623,7 @@ } #endif /* NBPFILTER > 0 */ - s = splimp(); + s = SPLI4B(); sppp_input(&sc->sc_if, m); @@ -644,7 +649,7 @@ static void i4bisppp_activity(int unit, int rxtx) { - i4bisppp_softc[unit].sc_cdp->last_active_time = time.tv_sec; + i4bisppp_softc[unit].sc_cdp->last_active_time = SECOND; } /*---------------------------------------------------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sat Apr 11 04:42:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA24189 for freebsd-isdn-outgoing; Sat, 11 Apr 1998 04:42:11 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from linteuto.teuto.de (linteuto.teuto.de [194.77.23.26]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA24184 for ; Sat, 11 Apr 1998 04:42:08 -0700 (PDT) (envelope-from martin@rumolt.teuto.de) Received: from rumolt.teuto.de (root@rumolt.teuto.de [194.77.23.161]) by linteuto.teuto.de (8.8.8/8.8.8) with ESMTP id NAA05002 for ; Sat, 11 Apr 1998 13:42:04 +0200 Received: (from martin@localhost) by rumolt.teuto.de (8.8.8/8.8.7) id NAA03632 for freebsd-isdn@FreeBSD.ORG; Fri, 10 Apr 1998 13:25:00 +0200 (MEST) From: Martin Husemann Message-Id: <199804101125.NAA03632@rumolt.teuto.de> Subject: I4B on EISA machines (NetBSD specific) To: freebsd-isdn@FreeBSD.ORG Date: Fri, 10 Apr 1998 13:25:00 +0200 (MEST) Organization: Crusaders Catering Services Inc. X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [*** THIS IS NetBSD SPECIFIC! ***] Just for your information (probably noone besides me is running an affected system): You may have problems using an AVM A1 or Fritz! card or a US Robotics Sportster TA intern in an EISA system running NetBSD 1.3.1 (or 1.3). There are bugs in some NetBSD EISA bus attachments resulting in an io-extend conflict with the ISDN card. The ISDN card will not probe and attach in this case. Moving the EISA card from slot 1 to a different slot will solve the problem with the AVM cards, but not with the US Robotics. I've fixed this for the Adaptec 1742 driver and send-pr'ed it, so -current should be OK soon. Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sat Apr 11 06:55:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA02958 for freebsd-isdn-outgoing; Sat, 11 Apr 1998 06:55:56 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from maild.telia.com (root@maild.telia.com [194.22.190.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA02950 for ; Sat, 11 Apr 1998 06:55:54 -0700 (PDT) (envelope-from arve.ronning@ah.telia.no) Received: from d1o203.telia.com (root@d1o203.telia.com [195.204.220.241]) by maild.telia.com (8.8.8/8.8.8) with ESMTP id PAA21538; Sat, 11 Apr 1998 15:55:50 +0200 (CEST) Received: from t3o201p1.telia.com (t3o201p1.telia.com [195.204.216.121]) by d1o203.telia.com (8.8.5/8.6.12) with SMTP id PAA03719; Sat, 11 Apr 1998 15:55:47 +0200 (MET DST) X-Authentication-Warning: d1o203.telia.com: t3o201p1.telia.com [195.204.216.121] didn't use HELO protocol Message-ID: <352FF31B.73BF@ah.telia.no> Date: Sat, 11 Apr 1998 15:47:55 -0700 From: Arve Ronning X-Mailer: Mozilla 3.03 (Win16; I) MIME-Version: 1.0 To: "D. Rock" CC: freebsd-isdn@FreeBSD.ORG Subject: Re: I4B & NAT References: <352C2290.6FD4@ah.telia.no> <352F0FA0.97AB9019@cs.uni-sb.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org D. Rock wrote: > > Arve Ronning wrote: > > > > Trying to build a router/gateway between my privat Ethernet and > > the Internet (via my ISP), I have problems with I4B or NAT (I think:). > > > > and start natd, name server lookups to the ISP's NS don't work. > > Also, ping and nslookup fails from any other internal host. > I had exactly the same problems. natd doesn't seem to get a message if > the IP address of the interface changes (after successful dialout). Well, it (natd) _does_ pick up the dynamic address supplied for isppp0. Try 'natd -verbose ...' and you'll see it. Otherwise I agree, there is certainly something missing in natd's functionality, or maybe sppp does'nt supply what it's supposed to ?? > I have to manually send a HUP signal to natd. I do this via the following > (ugly?!) hack: YES...super; strange but correct. It works when I send natd a -HUP after sppp is up. Thanx for the tip. However, natd must be -HUPed _every_ time sppp has been down (idle timeout) and comes back up! > I'm really interested in some more elegant method. So am I, let's see what may come out of the discussion on the list. > > Daniel Thanx again for the contribution. Regards -Arve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sat Apr 11 07:02:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA03704 for freebsd-isdn-outgoing; Sat, 11 Apr 1998 07:02:44 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA03697 for ; Sat, 11 Apr 1998 07:02:41 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (1428 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Sat, 11 Apr 1998 16:02:28 +0200 (METDST) (Smail-3.2.0.97 1997-Aug-19 #16 built 1997-Oct-22) Received: by hcswork.hcs.de (Smail3.1.29.0 #12) id m0yO0t1-0000bTC; Sat, 11 Apr 98 16:04 METDST Message-Id: From: hm@hcs.de (Hellmuth Michaelis) Subject: Re: first ICMP reply In-Reply-To: <199804111025.MAA00303@rvc1.informatik.ba-stuttgart.de> from Wolfgang Helbig at "Apr 11, 98 12:24:59 pm" To: helbig@Informatik.BA-Stuttgart.DE (Wolfgang Helbig) Date: Sat, 11 Apr 1998 16:04:03 +0200 (METDST) Cc: FreeBSD-ISDN@FreeBSD.ORG Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (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 >From the keyboard of Wolfgang Helbig: > For whatever reason, if doing a ping -c1 via a raw IP interface, > the ICMP reply is not received. I do receive a reply with a ping -c1 and 0.51. And i'd like to know the reason why you don't ;-) hellmuth -- Hellmuth Michaelis Tel +49 40 559747-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 559747-77 Oldesloer Strasse 97-99 Mail hm@hcs.de 22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message