Address family not supported by protocol family.

ICMP发包时需要指定协议集。

这个问题会导致sendto失败, 通过errno, strerror(errno)可以获得错误。


Bug: sendto not successd.

need assign sin_family=AF_INET;

你可能感兴趣的:(Address family not supported by protocol family.)