From mboxrd@z Thu Jan 1 00:00:00 1970 From: presotto@plan9.bell-labs.com Message-Id: <200007211319.JAA06501@cse.psu.edu> Date: Fri, 21 Jul 2000 09:19:34 -0400 To: 9fans@cse.psu.edu Subject: RE: [9fans] pcmcia modems MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-aqhhccwbmvfqukexhxqwjkkodz" Topicbox-Message-UUID: e87e002c-eac8-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-aqhhccwbmvfqukexhxqwjkkodz Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I'll add it to our version, thanks. --upas-aqhhccwbmvfqukexhxqwjkkodz Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Fri Jul 21 09:11:22 EDT 2000 Received: from cse.psu.edu ([130.203.3.50]) by plan9; Fri Jul 21 09:11:13 EDT 2000 Received: from localhost (majordom@localhost) by cse.psu.edu (8.8.8/8.8.8) with SMTP id IAA05754; Fri, 21 Jul 2000 08:56:19 -0400 (EDT) Received: by claven.cse.psu.edu (bulk_mailer v1.5); Fri, 21 Jul 2000 08:56:09 -0400 Received: (from majordom@localhost) by cse.psu.edu (8.8.8/8.8.8) id IAA05720 for 9fans-outgoing; Fri, 21 Jul 2000 08:56:05 -0400 (EDT) X-Authentication-Warning: claven.cse.psu.edu: majordom set sender to owner-9fans using -f Received: from finch-post-11.mail.demon.net (finch-post-11.mail.demon.net [194.217.242.39]) by cse.psu.edu (8.8.8/8.8.8) with ESMTP id IAA05715 for <9fans@cse.psu.edu>; Fri, 21 Jul 2000 08:56:00 -0400 (EDT) From: miller@hamnavoe.demon.co.uk Received: from hamnavoe.demon.co.uk ([158.152.225.204]) by finch-post-11.mail.demon.net with smtp (Exim 2.12 #1) id 13FcLO-0007sM-0B for 9fans@cse.psu.edu; Fri, 21 Jul 2000 12:55:59 +0000 To: 9fans@cse.psu.edu Date: Fri, 21 Jul 2000 13:56:40 BST Subject: RE: [9fans] pcmcia modems Message-Id: Sender: owner-9fans@cse.psu.edu Reply-To: 9fans@cse.psu.edu Precedence: bulk > If you're using ppp, don't use telco. In fact if you want to use ppp with telco, it only takes a small change -- I happen to have done this a couple of days ago: term% diff /sys/src/cmd/ip/ppp/ppp.c ppp.c 2277,2281c2277,2289 < fprint(2, "ppp: couldn't open %s\n", dev); < exits(dev); < } < snprint(buf, sizeof buf, "%sctl", dev); < cfd = open(buf, ORDWR); --- > if(strchr(dev, '!')){ > if((mediafd = dial(dev, 0, 0, &cfd)) == -1){ > fprint(2, "ppp: couldn't dial %s: %r\n", dev); > exits(dev); > } > } else { > fprint(2, "ppp: couldn't open %s\n", dev); > exits(dev); > } > } else { > snprint(buf, sizeof buf, "%sctl", dev); > cfd = open(buf, ORDWR); > } With this you can do 'ip/ppp -ufp telco!555-1234' or if your ndb has a line like 'sys=demon telco=555-1234 telco=555-1234 telco=555-9999' then you can do 'ip/ppp -ufp telco!demon' and dial() will try phone numbers in order until one works. (Note the repeated number to try that one twice.) -- Richard Miller --upas-aqhhccwbmvfqukexhxqwjkkodz--