Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经完成了 rpl-border-router.c 作为 sky mote 上的路由器和 cooja 中 sky 上的 1 udp-server.c mote。我使用 tunslip 实用程序连接路由器。
我可以ping我的服务器和路由器。
我想通过我的 linux 作为主机通过 tun0 将 udp 数据发送到服务器,但我无法发送它。我注意到通过从终端 ping 它可以工作,通过在 firefox 路由器中打开显示路由,如何通过边界路由器从 linux 作为主机将数据包发送到我的服务器。
使用网猫! netcat -u [node ip] [port] 这将打开与节点上 UDP 服务器的连接,并允许您从控制台发送 UDP 消息。
netcat -u [node ip] [port]