江门网站制作案例,品牌营销策划网站,低价网站建设扬州,wordpress 说明在Android5.1系统上的adb shell或调试串口SHELL命令行下运行相应的iptables命令#xff0c;NAT功能仍不生效#xff0c;但同样的命令在Android4.4和4.2上验证是成功的#xff0c;于是通过iptables -t nat -nvL和iptables -nvL命令对比#xff0c;并未发现区别#xff0c;后…在Android5.1系统上的adb shell或调试串口SHELL命令行下运行相应的iptables命令NAT功能仍不生效但同样的命令在Android4.4和4.2上验证是成功的于是通过iptables -t nat -nvL和iptables -nvL命令对比并未发现区别后来发现使用ip route list table 0命令时5.1系统上多了一句
192.168.43.0/24 dev wlan0table local_networkproto staticscope link
于是我们使用ip route add 192.168.43.0/24 dev wlan0 table local_network proto static scope link命令将相应路由规则添加上就能正常使用NAT功能了而不会出现其他WiFi连接映射出来的AP时握手时间过长、连接上AP的设备无法PING通AP等问题。
对比了/system/netd目录下的代码5.1上也确认多了对local_network这张table的处理。