当前时区 GMT+8, 现在时间是 2008-7-5 12:23 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: 测试skyeye网络功能时,设置tun时遇到的问题。
swordzq
新手上路
Rank: 1



UID 187213
精华 0
积分 8
帖子 3
阅读权限 10
注册 2005-3-24
状态 离线
发表于 2007-3-19 15:17  资料  短消息  加为好友 
测试skyeye网络功能时,设置tun时遇到的问题。

我的主机环境是Fedora core6, 我查了一下 tun模块已经加载
/dev/net下的 tun节点也已经建立,ls -l /dev/net 后的内容如下
total 0
crwx--x--x 1 root root 10, 200 Mar 19 13:32  tun

声明: skyeye在我的机器上是成功编译的。skyeye的版本是1.2.2
当我用测试包testsuite2.1中AT91目录下的uClinux_rtl8019进行
测试时,在skyeye启动过程中遇到如下输出:
ethmod num=1, mac addr=0:4:3:2:1:f,hostip=10.0.0.1
tapif_init: icotl TUNSETIFF error

我看了一下源代码这是第二句是 tuntap_open 函数中的输出。
似乎打开tun设备没有问题,后面ioctl时遇到问题了。

请问这个问题这么解决? 谢谢!
另外: 我在执行 /sbin/ifconfig 时,只看到了两个设备
eth0 和 lo 。
我不知道tun设备启用时 是不是也在这里出现?

顶部
AnthonyLee
注册会员
Rank: 2


UID 2903
精华 0
积分 222
帖子 96
阅读权限 20
注册 2002-9-28
状态 离线
发表于 2007-3-19 15:26  资料  短消息  加为好友 
以下答复来自 OpenVPN 的类似答复,可作参考。
原址在 http://openvpn.net/archive/openvpn-users/2003-05/msg00026.html

The message is caused by
an older version of the TUN/TAP driver that doesn't recognize the TUNSETIFF
ioctl, though I believe that the warning can be safely ignored without any
loss of functionality.


另外,就我所知测试包testsuite2.1中AT91目录下的uClinux_rtl8019网络功能
在 skyeye-v1.2.2 不可用。

也许你可以期待 testsuite2.2

我只在即将发布的 testsuite2.2 中测试 s3c44b0x 的 rtl8019 成功。:-)

顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP