摘要: 首发于github page 自己动手编写tcp/ip协议栈1:tcp包解析 tuntap 由于linux内核控制了网络接口,所以应用层不能直接使用网络接口来处理网络包。linux通过提供tuntap虚拟网络接口的机制,让用户可以在应用层处理原始的网络包。 tun使用示例 tuntap可以创建两种虚 阅读全文
posted @ 2025-02-17 22:57 千舟1900 阅读(36) 评论(0) 推荐(0)
摘要: 博主github page ip rule 和 ip route 网络包优先匹配 ip rule 中的规则,然后再被转到相应的 ip table 路由规则处理 ip rule # output # 0: from all lookup local # 32766: from all lookup m 阅读全文
posted @ 2024-09-29 22:37 千舟1900 阅读(27) 评论(0) 推荐(0)