Files
oldlinux-files/ftp-archives/tsx-11.mit.edu/1996-10-07/mail-archive/linux-devel/Volume2/digest181
2024-02-19 00:24:15 -05:00

729 lines
26 KiB
Plaintext
Raw Blame History

From: Digestifier <Linux-Development-Request@senator-bedfellow.mit.edu>
To: Linux-Development@senator-bedfellow.mit.edu
Reply-To: Linux-Development@senator-bedfellow.mit.edu
Date: Fri, 16 Sep 94 07:13:09 EDT
Subject: Linux-Development Digest #181
Linux-Development Digest #181, Volume #2 Fri, 16 Sep 94 07:13:09 EDT
Contents:
DOSEMU 0.53: Will it run MS-Windoze 3.1? (Matthew Grant)
Help on PCI ethernet card w/DEC21040 (Lee Wai Han)
Re: WEARNES CD-110 CDROM (Corey Brenner)
Re: Digi Intelligent Boards? (Ahmed Naas)
Re: Public domain DHCP available ? (Mark 'Enry' Komarinski)
Re: Don't use Linux?! (Matthias Urlichs)
Re: Developing Distributed Filesystems for Linux? (Matthias Urlichs)
Re: Looking for a Fax daemon (Tom Griffing)
Re: Porting applications to TERM (Uwe Bonnes)
DOSEMU bug v.s. termcap bug for non-80x25 consoles (Thomas E Zerucha)
Linux & Buslogic PCI (Brian Connelly)
Re: Future of linux -- the sequel (Lutz Behnke HiWi)
Re: Is there an encrypted filesystem for Linux? (David Wright)
Re: IR remote control for CD?? (Paul Gyugyi)
Re: IDEA: Energy saving features for harddisks (Kevin Martinez)
[Q] Any video processing tools for Linux ? (Andreas Busse)
Re: Mosaic and other TCP/IP problems (Mark Swanson)
Linux controlling terminals and execlp() arrrr! (Mark Swanson)
CD-ROM gurus: PLEASE ADD PHOTOCD support to Mitsumi (Tamas Badics)
NCR 53c810 Scsi driver problems with scsi-1 devices? (Russell Leighton)
Re: Linux v1.0 SMAIL problem (Caesar M Samsi)
How to use a host as a router - READ THIS (Jay Ashworth)
----------------------------------------------------------------------------
From: grantma@ritz.equinox.gen.nz (Matthew Grant)
Subject: DOSEMU 0.53: Will it run MS-Windoze 3.1?
Date: Thu, 15 Sep 1994 11:04:40 GMT
Hi There!
The title says it all. Will DOSEMU have DPMI fixed up enough to run Windows
3.1 in standard mode and hopefully enhanced mode?
thanks
See Ya!
--
_/ _/ __/ _/_/_/ _/_/_/ _/ _/ _/_/ _/ _/ Matthew A. Grant
_/_/_/ _/ _/ _/ _/ _/_ _/ _/_ _/ _/ 1 Domain Tce, Chch. NZ.
_/ _/ _/_/_/ _/ _/ _/_/_/ _/ _/_/_/ (03) 338-4287
_/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/ grantma@ritz.equinox.gen.nz
------------------------------
From: im_lwhab@uxmail.ust.hk (Lee Wai Han)
Subject: Help on PCI ethernet card w/DEC21040
Date: Wed, 14 Sep 1994 18:27:39 GMT
I recently had got a PCI ethernet card using the Digital DEC21040
chips. It is not a NEx000 compatible card. But could it be
used with linux and how? Or where can I got some suitable drivers
for it?
Thank you in advance.
May.
------------------------------
From: brennerc@saucer.cc.umr.edu (Corey Brenner)
Subject: Re: WEARNES CD-110 CDROM
Date: Wed, 14 Sep 1994 22:31:56 GMT
Virgil (virgil@desire.apana.org.au) wrote:
: I was just wondering if anyone was working on a driver for the Wearnes CDD110
: AT-bus CDROM. Or if anyone else has ever heard of them. They use the Sony
: interface on sounds that have them or CDROM controller paddle boards.
: I thought I might get lucky and be able to use the Sony CDU33A driver, but
: such was not the case.
: Does anyone have any information that could make me happy???
: --
: I still believe in God but God no longer believes in me
: --
: Virgil Nln
: Email: virgil@desire.apana.org.au
I am experiencing the same trouble... I can't use the CDU33A or CDU31A spec.
drivers to use this CD-ROM drive... I bought it so I could use it with Linux
(I don't run DOS anymore :) ) and now I can't use it! :(
Any suggestions would be very much appreciated.
Corey Brenner
------------------------------
From: ahmed@oea.xs4all.nl (Ahmed Naas)
Subject: Re: Digi Intelligent Boards?
Date: Fri, 16 Sep 1994 00:25:35 GMT
madderra@myhost.subdomain.domain wrote:
^^^^^^^^^^^^^^^^^^^^^^^
You need to change this :-)
: I visited the Digiboard display at Interop this week, and was told by one
: of the sales reps that Digiboard was getting pressure from SCO not to
: promote the creation of new drivers for Linux. In particular, I was
: asking about thier new ISDN board they had on display.
That might be true, but what possible leverage does SCO have over Digi?
: --Bob
--
The above is a result of random neuron activity in the writer's brain.
Ahmed M. Naas ahmed@oea.xs4all.nl
======================================================================
------------------------------
From: komarimf@craft.camp.clarkson.edu (Mark 'Enry' Komarinski)
Subject: Re: Public domain DHCP available ?
Date: 15 Sep 1994 16:27:45 GMT
G Dinesh Dutt (brat@htilbom.ernet.in) wrote:
: Hi folks,
: Is there a public domain DHCP version available ? For or not for Linux.
: Appreciate any pointers,
Sure, but there is no MUMPS compiler for Linux yet. If you have a MUMPS
program, contact the FOIA people at the Hines, IL VA hospital.
Unless you're not talking about the Decentralized Hospital Computer Program
which has been around for 10+ years.
--
- Mark Komarinski - komarimf@craft.camp.clarkson.edu
"Good, bad..I'm the one with the gun"
-Ash (Bruce Campbell) in Army of Darkness
------------------------------
From: urlichs@smurf.noris.de (Matthias Urlichs)
Subject: Re: Don't use Linux?!
Date: 16 Sep 1994 05:41:42 +0200
In comp.os.linux.development, article <1f.8471.1566.0NC971E9@compart.fi>,
riku.saikkonen@compart.fi (Riku Saikkonen) writes:
>
> Uh... Stupid question: What is the best way to distribute the unlinked
> binary? The .o files?
>
You can use ld -r to link all these little .o files into a single big .o file.
--
I couldn't help it. I can resist everything except temptation.
- Oscar Wilde -
--
Matthias Urlichs \ XLink-POP N<>rnberg | EMail: urlichs@smurf.noris.de
Schleiermacherstra<EFBFBD>e 12 \ Unix+Linux+Mac | Phone: ...please use email.
90491 N<>rnberg (Germany) \ Consulting+Networking+Programming+etc'ing 42
PGP: 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://smurf.noris.de/~urlichs/finger">here</A>.
------------------------------
From: urlichs@smurf.noris.de (Matthias Urlichs)
Crossposted-To: alt.filesystems.afs
Subject: Re: Developing Distributed Filesystems for Linux?
Date: 16 Sep 1994 05:55:42 +0200
In comp.os.linux.development, article <datCw2wG8.1s3@netcom.com>,
dat@netcom.com (Daniel Tauber) writes:
> I'd like to see a ftp based file system for Linux. What I have in mind will
> allow you to mount devices like
>
> mount -t ftpfs myaccount:mypassword@somemachine.edu/path mnt
>
userfs already does this, read-only. You want read-write, you add it. ;-)
--
Each person has the right to take the subway.
-- Carlos Eduardo Novaes
--
Matthias Urlichs \ XLink-POP N<>rnberg | EMail: urlichs@smurf.noris.de
Schleiermacherstra<EFBFBD>e 12 \ Unix+Linux+Mac | Phone: ...please use email.
90491 N<>rnberg (Germany) \ Consulting+Networking+Programming+etc'ing 42
PGP: 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://smurf.noris.de/~urlichs/finger">here</A>.
------------------------------
From: tom@metronet.com (Tom Griffing)
Subject: Re: Looking for a Fax daemon
Date: Fri, 16 Sep 1994 02:48:32 GMT
In article <3532qg$siv@ringer.cs.utsa.edu>,
Rob Coursey <rcoursey@ring10.cs.utsa.edu> wrote:
>I was just wondering if somebody had already either started or had completed
>a fax server for linux and, of course, if so, would you know the location
>of where it might be?
Try "efax". It's a simple fax program for one machine.
It runs as a daemon, and upon receiving an incoming call,
if it is a fax, it receives it (and prints it if you want)
and saves it as a file. If the call is a data call, it
can call another program to handle it.
--
_____________________________________________________
| Thomas L. Griffing | |
| tom@metronet.com | (214) 352-3441 |
|__________________________|__________________________|
------------------------------
From: bon@lte.e-technik.uni-erlangen.de (Uwe Bonnes)
Subject: Re: Porting applications to TERM
Date: Fri, 16 Sep 1994 05:05:33 GMT
Preston William Gilchrist (pwg7503@tamsun.tamu.edu) wrote:
> Does anyone have some decent documentation on what is required to port
> applications to TERM. Any help would be appreciated.
From README.porting from the term-2.1.0.tar.gz :
...
PORTING OF SOFTWARE:
~~~~~~~~~~~~~~~~~~~~
Here is the new simplified porting procedure.
1. Add to the compile flags "-include /usr/local/src/termnet.h"
2. Add to the library list "-L/usr/local/src/term -ltermnet"
^^^^^^^^^^^^^^^^^^^^^
\
This is not needed if libtermnet is installed
in /usr/local/lib
That should do it!!! If you are using term in "shared" mode, you'll need:
As root:
chgrp term <filenames>
chmod g+s <filenames>
As an ordinary user:
chmod u+s <filenames>
...
--
Uwe Bonnes bon@lte.e-technik.uni-erlangen.de
------------------------------
From: zerucha@shell.portal.com (Thomas E Zerucha)
Subject: DOSEMU bug v.s. termcap bug for non-80x25 consoles
Date: 15 Sep 1994 23:09:02 GMT
For some reason DOSEMU *only* works with TERM=console, and not con80x50.
There is no con80x50 terminfo file, and the termcap entry is incomplete
(Why not just have one basecon=[all junk], then console:li#25:co#80:tc=basecon
and con80x50:li#50:co#80:tc=basecon ...?).
Also the /etc/DIR_COLORS had every entry EXCEPT con80x50.
I wrote a program to check stty and set the proper console, but is there an
easier way or some script?
---
zerucha@shell.portal.com - main email address
------------------------------
From: nairb@myhost.subdomain.domain (Brian Connelly)
Subject: Linux & Buslogic PCI
Date: 14 Sep 1994 03:00:00 GMT
Has there been any work or planed work
for support for the Buslogic 946C PCI card...
Please email
nairb@scsn.net
thanks
Brian Connelly
------------------------------
From: behnke@tu-harburg.d400.de (Lutz Behnke HiWi)
Subject: Re: Future of linux -- the sequel
Date: 8 Sep 1994 15:31:40 GMT
In article <1994Sep8.142405.15949@reks.uia.ac.be>, barbe@uia.ac.be (Vicky.Barbe) writes:
|> No, err, the point actually was that Linux is getting so large it is
|> becoming unhandy : 1.66 megabytes doesn't even fit on one floppy anymore !
|> Cut the bull and throw away all but the most necessary drivers, let the
|> owners get their drivers off the net if they want ! It's okay to put
|> all the drivers into the distributions, but I don't want them when I upgrade
|> my kernel. Most kernel work isn't kernel but driver work these days.
Hmm.. Basicly a nice idea. But I'm pretty shure my 'basic' drivers are not your
'basic' drivers. I think the biggest feature of Linux that it runs with almost
everything, because people do so much work for the drivers.
As to fishing in (with?) the Net: from that I take that you have access to a
fast, fulltime, cheap and stable Net-account. Yes?
Because other people don't. An if I carry the 'basic' package home,
I want to be shure that the driver for my yoyo-vision card, my youneversaw-it
HD and all others are included.
This is of even greater paramount if targed Linux for the use by the general
public, not just computer-wizes and other wierdos alike (which does include me
in the later).
|>
|> And I'm not proposing holy wars against Intel architecture, I just said that
|> Linux is perhaps a bit too depending on it. I know that to build an OS that
|> runs on a lot of different architectures (with or without recompiling), you
|> have got to write a new OS and put Linux on top, so forget about that for
|> a moment. But all those drivers ... I don't want to spend 6 megabytes of
|> my hard disk for just the sources of yet another cdrom or scsi or ethernet
|> device.
We should never forget those valiant people trying to port Linux to other
plattforms. (carry on guys/gals)
As I hear on the Amiga the sappling just started to bear fruit.
What do you complain about 6 MB when other systems ('basic', this time!)
just take a 35MB byte out of your HD and people hold .5 to 1GB HDs for
the minimum (Im running of 200 cramped MB's).
|> Peter.
|>
mfg. Lutz
------------------------------
From: dmw@prism1.prism1.com (David Wright)
Subject: Re: Is there an encrypted filesystem for Linux?
Date: Thu, 15 Sep 1994 14:25:07 GMT
>>>>> "DC" == Denis Constales <dc@cage.rug.ac.be> writes:
DC> Is there an encrypted file system for Linux? Now, anyone can boot
DC> off a floppy, mount your file systems and read everything. Maybe someone
DC> has patched the ext2fs so as to encrypt data before any write and decrypt
DC> it after any read? (Actually, it's more complicated when the kernel is on
DC> an encrypted file system, and obtaining the key at mount time might be
DC> non trivial too).
There is the CFS filesystem if you are in the USA. It basically
provides a user-level version of NFS that allows you to mount directories (and
their children) that are transparently encrypted. That is, the cleartext never
hits the disk and can't be read even by root. It also stores the filenames
themselves in an encrypted manner, so again not even root can see the names
of the files.
I have CFS running on a 1.0.0 kernel and it seems to work fine.
Dave
--
____________________________________________________________________________
| /\ / | Prism Computer Applications | David Wright |
| -/--\-- | 14650 Detroit Ave, Suite LL40 | dmw@Prism1.COM |
| /____\ | Lakewood, OH 44107 USA | 216-228-1400 |
------------------------------
From: pjg@tesla.esl.com (Paul Gyugyi)
Subject: Re: IR remote control for CD??
Date: 15 Sep 1994 16:26:17 GMT
In article <Cw551J.Lu@pe1chl.ampr.org> rob@pe1chl.ampr.org (Rob Janssen) writes:
>Is there any hardware that my linux box can
>understand my standard cd player remote control?
...
Other makes can be more tricky, as info about the remote control is
often difficult to get. The method used by "universal remotes" to
handle this situation is to "record" a transmission by the original
remote control, and play that back.
Don't overlook the fact that most sound cards have an audio input
device. With the right transistor/IR photodector setup one could
build a universal remote that could capture and repeat (or decode
with the right software) any IR transmission (in stereo, in case
you want to locate the person using the remote) up to 20 kHz
(I'm not sure what frequency IR remotes use). IR remotes
send a series of pulses at a particular frequency. If you get
a special IC chip and set it to that frequency, it can output
a pulse/nopulse bit that you can poll from an unused parallel or
serial port.
OTOH, there are vendors that sell PC/DOS based IR hardware/software.
I don't know where I put my Home Automation catalog, but you
can try in the home automation newsgroup.
--
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
| Paul Gyugyi scrabble...click...snap... |
| gyugyi@earthsea.stanford.edu Paul_Gyugyi@smtp.esl.com |
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
------------------------------
From: Kevin Martinez <lps@rahul.net>
Subject: Re: IDEA: Energy saving features for harddisks
Date: Wed, 14 Sep 1994 04:14:14 GMT
rob@pe1chl.ampr.org (Rob Janssen) writes:
>In <1994Sep12.232713.11779@ida.liu.se> y93chrwe@ida.liu.se (Christer Weinigel) writes:
>> Is there anybody working on energy saving features for Linux?
>>More specifically, has anyone tried to use the "power-off" features
>>found in most IDE and SCSI disks.
[....]
>Before you get all too ethousiastic, please consider that the number
>of stop-start actions on a harddrive is often limited in the manucaturer's
>spec.
>i.e.: there is a separate spec for "lifetime" and "number of spinups".
>Maybe this is not a problem with modern drives used in laptops and "green
>computers", but it certainly is on my 3-5 year old SCSI drives.
Figure 20k to 40k start/stop cycles on a "quality" hard drive of recent
vintage. If the manufacturer does not specify the expected start/stop
cycle lifetime, it is because it is less than 20k.
How much power can you expect to save?
A Quantum PD1800S (1.8 gigabyte SCSI) draws 8 watts when idle and 11
watts when doing seeks 100% of the time. Whenever you start the motor,
figure on needing about 35 watts for about 12 seconds.
A smaller drive of the same generation would draw much less.
A major consideration for battery powered laptops but it pales in
comparison to a 19" monitor or making a bag of microwave popcorn!
--
========================================================================
Kevin Martinez lps@rahul.net Member of the Julie Kangas Fan Club
Work: 1 800 I FEEL OK Home: 1 510 676 1111
========================================================================
------------------------------
From: andy@resi.waldorf-gmbh.de (Andreas Busse)
Crossposted-To: comp.os.linux.misc
Subject: [Q] Any video processing tools for Linux ?
Date: 15 Sep 1994 15:23:49 GMT
Hi everybody,
I wonder if there are any video processing tools available
for Linux, either free or commercial. Any hints are welcome,
but please mail me.
TIA,
Andy
===============================================================================
Waldorf Electronics GmbH | Phone: +49 (0)2636-80294
R&D Department | Fax: +49 (0)2636-80188
Neustrasse 9-12, 53498 Waldorf, Germany | email: andy@waldorf-gmbh.de
===============================================================================
------------------------------
From: ag010@FreeNet.Carleton.CA (Mark Swanson)
Subject: Re: Mosaic and other TCP/IP problems
Reply-To: ag010@FreeNet.Carleton.CA (Mark Swanson)
Date: Wed, 14 Sep 1994 04:41:36 GMT
In a previous article, ftlofaro@unlv.edu (Frank Lofaro) says:
>In article <Cvr9FJ.GLI@info.swan.ac.uk> iialan@iifeak.swan.ac.uk (Alan Cox) writes:
>>In article <345a7h$1s1@exile.oec.com> stewart@oec.com (Stewart Allen) writes:
>>> show up. My network cohorts claim that 5632 bytes = 1 machine page +
>>> minimum TCP packet + TCP header and that there may be a problem with the
>>> VJ conjestion control algorithms. Is this true or is the algorithm not
>>> even implemented?
>>
>>The algorithm is implemented and 5632 almost certainly has no relation to
>>anything in the kernel code. However it certainly shouldn't be happening.
>>1 machine page + min tcp packet + tcp header is about 4200 bytes for those
>>who can add. What are you talking to at the remote end ?
>>
>
>I was wondering about the 5632 myself.
>5632=4096+1536
>
>1536 is a common mtu, I believe (could be wrong).
1536 for SLIP? Hmmm....
You may be experiencing DNS lookup failures. In fact, If you're using WinTrump
Alpha #18 or earlier I'd put money on it. You also are probably experiencing
problems with dip-337-uri if that's what you are using. You must upgrade
to dip-337-uri-i and you must poing your winTrump dns ip to a sun running
DNS. (or some other machine). I've tried 2 different versions of the dns
software on linux and it will work with wintrump perfectly except for dns
queries. bind 4.9.2-940221 is what I'm using on our Sun Sparc 5.
I haven't compiled this under Linux 1.1.50 but I'm not sure that would work.
I don't have time right now.. aaarrgg!
--
Mark Swanson. ag010@freenet.carleton.ca
Linux FREE BBS V.Fast 24,000bps. Ottawa, Canada. (613)-829-1941
------------------------------
From: ag010@FreeNet.Carleton.CA (Mark Swanson)
Subject: Linux controlling terminals and execlp() arrrr!
Reply-To: mswanson@globalx.net
Date: Wed, 14 Sep 1994 04:49:08 GMT
I'm execlp'ing a process and this new process can't do a termios
ioctl(termfd,TIOCSCTTY,1) on it. I think it's because I need ot do some
(POSIX) tcsetpgrp(termfd,tcgetpgrp(termfd)) stuff before hand since
exec'ing a process causes itself to become disassociated with its
controlling terminal.
I think. I'd realy appreciate knowing. It has to do with some problems I seem
to be having with dip-uri-337i.
Thank you.
--
Mark Swanson. ag010@freenet.carleton.ca
Linux FREE BBS V.Fast 24,000bps. Ottawa, Canada. (613)-829-1941
------------------------------
From: badics@rutcor.rutgers.edu (Tamas Badics)
Crossposted-To: comp.os.linux.help
Subject: CD-ROM gurus: PLEASE ADD PHOTOCD support to Mitsumi
Date: 15 Sep 1994 16:04:41 -0400
Dear CD-ROM Gurus,
tranter@Software.Mitel.COM (Jeff Tranter) writes:
>Currently under Linux only the Panasonic/SoundBlaster kernel driver
>supports PhotoCD. Someone needs to enhance the kernel driver for
>Mitsumi.
>--
>Jeff Tranter Jeff_Tranter@Mitel.COM
>Software Technology, Mitel Corporation
Would some of you consider writing this minor improvement for the Mitsumi
driver mcd.c?
I have sent two messages to the author (Martin Harriss, martin@bdsi.com),
but received no answer. I cannot check whether this address is still valid,
but my mails havent bounced back.
If I had the knowledge and the time, I'd try it, but both is missing, so
as a modest end-user, I try to make a little noise here.
Hoping for a timely positive answer:
Tamas
------------------------------
From: rrl@access3.digex.net (Russell Leighton)
Subject: NCR 53c810 Scsi driver problems with scsi-1 devices?
Date: 14 Sep 1994 14:50:01 -0400
Under Linux 1.1.49 I can read from my Exabyte 8200 and
write small files, but when I do a big tar I get:
Oops: 0000
EIP: 0010:001a9763
EFLAGS: 00010002
<some other stuff>
Aiee, killing interrupt handler
scsi: aborting command due to timeout: pid 3101, scsi0, id 3, lun 0 , Write (6) 01 00 00 1e 00
Kernel panic: Bad offset
In swapper task - not syncing
...now it just hangs...
What to do? I tried changing the buffer size and write threshold
in st.c, but that did not help.
Any ideas? I will fix this if I can, but I have
little time right now ...but I need this tape,
I can only read stuff in now, I'd like to do backups...
Config:
P90/PCI
Exabyte 8200 (scsi 1)
Linux 1.1.49
Scsi control by ncr53c810
Thanks.
Russ
--
Russell Leighton
Taylor Computing
russ@taylor.digex.net taylor@world.std.com
http://taylor.digex.net http://www.digex.net/~rrl/Welcome.html
------------------------------
From: csamsi@clark.net (Caesar M Samsi)
Crossposted-To: comp.os.linux.admin,comp.os.linux.misc,comp.os.linux.prog,dc.org.linux-users
Subject: Re: Linux v1.0 SMAIL problem
Date: Thu, 15 Sep 1994 19:55:56
What is the latest version os smail and where can I ftp it from ?
I have 3.1.28.1 #5, Nov 93 and it is broken. It inserts extraneous
linefeeds and tabs making the spool file looking like follows:
>From root Thu Sep 15 18:08:36 1994
>Return-Path: <root>
>Received:
> by csamsi_ppp.clark.net
> (Linux Smail3.1.28.1 #5)
> id m0qlOyp-0004vrC; Thu, 15 Sep 94 18:08 EDT
>Message-Id: <m0qlOyp-0004vrC@csamsi_ppp.clark.net>
While Linux's pine (3.89) can read it just fine, other email readers are
confused like hell.
Thanks, Caesar.
In article <1994Sep14.042231.5409@tragus.atl.ga.us> jcej@tragus.atl.ga.us
(James CE Johnson) writes:
>Actually... I think the bug is from calling ferror() after the pipe
>to uuname has been closed. Look in comp.os.linux.help (?) for a similar
>discussion (search for smail or my name). Basically, you want to edit
>smail*/src/routers/uuname.c and find where it closes the pipe to
>uuname. Below that you will see a call to ferror(). Move the ferror()
>code above the close code and everything starts working. (For me at least.)
------------------------------
From: jra@zeus.IntNet.net (Jay Ashworth)
Crossposted-To: comp.os.linux.misc,comp.os.linux.admin,alt.uu.comp.os.linux.questions
Subject: How to use a host as a router - READ THIS
Date: 15 Sep 1994 12:57:16 -0400
jbarrett@onramp.net writes:
> However, neither local or internet hosts can access a machine on the
> far side of the Linux box being used as a router.
> I can see the incomming packets being counted in /proc/net/dev, but I
> never see packets being sent out the other interface.
... and half the net is having the same trouble.
Here's the most important thing to remember:
*When using a multi-homed host as a router, EACH interface must have it's
own address.*
Routing on your local host tells IP where to send packets, based on their
destination address. What you _tell_ the routing code is _which
interface_ to send the packets out on. Therefore, each interface, (PPP is
an interface) must have a unique address. Usually, you get the IP address
for your PPP interface from the provider's net, either statically, or
dynamically. The "inside" address, the one you ifconfig onto your
ethernet interface, is part of your private net (either one you've
registered yourself, or part of a block assigned by your provider.)
A typical route information output in such a case might look like this...
Destination Gateway Netmask Flags MSS iface
127.0.0.1 127.0.0.1 255.0.0.0 UH 1536 lo0
199.245.227.0 199.245.227.254 255.255.255.0 U 1436 eth0
default 198.147.221.1 255.255.255.0 U 1436 ppp0
(The person I'm helping with this right now, who owns those addresses,
will recognize them... :-)
This routes packets for the local host to the loopback interface, packets
for the local net (199.245.227) to the local interface which connects to
that net, and packets for every other network number to the PPP interface,
for forwarding to the outside world.
Everyone understand that? :-)
Cheers,
-- jra
--
Jay R. Ashworth Ashworth
Designer & Associates
ka1fjx/4 High Technology Systems Consulting
jra@baylink.com +1 813 790 7592
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: Linux-Development-Request@NEWS-DIGESTS.MIT.EDU
You can send mail to the entire list (and comp.os.linux.development) via:
Internet: Linux-Development@NEWS-DIGESTS.MIT.EDU
Linux may be obtained via one of these FTP sites:
nic.funet.fi pub/OS/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development Digest
******************************