pcap_lookupnet returns incorrect IP address

我是研究僧i 提交于 2019-12-02 04:53:33

Your statement "which should report the IP address of the given interface" is incorrect.

From the manpage:

pcap_lookupnet() is used to determine the IPv4 network number and mask associated with the network device device. Both netp and maskp are bpf_u_int32 pointers.

are you sure you have a network number of 10.0.0.107 or 192.168.1.100 respectively? Sounds rather unusual.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!