[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-members] Tun (fwd)
From: |
Jani Monoses |
Subject: |
Re: [lwip-members] Tun (fwd) |
Date: |
Wed, 8 Jan 2003 15:19:30 +0200 |
ok now I get the error with cat but not with simhost
it's probably the effect of the ioctl after open
the reason I had the same problem as you was that for some reason
I had tap0,tap1,tap2 and 3 in /proc/net/dev meaning they were at one point
configured
and when stopping simhost tap0 was still up .turns out I had another simhost
running
(it beats me how that happened) so after killing them all it now works
It's not likely this is your problem too but I can't seem to reproduce it
now.With the funny situation described above the tapif (and mintapif too) hung
on select()
killall -9 simhost :)
>
> Apologies for bringing tun up again, but there are people here who have it
> working and I'm getting increasingly frustrated with it.
>
> I've tried to get tun working, but always get an error as follows:
>
> "cat: /dev/net/tun: File descriptor in bad state"
>
> All the reports of this error I can find suggest this is due to mismatched
> headers and kernel versions, so I have ensured that I have compiled the
> kernel and modules from scratch and have /usr/src/linux,
> /usr/include/linux and /usr/include/asm pointing to the kernel I've just
> compiled (and now running).
>
> I still get the error.
>
> To demonstrate this, I do the following:
>
> mkdir /dev/net
> mknod /dev/net/tun c 10 200
> insmod tun
> cat /dev/net/tun
>
> simhost gives the same error ("File descriptor in bad state") too.
>
> Does anyone have helpful suggestions for what I might be doing wrong? I
> have tried numerous kernel versions (between 2.4.6 and 2.4.18, both
> compiled myself and standard redhat distributed kernels) and a number of
> different machines. All give the same error.
>
> Thanks!
>
> Kieran
>
>
>
>
>
> _______________________________________________
> lwip-members mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/lwip-members