From owner-freebsd-isdn Sun Sep 1 23:43:14 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C04AA37B400 for ; Sun, 1 Sep 2002 23:43:12 -0700 (PDT) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id D21AB43E6A for ; Sun, 1 Sep 2002 23:43:10 -0700 (PDT) (envelope-from ari.suutari@syncrontech.com) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.3/8.12.3) with ESMTP id g826h7eA019301; Mon, 2 Sep 2002 09:43:07 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari Organization: Syncron Tech Oy To: Gary Jennejohn , hselasky@c2i.net Subject: Re: New ihfc driver Date: Mon, 2 Sep 2002 09:43:29 +0300 User-Agent: KMail/1.4.2 Cc: freebsd-isdn@FreeBSD.ORG References: <200208301111.g7UBBUQI005381@peedub.jennejohn.org> In-Reply-To: <200208301111.g7UBBUQI005381@peedub.jennejohn.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200209020943.29552.ari.suutari@syncrontech.com> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi again, On Friday 30 August 2002 14:11, Gary Jennejohn wrote: > The weird dynamic goto's and opaque macros which you use in > your drivers are IMO not acceptable.=20 =09I just browsed through the sources and the goto statements =09are really weird ! I didn't know that you could do something =09like that in C-language...=20 =09Gary is right about those, they should be changed to something =09that is more common style (like just switch/case). I think that =09everyone understands that a man who can write a device driver =09is a brilliant one even without using the weirdest c-language=20 =09style at all. =09=09Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Sun Sep 1 23:43:17 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE42037B405 for ; Sun, 1 Sep 2002 23:43:14 -0700 (PDT) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id A217443E65 for ; Sun, 1 Sep 2002 23:43:13 -0700 (PDT) (envelope-from ari.suutari@syncrontech.com) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.3/8.12.3) with ESMTP id g826hBeA019307; Mon, 2 Sep 2002 09:43:11 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari Organization: Syncron Tech Oy To: Gary Jennejohn , hselasky@c2i.net Subject: Re: New ihfc driver Date: Mon, 2 Sep 2002 09:43:34 +0300 User-Agent: KMail/1.4.2 Cc: freebsd-isdn@FreeBSD.ORG References: <200208301111.g7UBBUQI005381@peedub.jennejohn.org> In-Reply-To: <200208301111.g7UBBUQI005381@peedub.jennejohn.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200209020943.34019.ari.suutari@syncrontech.com> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, Good that this driver is making progress. Maybe, someday I can use cards from my pile-of-hfc-based-isdn-cards. On Friday 30 August 2002 14:11, Gary Jennejohn wrote: > hselasky@c2i.net writes: > > The stuff you did in the state machines I can't comment on. > > The weird dynamic goto's and opaque macros which you use in > your drivers are IMO not acceptable. If no-one but you understands > this stuff then we'll have a maintenace nightmare. What if you > get hit by a truck ? =09A couple of questions come to my mind: =09- if this driver would be added as-is to current distribution, =09 would it break anything ie. would the worst case be =09 just that new cards supported by this driver wouldn't work ? =20 =09- Could it be possible to have one more polishing round =09 for the driver to cleanup these style issues ? =09If adding the driver wouldn't break anything, it would =09make testing of things (and further development) much easier =09as those interested in using hfc-based cards wouldn't have =09to patch kernel sources before doing testing. =09 =09Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Sep 2 2: 4:32 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D699B37B400 for ; Mon, 2 Sep 2002 02:04:30 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1142B43E4A for ; Mon, 2 Sep 2002 02:04:30 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g8294KvV040895; Mon, 2 Sep 2002 11:04:22 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Ari Suutari Cc: Gary Jennejohn , hselasky@c2i.net, freebsd-isdn@FreeBSD.ORG Subject: Re: New ihfc driver In-Reply-To: Your message of "Mon, 02 Sep 2002 09:43:34 +0300." <200209020943.34019.ari.suutari@syncrontech.com> Date: Mon, 02 Sep 2002 11:04:20 +0200 Message-ID: <40894.1030957460@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <200209020943.34019.ari.suutari@syncrontech.com>, Ari Suutari writes : >Hi, > >Good that this driver is making progress. Maybe, someday >I can use cards from my pile-of-hfc-based-isdn-cards. > >On Friday 30 August 2002 14:11, Gary Jennejohn wrote: >> hselasky@c2i.net writes: >> >> The stuff you did in the state machines I can't comment on. >> >> The weird dynamic goto's and opaque macros which you use in >> your drivers are IMO not acceptable. If no-one but you understands >> this stuff then we'll have a maintenace nightmare. What if you >> get hit by a truck ? > > A couple of questions come to my mind: > > - if this driver would be added as-is to current distribution, > would it break anything ie. would the worst case be > just that new cards supported by this driver wouldn't work ? I tried, I couldn't get it to compile. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Sep 2 5:37: 5 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A39F37B400 for ; Mon, 2 Sep 2002 05:37:04 -0700 (PDT) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF2FA43E6E for ; Mon, 2 Sep 2002 05:37:02 -0700 (PDT) (envelope-from ari.suutari@syncrontech.com) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.3/8.12.3) with ESMTP id g82CaxeA033999; Mon, 2 Sep 2002 15:36:59 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari Organization: Syncron Tech Oy To: hselasky@c2i.net Subject: Re: New ihfc driver Date: Mon, 2 Sep 2002 15:37:20 +0300 User-Agent: KMail/1.4.2 Cc: freebsd-isdn@FreeBSD.ORG References: <200208301111.g7UBBUQI005381@peedub.jennejohn.org> <200209020943.29552.ari.suutari@syncrontech.com> In-Reply-To: <200209020943.29552.ari.suutari@syncrontech.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200209021537.20517.ari.suutari@syncrontech.com> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I have done some more reading of ihfc2 driver source now. Do I understand it wrong or is this driver trying to support multiple chip architectures ? There seems to be at least hfc-1, hfc-s and some others. Maybe there is a good idea behind this, but didn't isdb4bsd have this kind of monolithic single driver in the beginning (which supported only Siemens chips). I understood that it was difficult to add new chip sets to this architecture, thus the lowest layer was split into separate drivers. So is this driver moving back to that initial approach ? Is it wise ? =09Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Sep 2 5:58:26 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A52637B400 for ; Mon, 2 Sep 2002 05:58:16 -0700 (PDT) Received: from post.webmailer.de (natwar.webmailer.de [192.67.198.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ECFA43E3B for ; Mon, 2 Sep 2002 05:58:15 -0700 (PDT) (envelope-from wrips@kordel.de) Received: from nova.kordel.de (30-10.E.dial.o-tel-o.net [212.144.30.10]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id OAA11208 for ; Mon, 2 Sep 2002 14:58:09 +0200 (MEST) Received: from mail.kordel.de (root@mail.kordel.de [192.6.1.245]) by nova.kordel.de (8.11.6/8.11.6) with ESMTP id g82Cvfr07406 for ; Mon, 2 Sep 2002 14:57:46 +0200 (CEST) (envelope-from wrips@kordel.de) Received: from kordel.de (edv-3 [192.6.1.94]) by mail.kordel.de (8.9.3 (PHNE_18979)/8.9.3) with ESMTP id OAA15747 for ; Mon, 2 Sep 2002 14:56:51 +0200 (METDST) Message-ID: <3D7360D7.DB811CB6@kordel.de> Date: Mon, 02 Sep 2002 15:00:07 +0200 From: Werner Rips Organization: Kordel Antriebstechnik GmbH X-Mailer: Mozilla 4.76 [en]C-CCK-MCD NSCPCD476 (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-isdn@freebsd.org Subject: i4brbch - problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Please help on i4brbch! I have a FreeBSD4.6 box that can do a connection to my isp with rc.isdn start that uses /etc/isdn/isdnd.rc. Can someone help me how to do a connection with ppp.conf so that i get a multilink connection? With the ppp.conf script and the devices i4brbch0 and i4brbch1 all i get is: Phase: 1: /dev/i4brbch0: No carrier (increase "set cd" from 6?) Phase: 2: /dev/i4brbch1: No carrier (increase "set cd" from 6?) Thanks in advance, Werner Rips # /etc/rc.isdn - file #!/bin/sh #--------------------------------------------------------------------------- # # /etc/rc.isdn - isdn4bsd startup script # -------------------------------------- # # $Id: rc.isdn,v 1.1.1.1 1997/12/14 14:26:32 hm Exp $ # # last edit-date: [Thu Dec 11 15:11:33 1997] # Modified by Gary Jennejohn #--------------------------------------------------------------------------- # output device for fullscreen mode - must be set correctly out_dev=/dev/ttyv4 # terminal type for fullscreen mode out_typ=cons25 restart=0 # check usage if [ $# -gt 1 ] then echo "usage: /etc/rc.isdn [start|restart|stop]" exit 1 fi # get the first param if [ $# -ge 1 ] then first=$1 fi # restart or stop ? if [ "x$first" = "xrestart" ] then restart=1 kill `cat /var/run/isdnd.pid` sleep 3 elif [ "x$1" = "xstop" ] then echo 'terminating the isdn4bsd ISDN management daemon ...' kill `cat /var/run/isdnd.pid` route delete default ifconfig isp0 down rm /etc/resolv.conf exit 0 fi if [ $restart -eq 0 ] then echo "configuring I4BISDN/PPP-interface isp0" # debug can be removed after everything works ifconfig isp0 link1 0.0.0.0 0.0.0.1 netmask 0xffffffff debug ifconfig isp0 down # NOTE: at some time ispppcontrol will be replaced with /sbin/spppcontrol ! # myauthproto is chap or pap - set this correctly # /usr/sbin/ispppcontrol isp0 myauthproto=pap myauthname= myauthsecret= hisauthproto=none callin /sbin/spppcontrol isp0 myauthproto=pap myauthname=001052768288 myauthsecret=5119 hisauthproto=none callin else ifconfig isp0 down route delete default rm /etc/resolv.conf fi if [ -f /var/log/isdnd.log ] then echo "rotating /var/log/isdnd.log file ..." cd /var/log if [ -f isdnd.log4 ] ; then mv -f isdnd.log4 isdnd.log5 ; fi if [ -f isdnd.log3 ] ; then mv -f isdnd.log3 isdnd.log4 ; fi if [ -f isdnd.log2 ] ; then mv -f isdnd.log2 isdnd.log3 ; fi if [ -f isdnd.log1 ] ; then mv -f isdnd.log1 isdnd.log2 ; fi if [ -f isdnd.log0 ] ; then mv -f isdnd.log0 isdnd.log1 ; fi cp -pf isdnd.log isdnd.log0 cat /dev/null > isdnd.log fi # start the isdn daemon if [ -x /usr/sbin/isdnd ] then if [ $restart -eq 1 ] then echo 'restarting the isdn4bsd ISDN management daemon ...' else echo 'starting the isdn4bsd ISDN management daemon ...' fi /usr/sbin/isdnd -d0xf9 -f -r $out_dev -t $out_typ fi # can be enabled to turn on debugging #if [ -x /usr/sbin/isdndebug -a $restart -eq 0 ] #then #/usr/sbin/isdndebug -l 1 -s 0x2000 #echo 'turning on layer4 dial trace...' #/usr/sbin/isdndebug -l 4 -s 9 #fi echo "Enabling isp0" ifconfig isp0 up echo 'adding default route' route add default -interface isp0 cp /etc/resolv.conf.otelo /etc/resolv.conf # /etc/isdnd.rc - file # example of a configuration file for the isdn daemon & user-ppp # # $FreeBSD: src/share/examples/ppp/isdnd.rc,v 1.2.4.1 2000/11/30 23:12:22 brian Exp $ # SYSTEM section: isdnd global configuration parameters system # accounting acctall = on # generate info for everything acctfile = /var/log/isdnd.acct # name & location of accounting file useacctfile = yes # generate accouting info to file isdntime = on monitor-allowed = no # global switch: monitor on/off # User-ppp example entry name = OTELO1 usrdevicename = isp usrdeviceunit = 0 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = 02594992189 remote-phone-incoming = * local-phone-dialout = 02594992189 # This *MUST* be your local number remote-phone-dialout = 00191510 # Einwahlnummer bei OTELO remdial-handling = first dialin-reaction = ignore dialout-type = normal b1protocol = hdlc idletime-incoming = 2000 # Should be larger than ppp's timeout idletime-outgoing = 2000 # Should be larger than ppp's timeout unitlength = 0 unitlengthsrc = conf dialretries = 1 dialrandincr = on recoverytime = 1 # Should be smaller than ppp's redial usedown = off downtries = 2 downtime = 30 entry name = OTELO2 usrdevicename = isp usrdeviceunit = 1 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = 02594992189 remote-phone-incoming = * local-phone-dialout = 02594992189 # This *MUST* be your local number remote-phone-dialout = 00191510 # Einwahlnummer bei OTELO remdial-handling = first dialin-reaction = accept dialout-type = normal b1protocol = hdlc idletime-incoming = 2000 # Should be larger than ppp's timeout idletime-outgoing = 2000 # Should be larger than ppp's timeout unitlength = 0 unitlengthsrc = conf dialretries = 1 dialrandincr = on recoverytime = 1 # Should be smaller than ppp's redial usedown = off downtries = 2 downtime = 30 #/etc/ppp.conf - file default: set device /dev/i4brbch0 /dev/i4brbch1 # Raw B-channel devices set speed sync # ISDN is synchronous set ctsrts off otelo: set phone 00191510 # Replace this with your ISPs phone number set authname 001052768288 # Replace these with your login name & password. set authkey 5119 # This profile assumes you're using PAP or CHAP. set enddisc mac # Assuming you have a LAN enable lqr set reconnect 3 5 set redial 3 10 set lqrperiod 45 disable pred1 deflate mppe deny pred1 deflate mppe set timeout 60 300 # The minimum charge period is 5 minutes, so don't # hangup before then # We have no chat scripts in the ISDN world (yet) set dial set login set logout set hangup # enable dns # Ask the peer what to put in resolv.conf # Take a wild guess at an IP number and let the other side decide set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add! default hisaddr set mrru 1500 # Multilink mode please set mru 1504 # Room for the MP header # Gary meint set mru 1492 waehre besser clone 1,2 # Two new links link deflink rm # And get rid of the original one link 1,2 set mode ddial # Schalte beide B-Kanaele sofort ein # link * set mode auto # Automatically manage the second link # set autoload 10 80 30 # Down @10% usage, up at 80%, 30s sample # set server /var/run/ppp/ppp-isdn "" 0177 # The diagnostic port (-rw-------) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Sep 2 6:46:12 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17E5837B400 for ; Mon, 2 Sep 2002 06:46:02 -0700 (PDT) Received: from post.webmailer.de (natpost.webmailer.de [192.67.198.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9D8743E4A for ; Mon, 2 Sep 2002 06:46:00 -0700 (PDT) (envelope-from wrips@kordel.de) Received: from nova.kordel.de (30-10.E.dial.o-tel-o.net [212.144.30.10]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id PAA23996 for ; Mon, 2 Sep 2002 15:45:56 +0200 (MET DST) Received: from mail.kordel.de (root@mail.kordel.de [192.6.1.245]) by nova.kordel.de (8.11.6/8.11.6) with ESMTP id g82D8dr07450 for ; Mon, 2 Sep 2002 15:08:39 +0200 (CEST) (envelope-from wrips@kordel.de) Received: from kordel.de (edv-3 [192.6.1.94]) by mail.kordel.de (8.9.3 (PHNE_18979)/8.9.3) with ESMTP id PAA15780 for ; Mon, 2 Sep 2002 15:07:49 +0200 (METDST) Message-ID: <3D736369.A406817D@kordel.de> Date: Mon, 02 Sep 2002 15:11:05 +0200 From: Werner Rips Organization: Kordel Antriebstechnik GmbH X-Mailer: Mozilla 4.76 [en]C-CCK-MCD NSCPCD476 (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-isdn@freebsd.org Subject: i4brbch - problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Please help on i4brbch! I have a FreeBSD4.6 box that can do a connection to my isp with rc.isdn start that uses /etc/isdn/isdnd.rc. Can someone help me how to do a connection with ppp.conf so that i get a multilink connection? With the ppp.conf script and the devices i4brbch0 and i4brbch1 all i get is: Phase: 1: /dev/i4brbch0: No carrier (increase "set cd" from 6?) Phase: 2: /dev/i4brbch1: No carrier (increase "set cd" from 6?) Thanks in advance, Werner Rips # /etc/rc.isdn - file #!/bin/sh #--------------------------------------------------------------------------- # # /etc/rc.isdn - isdn4bsd startup script # -------------------------------------- # # $Id: rc.isdn,v 1.1.1.1 1997/12/14 14:26:32 hm Exp $ # # last edit-date: [Thu Dec 11 15:11:33 1997] # Modified by Gary Jennejohn #--------------------------------------------------------------------------- # output device for fullscreen mode - must be set correctly out_dev=/dev/ttyv4 # terminal type for fullscreen mode out_typ=cons25 restart=0 # check usage if [ $# -gt 1 ] then echo "usage: /etc/rc.isdn [start|restart|stop]" exit 1 fi # get the first param if [ $# -ge 1 ] then first=$1 fi # restart or stop ? if [ "x$first" = "xrestart" ] then restart=1 kill `cat /var/run/isdnd.pid` sleep 3 elif [ "x$1" = "xstop" ] then echo 'terminating the isdn4bsd ISDN management daemon ...' kill `cat /var/run/isdnd.pid` route delete default ifconfig isp0 down rm /etc/resolv.conf exit 0 fi if [ $restart -eq 0 ] then echo "configuring I4BISDN/PPP-interface isp0" # debug can be removed after everything works ifconfig isp0 link1 0.0.0.0 0.0.0.1 netmask 0xffffffff debug ifconfig isp0 down # NOTE: at some time ispppcontrol will be replaced with /sbin/spppcontrol ! # myauthproto is chap or pap - set this correctly # /usr/sbin/ispppcontrol isp0 myauthproto=pap myauthname= myauthsecret= hisauthproto=none callin /sbin/spppcontrol isp0 myauthproto=pap myauthname=001052768288 myauthsecret=5119 hisauthproto=none callin else ifconfig isp0 down route delete default rm /etc/resolv.conf fi if [ -f /var/log/isdnd.log ] then echo "rotating /var/log/isdnd.log file ..." cd /var/log if [ -f isdnd.log4 ] ; then mv -f isdnd.log4 isdnd.log5 ; fi if [ -f isdnd.log3 ] ; then mv -f isdnd.log3 isdnd.log4 ; fi if [ -f isdnd.log2 ] ; then mv -f isdnd.log2 isdnd.log3 ; fi if [ -f isdnd.log1 ] ; then mv -f isdnd.log1 isdnd.log2 ; fi if [ -f isdnd.log0 ] ; then mv -f isdnd.log0 isdnd.log1 ; fi cp -pf isdnd.log isdnd.log0 cat /dev/null > isdnd.log fi # start the isdn daemon if [ -x /usr/sbin/isdnd ] then if [ $restart -eq 1 ] then echo 'restarting the isdn4bsd ISDN management daemon ...' else echo 'starting the isdn4bsd ISDN management daemon ...' fi /usr/sbin/isdnd -d0xf9 -f -r $out_dev -t $out_typ fi # can be enabled to turn on debugging #if [ -x /usr/sbin/isdndebug -a $restart -eq 0 ] #then #/usr/sbin/isdndebug -l 1 -s 0x2000 #echo 'turning on layer4 dial trace...' #/usr/sbin/isdndebug -l 4 -s 9 #fi echo "Enabling isp0" ifconfig isp0 up echo 'adding default route' route add default -interface isp0 cp /etc/resolv.conf.otelo /etc/resolv.conf # /etc/isdnd.rc - file # example of a configuration file for the isdn daemon & user-ppp # # $FreeBSD: src/share/examples/ppp/isdnd.rc,v 1.2.4.1 2000/11/30 23:12:22 brian Exp $ # SYSTEM section: isdnd global configuration parameters system # accounting acctall = on # generate info for everything acctfile = /var/log/isdnd.acct # name & location of accounting file useacctfile = yes # generate accouting info to file isdntime = on monitor-allowed = no # global switch: monitor on/off # User-ppp example entry name = OTELO1 usrdevicename = isp usrdeviceunit = 0 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = 02594992189 remote-phone-incoming = * local-phone-dialout = 02594992189 # This *MUST* be your local number remote-phone-dialout = 00191510 # Einwahlnummer bei OTELO remdial-handling = first dialin-reaction = ignore dialout-type = normal b1protocol = hdlc idletime-incoming = 2000 # Should be larger than ppp's timeout idletime-outgoing = 2000 # Should be larger than ppp's timeout unitlength = 0 unitlengthsrc = conf dialretries = 1 dialrandincr = on recoverytime = 1 # Should be smaller than ppp's redial usedown = off downtries = 2 downtime = 30 entry name = OTELO2 usrdevicename = isp usrdeviceunit = 1 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = 02594992189 remote-phone-incoming = * local-phone-dialout = 02594992189 # This *MUST* be your local number remote-phone-dialout = 00191510 # Einwahlnummer bei OTELO remdial-handling = first dialin-reaction = accept dialout-type = normal b1protocol = hdlc idletime-incoming = 2000 # Should be larger than ppp's timeout idletime-outgoing = 2000 # Should be larger than ppp's timeout unitlength = 0 unitlengthsrc = conf dialretries = 1 dialrandincr = on recoverytime = 1 # Should be smaller than ppp's redial usedown = off downtries = 2 downtime = 30 #/etc/ppp.conf - file default: set device /dev/i4brbch0 /dev/i4brbch1 # Raw B-channel devices set speed sync # ISDN is synchronous set ctsrts off otelo: set phone 00191510 # Replace this with your ISPs phone number set authname 001052768288 # Replace these with your login name & password. set authkey 5119 # This profile assumes you're using PAP or CHAP. set enddisc mac # Assuming you have a LAN enable lqr set reconnect 3 5 set redial 3 10 set lqrperiod 45 disable pred1 deflate mppe deny pred1 deflate mppe set timeout 60 300 # The minimum charge period is 5 minutes, so don't # hangup before then # We have no chat scripts in the ISDN world (yet) set dial set login set logout set hangup # enable dns # Ask the peer what to put in resolv.conf # Take a wild guess at an IP number and let the other side decide set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add! default hisaddr set mrru 1500 # Multilink mode please set mru 1504 # Room for the MP header # Gary meint set mru 1492 waehre besser clone 1,2 # Two new links link deflink rm # And get rid of the original one link 1,2 set mode ddial # Schalte beide B-Kanaele sofort ein # link * set mode auto # Automatically manage the second link # set autoload 10 80 30 # Down @10% usage, up at 80%, 30s sample # set server /var/run/ppp/ppp-isdn "" 0177 # The diagnostic port (-rw-------) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Mon Sep 2 22:45: 2 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6975437B400 for ; Mon, 2 Sep 2002 22:45:00 -0700 (PDT) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0B3C43E65 for ; Mon, 2 Sep 2002 22:44:58 -0700 (PDT) (envelope-from ari.suutari@syncrontech.com) Received: from linux (coffee.syncrontech.com [62.71.8.37]) by guinness.syncrontech.com (8.12.3/8.12.3) with ESMTP id g835iueA075311 for ; Tue, 3 Sep 2002 08:44:56 +0300 (EEST) (envelope-from ari.suutari@syncrontech.com) Content-Type: text/plain; charset="us-ascii" From: Ari Suutari Organization: Syncron Tech Oy To: freebsd-isdn@FreeBSD.ORG Subject: old ihfc driver and hfc-s Date: Tue, 3 Sep 2002 08:45:13 +0300 User-Agent: KMail/1.4.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200209030845.13072.ari.suutari@syncrontech.com> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I just did some more reading of isdn driver code,=20 namely the old hfc driver. It seems to support HFC-S chips, but only on ISA bus (as far as I understood). Wouldn't it be possible to just add PCI support for this driver ? (or to base a PCI driver on this ?) =09Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Sep 3 2:28:40 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E13537B400 for ; Tue, 3 Sep 2002 02:28:38 -0700 (PDT) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA07743E88 for ; Tue, 3 Sep 2002 02:28:37 -0700 (PDT) (envelope-from garyj@jennejohn.org) Received: from fwd09.sul.t-online.de by mailout06.sul.t-online.com with smtp id 17m9zA-0000W6-00; Tue, 03 Sep 2002 11:28:36 +0200 Received: from peedub.jennejohn.org (520017439985-0001@[217.235.114.84]) by fmrl09.sul.t-online.com with esmtp id 17m9yy-14QgXAC; Tue, 3 Sep 2002 11:28:24 +0200 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id g839Rq8q001744; Tue, 3 Sep 2002 11:27:54 +0200 (CEST) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200209030927.g839Rq8q001744@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: Ari Suutari Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: old ihfc driver and hfc-s Reply-To: Gary Jennejohn In-reply-to: Your message of "Tue, 03 Sep 2002 08:45:13 +0300." <200209030845.13072.ari.suutari@syncrontech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Sep 2002 11:27:52 +0200 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ari Suutari writes: > Hi, > > I just did some more reading of isdn driver code,=20 > namely the old hfc driver. It seems to support HFC-S chips, > but only on ISA bus (as far as I understood). Wouldn't > it be possible to just add PCI support for this driver ? > (or to base a PCI driver on this ?) > The buffer handling is totally different with the HFC-S PCI chip. This is a WIP (Work-In-Progress). --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Sep 3 10:12:36 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3D3337B401 for ; Tue, 3 Sep 2002 10:12:32 -0700 (PDT) Received: from fep02-svc.swip.net (fep02.swip.net [130.244.199.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5914C43E72 for ; Tue, 3 Sep 2002 10:12:31 -0700 (PDT) (envelope-from hselasky@c2i.net) Received: from mta-int.swip.net ([192.168.145.27]) by fep02-svc.swip.net with SMTP id <20020903171229.YWL15962.fep02-svc.swip.net@mta-int.swip.net>; Tue, 3 Sep 2002 19:12:29 +0200 X-Originating-IP: [128.39.203.100] From: To: Poul-Henning Kamp , Ari Suutari Cc: Gary Jennejohn , hselasky@c2i.net, freebsd-isdn@FreeBSD.ORG Subject: Re: New ihfc driver Date: Tue, 3 Sep 2002 19:12:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20020903171229.YWL15962.fep02-svc.swip.net@mta-int.swip.net> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > I tried, I couldn't get it to compile. > If the code doesn't compile it may be a compiler compability issue. Try upgrading the compiler to the lastest current-version. If the code is hard to understand try something like: cc -E -I/sys -I/your_kernel_compile_directory file.c This driver is not an effort going back to the old layer2/layer1. This driver is an alternative to the other drivers, perhaps providing support for some new features. The reason other chips are supported is that the HFC-1 chip uses two chips. One Siemens chip and one HFC chip. About the c-coding: If the compiler would generate code that generates and optimizes itself, using switches is no problem. But hence the code generated will actually try each statement until one matches, that wastes CPU. Especially if used in an interrupt handler. What is the use of switching ``constants``, given only one ISDN card is present? -- HPS ------------------------------------------------- WebMail fra Tele2 http://www.tele2.no ------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Tue Sep 3 10:16:59 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3B5B37B400 for ; Tue, 3 Sep 2002 10:16:57 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E1FA43E3B for ; Tue, 3 Sep 2002 10:16:57 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g83HGhvV072802; Tue, 3 Sep 2002 19:16:43 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: hselasky@c2i.net Cc: Ari Suutari , Gary Jennejohn , freebsd-isdn@FreeBSD.ORG Subject: Re: New ihfc driver In-Reply-To: Your message of "Tue, 03 Sep 2002 19:12:30 +0200." <20020903171229.YWL15962.fep02-svc.swip.net@mta-int.swip.net> Date: Tue, 03 Sep 2002 19:16:43 +0200 Message-ID: <72801.1031073403@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <20020903171229.YWL15962.fep02-svc.swip.net@mta-int.swip.net>, hsela sky@c2i.net writes: >About the c-coding: If the compiler would generate code that >generates and optimizes itself, using switches is no problem. But >hence the code generated will actually try each statement until one >matches, that wastes CPU. Especially if used in an interrupt handler. I have seen state-machines written in C for almost 20 years now, writing God knows how many myself in the same time. Nothing you can say can convince me that you need to do it they way you did. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Sep 4 2:44:16 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EF6737B400 for ; Wed, 4 Sep 2002 02:44:13 -0700 (PDT) Received: from fep01-svc.swip.net (fep01.swip.net [130.244.199.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBBA543E6A for ; Wed, 4 Sep 2002 02:44:11 -0700 (PDT) (envelope-from hselasky@c2i.net) Received: from mta-int.swip.net ([192.168.145.14]) by fep01-svc.swip.net with SMTP id <20020904094411.DQEK17375.fep01-svc.swip.net@mta-int.swip.net>; Wed, 4 Sep 2002 11:44:11 +0200 X-Originating-IP: [128.39.203.100] From: To: Poul-Henning Kamp Cc: Ari Suutari , Gary Jennejohn , freebsd-isdn@FreeBSD.ORG Subject: Re: New ihfc driver Date: Wed, 4 Sep 2002 11:44:10 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=____1031132650545_P6C-mcGcQ8" Message-Id: <20020904094411.DQEK17375.fep01-svc.swip.net@mta-int.swip.net> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=____1031132650545_P6C-mcGcQ8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > > I tried, I couldn't get it to compile. > The ihfc2 (new_ihfc) driver should compile. If you were thinking about the isic driver, your right. Some files are missing, and that was to get the tarball size down. The files excluded from my tarball are listed in the attachment missing_files.txt (only i4b/layer1) Please restore these files from your i4b backup. All drivers should compile. HPS ------------------------------------------------- WebMail fra Tele2 http://www.tele2.no ------------------------------------------------- ------=____1031132650545_P6C-mcGcQ8 Content-Type: text/plain; name="missing_files.txt" Content-Disposition: inline; filename="missing_files.txt" sys/i4b/layer1/isic sys/i4b/layer1/isic/i4b_asuscom_ipac.c sys/i4b/layer1/isic/i4b_avm_a1.c sys/i4b/layer1/isic/i4b_ctx_s0P.c sys/i4b/layer1/isic/i4b_drn_ngo.c sys/i4b/layer1/isic/i4b_dynalink.c sys/i4b/layer1/isic/i4b_elsa_pcc16.c sys/i4b/layer1/isic/i4b_elsa_qs1i.c sys/i4b/layer1/isic/i4b_elsa_qs1p.c sys/i4b/layer1/isic/i4b_itk_ix1.c sys/i4b/layer1/isic/i4b_siemens_isurf.c sys/i4b/layer1/isic/i4b_sws.c sys/i4b/layer1/isic/i4b_tel_s016.c sys/i4b/layer1/isic/i4b_tel_s0163.c sys/i4b/layer1/isic/i4b_tel_s08.c sys/i4b/layer1/isic/i4b_usr_sti.c sys/i4b/layer1/isic/i4b_diva.c sys/i4b/capi sys/i4b/capi/iavc sys/i4b/capi/iavc/iavc.h sys/i4b/capi/iavc/iavc_card.c sys/i4b/capi/iavc/iavc_isa.c sys/i4b/capi/iavc/iavc_lli.c sys/i4b/capi/iavc/iavc_pci.c sys/i4b/capi/README sys/i4b/capi/capi.h sys/i4b/capi/capi_llif.c sys/i4b/capi/capi_msgs.c sys/i4b/capi/capi_msgs.h sys/i4b/capi/capi_l4if.c ------=____1031132650545_P6C-mcGcQ8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Sep 4 2:59:28 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1406137B400 for ; Wed, 4 Sep 2002 02:59:26 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4245143E75 for ; Wed, 4 Sep 2002 02:59:25 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g849wxvV099650; Wed, 4 Sep 2002 11:58:59 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: hselasky@c2i.net Cc: Ari Suutari , Gary Jennejohn , freebsd-isdn@FreeBSD.ORG Subject: Re: New ihfc driver In-Reply-To: Your message of "Wed, 04 Sep 2002 11:44:10 +0200." <20020904094411.DQEK17375.fep01-svc.swip.net@mta-int.swip.net> Date: Wed, 04 Sep 2002 11:58:59 +0200 Message-ID: <99649.1031133539@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <20020904094411.DQEK17375.fep01-svc.swip.net@mta-int.swip.net>, hsel asky@c2i.net writes: >This is a multi-part message in MIME format. > >------=____1031132650545_P6C-mcGcQ8 >Content-Type: text/plain; charset=ISO-8859-1 >Content-Transfer-Encoding: 7bit > >> >> I tried, I couldn't get it to compile. >> > >The ihfc2 (new_ihfc) driver should compile. If you were thinking >about the isic driver, your right. Some files are missing, and that >was to get the tarball size down. The files excluded from my tarball >are listed in the attachment missing_files.txt (only i4b/layer1) Of course it should compile :-) But it doesn't for me. Try to compile the LINT kernel and you'll see it. Anyway, I've given up on this driver. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Sep 4 4:22:15 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A9D837B400 for ; Wed, 4 Sep 2002 04:22:13 -0700 (PDT) Received: from mxout3.netvision.net.il (mxout3.netvision.net.il [194.90.9.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3214E43E72 for ; Wed, 4 Sep 2002 04:22:12 -0700 (PDT) (envelope-from gilad@romat.com) Received: from ADSL ([212.199.9.217]) by mxout3.netvision.net.il (iPlanet Messaging Server 5.2 HotFix 0.8 (built Jul 12 2002)) with ESMTPA id <0H1W00BG5VKT59@mxout3.netvision.net.il> for freebsd-isdn@freebsd.org; Wed, 04 Sep 2002 14:22:06 +0300 (IDT) Date: Wed, 04 Sep 2002 14:15:10 +0200 From: Gilad Rom Subject: Synchronous-to-Asynchronous PPP converter? To: freebsd-isdn@freebsd.org Message-id: <006501c2540c$b749c100$8a7afea9@romat> Organization: Romat Telecom MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Content-type: text/plain; charset=windows-1255 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I have an interesting project for you all... What we have been trying to develop here is a sort of a huge ISDN Terminal Adapter in Software - which means: [PRI Line] <---> [Sync2Async] <---> [PC Gateway] What we plan on doing is grab all 30 B channels from the PRI line, convert the Sync PPP used on ISDN lines to Async PPP, and use a 36-Port Serial Board inside the PC to run Multilink PPP. (Again, like one huge Terminal Adapter) We already have the hardware to terminate the PRI line and give us 30 B-channels, with PPP on top. What were missing is how to actually "chew up" and spit out the synchronous PPP/HDLC frames into our serial ports inside the PC. Any ideas...? Thanks in advance ! Gilad Rom Romat Telecom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Sep 4 6:31:56 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E9E537B405 for ; Wed, 4 Sep 2002 06:31:51 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAB3A43E77 for ; Wed, 4 Sep 2002 06:31:50 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g84DVhvV002112; Wed, 4 Sep 2002 15:31:45 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Gilad Rom Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: Synchronous-to-Asynchronous PPP converter? In-Reply-To: Your message of "Wed, 04 Sep 2002 14:15:10 +0200." <006501c2540c$b749c100$8a7afea9@romat> Date: Wed, 04 Sep 2002 15:31:43 +0200 Message-ID: <2111.1031146303@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <006501c2540c$b749c100$8a7afea9@romat>, Gilad Rom writes: >Hi, > >I have an interesting project for you all... > >What we have been trying to develop here is a sort of a huge >ISDN Terminal Adapter in Software - which means: > >[PRI Line] <---> [Sync2Async] <---> [PC Gateway] > >What we plan on doing is grab all 30 B channels from the PRI line, >convert the Sync PPP used on ISDN lines to Async PPP, and >use a 36-Port Serial Board inside the PC to run Multilink PPP. >(Again, like one huge Terminal Adapter) Don't. Put a E1 channelized card in your PC and do it all right there. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Sep 4 8: 0:58 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8097637B400 for ; Wed, 4 Sep 2002 08:00:56 -0700 (PDT) Received: from fep01-svc.swip.net (fep01.swip.net [130.244.199.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2606343E42 for ; Wed, 4 Sep 2002 08:00:55 -0700 (PDT) (envelope-from hselasky@c2i.net) Received: from mta-int.swip.net ([192.168.145.11]) by fep01-svc.swip.net with SMTP id <20020904150054.EVMH17375.fep01-svc.swip.net@mta-int.swip.net>; Wed, 4 Sep 2002 17:00:54 +0200 X-Originating-IP: [128.39.203.100] From: To: Poul-Henning Kamp Cc: Ari Suutari , Gary Jennejohn , freebsd-isdn@FreeBSD.ORG Subject: Re: New ihfc driver Date: Wed, 4 Sep 2002 17:00:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20020904150054.EVMH17375.fep01-svc.swip.net@mta-int.swip.net> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > >> > >> I tried, I couldn't get it to compile. > >> Here is your problem (/sys/conf/files.i386) device new_ihfc and device ihfc 1 cannot be present at the same time. Simplest solution is moving directly to the new driver. In sys/conf/files.i386 change these lines: # # isdn4bsd, ihfc # i4b/layer1/ihfc/i4b_ihfc_l1if.c count ihfc i4b/layer1/ihfc/i4b_ihfc_pnp.c optional ihfc i4b/layer1/ihfc/i4b_ihfc_drv.c optional ihfc into these: # # isdn4bsd, ihfc # i4b/layer1/ihfc2/i4b_ihfc2_l1if.c count ihfc i4b/layer1/ihfc2/i4b_ihfc2_pnp.c optional ihfc i4b/layer1/ihfc2/i4b_ihfc2_drv.c optional ihfc i4b/layer1/ihfc2/i4b_ihfc2_dev.c optional ihfc and keep the other lines for new_ihfc. The new driver supports all the old cards, so this should not cause any trouble. LINT should work now. HPS ------------------------------------------------- WebMail fra Tele2 http://www.tele2.no ------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Sep 4 23:23: 1 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A0D937B405 for ; Wed, 4 Sep 2002 23:22:52 -0700 (PDT) Received: from mxout2.netvision.net.il (mxout2.netvision.net.il [194.90.9.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4716E43E42 for ; Wed, 4 Sep 2002 23:22:51 -0700 (PDT) (envelope-from gilad@romat.com) Received: from ADSL ([212.199.9.217]) by mxout2.netvision.net.il (iPlanet Messaging Server 5.2 HotFix 0.8 (built Jul 12 2002)) with ESMTPA id <0H1Y00IJJCE0TY@mxout2.netvision.net.il> for freebsd-isdn@FreeBSD.ORG; Thu, 05 Sep 2002 09:22:49 +0300 (IDT) Date: Thu, 05 Sep 2002 09:15:35 +0200 From: Gilad Rom Subject: Re: Synchronous-to-Asynchronous PPP converter? To: Poul-Henning Kamp Cc: freebsd-isdn@FreeBSD.ORG Message-id: <009401c254ac$07e8ca80$8a7afea9@romat> Organization: Romat Telecom MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Content-type: text/plain; charset=windows-1255 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <2111.1031146303@critter.freebsd.dk> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks for the lengthy explanation.... Problem is - Were trying to make our product as cheap as possible... We have 70 clients with E1 PRI Lines, and they use some of the B-channels for voice, and we want to enable the rest of the B-channels for data communications, so they wont have to pay for expensive Frame-Relay lines like today. Do you even have any idea how complex this conversion might be? Thank you, Gilad Rom ----- Original Message ----- From: "Poul-Henning Kamp" To: "Gilad Rom" Cc: Sent: Wednesday, September 04, 2002 3:31 PM Subject: Re: Synchronous-to-Asynchronous PPP converter? > In message <006501c2540c$b749c100$8a7afea9@romat>, Gilad Rom writes: > >Hi, > > > >I have an interesting project for you all... > > > >What we have been trying to develop here is a sort of a huge > >ISDN Terminal Adapter in Software - which means: > > > >[PRI Line] <---> [Sync2Async] <---> [PC Gateway] > > > >What we plan on doing is grab all 30 B channels from the PRI line, > >convert the Sync PPP used on ISDN lines to Async PPP, and > >use a 36-Port Serial Board inside the PC to run Multilink PPP. > >(Again, like one huge Terminal Adapter) > > Don't. > > Put a E1 channelized card in your PC and do it all right there. > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Sep 4 23:28:42 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2004F37B401 for ; Wed, 4 Sep 2002 23:28:35 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4867243E65 for ; Wed, 4 Sep 2002 23:28:34 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g856SRvV021479; Thu, 5 Sep 2002 08:28:28 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Gilad Rom Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: Synchronous-to-Asynchronous PPP converter? In-Reply-To: Your message of "Thu, 05 Sep 2002 09:15:35 +0200." <009401c254ac$07e8ca80$8a7afea9@romat> Date: Thu, 05 Sep 2002 08:28:27 +0200 Message-ID: <21478.1031207307@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <009401c254ac$07e8ca80$8a7afea9@romat>, Gilad Rom writes: >Thanks for the lengthy explanation.... > >Problem is - Were trying to make our product as cheap as possible... >We have 70 clients with E1 PRI Lines, and they use some of the B-channels >for voice, >and we want to enable the rest of the B-channels for data communications, so >they >wont have to pay for expensive Frame-Relay lines like today. > >Do you even have any idea how complex this conversion might be? You need some gadget which speaks enough SS7/ISDN-D to open and close B-channels on the PRI, freebsd currently doesn't support that. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Sep 4 23:47:46 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82F2937B400 for ; Wed, 4 Sep 2002 23:47:44 -0700 (PDT) Received: from mxout1.netvision.net.il (mxout1.netvision.net.il [194.90.9.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 041A243E3B for ; Wed, 4 Sep 2002 23:47:44 -0700 (PDT) (envelope-from gilad@romat.com) Received: from ADSL ([212.199.9.217]) by mxout1.netvision.net.il (iPlanet Messaging Server 5.2 HotFix 0.8 (built Jul 12 2002)) with ESMTPA id <0H1Y006CCDJHHE@mxout1.netvision.net.il> for freebsd-isdn@FreeBSD.ORG; Thu, 05 Sep 2002 09:47:42 +0300 (IDT) Date: Thu, 05 Sep 2002 09:40:28 +0200 From: Gilad Rom Subject: Re: Synchronous-to-Asynchronous PPP converter? To: Poul-Henning Kamp Cc: freebsd-isdn@FreeBSD.ORG Message-id: <00ae01c254af$81a242e0$8a7afea9@romat> Organization: Romat Telecom MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Content-type: text/plain; charset=windows-1255 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <21478.1031207307@critter.freebsd.dk> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > You need some gadget which speaks enough SS7/ISDN-D to open and close > B-channels on the PRI, freebsd currently doesn't support that. > Well, we already have that gadget... We built custom PRI cards, we can dynamically open/close B-channels, now all we need is a way to convert the synchronous communication (PPP) coming in on these channels to asynchronous/serial to feed to our multiport cards. We've been searching all over for the way to do it, but to no avail... And... Thats about it ;) Thanks again, Gilad. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Wed Sep 4 23:50:47 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBA5637B400 for ; Wed, 4 Sep 2002 23:50:45 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF83943E42 for ; Wed, 4 Sep 2002 23:50:44 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g856oavV021755; Thu, 5 Sep 2002 08:50:36 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Gilad Rom Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: Synchronous-to-Asynchronous PPP converter? In-Reply-To: Your message of "Thu, 05 Sep 2002 09:40:28 +0200." <00ae01c254af$81a242e0$8a7afea9@romat> Date: Thu, 05 Sep 2002 08:50:36 +0200 Message-ID: <21754.1031208636@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <00ae01c254af$81a242e0$8a7afea9@romat>, Gilad Rom writes: > >> You need some gadget which speaks enough SS7/ISDN-D to open and close >> B-channels on the PRI, freebsd currently doesn't support that. >> > >Well, we already have that gadget... We built custom PRI cards, we can >dynamically open/close B-channels, now all we need is a way to convert the >synchronous >communication (PPP) coming in on these channels to asynchronous/serial >to feed to our multiport cards. We've been searching all over for the way to >do it, >but to no avail... Why don't you simply feed it into netgraph and use ports/.../mpd-netgraph ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Sep 5 0: 0:44 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDD0B37B405 for ; Thu, 5 Sep 2002 00:00:39 -0700 (PDT) Received: from mxout3.netvision.net.il (mxout3.netvision.net.il [194.90.9.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EA2143E4A for ; Thu, 5 Sep 2002 00:00:39 -0700 (PDT) (envelope-from gilad@romat.com) Received: from ADSL ([212.199.9.217]) by mxout3.netvision.net.il (iPlanet Messaging Server 5.2 HotFix 0.8 (built Jul 12 2002)) with ESMTPA id <0H1Y00EENE500E@mxout3.netvision.net.il> for freebsd-isdn@FreeBSD.ORG; Thu, 05 Sep 2002 10:00:37 +0300 (IDT) Date: Thu, 05 Sep 2002 09:53:22 +0200 From: Gilad Rom Subject: Re: Synchronous-to-Asynchronous PPP converter? To: Poul-Henning Kamp Cc: freebsd-isdn@FreeBSD.ORG Message-id: <00c201c254b1$4f68ad80$8a7afea9@romat> Organization: Romat Telecom MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Content-type: text/plain; charset=windows-1255 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <21754.1031208636@critter.freebsd.dk> Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > Why don't you simply feed it into netgraph and use ports/.../mpd-netgraph ? > > -- For that i'd have to install a bigass 30-channel ISDN adapter in the PC and use sync PPP using mpd. That would make our product much more expensive. Wer'e trying to save that, and use our own multi port 30-UART cards. Gilad. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message From owner-freebsd-isdn Thu Sep 5 0: 3:12 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4A9937B490 for ; Thu, 5 Sep 2002 00:03:08 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48A4F43E42 for ; Thu, 5 Sep 2002 00:03:07 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g8572wvV022008; Thu, 5 Sep 2002 09:02:58 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Gilad Rom Cc: freebsd-isdn@FreeBSD.ORG Subject: Re: Synchronous-to-Asynchronous PPP converter? In-Reply-To: Your message of "Thu, 05 Sep 2002 09:53:22 +0200." <00c201c254b1$4f68ad80$8a7afea9@romat> Date: Thu, 05 Sep 2002 09:02:58 +0200 Message-ID: <22007.1031209378@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <00c201c254b1$4f68ad80$8a7afea9@romat>, Gilad Rom writes: > >> >> Why don't you simply feed it into netgraph and use ports/.../mpd-netgraph >? >> >> -- > >For that i'd have to install a bigass 30-channel ISDN adapter in the PC and >use sync PPP using >mpd. That would make our product much more expensive. >Wer'e trying to save that, and use our own multi port 30-UART cards. Sorry, can't help you there... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message