From owner-freebsd-isdn Sun Aug 16 06:38:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA11771 for freebsd-isdn-outgoing; Sun, 16 Aug 1998 06:38:57 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.6.53]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA11766 for ; Sun, 16 Aug 1998 06:38:55 -0700 (PDT) (envelope-from cristian@tweetie.xs4all.nl) Received: from tweetie.xs4all.nl (tweetie.xs4all.nl [194.109.15.63]) by smtp3.xs4all.nl (8.8.8/8.8.8) with SMTP id PAA24693 for ; Sun, 16 Aug 1998 15:38:20 +0200 (CEST) Received: from tweetie.xs4all.nl ([127.0.0.1]) by tweetie.xs4all.nl with SMTP (Mailtraq/1.0.0.990) id TWT45670199 for freebsd-isdn@freebsd.org; Sun, 16 Aug 1998 15:40:14 +0200 Received: by tweetie.xs4all.nl with Microsoft Mail id <01BDC92C.29270910@tweetie.xs4all.nl>; Sun, 16 Aug 1998 15:40:14 +0200 Message-ID: <01BDC92C.29270910@tweetie.xs4all.nl> From: Cristian van Ee To: "'freebsd-isdn@freebsd.org'" Subject: subscribe freebsd-isdn Date: Sun, 16 Aug 1998 15:40:12 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Hops: 1 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org majordomo@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Aug 17 08:34:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA15609 for freebsd-isdn-outgoing; Mon, 17 Aug 1998 08:34:48 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gilberto.physik.RWTH-Aachen.DE (gilberto.physik.rwth-aachen.de [137.226.30.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA15353 for ; Mon, 17 Aug 1998 08:34:03 -0700 (PDT) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: (from kuku@localhost) by gilberto.physik.RWTH-Aachen.DE (8.8.8/8.8.7) id RAA00124 for freebsd-isdn@freebsd.org; Mon, 17 Aug 1998 17:33:09 +0200 (MEST) (envelope-from kuku) Date: Mon, 17 Aug 1998 17:33:09 +0200 (MEST) From: Christoph Kukulies Message-Id: <199808171533.RAA00124@gilberto.physik.RWTH-Aachen.DE> To: freebsd-isdn@FreeBSD.ORG Subject: no buffer space available Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At the moment my dialup site (RWTH) seems to have trouble with their hardware/lines or whatever. I4B tries to dial out every few seconds to no avail and then comes back with cause 34. Also trying to traceroute or ping gives 'no buffer space available' which looks like memory leaking somewhere. Is it a kernel or isdn4bsd issue? -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Aug 17 10:50:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA08673 for freebsd-isdn-outgoing; Mon, 17 Aug 1998 10:50:30 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gatekeeper.rhein.de (gatekeeper.rhein.de [193.175.27.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA08648 for ; Mon, 17 Aug 1998 10:50:24 -0700 (PDT) (envelope-from is@jocelyn.rhein.de) Received: from jocelyn.rhein.de (jocelyn.rhein.de [193.175.27.218]) by gatekeeper.rhein.de (8.9.1a/8.9.1-ws3) with ESMTP id TAA22099; Mon, 17 Aug 1998 19:49:29 +0200 (MET DST) Received: (from is@localhost) by jocelyn.rhein.de (8.8.8/8.8.8) id TAA01788; Mon, 17 Aug 1998 19:49:07 +0200 (MEST) Message-ID: <19980817194907.A1672@jocelyn.rhein.de> Date: Mon, 17 Aug 1998 19:49:07 +0200 From: Ignatios Souvatzis To: Christoph Kukulies , freebsd-isdn@FreeBSD.ORG Subject: Re: no buffer space available References: <199808171533.RAA00124@gilberto.physik.RWTH-Aachen.DE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199808171533.RAA00124@gilberto.physik.RWTH-Aachen.DE>; from Christoph Kukulies on Mon, Aug 17, 1998 at 05:33:09PM +0200 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Aug 17, 1998 at 05:33:09PM +0200, Christoph Kukulies wrote: > > At the moment my dialup site (RWTH) seems to have trouble > with their hardware/lines or whatever. > > I4B tries to dial out every few seconds to no avail > and then comes back with cause 34. > > Also trying to traceroute or ping gives 'no buffer space available' > which looks like memory leaking somewhere. Is it a kernel or > isdn4bsd issue? uhm... no, I guess, you just fill up your buffer space with the packets stored during the unsuccesful dial attempts. -is To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Aug 17 11:02:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12105 for freebsd-isdn-outgoing; Mon, 17 Aug 1998 11:02:44 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mail.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA12077 for ; Mon, 17 Aug 1998 11:02:40 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from casparc.ppp.net (casparc2.ppp.net [194.64.12.42]) by mail.ppp.net (8.8.8/8.8.8) with SMTP id UAA22819; Mon, 17 Aug 1998 20:02:02 +0200 Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0z8TbW-002ZkFC; Mon, 17 Aug 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 ; Mon, 17 Aug 1998 19:27:54 +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; Mon, 17 Aug 1998 19:27:54 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #1 built 1998-Jun-6) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: no buffer space available In-Reply-To: <199808171533.RAA00124@gilberto.physik.RWTH-Aachen.DE> from Christoph Kukulies at "Aug 17, 98 05:33:09 pm" To: kuku@gilberto.physik.RWTH-Aachen.DE (Christoph Kukulies) Date: Mon, 17 Aug 1998 19:27:54 +0200 (CEST) Cc: freebsd-isdn@FreeBSD.ORG Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL38 (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 Christoph Kukulies wrote: > Also trying to traceroute or ping gives 'no buffer space available' > which looks like memory leaking somewhere. Is it a kernel or > isdn4bsd issue? This is "just" the i4b network interfaces' send buffer queue full. It is the normal behaviour for this kind of situation. hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe A duck is like a bicycle because they both have two wheels except the duck (terry@cs.weber.edu) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Aug 17 13:31:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA12957 for freebsd-isdn-outgoing; Mon, 17 Aug 1998 13:31:50 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from colin.muc.de (colin.muc.de [193.174.4.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id NAA12904 for ; Mon, 17 Aug 1998 13:31:07 -0700 (PDT) (envelope-from jhs@jhs.muc.de) Received: from jhs.muc.de ([193.174.4.84]) by colin.muc.de with SMTP id <140562-2>; Mon, 17 Aug 1998 19:01:46 +0200 Received: (from jhs@localhost) by jhs.muc.de (8.8.8/8.8.8) id SAA01234; Mon, 17 Aug 1998 18:14:10 +0200 (MET DST) (envelope-from jhs) Date: Mon, 17 Aug 1998 18:14:10 +0200 Message-Id: <199808171614.SAA01234@jhs.muc.de> To: hm@kts.org cc: freebsd-isdn@FreeBSD.ORG Subject: Patches to add names instead of numbers to i4b monitor and log From: Julian Stacey Reply-To: Julian Stacey X-Net: jhs@muc.de jhs@freebsd.org www.muc.de/~jhs/ www.freebsd.org/~jhs/ X-Tel: Phone: +49.89.268616 Fax: +49.89.2608126 X-Post: J. Stacey, Vector Systems Ltd, Holz Str 27d, D 80469 Muenchen, Germany Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Hellmuth, cc freebsd-isdn@freebsd.org Here are i4b patches to display phone caller's names instead of numbers to the i4b monitor screen and log ( isdnd -f & tail -f /var/log/isdn ). I wrote it this afternoon, so I expect I'll tweak it later, it works on my isdnd 00.63 + FreeBSD 2.2.6-RELEASE. It's only 10K, so appended. Hopefully it can be integrated into master sources, once it meets approval. Any later versions I generate will appear in my web trees: http://www.muc.de/~jhs/src/bsd/fixes/FreeBSD/src/i4b_gen/i4b/isdnd/ http://www.freebsd.org/~jhs/src/bsd/fixes/FreeBSD/src/i4b_gen/i4b/isdnd/ (long names, but my automatic customiser knows to grab it from there) & I'll mail any signifcant changes to hm@kts.org PS The current generic code (& mine too) says "[from] 8178955331" when (I think) I'd prefer it to say "from 08178955331" but I didn't change this, so /etc/isdn/isdntel.alias need to have leading zeroes stripped off, which is unfortunate as that's not compatible with /usr/ports/misc/estic (ISDN TK-Anlage PBX control program) & probably other local tables of numbers. Perhaps hm@ can restore the leading zero in next release please ? Thanks. ------------- cd src/i4b/isdnd ln -s ../isdntel/alias.c ln -s ../isdntel/defs.h (If/when i4b is integrated into FreeBSD (& NetBSD etc) we'll need to do something else, as links are not allowed in FreeBSD src/ ) *** 00.63/src/i4b/isdnd/Makefile Mon Aug 17 17:30:36 1998 --- numbers_to_names/src/i4b/isdnd/Makefile Mon Aug 17 15:27:12 1998 *************** *** 8,14 **** PROG = isdnd SRCS = rc_parse.y rc_scan.l main.c rc_config.c log.c curses.c \ ! process.c rates.c msghdl.c fsm.c support.c timer.c \ exec.c dial.c monitor.c pcause.c .if (${BSDTYPE} == "FreeBSD" && ${RELEASE} == "3.0-CURRENT") --- 8,14 ---- PROG = isdnd SRCS = rc_parse.y rc_scan.l main.c rc_config.c log.c curses.c \ ! process.c rates.c alias.c msghdl.c fsm.c support.c timer.c \ exec.c dial.c monitor.c pcause.c .if (${BSDTYPE} == "FreeBSD" && ${RELEASE} == "3.0-CURRENT") *** 00.63/src/i4b/isdnd/main.c Mon Aug 17 17:30:13 1998 --- numbers_to_names/src/i4b/isdnd/main.c Mon Aug 17 16:15:14 1998 *************** *** 52,57 **** --- 52,62 ---- #include "isdnd.h" #undef MAIN + #define ALIASFILE "/etc/isdn/isdntel.alias" + /* tons of stuff I don't want in ../isdntel/defs.h, + so I'm leaving hm@kts.org to move this duplicate ALIASFILE define + to somewhere common, later */ + #ifdef I4B_EXTERNAL_MONITOR #ifdef I4B_NOTCPIP_MONITOR *************** *** 91,101 **** int remotesockfd = -1; /* tcp/ip monitor socket */ #endif #endif ! while ((i = getopt(argc, argv, "bmc:d:fFlL:r:s:t:u:?")) != EOF) { switch (i) { case 'b': do_bell = 1; break; --- 96,112 ---- int remotesockfd = -1; /* tcp/ip monitor socket */ #endif #endif + void init_alias(char *filename) ; + char *aliasfile = ALIASFILE; ! while ((i = getopt(argc, argv, "a:bmc:d:fFlL:r:s:t:u:?")) != EOF) { switch (i) { + case 'a': + aliasfile = optarg; + break; + case 'b': do_bell = 1; break; *************** *** 333,338 **** --- 344,353 ---- } #endif + /* Initialise aliases table (not necessary for functionality, + but names look nicer than numbers in log & monitor display mode */ + init_alias(aliasfile); + srandom(580403); /* init random number gen */ mloop( /* enter loop of no return .. */ *************** *** 379,388 **** { fprintf(stderr, "\n"); fprintf(stderr, "isdnd - i4b ISDN manager daemon, version %02d.%02d, compiled %s %s\n", VERSION, REL, __DATE__, __TIME__); #ifdef DEBUG ! fprintf(stderr, " usage: isdnd [-b] [-c file] [-d level] [-F]\n"); #else ! fprintf(stderr, " usage: isdnd [-b] [-c file] [-F]\n"); #endif fprintf(stderr, " [-f [-r dev] [-t termtype]] [-u time]\n"); fprintf(stderr, " [-l] [-L file] [-s facility] [-m]\n"); --- 394,404 ---- { fprintf(stderr, "\n"); fprintf(stderr, "isdnd - i4b ISDN manager daemon, version %02d.%02d, compiled %s %s\n", VERSION, REL, __DATE__, __TIME__); + fprintf(stderr, " usage: isdnd -a alias file name (def: %s)\n", ALIASFILE); #ifdef DEBUG ! fprintf(stderr, " [-b] [-c file] [-d level] [-F]\n"); #else ! fprintf(stderr, " [-b] [-c file] [-F]\n"); #endif fprintf(stderr, " [-f [-r dev] [-t termtype]] [-u time]\n"); fprintf(stderr, " [-l] [-L file] [-s facility] [-m]\n"); *** 00.63/src/i4b/isdnd/msghdl.c Mon Aug 17 17:30:13 1998 --- numbers_to_names/src/i4b/isdnd/msghdl.c Mon Aug 17 15:51:01 1998 *************** *** 46,63 **** #include "isdnd.h" /*---------------------------------------------------------------------------* * handle incoming CONNECT_IND (=SETUP) message *---------------------------------------------------------------------------*/ void msg_connect_ind(msg_connect_ind_t *mp) { cfg_entry_t *cep; if((cep = find_entry(mp->header.cdid, mp->controller, mp->channel, mp->bprot, mp->dst_telno, mp->src_telno, mp->scr_ind)) == NULL) { ! log(LL_CHD, "%05d incoming call from %s to %s", ! CDID_UNUSED, mp->src_telno, mp->dst_telno); sendm_connect_resp(NULL, mp->header.cdid, SETUP_RESP_DNTCRE, 0); return; } --- 46,116 ---- #include "isdnd.h" /*---------------------------------------------------------------------------* + * fatal error exit + *---------------------------------------------------------------------------*/ + void + fatal(char *fmt, ...) + { + #if 0 /* Original from ../isdntel/main.c */ + va_list ap; + + va_start(ap, fmt); + + if(curses_ready) + { + move(LINES-1, 0); + clrtoeol(); + refresh(); + endwin(); + } + + fprintf(stderr, "\nFatal error: "); + vfprintf(stderr, fmt, ap); + fprintf(stderr, "\n\n"); + + va_end(ap); + + exit(1); + #endif + log(LL_CHD, "%05d Fatal alias error", CDID_UNUSED ); + do_exit(1); + } + + /*---------------------------------------------------------------------------* + * convert phone numbers to names where possible + *---------------------------------------------------------------------------*/ + char * + number_name(char *number) + { + char * get_alias(char *number) ; + char *tmp ; + + if ((tmp = get_alias(number)) != NULL ) return tmp ; + else return number ; + } + + /*---------------------------------------------------------------------------* * handle incoming CONNECT_IND (=SETUP) message *---------------------------------------------------------------------------*/ void msg_connect_ind(msg_connect_ind_t *mp) { cfg_entry_t *cep; + char *src_telna, *dst_telna ; + + src_telna = number_name(mp->src_telno); + dst_telna = number_name(mp->dst_telno); if((cep = find_entry(mp->header.cdid, mp->controller, mp->channel, mp->bprot, mp->dst_telno, mp->src_telno, mp->scr_ind)) == NULL) { ! /* I jhs presume if you configure /etc/isdn/isdnd.rc to accept ! anonymous data calls, that find_entry returns not NULL ! in which case "non data" below is correct, ! hm@ plse confirm */ ! /* "non data" = phone or fax (etc ?) */ ! log(LL_CHD, "%05d non data call in from %s to %s", ! CDID_UNUSED, src_telna, dst_telna ); sendm_connect_resp(NULL, mp->header.cdid, SETUP_RESP_DNTCRE, 0); return; } *************** *** 65,71 **** if(cep->inout == DIR_OUTONLY) { log(LL_CHD, "%05d %s incoming call from %s to %s not allowed by configuration!", ! CDID_UNUSED, cep->name, mp->src_telno, mp->dst_telno); sendm_connect_resp(NULL, mp->header.cdid, SETUP_RESP_DNTCRE, 0); return; } --- 118,124 ---- if(cep->inout == DIR_OUTONLY) { log(LL_CHD, "%05d %s incoming call from %s to %s not allowed by configuration!", ! CDID_UNUSED, cep->name, src_telna, dst_telna); sendm_connect_resp(NULL, mp->header.cdid, SETUP_RESP_DNTCRE, 0); return; } *************** *** 77,90 **** { case REACT_ACCEPT: log(LL_CHD, "%05d %s accepting: incoming call from %s to %s", ! mp->header.cdid, cep->name, mp->src_telno, mp->dst_telno); next_state(cep, EV_MCI); break; case REACT_REJECT: log(LL_CHD, "%05d %s rejecting: incoming call from %s to %s", CDID_UNUSED, cep->name, ! mp->src_telno, mp->dst_telno); sendm_connect_resp(cep, mp->header.cdid, SETUP_RESP_REJECT, (CAUSET_I4B << 8) | CAUSE_I4B_REJECT); cep->cdid = CDID_UNUSED; --- 130,144 ---- { case REACT_ACCEPT: log(LL_CHD, "%05d %s accepting: incoming call from %s to %s", ! mp->header.cdid, cep->name, ! src_telna, dst_telna); next_state(cep, EV_MCI); break; case REACT_REJECT: log(LL_CHD, "%05d %s rejecting: incoming call from %s to %s", CDID_UNUSED, cep->name, ! src_telna, dst_telna); sendm_connect_resp(cep, mp->header.cdid, SETUP_RESP_REJECT, (CAUSET_I4B << 8) | CAUSE_I4B_REJECT); cep->cdid = CDID_UNUSED; *************** *** 93,99 **** case REACT_IGNORE: log(LL_CHD, "%05d %s ignoring: incoming call from %s to %s", CDID_UNUSED, cep->name, ! mp->src_telno, mp->dst_telno); sendm_connect_resp(NULL, mp->header.cdid, SETUP_RESP_DNTCRE, 0); break; --- 147,153 ---- case REACT_IGNORE: log(LL_CHD, "%05d %s ignoring: incoming call from %s to %s", CDID_UNUSED, cep->name, ! src_telna, dst_telna); sendm_connect_resp(NULL, mp->header.cdid, SETUP_RESP_DNTCRE, 0); break; *************** *** 102,115 **** { log(LL_CHD, "%05d %s alerting: incoming call from %s to %s", mp->header.cdid, cep->name, ! mp->src_telno, mp->dst_telno); next_state(cep, EV_ALRT); } else { log(LL_CHD, "%05d %s answering: incoming call from %s to %s", mp->header.cdid, cep->name, ! mp->src_telno, mp->dst_telno); next_state(cep, EV_MCI); } break; --- 156,169 ---- { log(LL_CHD, "%05d %s alerting: incoming call from %s to %s", mp->header.cdid, cep->name, ! src_telna, dst_telna); next_state(cep, EV_ALRT); } else { log(LL_CHD, "%05d %s answering: incoming call from %s to %s", mp->header.cdid, cep->name, ! src_telna, dst_telna); next_state(cep, EV_MCI); } break; *************** *** 119,125 **** { log(LL_CHD, "%05d %s reserved: incoming call from %s to %s", CDID_UNUSED, cep->name, ! mp->src_telno, mp->dst_telno); sendm_connect_resp(cep, mp->header.cdid, SETUP_RESP_REJECT, (CAUSET_I4B << 8) | CAUSE_I4B_NORMAL); /* no state change */ --- 173,179 ---- { log(LL_CHD, "%05d %s reserved: incoming call from %s to %s", CDID_UNUSED, cep->name, ! src_telna, dst_telna); sendm_connect_resp(cep, mp->header.cdid, SETUP_RESP_REJECT, (CAUSET_I4B << 8) | CAUSE_I4B_NORMAL); /* no state change */ *************** *** 128,134 **** { log(LL_CHD, "%05d %s callback: incoming call from %s to %s", CDID_UNUSED, cep->name, ! mp->src_telno, mp->dst_telno); sendm_connect_resp(cep, mp->header.cdid, SETUP_RESP_REJECT, (CAUSET_I4B << 8) | CAUSE_I4B_NORMAL); cep->last_release_time = time(NULL); --- 182,188 ---- { log(LL_CHD, "%05d %s callback: incoming call from %s to %s", CDID_UNUSED, cep->name, ! src_telna, dst_telna); sendm_connect_resp(cep, mp->header.cdid, SETUP_RESP_REJECT, (CAUSET_I4B << 8) | CAUSE_I4B_NORMAL); cep->last_release_time = time(NULL); Julian Julian H. Stacey http://www.muc.de/~jhs/ Free email privacy encryption package: http://www.ifi.uio.no/pgp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Aug 17 13:34:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA13460 for freebsd-isdn-outgoing; Mon, 17 Aug 1998 13:34:37 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mail.rwth-aachen.de (mail.RWTH-Aachen.DE [137.226.144.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA13431 for ; Mon, 17 Aug 1998 13:34:15 -0700 (PDT) (envelope-from gvw@void1.dascon.de) Received: from void1.dascon.de (s3m171.dialup.RWTH-Aachen.DE) by mail.rwth-aachen.de (PMDF V5.1-10 #30440) with ESMTP id <01J0Q5WJISJE0000HE@mail.rwth-aachen.de> for freebsd-isdn@freebsd.org; Mon, 17 Aug 1998 22:34:55 +0200 Received: (from gvw@localhost) by void1.dascon.de (8.8.7/8.8.7) id WAA00388 for freebsd-isdn@freebsd.org; Mon, 17 Aug 1998 22:33:51 +0200 (CEST envelope-from gvw) Date: Mon, 17 Aug 1998 22:33:50 +0200 (CEST) From: Guido von Walter Subject: Problems with ppp and idletimeout To: freebsd-isdn@FreeBSD.ORG Message-id: <199808172033.WAA00388@void1.dascon.de> MIME-version: 1.0 X-Mailer: ELM [version 2.4ME+ PL32 (25)] Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi. I don't know if my last mail has not reached the list, everybody was on holiday, the problem is too hard or the question was simply too stupid to be worth the hassle. Whatever the reason, I have not received a single response. This is a very rare occasion on this technically excellent and usually very helpful list. Once again my problem: After my ISP decided to switch to PPP only, I had to move from bisdn with raw HDLC to i4b with sppp. Installation was a breeze, I was pleasantly surprised with the bisdn torture still fresh in mind. My configuration: 486 PC running FreeBSD 2.2.6-RELEASE, Teles 16.3 non-PnP card, i4b 0.63. The problem we are now experiencing is that isdnd does not hang up after idletime because there is constant lcp echo traffic between the ppp server on the isp's side and isppp. The debug output from isppp0 shows Aug 12 09:50:43 firewall /kernel: isppp0: lcp input(opened): Aug 12 09:50:44 firewall /kernel: isppp0: got lcp echo req, sending echo rep Aug 12 09:50:44 firewall /kernel: isppp0: lcp output every ten seconds. Corresponding to this tcpdump -i isppp0 gives 11:15:58.249799 [|ip] 11:15:58.249859 [|ip] I have read the recent discussion of this in the list archives, but there was no solution mentioned. I suspect that if isdnd is responsible for the hangup timeout, it should ignore these packets, or alternatively the timeout should be handled by isppp. Any ideas ? Guido -- Guido von Walter . Suddenly Dilbert is sucked mailto:gvw@brainaid.dascon.de . into the "Boss Zone" where http://brainaid.dascon.de/~gvw . time and logic do not apply To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Aug 17 23:47:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA07809 for freebsd-isdn-outgoing; Mon, 17 Aug 1998 23:47:58 -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 XAA07804 for ; Mon, 17 Aug 1998 23:47:54 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (2425 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Tue, 18 Aug 1998 08:47:00 +0200 (METDST) (Smail-3.2.0.101 1997-Dec-17 #2 built 1998-Jun-26) Received: by hcswork.hcs.de (Smail3.1.29.0 #12) id m0z8faF-0000dkC; Tue, 18 Aug 98 08:49 METDST Message-Id: From: hm@hcs.de (Hellmuth Michaelis) Subject: Re: Problems with ppp and idletimeout In-Reply-To: <199808172033.WAA00388@void1.dascon.de> from Guido von Walter at "Aug 17, 98 10:33:50 pm" To: gvw@brainaid.dascon.de (Guido von Walter) Date: Tue, 18 Aug 1998 08:49:31 +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 Guido von Walter: > I don't know if my last mail has not reached the list, everybody was on > holiday, the problem is too hard or the question was simply too stupid to > be worth the hassle. Whatever the reason, I have not received a single > response. This is a very rare occasion on this technically excellent and > usually very helpful list. Usually, no response means that noone has an idea ... ;-) > Aug 12 09:50:43 firewall /kernel: isppp0: lcp input(opened): en=12 22-f6-d9-74-0-6-3f-7b> > Aug 12 09:50:44 firewall /kernel: isppp0: got lcp echo req, sending echo rep > Aug 12 09:50:44 firewall /kernel: isppp0: lcp output 35-d9-ec-9c-0-6-3f-7b> > > every ten seconds. In this case, the kernel part sees traffic and this means to it that it must not hangup because something is still going on. > I have read the recent discussion of this in the list archives, but there was > no solution mentioned. It seems that someone who has this problem should/must add some code (to i4b_isppp.c and perhaps other parts) to qualify packets and give the kernel timeout mechanism hints, which traffic is "real" traffic and which traffic can be safely ignored for timeout purposes. 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 Tue Aug 18 05:35:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA13558 for freebsd-isdn-outgoing; Tue, 18 Aug 1998 05:35:34 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gatekeeper.rhein.de (gatekeeper.rhein.de [193.175.27.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA13548 for ; Tue, 18 Aug 1998 05:35:30 -0700 (PDT) (envelope-from is@jocelyn.rhein.de) Received: from jocelyn.rhein.de (jocelyn.rhein.de [193.175.27.218]) by gatekeeper.rhein.de (8.9.1a/8.9.1-ws3) with ESMTP id OAA09621; Tue, 18 Aug 1998 14:34:32 +0200 (MET DST) Received: (from is@localhost) by jocelyn.rhein.de (8.8.8/8.8.8) id NAA00611; Tue, 18 Aug 1998 13:04:39 +0200 (MEST) Message-ID: <19980818130438.A594@jocelyn.rhein.de> Date: Tue, 18 Aug 1998 13:04:38 +0200 From: Ignatios Souvatzis To: hm@hcs.de Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: isdn4netbsd-amiga, 4th report References: <19980807000820.B1249@jocelyn.rhein.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Hellmuth Michaelis on Fri, Aug 07, 1998 at 10:29:47AM +0200 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Aug 07, 1998 at 10:29:47AM +0200, Hellmuth Michaelis wrote: > >From the keyboard of Ignatios Souvatzis: > > d) the command window for hanging up a line doesn't react to any keystroke > > I could identify. Just leaves the cursor after the last line it offers. > > Curses problem in NetBSD ??? This does not happen in FreeBSD. For shure. No. I debugged this today... select() works ok, wgetch() works ok, but the value isn't recognized by atoi(). The following patch: jocelyn isdnd !% diff -u curses.c.original curses.c --- curses.c.original Tue Aug 18 12:55:26 1998 +++ curses.c Tue Aug 18 12:56:04 1998 @@ -548,7 +548,7 @@ continue; } - nlines = atoi((const char *)&ncols); + nlines = ncols - '0'; if ((nlines == 0) || (nlines > cnt)) { makes it work. (atoi() wants a 0-terminated string. ncols is an int. on little-endian machines, its memory layout is cc000000, where cc is the character read; on big-endian machines, its layout is 000000cc, and even if &ncols would point to the cc byte, you are at the mercy of what the compiler has put behind the ncols variable. But you get the first 00 anyway.) Of course, this (like the working-on-intel original version) is limited to 9 active channels. But programming a scrolling window in curses is beyond my past programming experience :-), so I left this for possible future work. Regards, Ignatios To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Aug 18 05:47:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA14662 for freebsd-isdn-outgoing; Tue, 18 Aug 1998 05:47:04 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gatekeeper.rhein.de (gatekeeper.rhein.de [193.175.27.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA14639 for ; Tue, 18 Aug 1998 05:46:59 -0700 (PDT) (envelope-from is@jocelyn.rhein.de) Received: from jocelyn.rhein.de (jocelyn.rhein.de [193.175.27.218]) by gatekeeper.rhein.de (8.9.1a/8.9.1-ws3) with ESMTP id OAA10534; Tue, 18 Aug 1998 14:46:16 +0200 (MET DST) Received: (from is@localhost) by jocelyn.rhein.de (8.8.8/8.6.12) id OAA01547; Tue, 18 Aug 1998 14:51:01 +0200 (MEST) Message-ID: <19980818145101.B594@jocelyn.rhein.de> Date: Tue, 18 Aug 1998 14:51:01 +0200 From: Ignatios Souvatzis To: hm@hcs.de, Guido von Walter Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: Problems with ppp and idletimeout References: <199808172033.WAA00388@void1.dascon.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Hellmuth Michaelis on Tue, Aug 18, 1998 at 08:49:31AM +0200 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Aug 18, 1998 at 08:49:31AM +0200, Hellmuth Michaelis wrote: > > > Aug 12 09:50:43 firewall /kernel: isppp0: lcp input(opened): > en=12 22-f6-d9-74-0-6-3f-7b> > > Aug 12 09:50:44 firewall /kernel: isppp0: got lcp echo req, sending echo rep > > Aug 12 09:50:44 firewall /kernel: isppp0: lcp output > 35-d9-ec-9c-0-6-3f-7b> > > > > every ten seconds. > > In this case, the kernel part sees traffic and this means to it that it must > not hangup because something is still going on. ... > > It seems that someone who has this problem should/must add some code > (to i4b_isppp.c and perhaps other parts) to qualify packets and give > the kernel timeout mechanism hints, which traffic is "real" traffic > and which traffic can be safely ignored for timeout purposes. Uhm, you would even want to make this configurable, through a bpf-similar language for example. Thats what the async PPP people did (whose stuff is integrated at least in NetBSD (and I guess, OpenBSD; I'm not sure what PPP FreeBSD ships with; you're the people with the userland PPP, right?) Which creates another idea: I'd like to see an interface where the hdlc level is provided to other kernel modules, so that, e.g., I could do: i4bhdlc0 at ... (whatever channel that happens to be) ppp0 at i4b0 Of course, this is a long-term goal; the async ppp stuff would need to be split up, too. OTOH, it is (or was originally) designed to have such an interface. This way, isdn people could benefit from whatever work is already available in the PPP module, and concentrate on debugging the difficult stuff. Regards, Ignatios To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Aug 18 06:33:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA19663 for freebsd-isdn-outgoing; Tue, 18 Aug 1998 06:33:09 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gatekeeper.rhein.de (gatekeeper.rhein.de [193.175.27.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA19658 for ; Tue, 18 Aug 1998 06:33:07 -0700 (PDT) (envelope-from is@jocelyn.rhein.de) Received: from jocelyn.rhein.de (jocelyn2.rhein.de [193.175.27.210]) by gatekeeper.rhein.de (8.9.1a/8.9.1-ws3) with ESMTP id PAA18204 for ; Tue, 18 Aug 1998 15:32:29 +0200 (MET DST) X-Authentication-Warning: gatekeeper.rhein.de: Host jocelyn2.rhein.de [193.175.27.210] claimed to be jocelyn.rhein.de Received: (from is@localhost) by jocelyn.rhein.de (8.8.8/8.6.12) id PAA01704; Tue, 18 Aug 1998 15:37:53 +0200 (MEST) Message-ID: <19980818153753.C594@jocelyn.rhein.de> Date: Tue, 18 Aug 1998 15:37:53 +0200 From: Ignatios Souvatzis To: freebsd-isdn@FreeBSD.ORG Subject: Amiga patches Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, I did lots of installs and deinstalls until I could do it without manual tweaking. (Note the deinstall script added to the NetBSD/ ... cp -R /sys takes much too long). Changes outside the driver addition: - i4b_isic has been changed to not print the board name if it is != (char *)0. This is for NetBSD/Amiga, where the board name has already been printed (and in more detail than the in-i4b driver knows!) by the parent device. (Saves me one line of kernel startup output, that doesn't provide new information). I guess this feature could also be used by ISAPNP boards in NetBSD. - The patches by Leo and... who was the other who answered on my earlier request... are integrated. - The patch to isdnd/curses.c (to work for big endian machines, also) is integrated. - A patch for NetBSD to add -d to the yacc options is integrated in the isdnd Makefile. - ATTN. Martin and Leo: I moved the isa and isapnp parts out of NetBSD/files.i4b and into NetBSD/files.i4b.isa. Don't have any ISA bus on NetBSD/Amiga, currently. Somebody should check that they are actually patched in correctly. :-) Regards, Ignatios To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Aug 18 09:16:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA10959 for freebsd-isdn-outgoing; Tue, 18 Aug 1998 09:16:36 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from alushta.NL.net (alushta.NL.net [193.78.240.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA10948 for ; Tue, 18 Aug 1998 09:16:28 -0700 (PDT) (envelope-from bert_driehuis@nl.compuware.com) Received: from uniface by alushta.NL.net with UUCP id <858-2218>; Tue, 18 Aug 1998 18:15:44 +0200 Received: from nl.compuware.com (bertd@c1111.nl.compuware.com [172.16.16.36]) by dewmoth.nl.compuware.com (8.6.9/961125) with ESMTP id SAA24716 for ; Tue, 18 Aug 1998 18:05:46 +0200 Message-ID: <35D9A659.85BF0472@nl.compuware.com> Date: Tue, 18 Aug 1998 18:05:45 +0200 From: Bert Driehuis Organization: Compuware Europe, Amsterdam X-Mailer: Mozilla 4.05 [en] (X11; I; BSD/OS 3.1 i386) MIME-Version: 1.0 To: freebsd-isdn@FreeBSD.ORG Subject: Re: Problems with ppp and idletimeout References: <199808172033.WAA00388@void1.dascon.de> <19980818145101.B594@jocelyn.rhein.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ignatios Souvatzis wrote: > Which creates another idea: > I'd like to see an interface where the hdlc level is provided to other kernel > modules, so that, e.g., I could do: > > i4bhdlc0 at ... (whatever channel that happens to be) > ppp0 at i4b0 > > Of course, this is a long-term goal; the async ppp stuff would need to be split > up, too. OTOH, it is (or was originally) designed to have such an interface. > > This way, isdn people could benefit from whatever work is already available > in the PPP module, and concentrate on debugging the difficult stuff. This, matter of fact, is how my BISDN driver for BSD/OS worked (and what I plan on doing for the ISDN4BSD port to BSD/OS). In theory, this would take advantage of BSD/OS's exisiting support for e.g. channel bundling. Haven't tried it though... I didn't do it to show off how clever I am, but it really was the easiest way of getting it to work :-) Cheers, -- Bert -- Bert Driehuis, MIS -- bert_driehuis@nl.compuware.com -- +31-20-3116119 The grand leap of the whale up the Fall of Niagara is esteemed, by all who have seen it, as one of the finest spectacles in nature. -- Benjamin Franklin. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Aug 18 11:10:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA01274 for freebsd-isdn-outgoing; Tue, 18 Aug 1998 11:10:47 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gatekeeper.rhein.de (gatekeeper.rhein.de [193.175.27.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA01212 for ; Tue, 18 Aug 1998 11:10:25 -0700 (PDT) (envelope-from is@jocelyn.rhein.de) Received: from jocelyn.rhein.de (jocelyn.rhein.de [193.175.27.218]) by gatekeeper.rhein.de (8.9.1a/8.9.1-ws3) with ESMTP id UAA09997 for ; Tue, 18 Aug 1998 20:09:27 +0200 (MET DST) Received: (from is@localhost) by jocelyn.rhein.de (8.8.8/8.6.12) id UAA02023; Tue, 18 Aug 1998 20:14:57 +0200 (MEST) Message-ID: <19980818201456.B1914@jocelyn.rhein.de> Date: Tue, 18 Aug 1998 20:14:56 +0200 From: Ignatios Souvatzis To: freebsd-isdn@FreeBSD.ORG Subject: Re: Amiga patches References: <19980818153753.C594@jocelyn.rhein.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=sdtB3X0nJg68CQEu X-Mailer: Mutt 0.91.1i In-Reply-To: <19980818153753.C594@jocelyn.rhein.de>; from Ignatios Souvatzis on Tue, Aug 18, 1998 at 03:37:53PM +0200 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii On Tue, Aug 18, 1998 at 03:37:53PM +0200, I wrote: > I did lots of installs and deinstalls until I could do it without manual > tweaking. (Note the deinstall script added to the NetBSD/ ... cp -R /sys takes > much too long). etc. Apparently, I forgot the actual diffs. here they are: --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="i4b.diff.amiga" diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/INSTALLATION ./NetBSD/INSTALLATION *** /build2/ref/NetBSD/INSTALLATION Tue Jun 16 15:55:36 1998 --- ./NetBSD/INSTALLATION Tue Aug 18 14:34:27 1998 *************** *** 3,21 **** ISDN4BSD installation on NetBSD 1.3.1 ===================================== ! last edit-date: [Tue Jun 16 15:56:29 1998] -------------------------------------------------------------------------------- 1) extract the isdn4bsd distribution, usually under /usr/src/i4b. ! 2) cd to /usr/src/i4b/NetBSD and adjust the file install-NetBSD.sh ! to your needs. You do have to set the path to the kernel source ! tree. Run the script as root. This will patch your kernel source ! tree and insert links at the appropriate places to your isdn4bsd ! distribution. ! 3) If you are through the first time, create device in /dev by running --- 3,21 ---- ISDN4BSD installation on NetBSD 1.3.1 ===================================== ! last edit-date: [Tue Aug 18 14:32:45 MEST 1998 -------------------------------------------------------------------------------- 1) extract the isdn4bsd distribution, usually under /usr/src/i4b. ! 2) cd to /usr/src/i4b/NetBSD and adjust the files install-NetBSD.sh ! and deinstall-netbsd.sh to your needs. You do have to set the path ! to the kernel source tree ($DST), and for deinstallation a path to an ! unchanged kernel source tree ($SYS). Run the script as root. This will ! patch the kernel source tree at $DST and insert links at the appropriate ! places to your isdn4bsd distribution. 3) If you are through the first time, create device in /dev by running *************** *** 27,33 **** 4) cd to /usr/src/i4b, and run "make depend", "make" and "make install". ! 5) add the following to your kernel config file in /usr/src/sys/i386/conf: #--------------------------------------------------------------------- --- 27,37 ---- 4) cd to /usr/src/i4b, and run "make depend", "make" and "make install". ! 5a) for ISA machines (currently tested: i386 and Atari), ! add the following to your kernel config file in $DST/$ARCH/conf: ! ! [replace $ARCH by your architecture identifier, e.g., i386 or atari, ! and $DST by the directory where the patches kernel tree lives] #--------------------------------------------------------------------- *************** *** 74,86 **** # synchronous PPP over ISDN pseudo-device i4bisppp 2 #--------------------------------------------------------------------- ! 6) uncomment the appropriate "device isic0 ..." entry for your ISDN card ! from the above text in your kernel config file and edit the port, iomem ! and irq fields to match your hardware setup. ! ! PLEASE NOTE: at the moment it is *NOT* possible to leave out any of the pseudo-devices listed above. So even if you don't need i4bipr you have to include it in your kernel - otherwise it would not link. --- 78,111 ---- # synchronous PPP over ISDN pseudo-device i4bisppp 2 #--------------------------------------------------------------------- + uncomment the appropriate "device isic0 ..." entry for your ISDN + card from the above text in your kernel config file and edit the + port, iomem and irq fields to match your hardware setup. + + 5b) for the Amiga (and DraCo), add the following lines to your kernel + configuration file in $DST/arch/amiga/conf/: + + #--------------------------------------------------------------------- + # i4b hardware support (isic - I4b Siemens Isdn Chipset driver) + isic0 at supio? port ? + pseudo-device "i4b" + # userland driver to do ISDN tracing + pseudo-device "i4btrc" + # userland driver to control the whole thing + pseudo-device "i4bctl" + # userland driver for access to raw B channel + pseudo-device "i4brbch" 4 + # userland driver for telephony + pseudo-device "i4btel" 2 + # network driver for IP over raw HDLC ISDN + options IPR_VJ # compile support for VJ compression + pseudo-device "i4bipr" 2 + # synchronous PPP over ISDN + pseudo-device i4bisppp 2 + #--------------------------------------------------------------------- ! 6) PLEASE NOTE: at the moment it is *NOT* possible to leave out any of the pseudo-devices listed above. So even if you don't need i4bipr you have to include it in your kernel - otherwise it would not link. diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/MAKEDEV.i4b ./NetBSD/MAKEDEV.i4b *** /build2/ref/NetBSD/MAKEDEV.i4b Thu Apr 23 13:51:29 1998 --- ./NetBSD/MAKEDEV.i4b Mon Aug 17 22:37:13 1998 *************** *** 12,17 **** --- 12,23 ---- i4brbch_major=46 i4btel_major=48 i4btrc_major=47 + elif [ "$ARCH" = "amiga" ]; then + i4b_major=44 + i4bctl_major=45 + i4brbch_major=46 + i4btel_major=48 + i4btrc_major=47 else echo "ARCH $ARCH not supported!" fi diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/deinstall-netbsd.sh ./NetBSD/deinstall-netbsd.sh *** /build2/ref/NetBSD/deinstall-netbsd.sh Thu Jan 1 01:00:00 1970 --- ./NetBSD/deinstall-netbsd.sh Tue Aug 18 15:17:11 1998 *************** *** 0 **** --- 1,67 ---- + #!/bin/sh + #--------------------------------------------------------------------------- + # + # i4b deinstallation script + # ----------------------- + # + # last edit-date: [Sun Aug 16 19:52:35 MEST 1998] + # + # -is tired to do it again and again.... + # + #--------------------------------------------------------------------------- + + #--------------------------------------------------------------------------- + # Carefully adjust the values below. Then run this script from the + # i4b/NetBSD directory as root. After this, you should have your original + # sys tree back, ready to do another ``sh install-netbsd.sh'' (e.g., from + # a new i4b distribution). + + # The directory where the i4b distribution lives + SRC=`(cd ..; pwd)` + + # The directory where an _unchanged_ /sys tree lives + SYS=/usr/src/sys + + # Where the patched copy of your /usr/src/sys source tree lives. This is the + # copy modified to support i4b copy of your kernel sources. + DST=/build2/sys3 + + #--------------------------------------------------------------------------- + # YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW... + # + # This works with the NetBSD 1.3 release. + #--------------------------------------------------------------------------- + ISDN=$DST/i4b + + if [ -d $ISDN ] + then + rm -rf $ISDN + fi + + ( cd $DST/arch/amiga/dev && rm isic_supio.c ) + ( cd $DST/dev/isa && rm isa_isic.c isadaic.c ) + ( cd $DST/dev/ic && rm daic*.[hc] ) + ( cd $DST/dev/isapnp && rm isapnp_isic.c ) + ( cd $DST/dev/microcode && rm -rf daic ) + + # ---------------------------------------------------------------------------- + # Machine independed config file changes... + # ---------------------------------------------------------------------------- + + cd $DST/conf || exit 1 + cp $SYS/conf/files . + + # ---------------------------------------------------------------------------- + # Machine (architecture) specific patches follow... + # ---------------------------------------------------------------------------- + + ARCH=`machine` + if [ -f $SRC/NetBSD/sys-deinstall.$ARCH ] + then + . $SRC/NetBSD/sys-deinstall.$ARCH + else + echo "Unfortunately for your architecture no sys/config deinstall + echo "support has been added to i4b. It is easy to do, have a look + echo "at the echo existing stuff, create one for $ARCH and mail it to" + echo "Martin Husemann (martin@rumolt.teuto.de)" + fi diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/files.i4b ./NetBSD/files.i4b *** /build2/ref/NetBSD/files.i4b Tue Mar 10 14:57:41 1998 --- ./NetBSD/files.i4b Tue Aug 18 14:23:26 1998 *************** *** 1,7 **** # Config file and device description for machine-independend ISDN code. ! # Included by ports that need it. (To prevent scatering changes througout ! # the config files there are parts at the end of this file which belong ! # elswhere!) define isdn # the ISDN subsystem define passive_isdn # files needed by passive cards --- 1,7 ---- # Config file and device description for machine-independend ISDN code. ! # Included by ports that need it. ! # The ISA and ISAPNP specific parts are in their own file now. ! # ZBUS (rather: supio) parts are directly patched into files.amiga define isdn # the ISDN subsystem define passive_isdn # files needed by passive cards *************** *** 52,67 **** device daic: isdn file dev/ic/daic.c daic - #this belongs to dev/isa/files.isa: - attach isic at isa with isa_isic - file dev/isa/isa_isic.c isa_isic - attach daic at isa with isa_daic - file dev/isa/isadaic.c isa_daic - - # this belongs to dev/isapnp/files.isapnp: - attach isic at isapnp with isapnp_isic - file dev/isapnp/isapnp_isic.c isapnp_isic - file i4b/layer1/i4b_isic.c isic needs-count file i4b/layer1/i4b_tel_s08.c isic needs-flag file i4b/layer1/i4b_tel_s016.c isic needs-flag --- 52,57 ---- *************** *** 76,78 **** --- 66,69 ---- file i4b/layer1/i4b_l1.c isic needs-flag file i4b/layer1/i4b_l1fsm.c isic needs-flag file i4b/layer1/i4b_bchan.c isic needs-flag + diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/files.i4b.isa ./NetBSD/files.i4b.isa *** /build2/ref/NetBSD/files.i4b.isa Thu Jan 1 01:00:00 1970 --- ./NetBSD/files.i4b.isa Mon Aug 17 22:31:46 1998 *************** *** 0 **** --- 1,13 ---- + # Config file and device description for isa and isapnp. + # Included by ports that need it. + + #this belongs to dev/isa/files.isa: + attach isic at isa with isa_isic + file dev/isa/isa_isic.c isa_isic + attach daic at isa with isa_daic + file dev/isa/isadaic.c isa_daic + + # this belongs to dev/isapnp/files.isapnp: + attach isic at isapnp with isapnp_isic + file dev/isapnp/isapnp_isic.c isapnp_isic + diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/install-netbsd.sh ./NetBSD/install-netbsd.sh *** /build2/ref/NetBSD/install-netbsd.sh Sun Jun 14 20:08:54 1998 --- ./NetBSD/install-netbsd.sh Tue Aug 18 15:16:37 1998 *************** *** 24,30 **** # Where the copy of your /usr/src/sys source tree lives. This copy is # modified to support i4b. You probably should not use your native /usr/src/sys # here! This working copy must exist, before you run this script! ! DST=/usr/src/sys-i4b #--------------------------------------------------------------------------- # YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW... --- 24,30 ---- # Where the copy of your /usr/src/sys source tree lives. This copy is # modified to support i4b. You probably should not use your native /usr/src/sys # here! This working copy must exist, before you run this script! ! DST=/build2/sys3 #--------------------------------------------------------------------------- # YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW... *************** *** 48,53 **** --- 48,54 ---- ln -s $SRC/NetBSD/files.i4b $ISDN ( cd $ISDN && ln -s $SRC/machine/*.h . ) + ( cd $DST/arch/amiga/dev && ln -s $SRC/layer1/isic_supio.c . ) ( cd $DST/dev/isa && ln -s $SRC/layer1/isa_isic.c . ) ( cd $DST/dev/isa && ln -s $SRC/diehl/isadaic.c . ) ( cd $DST/dev/ic && ln -s $SRC/diehl/daic*.[hc] . ) diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/sys-deinstall.amiga ./NetBSD/sys-deinstall.amiga *** /build2/ref/NetBSD/sys-deinstall.amiga Thu Jan 1 01:00:00 1970 --- ./NetBSD/sys-deinstall.amiga Tue Aug 18 14:19:36 1998 *************** *** 0 **** --- 1,9 ---- + #! /bin/sh + + # Patches needed for the amiga architecture to add i4b kernel support + # Note: patches are for 1.3F dd. 1998 Jul 27 + cd $DST/arch/amiga/conf || exit 1 + cp $SYS/arch/amiga/conf/files.amiga . + + cd $DST/arch/amiga/amiga || exit 1 + cp $SYS/arch/amiga/amiga/conf.c . diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/sys-patch.amiga ./NetBSD/sys-patch.amiga *** /build2/ref/NetBSD/sys-patch.amiga Thu Jan 1 01:00:00 1970 --- ./NetBSD/sys-patch.amiga Mon Aug 17 22:34:06 1998 *************** *** 0 **** --- 1,96 ---- + #! /bin/sh + + # Patches needed for the amiga architecture to add i4b kernel support + # Note: patches are for 1.3F dd. 1998 Jul 27 + cd $DST/arch/amiga/conf || exit 1 + patch << 'END_OF_PATCH' + *** /usr/src/sys/arch/amiga/conf/files.amiga Wed Apr 22 10:30:45 1998 + --- files.amiga Wed Apr 22 10:50:23 1998 + *************** + *** 195,197 **** + --- 195,205 ---- + # SunOS Binary Compatibility (COMPAT_SUNOS) + include "compat/sunos/files.sunos" + file arch/m68k/m68k/sunos_machdep.c compat_sunos + + + + # ------------------------------------------------------------ + + # include ISDN support + + include "../../../i4b/files.i4b" + + + + attach isic at supio with isic_supio + + file arch/amiga/dev/isic_supio.c isic_supio + + # ------------------------------------------------------------ + END_OF_PATCH + + cd $DST/arch/amiga/amiga || exit 1 + patch << 'END_OF_PATCH' + --- /sys/arch/amiga/amiga/conf.c Sun Jul 5 20:52:29 1998 + +++ conf.c Sun Aug 16 21:54:16 1998 + @@ -102,6 +102,53 @@ + #include "ipfilter.h" + #include "rnd.h" + + +/* open, close, ioctl */ + +#define cdev_i4bctl_init(c,n) { \ + + dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \ + + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + + (dev_type_stop((*))) enodev, 0, seltrue, \ + + (dev_type_mmap((*))) enodev } + + + +/* open, close, read, write */ + +#define cdev_i4brbch_init(c,n) { \ + + dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ + + dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \ + + (dev_type_stop((*))) enodev, \ + + 0, (dev_type_poll((*))) enodev, (dev_type_mmap((*))) enodev } + + + +/* open, close, read, write */ + +#define cdev_i4btel_init(c,n) { \ + + dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ + + dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \ + + (dev_type_stop((*))) enodev, 0, (dev_type_poll((*))) enodev, \ + + (dev_type_mmap((*))) enodev, D_TTY } + + + +/* open, close, read, ioctl */ + +#define cdev_i4btrc_init(c,n) { \ + + dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ + + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + + (dev_type_stop((*))) enodev, 0, (dev_type_poll((*))) enodev, \ + + (dev_type_mmap((*))) enodev } + + + +/* open, close, read, poll, ioctl */ + +#define cdev_i4b_init(c,n) { \ + + dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ + + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + + (dev_type_stop((*))) enodev, 0, dev_init(c,n,poll), \ + + (dev_type_mmap((*))) enodev } + + + + + +#include "i4b.h" + +#include "i4bctl.h" + +#include "i4btrc.h" + +#include "i4brbch.h" + +#include "i4btel.h" + +cdev_decl(i4b); + +cdev_decl(i4bctl); + +cdev_decl(i4btrc); + +cdev_decl(i4brbch); + +cdev_decl(i4btel); + + + struct cdevsw cdevsw[] = + { + cdev_cn_init(1,cn), /* 0: virtual console */ + @@ -148,6 +195,12 @@ + cdev_audio_init(NAUDIO,audio), /* 41: cc audio interface */ + cdev_rnd_init(NRND,rnd), /* 42: random source pseudo-device */ + cdev_disk_init(NMD,md), /* 43: memory disk */ + + /* i4b character devices */ + + cdev_i4b_init(NI4B, i4b), /* 44: i4b main device */ + + cdev_i4bctl_init(NI4BCTL, i4bctl), /* 45: i4b control device */ + + cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 46: i4b raw b-channel */ + + cdev_i4btrc_init(NI4BTRC, i4btrc), /* 47: i4b trace device */ + + cdev_i4btel_init(NI4BTEL, i4btel), /* 48: i4b phone device */ + }; + int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); + + END_OF_PATCH diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/sys-patch.atari ./NetBSD/sys-patch.atari *** /build2/ref/NetBSD/sys-patch.atari Thu Apr 23 13:51:30 1998 --- ./NetBSD/sys-patch.atari Mon Aug 17 22:32:38 1998 *************** *** 9,15 **** --- files.atari Wed Apr 22 10:50:23 1998 *************** *** 195,197 **** ! --- 195,202 ---- # SunOS Binary Compatibility (COMPAT_SUNOS) include "compat/sunos/files.sunos" file arch/m68k/m68k/sunos_machdep.c compat_sunos --- 9,15 ---- --- files.atari Wed Apr 22 10:50:23 1998 *************** *** 195,197 **** ! --- 195,203 ---- # SunOS Binary Compatibility (COMPAT_SUNOS) include "compat/sunos/files.sunos" file arch/m68k/m68k/sunos_machdep.c compat_sunos *************** *** 17,22 **** --- 17,23 ---- + # ------------------------------------------------------------ + # include ISDN support + include "../../../i4b/files.i4b" + + include "../../../i4b/files.i4b.isa" + # ------------------------------------------------------------ END_OF_PATCH diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/NetBSD/sys-patch.i386 ./NetBSD/sys-patch.i386 *** /build2/ref/NetBSD/sys-patch.i386 Wed Jan 28 17:07:08 1998 --- ./NetBSD/sys-patch.i386 Mon Aug 17 22:32:56 1998 *************** *** 8,19 **** --- files.i386 Mon Oct 20 05:56:43 1997 *************** *** 211,214 **** ! --- 211,219 ---- include "../../../dev/mii/files.mii" + # ------------------------------------------------------------ + # include ISDN support + include "../../../i4b/files.i4b" + # ------------------------------------------------------------ + # XXXX pcic here because it needs to be late. The catch: pcic needs --- 8,20 ---- --- files.i386 Mon Oct 20 05:56:43 1997 *************** *** 211,214 **** ! --- 211,220 ---- include "../../../dev/mii/files.mii" + # ------------------------------------------------------------ + # include ISDN support + include "../../../i4b/files.i4b" + + include "../../../i4b/files.i4b.isa" + # ------------------------------------------------------------ + # XXXX pcic here because it needs to be late. The catch: pcic needs diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/README ./README *** /build2/ref/README Fri Jul 10 10:49:01 1998 --- ./README Tue Aug 18 15:22:20 1998 *************** *** 120,125 **** --- 120,129 ---- Martin has NetBSD/i386 1.3 running and is supporting ISDN4BSD for that platform as his time permits it. + NetBSD/Amiga: + The NetBSD/Atari 1.3F specific support was done by Ignatios Souvatzis, + (is@netbsd.org). + NetBSD/Atari: The NetBSD/Atari 1.3 specific support was done by Leo Weppelman, (leo@wau.mis.ah.nl). *************** *** 154,159 **** --- 158,165 ---- 3Com/USR SportsterInt full full ( = Stollmann Tina-pp ) Sedlbauer win speed experimental unsupported (Note 9) Dynalink IS64PH experimental unsupported (Note 11) + ISDN Blaster unsupported experimental (Note 12) + ISDN Master unsupported experimental (Note 12) Type (active) FreeBSD NetBSD/OpenBSD --------------------- ------- -------------- *************** *** 202,207 **** --- 208,217 ---- Please contact him in case of trouble. This driver might also work for Asuscom cards. + Note 12: This driver was developed by Ignatios Souvatzis (is@netbsd.org) + Please contact him in case of trouble. + This driver is supposed to work on the ISDN Master versions and + lookalikes, like the ISDN Blaster. 5. Where do i find documentation for ISDN4BSD ? ----------------------------------------------- diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/driver/i4b_ipr.c ./driver/i4b_ipr.c *** /build2/ref/driver/i4b_ipr.c Fri Jun 19 10:24:29 1998 --- ./driver/i4b_ipr.c Thu Aug 13 15:23:48 1998 *************** *** 490,496 **** --- 490,501 ---- { /* disconnect ISDN line */ + #if defined(__NetBSD__) + i4b_l4_drvrdisc(BDRV_IPR, sc->sc_unit); + #endif + #if defined(__FreeBSD__) i4b_l4_drvrdisc(BDRV_IPR, ifp->if_unit); + #endif /* sc->sc_if.if_flags &= ~IFF_RUNNING; */ } diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/isdnd/Makefile ./isdnd/Makefile *** /build2/ref/isdnd/Makefile Thu Jun 18 16:46:37 1998 --- ./isdnd/Makefile Thu Aug 13 15:23:13 1998 *************** *** 37,42 **** --- 37,46 ---- MAN = isdnd.8 isdnd.rc.5 isdnd.rates.5 isdnd.acct.5 .endif + .if (${BSDTYPE} == "NetBSD") + YFLAGS += -d + .endif + .if (${BSDTYPE} == "NetBSD" || ${BSDTYPE} == "OpenBSD" || \ ${BSDTYPE} == "FreeBSD" && ${RELEASE} != "3.0-CURRENT") rc_scan.c: rc_scan.l y.tab.h diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/isdnd/curses.c ./isdnd/curses.c *** /build2/ref/isdnd/curses.c Wed Jul 8 20:50:06 1998 --- ./isdnd/curses.c Tue Aug 18 12:56:04 1998 *************** *** 548,554 **** continue; } ! nlines = atoi((const char *)&ncols); if ((nlines == 0) || (nlines > cnt)) { --- 548,554 ---- continue; } ! nlines = ncols - '0'; if ((nlines == 0) || (nlines > cnt)) { diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/isdnd/isdnd.h ./isdnd/isdnd.h *** /build2/ref/isdnd/isdnd.h Wed Jul 8 17:46:08 1998 --- ./isdnd/isdnd.h Mon Aug 17 14:42:25 1998 *************** *** 535,559 **** int got_unitlen; time_t unit_length; ! cfg_entry_t cfg_entry_tab[]; ! isdn_ctrl_state_t isdn_ctrl_tab[ISDN_CTRL_MAX]; int ncontroller; int nentries; int uselogfile; ! char logfile[]; int logfacility; int nregex; ! struct rarr rarr[]; ! char ratesfile[]; char *rate_error; int got_rate; struct rates *rates[NRATES][NDAYS]; /* strange */ int useacctfile; ! char acctfile[]; FILE *acctfp; int acct_all; --- 535,559 ---- int got_unitlen; time_t unit_length; ! cfg_entry_t cfg_entry_tab[CFG_ENTRY_MAX]; /* configuration table */ ! isdn_ctrl_state_t isdn_ctrl_tab[ISDN_CTRL_MAX]; /* controller states table */ int ncontroller; int nentries; int uselogfile; ! char logfile[MAXPATHLEN]; int logfacility; int nregex; ! struct rarr rarr[MAX_RE]; ! char ratesfile[MAXPATHLEN]; char *rate_error; int got_rate; struct rates *rates[NRATES][NDAYS]; /* strange */ int useacctfile; ! char acctfile[MAXPATHLEN]; FILE *acctfp; int acct_all; diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/isdnd/rc_config.c ./isdnd/rc_config.c *** /build2/ref/isdnd/rc_config.c Wed Jul 8 14:26:53 1998 --- ./isdnd/rc_config.c Thu Aug 13 15:23:13 1998 *************** *** 66,72 **** void configure(char *filename, int reread) { ! extern reset_scanner(FILE *inputfile); set_config_defaults(); --- 66,72 ---- void configure(char *filename, int reread) { ! extern void reset_scanner(FILE *inputfile); set_config_defaults(); diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/layer1/i4b_isic.c ./layer1/i4b_isic.c *** /build2/ref/layer1/i4b_isic.c Mon Jul 6 16:14:24 1998 --- ./layer1/i4b_isic.c Sun Aug 16 20:53:34 1998 *************** *** 74,81 **** --- 74,85 ---- #include #else #include + #if defined(__NetBSD__) && defined(amiga) + #include + #else #include #endif + #endif #ifdef __FreeBSD__ #include *************** *** 440,445 **** --- 444,455 ---- break; #endif + #ifdef amiga + case FLAG_BLMASTER: + ret = 1; /* full detection was done in caller */ + break; + #endif + default: break; } *************** *** 570,575 **** --- 580,590 ---- drvid = "Sedlbauer win speed"; break; + case FLAG_BLMASTER: + /* board announcement was done by caller */ + drvid = (char *)0; + break; + default: drvid = "ERROR, unknown flag used"; break; *************** *** 577,583 **** #ifndef __FreeBSD__ printf("\n"); #endif ! printf(ISIC_FMT "%s\n", ISIC_PARM, drvid); /* announce chip versions */ --- 592,599 ---- #ifndef __FreeBSD__ printf("\n"); #endif ! if (drvid) ! printf(ISIC_FMT "%s\n", ISIC_PARM, drvid); /* announce chip versions */ diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/layer1/i4b_l1.h ./layer1/i4b_l1.h *** /build2/ref/layer1/i4b_l1.h Tue Jun 23 16:03:32 1998 --- ./layer1/i4b_l1.h Sun Aug 16 20:56:39 1998 *************** *** 61,66 **** --- 61,67 ---- #define FLAG_SWS 0x18 #define FLAG_AVM_A1_PCMCIA 0x20 /* set during PCMCIA card detection */ #define FLAG_DYNALINK 0x21 + #define FLAG_BLMASTER 0x22 /* set during ZBUS card detection */ /*--------------------------------------------------------------------------- * number of supported units *************** *** 375,380 **** --- 376,382 ---- #else /* not FreeBSD */ + extern void isic_recover __P((struct isic_softc *sc)); extern int isicattach __P((int flags, struct isic_softc *sc)); extern int isicintr __P((void *)); extern int isicprobe __P((struct isic_attach_args *ia)); diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/layer1/isic_supio.c ./layer1/isic_supio.c *** /build2/ref/layer1/isic_supio.c Thu Jan 1 01:00:00 1970 --- ./layer1/isic_supio.c Sat Aug 15 21:21:51 1998 *************** *** 0 **** --- 1,221 ---- + /* + * Copyright (c) 1998 Ignatios Souvatzis. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the author nor the names of any co-contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * 4. Altered versions must be plainly marked as such, and must not be + * misrepresented as being the original software and/or documentation. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + *--------------------------------------------------------------------------- + * + * isic_supio.c - Amiga supio pseudo bus frontend for i4b_isic driver + * supports: + * - ISDN Blaster 5001/1 + * - ISDN Master 2092/64 + * But we attach to the supio, so just see "isic". + * ---------------------------------------------------------- + * + * $Id$ + * + * last edit-date: [Wed Jul 22 23:42:59 MEST 1998] + * + * -is original implementation + * + *---------------------------------------------------------------------------*/ + + #include + #include + #include + #include + #include + #include + #include + #include + #include + + #include + #include + #include + + #include + + #include + #include + #include + + /*static*/ int isic_supio_match __P((struct device *, struct cfdata *, void *)); + /*static*/ void isic_supio_attach __P((struct device *, struct device *, void *)); + + /*static*/ u_int8_t aster_read_reg __P((struct isic_softc *sc, int what, + bus_size_t offs)); + /*static*/ void aster_write_reg __P((struct isic_softc *sc, int what, + bus_size_t offs, u_int8_t data)); + /*static*/ void aster_read_fifo __P((struct isic_softc *sc, int what, + void *buf, size_t size)); + /*static*/ void aster_write_fifo __P((struct isic_softc *sc, int what, + const void *data, size_t size)); + + struct isic_supio_softc { + struct isic_softc sc_isic; + struct isr sc_isr; + struct bus_space_tag sc_bst; + }; + + struct cfattach isic_supio_ca = { + sizeof(struct isic_supio_softc), isic_supio_match, isic_supio_attach + }; + + /* + * Probe card + */ + /*static*/ int + isic_supio_match(parent, cf, aux) + struct device *parent; + struct cfdata *cf; + void *aux; + { + struct supio_attach_args *sap = aux; + + /* ARGSUSED */ + return (!strcmp("isic", sap->supio_name)); + } + + int isic_supio_ipl = 2; + /* + * Attach the card + */ + /*static*/ void + isic_supio_attach(parent, self, aux) + struct device *parent, *self; + void *aux; + { + struct isic_supio_softc *ssc = (void *)self; + struct isic_softc *sc = &ssc->sc_isic; + struct supio_attach_args *sap = aux; + + bus_space_tag_t bst; + bus_space_handle_t h; + + /* setup parameters */ + sc->sc_cardtyp = CARD_TYPEP_BLMASTER; + sc->sc_num_mappings = 3; + sc->sc_unit = sc->sc_dev.dv_unit; /* XXX ??? */ + + /* create io mappings */ + MALLOC_MAPS(sc); + + bst = sap->supio_iot; + bus_space_map(bst, sap->supio_iobase, 0x400, 0, &h); + + /* ISAC */ + sc->sc_maps[0].t = bst; + sc->sc_maps[0].h = h; + sc->sc_maps[0].offset = 0x300/2; + sc->sc_maps[0].size = 0; /* foreign mapping, leave it alone */ + + /* HSCX A */ + sc->sc_maps[1].t = bst; + sc->sc_maps[1].h = h; + sc->sc_maps[1].offset = 0x100/2; + sc->sc_maps[1].size = 0; /* foreign mapping, leave it alone */ + + /* HSCX B */ + sc->sc_maps[2].t = bst; + sc->sc_maps[2].h = h; + sc->sc_maps[2].offset = 0x180/2; + sc->sc_maps[2].size = 0; /* foreign mapping, leave it alone */ + + sc->readreg = aster_read_reg; + sc->writereg = aster_write_reg; + sc->readfifo = aster_read_fifo; + sc->writefifo = aster_write_fifo; + + /* setup card type */ + sc->sc_cardtyp = CARD_TYPEP_BLMASTER; + sc->sc_bustyp = BUS_TYPE_IOM2; + + /* enable RTS on HSCX A */ + aster_write_reg(sc, ISIC_WHAT_HSCXA, H_MODE, HSCX_MODE_RTS); + + /* MI initialization of card */ + + isicattach(FLAG_BLMASTER, sc); + + ssc->sc_isr.isr_intr = isicintr; + ssc->sc_isr.isr_arg = sc; + ssc->sc_isr.isr_ipl = isic_supio_ipl; /* XXX */ + add_isr(&ssc->sc_isr); + } + + #if 0 + int + isic_supiointr(p) + void *p; + { + /* XXX should test whether it is our interupt at all */ + add_sicallback((sifunc_t)isicintr, p, NULL); + return 1; + } + #endif + + /*static*/ void + aster_read_fifo(struct isic_softc *sc, int what, void *buf, size_t size) + { + bus_space_tag_t t = sc->sc_maps[what].t; + bus_space_handle_t h = sc->sc_maps[what].h; + bus_size_t o = sc->sc_maps[what].offset; + + bus_space_read_multi_1(t, h, o, buf, size); + } + + /*static*/ void + aster_write_fifo(struct isic_softc *sc, int what, const void *buf, size_t size) + { + bus_space_tag_t t = sc->sc_maps[what].t; + bus_space_handle_t h = sc->sc_maps[what].h; + bus_size_t o = sc->sc_maps[what].offset; + + bus_space_write_multi_1(t, h, o, (u_int8_t*)buf, size); + } + + /*static*/ u_int8_t + aster_read_reg(struct isic_softc *sc, int what, bus_size_t offs) + { + bus_space_tag_t t = sc->sc_maps[what].t; + bus_space_handle_t h = sc->sc_maps[what].h; + bus_size_t o = sc->sc_maps[what].offset; + + return bus_space_read_1(t, h, o + offs); + } + + /*static*/ void + aster_write_reg(struct isic_softc *sc, int what, bus_size_t offs, u_int8_t data) + { + bus_space_tag_t t = sc->sc_maps[what].t; + bus_space_handle_t h = sc->sc_maps[what].h; + bus_size_t o = sc->sc_maps[what].offset; + + bus_space_write_1(t, h, o + offs, data); + } diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/machine/i4b_ioctl.h ./machine/i4b_ioctl.h *** /build2/ref/machine/i4b_ioctl.h Thu Jul 9 15:19:50 1998 --- ./machine/i4b_ioctl.h Sun Aug 16 21:02:49 1998 *************** *** 93,98 **** --- 93,99 ---- #define CARD_TYPEP_DRNNGO 8 /* Dr. Neuhaus Niccy GO@ */ #define CARD_TYPEP_SWS 9 /* Sedlbauer Win Speed */ #define CARD_TYPEP_DYNALINK 10 /* Dynalink IS64PH */ + #define CARD_TYPEP_BLMASTER 11 /* ISDN Blaster / ISDN Master */ /* * in case you add support for more cards, please update: * *************** *** 102,108 **** * and adjust CARD_TYPEP_MAX below. */ ! #define CARD_TYPEP_MAX 10 /* max type */ /*---------------------------------------------------------------------------* * card types for CTRL_DAIC --- 103,109 ---- * and adjust CARD_TYPEP_MAX below. */ ! #define CARD_TYPEP_MAX 11 /* max type */ /*---------------------------------------------------------------------------* * card types for CTRL_DAIC diff --exclude=CVS --unidirectional-new-file -c -r /build2/ref/sppp/if_spppsubr.c ./sppp/if_spppsubr.c *** /build2/ref/sppp/if_spppsubr.c Sun May 31 20:10:26 1998 --- ./sppp/if_spppsubr.c Thu Aug 13 15:23:49 1998 *************** *** 28,33 **** --- 28,41 ---- #endif #include + + #ifdef NetBSD1_3 + # if NetBSD1_3 > 6 + # include "opt_inet.h" + # include "opt_iso.h" + # endif + #endif + #include #include #include --sdtB3X0nJg68CQEu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Aug 18 13:02:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA17755 for freebsd-isdn-outgoing; Tue, 18 Aug 1998 13:02:46 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mail.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA17743 for ; Tue, 18 Aug 1998 13:02:44 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from casparc.ppp.net (casparc2.ppp.net [194.64.12.42]) by mail.ppp.net (8.8.8/8.8.8) with SMTP id WAA15586 for ; Tue, 18 Aug 1998 22:02:02 +0200 Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0z8rxB-002ZjZC; Tue, 18 Aug 98 22:02 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Tue, 18 Aug 1998 21:41:36 +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, 18 Aug 1998 21:41:36 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #1 built 1998-Jun-6) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: Problems with ppp and idletimeout In-Reply-To: <35D9A659.85BF0472@nl.compuware.com> from Bert Driehuis at "Aug 18, 98 06:05:45 pm" To: freebsd-isdn@FreeBSD.ORG (ISDN for BSD) Date: Tue, 18 Aug 1998 21:41:36 +0200 (CEST) Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL38 (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 Bert Driehuis wrote: > Ignatios Souvatzis wrote: > > > Which creates another idea: > > I'd like to see an interface where the hdlc level is provided to other kernel > > modules, so that, e.g., I could do: This interface exists (/dev/i4brbch, rbch = Raw B-CHannel access) in a rudimentary form. > > Of course, this is a long-term goal; the async ppp stuff would need to be split > > up, too. OTOH, it is (or was originally) designed to have such an interface. > > > > This way, isdn people could benefit from whatever work is already available > > in the PPP module, and concentrate on debugging the difficult stuff. > > This, matter of fact, is how my BISDN driver for BSD/OS worked (and what I > plan on doing for the ISDN4BSD port to BSD/OS). In theory, this would take > advantage of BSD/OS's exisiting support for e.g. channel bundling. Haven't > tried it though... Eivind Eklund is working on interfacing the multilink PPP daemon with the rbch interface(s). hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe A duck is like a bicycle because they both have two wheels except the duck (terry@cs.weber.edu) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Aug 19 03:16:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA20283 for freebsd-isdn-outgoing; Wed, 19 Aug 1998 03:16:12 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from alushta.NL.net (alushta.NL.net [193.78.240.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA20278 for ; Wed, 19 Aug 1998 03:16:10 -0700 (PDT) (envelope-from bert_driehuis@nl.compuware.com) Received: from uniface by alushta.NL.net with UUCP id <9699-3399>; Wed, 19 Aug 1998 12:10:59 +0200 Received: from nl.compuware.com (bertd@c1111.nl.compuware.com [172.16.16.36]) by dewmoth.nl.compuware.com (8.6.9/961125) with ESMTP id MAA06058 for ; Wed, 19 Aug 1998 12:08:10 +0200 Message-ID: <35DAA399.BDBD138B@nl.compuware.com> Date: Wed, 19 Aug 1998 12:06:17 +0200 From: Bert Driehuis Organization: Compuware Europe, Amsterdam X-Mailer: Mozilla 4.05 [en] (X11; I; BSD/OS 3.1 i386) MIME-Version: 1.0 To: ISDN for BSD Subject: Re: Problems with ppp and idletimeout References: 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 wrote: > > > Which creates another idea: > > > I'd like to see an interface where the hdlc level is provided to other kernel > > > modules, so that, e.g., I could do: > > This interface exists (/dev/i4brbch, rbch = Raw B-CHannel access) in a > rudimentary form. Errr yes, but the ditty I put together had not reflection in device land. It shows up in the kernel as ibc, in exactly the same way a physical synchronous interface shows up op BSD/OS. The device can be manipulated with ifconfig, and ppp just "knows" how to talk to it. Of course, the sync PPP driver isn't really tailored towards dialup, so there's some raw edges there, but on the whole it works enough not to bother with the BISDN version... I'll have to come up with *something* to manage the connection, so... The BSD/OS kernel interface to point-to-point devices is pretty neat. Cheers, -- Bert -- Bert Driehuis, MIS -- bert_driehuis@nl.compuware.com -- +31-20-3116119 The grand leap of the whale up the Fall of Niagara is esteemed, by all who have seen it, as one of the finest spectacles in nature. -- Benjamin Franklin. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Aug 19 06:32:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA09952 for freebsd-isdn-outgoing; Wed, 19 Aug 1998 06:32:05 -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 GAA09823 for ; Wed, 19 Aug 1998 06:31:59 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id NAA14927; Wed, 19 Aug 1998 13:31:05 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id PAA27576; Wed, 19 Aug 1998 15:31:04 +0200 (MET DST) Message-ID: <19980819153104.40628@follo.net> Date: Wed, 19 Aug 1998 15:31:04 +0200 From: Eivind Eklund To: hm@kts.org, ISDN for BSD Subject: Re: Problems with ppp and idletimeout References: <35D9A659.85BF0472@nl.compuware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: ; from Hellmuth Michaelis on Tue, Aug 18, 1998 at 09:41:36PM +0200 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > Of course, this is a long-term goal; the async ppp stuff would > > > need to be split up, too. OTOH, it is (or was originally) > > > designed to have such an interface. > > > > > > This way, isdn people could benefit from whatever work is > > > already available in the PPP module, and concentrate on > > > debugging the difficult stuff. > > > > This, matter of fact, is how my BISDN driver for BSD/OS worked (and what I > > plan on doing for the ISDN4BSD port to BSD/OS). In theory, this would take > > advantage of BSD/OS's exisiting support for e.g. channel bundling. Haven't > > tried it though... > > Eivind Eklund is working on interfacing the multilink PPP daemon with > the rbch interface(s). ... and has it AFAIK working using mpd (I've not yet had time to do it with iij-ppp, unfortunately - it will need some patches). I've so far sent off the relevant patches and a patched mpd to two other people for testing - I've not yet got any feedback on whether it work for them. If somebody else want to test, please contact me. I've not yet tested this with multiple adapters, but that should really not make a difference. Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Aug 20 01:09:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA13499 for freebsd-isdn-outgoing; Thu, 20 Aug 1998 01:09:49 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from gorilla.mchh.siemens.de (gorilla.mchh.siemens.de [194.138.158.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA13478 for ; Thu, 20 Aug 1998 01:09:42 -0700 (PDT) (envelope-from andreas.gaertner.gp@oen.siemens.de) Received: from moody.mchh.siemens.de (moody-i.mchh.siemens.de [194.138.158.26]) by gorilla.mchh.siemens.de (8.8.7/8.8.7) with ESMTP id KAA22503 for ; Thu, 20 Aug 1998 10:09:18 +0200 (MET DST) Received: from uebemc.siemens.de (root@popey.mchh3.oen.siemens.de [132.29.3.155]) by moody.mchh.siemens.de (8.8.7/8.8.7) with SMTP id KAA07894 for ; Thu, 20 Aug 1998 10:13:08 +0200 (MET DST) Received: from egnetz (serverrt) by uebemc.siemens.de (4.1/SMI-4.1) id AA09611; Thu, 20 Aug 98 10:08:13 +0200 Received: from s71ee26 by egnetz (SMI-8.6/SMI-4.1) id KAA13514; Thu, 20 Aug 1998 10:07:50 +0200 Received: from localhost by s71ee26 (SMI-8.6/NFS-Client-1.0) id KAA13895; Thu, 20 Aug 1998 10:08:12 +0200 Date: Thu, 20 Aug 1998 10:08:12 +0200 (MET DST) From: Anderl To: freebsd-isdn@FreeBSD.ORG Subject: tcpdump and isppp0 Message-Id: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-992951867-903600258=:12206" Content-Id: Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---559023410-992951867-903600258=:12206 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Date: Thu, 20 Aug 1998 10:04:18 +0200 (MET DST) From: Anderl To: isdn-freebsd@freebsd.org Subject: tcpdump and isppp0 hi folks, i recently successfully configured my i4bv0.63/fritz!card to work together with freebsd2.2.6. now i wanted to check the traffic going over the interface using 'tcpdump -i isppp0'. everything seemed fine. i started up the connection, put tcpdump onto the interface to listen and did a ping to a remote site. i stopped the ping and since then weird packets were wandering from the remote site to my machine and vice versa and wouldn't stop. also inetd showed traffic. when i then terminated tcpdump all grew quiet again. connection was still up and no traffic went over the interface. so something (i assume tcpdump) must effect or even generate traffic over isppp0 even if there is none or supposed to be none. how can that be? the attachment shows an extract of the problem given above. can you help? any hints are highly appreciated, thanks in advance, anderl ---559023410-992951867-903600258=:12206 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="dump.txt" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: MTk6MzU6MTIuMTIzNDQ4IFt8aXBdDQoxOTozNToxMi4xMzgyNzEgW3xpcF0N CjE5OjM1OjEyLjE0NjIzOSBbfGlwXQ0KMTk6MzU6MTIuMTY0MzkyIHRydW5j YXRlZC1pcCAtIDQ5MTU5IGJ5dGVzIG1pc3NpbmchMy40LjE5Mi4zNSA+IDUu Ni40My4xMTU6IChmcmFnIDI1Njo0OTEyNUAxNzYpIFt0b3MgMHgzXSBbdHRs IDFdDQoxOTozNToxMi4xNjQ0MjggW3xpcF0NCjE5OjM1OjEyLjE4NDYzNCB0 cnVuY2F0ZWQtaXAgLSA0OTE2MyBieXRlcyBtaXNzaW5nITMuNC4xOTIuMzUg PiA1LjYuNDMuMTE1OiAoZnJhZyAyNTc6NDkxMjVAMTQ0KSBbdG9zIDB4M10g W3R0bCAxXQ0KMTk6MzU6MTIuMTg0NjYyIFt8aXBdDQoxOTozNToxMy4xODA4 NjMgW3xpcF0NCjE5OjM1OjEzLjE5NzM3NCBbfGlwXQ0KMTk6MzU6MTMuMTk3 NDY2IFt8aXBdDQoxOTozNToxMy4zNDk2MzQgdHJ1bmNhdGVkLWlwIC0gNDkx NTggYnl0ZXMgbWlzc2luZyE5OS4xMTEuMTA5LjEwMSA+IDMyLjExNi4xMTEu MzI6IChmcmFnIDUxNTo0OTEyN0AyMDApIFt0b3MgMHgzXQ0KMTk6MzU6MTMu MzQ5NzI1IFt8aXBdDQoxOTozNToxMy4zNDk3MzIga2lyay5tdWMuZGUuMTAz NiA+IGNvbGluLm11Yy5kZS5kb21haW46IDQ1NTMrICg0MSkNCjE5OjM1OjEz LjM2MTYxNSBbfGlwXQ0KMTk6MzU6MTMuMzYxNjUzIFt8aXBdDQoxOTozNTox My4zNjY0NzEgW3xpcF0NCjE5OjM1OjEzLjM3NjM0MSBbfGlwXQ0KMTk6MzU6 MTMuMzc2MzY4IFt8aXBdDQoxOTozNToxMy4zOTIyMjQgW3xpcF0NCjE5OjM1 OjEzLjM5MjI0OSBbfGlwXQ0KMTk6MzU6MTcuMzQxMDgyIGtpcmsubXVjLmRl LjEwMzcgPiBjb2xpbi5tdWMuZGUuZG9tYWluOiA0NTUzKyAoNDEpDQoxOToz NToxNy41NjAwODIgNTguMTcuMjAxLjY2ID4gY29saW4ubXVjLmRlOiAoZnJh ZyAxNzY2NDotMjdAMTI0MCkgW3RvcyAweDNdDQoxOTozNToxNy41NjE5Mjcg a2lyay5tdWMuZGUuMTAzOCA+IGNvbGluLm11Yy5kZS5kb21haW46IDQ1NTQr ICg0MSkNCjE5OjM1OjE3LjczNjkzMSA1OC4xNy4yMDEuNjIgPiBjb2xpbi5t dWMuZGU6IChmcmFnIDE3NjY0Oi0yN0AxMjQwKSBbdG9zIDB4M10NCjE5OjM1 OjE4LjcyMzU0NiBraXJrLm11Yy5kZS4xMDM5ID4gY29saW4ubXVjLmRlLmRv bWFpbjogMTExMisgQT8gbXVjLmRlLiAoMjQpDQoxOTozNToxOC43MzE1ODEg a2lyay5tdWMuZGUuMTA0MCA+IGNvbGluLm11Yy5kZS5kb21haW46IDQ1NTUr ICg0NCkNCjE5OjM1OjE4Ljc3ODUzNSA1OC4xNy4yMDEuMiA+IGNvbGluLm11 Yy5kZTogKGZyYWcgMTc2NjQ6LTI3QDE2MjQpIFt0b3MgMHgzXQ0KMTk6MzU6 MTguNzgwMzAwIGtpcmsubXVjLmRlID4gY29saW4ubXVjLmRlOiBpY21wOiBl Y2hvIHJlcXVlc3QNCjE5OjM1OjE4LjgxODI5MCAyNTMuMS42LjEzNCA+IGNv bGluLm11Yy5kZTogKGZyYWcgMTc2NjQ6LTI3QDY3MikgW3RvcyAweDNdDQox OTozNToxOS43ODA5Nzgga2lyay5tdWMuZGUgPiBjb2xpbi5tdWMuZGU6IGlj bXA6IGVjaG8gcmVxdWVzdA0KMTk6MzU6MTkuODI1NDE2IDI1My4xLjYuMTIz ID4gY29saW4ubXVjLmRlOiAoZnJhZyAxNzY2NDotMjdANjcyKSBbdG9zIDB4 M10NCjE5OjM1OjIwLjYzMTI4OSA1OC4xNy4yMDEuMTExID4gY29saW4ubXVj LmRlOiAoZnJhZyAxNzY2NDotMjdANTc2KSBbdG9zIDB4M10NCjE5OjM1OjIw LjYzMjQ4NCBraXJrLm11Yy5kZS4xMDQxID4gY29saW4ubXVjLmRlLmRvbWFp bjogNDU1NisgKDQ1KQ0KMTk6MzU6MjAuNzkwOTM0IGtpcmsubXVjLmRlID4g Y29saW4ubXVjLmRlOiBpY21wOiBlY2hvIHJlcXVlc3QNCjE5OjM1OjIwLjgz MTkwMiAyNTMuMS42LjEwOCA+IGNvbGluLm11Yy5kZTogKGZyYWcgMTc2NjQ6 LTI3QDY3MikgW3RvcyAweDNdDQoxOTozNToyMC45NDAyMzggNTguMTcuMjAx LjE2ID4gY29saW4ubXVjLmRlOiAoZnJhZyAxNzY2NDotMjdAMTI3MikgW3Rv cyAweDNdDQoxOTozNToyMC45NDE1NDAga2lyay5tdWMuZGUuMTA0MiA+IGNv bGluLm11Yy5kZS5kb21haW46IDQ1NTcrICg0MikNCjE5OjM1OjIxLjAwNTg5 MCA1OC4xNy4yMDAuMTc5ID4gY29saW4ubXVjLmRlOiAoZnJhZyAxNzY2NDot MjdAMjAwMCkgW3RvcyAweDNdDQoxOTozNToyMS4wMDY3NDQga2lyay5tdWMu ZGUuMTA0MyA+IGNvbGluLm11Yy5kZS5kb21haW46IDQ1NTgrICg0NSkNCjE5 OjM1OjIxLjA3MDg4NCA1OC4xNy4yMDAuMTc3ID4gY29saW4ubXVjLmRlOiAo ZnJhZyAxNzY2NDotMjdAMjAwMCkgW3RvcyAweDNdDQoxOTozNToyMS4wOTI3 NDYga2lyay5tdWMuZGUuMTA0NCA+IGNvbGluLm11Yy5kZS5kb21haW46IDQ1 NTkrICg0MykNCjE5OjM1OjIxLjI3Mjk0NiA1OC4xNy4yMDEuNyA+IGNvbGlu Lm11Yy5kZTogKGZyYWcgMTc2NjQ6LTI3QDEyNTYpIFt0b3MgMHgzXQ0KMTk6 MzU6MjEuMjc0MjMyIGtpcmsubXVjLmRlLjEwNDUgPiBjb2xpbi5tdWMuZGUu ZG9tYWluOiA0NTYwKyAoNDMpDQoxOTozNToyMS4zOTM1NjUgNTguMTcuMjAx LjQgPiBjb2xpbi5tdWMuZGU6IChmcmFnIDE3NjY0Oi0yN0AxMjU2KSBbdG9z IDB4M10NCjE5OjM1OjIxLjgwMDkzOSBraXJrLm11Yy5kZSA+IGNvbGluLm11 Yy5kZTogaWNtcDogZWNobyByZXF1ZXN0DQoxOTozNToyMS44NDkzOTcgMjUz LjEuNi44OSA+IGNvbGluLm11Yy5kZTogKGZyYWcgMTc2NjQ6LTI3QDY3Mikg W3RvcyAweDNdDQoxOTozNToyMi4zOTEzNzEga2lyay5tdWMuZGUuMTA0NiA+ IGNvbGluLm11Yy5kZS5kb21haW46IDQ1NjErICg0MikNCjE5OjM1OjIyLjUy MDMyNSA1OC4xNy4yMDAuMjQyID4gY29saW4ubXVjLmRlOiAoZnJhZyAxNzY2 NDotMjdAMTI0OCkgW3RvcyAweDNdDQoxOTozNToyMi41MjE2NDcga2lyay5t dWMuZGUuMTA0NyA+IGNvbGluLm11Yy5kZS5kb21haW46IDQ1NjIrICg0MikN CjE5OjM1OjIyLjY0MTgwMiA1OC4xNy4yMDAuMjM4ID4gY29saW4ubXVjLmRl OiAoZnJhZyAxNzY2NDotMjdAMTI0OCkgW3RvcyAweDNdDQoxOTozNToyMi42 NDI5NTIga2lyay5tdWMuZGUuMTA0OCA+IGNvbGluLm11Yy5kZS5kb21haW46 IDQ1NjMrICg0MikNCjE5OjM1OjIyLjc2MzY2OSA1OC4xNy4yMDAuMjM0ID4g Y29saW4ubXVjLmRlOiAoZnJhZyAxNzY2NDotMjdAMTI0OCkgW3RvcyAweDNd DQoxOTozNToyMi43NjQ3NDYga2lyay5tdWMuZGUuMTA0OSA+IGNvbGluLm11 Yy5kZS5kb21haW46IDQ1NjQrICg0NCkNCjE5OjM1OjIyLjgxMDkzNCBraXJr Lm11Yy5kZSA+IGNvbGluLm11Yy5kZTogaWNtcDogZWNobyByZXF1ZXN0DQox OTozNToyMi44NTAxNDQgMjUzLjEuNi42MiA+IGNvbGluLm11Yy5kZTogKGZy YWcgMTc2NjQ6LTI3QDY3MikgW3RvcyAweDNdDQoxOTozNToyMi44ODgxMTQg NTguMTcuMjAwLjIyNyA+IGNvbGluLm11Yy5kZTogKGZyYWcgMTc2NjQ6LTI3 QDEyNjQpIFt0b3MgMHgzXQ0KMTk6MzU6MjIuODg5NDY4IGtpcmsubXVjLmRl LjEwNTAgPiBjb2xpbi5tdWMuZGUuZG9tYWluOiA0NTY1KyAoNDIpDQoxOToz NToyMy4wNTI2MzQgNTguMTcuMjAwLjIyNCA+IGNvbGluLm11Yy5kZTogKGZy YWcgMTc2NjQ6LTI3QDEyNDgpIFt0b3MgMHgzXQ0KMTk6MzU6MjMuMDUzODM2 IGtpcmsubXVjLmRlLjEwNTEgPiBjb2xpbi5tdWMuZGUuZG9tYWluOiA0NTY2 KyAoNDMpDQoxOTozNToyMy4xODIxOTcgNTguMTcuMjAwLjIxOSA+IGNvbGlu Lm11Yy5kZTogKGZyYWcgMTc2NjQ6LTI3QDEyNTYpIFt0b3MgMHgzXQ0KMTk6 MzU6MjMuMTgzNTE4IGtpcmsubXVjLmRlLjEwNTIgPiBjb2xpbi5tdWMuZGUu ZG9tYWluOiA0NTY3KyAoNDQpDQoxOTozNToyMy4zMDk1NTggNTguMTcuMjAw LjIxMyA+IGNvbGluLm11Yy5kZTogKGZyYWcgMTc2NjQ6LTI3QDEyNjQpIFt0 b3MgMHgzXQ0KMTk6MzU6MjMuMzEwNzU5IGtpcmsubXVjLmRlLjEwNTMgPiBj b2xpbi5tdWMuZGUuZG9tYWluOiA0NTY4KyAoNDQpDQoxOTozNToyNy40ODM3 NzEgNTguMTcuMjAwLjEyNSA+IGNvbGluLm11Yy5kZTogKGZyYWcgMTc2NjQ6 LTI3QDEyNjQpIFt0b3MgMHgzXQ0KMTk6MzU6MjcuNDg1MDc4IGtpcmsubXVj LmRlLjEwNTQgPiBjb2xpbi5tdWMuZGUuZG9tYWluOiA0NTY5KyAoNDIpDQox OTozNToyNy43ODE4OTcgNTguMTcuMjAwLjEyMSA+IGNvbGluLm11Yy5kZTog KGZyYWcgMTc2NjQ6LTI3QDEyNDgpIFt0b3MgMHgzXQ0KMTk6MzU6MjcuNzgz MDk4IGtpcmsubXVjLmRlLjEwNTUgPiBjb2xpbi5tdWMuZGUuZG9tYWluOiA0 NTcwKyAoNDIpDQoxOTozNToyNy45OTU2MTggNTguMTcuMjAwLjExOSA+IGNv bGluLm11Yy5kZTogKGZyYWcgMTc2NjQ6LTI3QDEyNDgpIFt0b3MgMHgzXQ0K MTk6MzU6MjcuOTk2Nzk1IGtpcmsubXVjLmRlLjEwNTYgPiBjb2xpbi5tdWMu ZGUuZG9tYWluOiA0NTcxKyAoNDEpDQoxOTozNToyOC4yNTI0NDggNTguMTcu MjAwLjExOCA+IGNvbGluLm11Yy5kZTogKGZyYWcgMTc2NjQ6LTI3QDEyNDAp IFt0b3MgMHgzXQ0KMTk6MzU6MjkuMjUxMzg4IGtpcmsubXVjLmRlLjEwNTcg PiBjb2xpbi5tdWMuZGUuZG9tYWluOiA0NTcyKyAoNDQpDQoxOTozNTozMi41 MDUwMDQgNTguMTcuMjAwLjcxID4gY29saW4ubXVjLmRlOiAoZnJhZyAxNzY2 NDotMjdAMTI2NCkgW3RvcyAweDNdDQoxOTozNTozMi41MDYzMDkga2lyay5t dWMuZGUubmltID4gY29saW4ubXVjLmRlLmRvbWFpbjogNDU3MysgKDQ0KQ0K MTk6MzU6MzIuODA3NDU2IA== ---559023410-992951867-903600258=:12206-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Aug 20 09:19:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA04892 for freebsd-isdn-outgoing; Thu, 20 Aug 1998 09:19:46 -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 JAA04827 for ; Thu, 20 Aug 1998 09:19:32 -0700 (PDT) (envelope-from malte.lance@gmx.net) Received: from neuron.webmore.de (unverified [194.95.214.181]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Thu, 20 Aug 1998 18:19:32 +0200 Received: (from malte.lance@gmx.net) by neuron.webmore.de (8.8.8/8.8.8) id SAA03397; Thu, 20 Aug 1998 18:03:26 +0200 (CEST) From: Malte Lance MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 20 Aug 1998 18:03:26 +0200 (CEST) To: Anderl Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: tcpdump and isppp0 In-Reply-To: References: X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13788.18314.459008.114848@neuron.webmore.de> Reply-To: malte.lance@gmx.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Anderl writes: > Date: Thu, 20 Aug 1998 10:04:18 +0200 (MET DST) > From: Anderl > To: isdn-freebsd@freebsd.org > Subject: tcpdump and isppp0 > > > hi folks, > > i recently successfully configured my i4bv0.63/fritz!card to work together > with freebsd2.2.6. > now i wanted to check the traffic going over the interface using 'tcpdump > -i isppp0'. everything seemed fine. i started up the connection, put > tcpdump onto the interface to listen and did a ping to a remote site. i > stopped the ping and since then weird packets were wandering from the > remote site to my machine and vice versa and wouldn't stop. also inetd > showed traffic. when i then terminated tcpdump all grew quiet again. > connection was still up and no traffic went over the interface. so > something (i assume tcpdump) must effect or even generate traffic over > isppp0 even if there is none or supposed to be none. how can that be? > > the attachment shows an extract of the problem given above. can you help? > > any hints are highly appreciated, thanks in advance, DNS-lookups ? neuron:~# cat /etc/services | grep domain domain 53/tcp #Domain Name Server domain 53/udp #Domain Name Server # identify "authentication domains" neuron:~# Try "tcpdump -f -N -n ..." Maybe i did not get your problem at all. Malte. > > > anderl > 19:35:12.123448 [|ip] > 19:35:12.138271 [|ip] > 19:35:12.146239 [|ip] > 19:35:12.164392 truncated-ip - 49159 bytes missing!3.4.192.35 > 5.6.43.115: (frag 256:49125@176) [tos 0x3] [ttl 1] > 19:35:12.164428 [|ip] > 19:35:12.184634 truncated-ip - 49163 bytes missing!3.4.192.35 > 5.6.43.115: (frag 257:49125@144) [tos 0x3] [ttl 1] > 19:35:12.184662 [|ip] > 19:35:13.180863 [|ip] > 19:35:13.197374 [|ip] > 19:35:13.197466 [|ip] > 19:35:13.349634 truncated-ip - 49158 bytes missing!99.111.109.101 > 32.116.111.32: (frag 515:49127@200) [tos 0x3] > 19:35:13.349725 [|ip] > 19:35:13.349732 kirk.muc.de.1036 > colin.muc.de.domain: 4553+ (41) > 19:35:13.361615 [|ip] > 19:35:13.361653 [|ip] > 19:35:13.366471 [|ip] > 19:35:13.376341 [|ip] > 19:35:13.376368 [|ip] > 19:35:13.392224 [|ip] > 19:35:13.392249 [|ip] > 19:35:17.341082 kirk.muc.de.1037 > colin.muc.de.domain: 4553+ (41) > 19:35:17.560082 58.17.201.66 > colin.muc.de: (frag 17664:-27@1240) [tos 0x3] ... > 19:35:29.251388 kirk.muc.de.1057 > colin.muc.de.domain: 4572+ (44) > 19:35:32.505004 58.17.200.71 > colin.muc.de: (frag 17664:-27@1264) [tos 0x3] > 19:35:32.506309 kirk.muc.de.nim > colin.muc.de.domain: 4573+ (44) > 19:35:32.807456 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Fri Aug 21 10:02:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA03147 for freebsd-isdn-outgoing; Fri, 21 Aug 1998 10:02:52 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from mail.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA03138 for ; Fri, 21 Aug 1998 10:02:48 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from casparc.ppp.net (casparc2.ppp.net [194.64.12.42]) by mail.ppp.net (8.8.8/8.8.8) with SMTP id TAA22023; Fri, 21 Aug 1998 19:02:03 +0200 Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0z9uZe-002ZjfC; Fri, 21 Aug 98 19:02 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Fri, 21 Aug 1998 18:34:37 +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; Fri, 21 Aug 1998 18:34:37 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #1 built 1998-Jun-6) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: tcpdump and isppp0 In-Reply-To: from Anderl at "Aug 20, 98 10:08:12 am" To: andreas.gaertner.gp@oen.siemens.de (Anderl) Date: Fri, 21 Aug 1998 18:34:37 +0200 (CEST) Cc: freebsd-isdn@FreeBSD.ORG Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL38 (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 Anderl wrote: > now i wanted to check the traffic going over the interface using 'tcpdump > -i isppp0'. everything seemed fine. i started up the connection, put > tcpdump onto the interface to listen and did a ping to a remote site. i > stopped the ping and since then weird packets were wandering from the > remote site to my machine and vice versa and wouldn't stop. also inetd > showed traffic. when i then terminated tcpdump all grew quiet again. > connection was still up and no traffic went over the interface. so > something (i assume tcpdump) must effect or even generate traffic over > isppp0 even if there is none or supposed to be none. how can that be? BPF support for the isppp driver is buggy or at least inconsistent (two call to bpf_mtap() with different parameter passing). Also there seemed to be a parameter passing change happened for bpf_mtap() for FreeBSD-current. Since i still don't use sppp and i don't run current, diffs are - as usual - welcome ;-) hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe A duck is like a bicycle because they both have two wheels except the duck (terry@cs.weber.edu) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sat Aug 22 01:02:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA10394 for freebsd-isdn-outgoing; Sat, 22 Aug 1998 01:02:51 -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 BAA10389 for ; Sat, 22 Aug 1998 01:02:48 -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.7/8.8.7) with ESMTP id KAA09672; Sat, 22 Aug 1998 10:02:04 +0200 Received: (from martin@localhost) by rumolt.teuto.de (8.8.8/8.8.7) id JAA02643; Sat, 22 Aug 1998 09:49:09 +0200 (MEST) From: Martin Husemann Message-Id: <199808220749.JAA02643@rumolt.teuto.de> Subject: Re: tcpdump and isppp0 To: hm@kts.org Date: Sat, 22 Aug 1998 09:49:09 +0200 (MEST) Cc: andreas.gaertner.gp@oen.siemens.de, freebsd-isdn@FreeBSD.ORG In-Reply-To: from "Hellmuth Michaelis" at Aug 21, 98 06:34:37 pm 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 > BPF support for the isppp driver is buggy or at least inconsistent (two > call to bpf_mtap() with different parameter passing). It works fine for NetBSD-current, and probably for OpenBSD too. Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sat Aug 22 01:26:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA11534 for freebsd-isdn-outgoing; Sat, 22 Aug 1998 01:26:09 -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 BAA11529 for ; Sat, 22 Aug 1998 01:26:07 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (1562 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Sat, 22 Aug 1998 10:25:11 +0200 (METDST) (Smail-3.2.0.101 1997-Dec-17 #2 built 1998-Jun-26) Received: by hcswork.hcs.de (Smail3.1.29.0 #12) id m0zA91T-0000f6C; Sat, 22 Aug 98 10:27 METDST Message-Id: From: hm@hcs.de (Hellmuth Michaelis) Subject: Re: tcpdump and isppp0 In-Reply-To: <199808220749.JAA02643@rumolt.teuto.de> from Martin Husemann at "Aug 22, 98 09:49:09 am" To: martin@rumolt.teuto.de (Martin Husemann) Date: Sat, 22 Aug 1998 10:27:43 +0200 (METDST) Cc: hm@kts.org, andreas.gaertner.gp@oen.siemens.de, 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 Martin Husemann: > > BPF support for the isppp driver is buggy or at least inconsistent (two > > call to bpf_mtap() with different parameter passing). > > It works fine for NetBSD-current, and probably for OpenBSD too. I was unclear. The above sentence is only true for FreeBSD! hellmuth -- Hellmuth Michaelis Tel +49 40 559747-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 559747-77 Oldesloer Strasse 97-99 Mail hm [at] 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 Sat Aug 22 01:56:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA12604 for freebsd-isdn-outgoing; Sat, 22 Aug 1998 01:56:57 -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 BAA12599 for ; Sat, 22 Aug 1998 01:56:55 -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.7/8.8.7) with ESMTP id KAA12033; Sat, 22 Aug 1998 10:56:05 +0200 Received: (from martin@localhost) by rumolt.teuto.de (8.8.8/8.8.7) id KAA04695; Sat, 22 Aug 1998 10:55:57 +0200 (MEST) From: Martin Husemann Message-Id: <199808220855.KAA04695@rumolt.teuto.de> Subject: Re: tcpdump and isppp0 To: martin@rumolt.teuto.de (Martin Husemann) Date: Sat, 22 Aug 1998 10:55:55 +0200 (MEST) Cc: hm@kts.org, andreas.gaertner.gp@oen.siemens.de, freebsd-isdn@FreeBSD.ORG In-Reply-To: <199808220749.JAA02643@rumolt.teuto.de> from "Martin Husemann" at Aug 22, 98 09:49:09 am 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 > > BPF support for the isppp driver is buggy or at least inconsistent (two > > call to bpf_mtap() with different parameter passing). > > It works fine for NetBSD-current, and probably for OpenBSD too. Shouting too loud and too quick: It works fine, but as the original poster noticed: a bpf-tapped isppp device will never idle-timeout. The bpf doesn't generate any traffic, but somehow it prevents the timeout. I'll take a look at it (together with ignoring the lcp-keep-alives) next week. Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message