[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] Fwd: Regarding: "I get the error Cannot ioctl TUNSETIFF tun0: File descriptor in bad state (errno=77)"


  • Subject: [Openvpn-users] Fwd: Regarding: "I get the error Cannot ioctl TUNSETIFF tun0: File descriptor in bad state (errno=77)"
  • From: "James Yonan" <jim@xxxxxxxxx>
  • Date: Wed, 12 Jan 2005 18:21:27 -0000

> Hey OpenVPN-Team,
> my solution:
> 
> I got the same error on a SuSE Linux 7.2 box. While google'ing around I
> found some answers regarding Kernel-Headers and if_tun.h.
> 
> mailin:~ # locate if_tun.h
> /usr/include/linux/if_tun.h
> /usr/src/linux-2.4.27/include/linux/if_tun.h
> 
> Hmm.. two if_tun.h, okay...we'll see.
> 
> mailin:~ # rpm -qf /usr/include/linux/if_tun.h
> glibc-devel-2.2.2-38
> 
> Well, a glibc-update on a remote-system is not, what I'd like to do, so
> I decided to temporary remove the /usr/include/linux/if_tun.h (renaming
> the complete dir) 
> The kernel and all modules compiled without any error but the recompiled
> openvpn didn't even try to use /dev/net/tun. 
> 
> After copying the include-files out of /usr/src/linux/include/ into
> /usr/include/linux/ and rebuilding openvpn everything works fine now.
> 
> Best regards
> Tom Spier
> B.I.T. Datentechnik GmbH
> 
> 
> 
> 



-- 






-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users