Go具有在golang.org/x/net/icmp上可用的内置ICMP实现,是否可以在此库中设置TTL ?,谢谢
我从mattn代码中找到了答案:
c.IPv4PacketConn().SetTTL(1)
https://gist.github.com/mattn/7ff153fe8491a2900e83#file-ping_test-go-L24-L28