我的笔记本电脑(使用 Ubuntu 13.10)eth0通过 ip的有线连接连接到互联网192.168.42.13,它还充当ip的wifi hotspotat (我使用 airbase-ng 来设置 ap)。现在我有一个需要连接到那个 wifi 的 android 设备。我看到我的 android 能够连接到并从我设置的服务器接收以下网络设置。(我使用PlayStore 中的一个名为Net Info II的工具来查看我的 android 上的以下详细信息)。wlan0192.168.1.1hotspotdhcp
# My android network settings (connected to the wlan0 of my laptop):
ip address: 192.168.1.10
subnetmask: 255.255.255.0
gateway : 192.168.1.254
ap-mac : xx:xx:xx:xx:xx:xx
# My pc's eth0 configuration
ip address: 192.168.42.13
submetmask: 255.255.255.0
gateway : 192.168.42.129
iface mac : yy:yy:yy:yy:yy:yy
# My pc's wlan0 (hotspot interface) configuration
ip …Run Code Online (Sandbox Code Playgroud) 我发现用户级线程比内核级线程快很多,但我找不到任何令人信服的例子来说明为什么用户级线程比内核级线程快?有人可以向我解释一下。
内核级线程速度慢且效率低下。例如,线程操作比用户级线程慢数百倍。
取自这里
我正在尝试使用iptables它给我以下错误
root@vikkyhacks:~# iptables -t NAT -L
iptables v1.4.18: can't initialize iptables table `NAT': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Run Code Online (Sandbox Code Playgroud)
我该如何解决 ?我正在Ubuntu 13.10用
root@vikkyhacks:~# uname -a
Linux vikkyhacks 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)