python 使用scapy包告警WARNING: can't import layer inet: 'module' object has no attribute 'IPPROTO_IPIP'

根据提示,找到安装目录C:\Python27\Lib\site-packages\scapy-2.3.1-py2.7.egg\scapy\layers,修改inet6.py

bind_layers(IPv6, IP, nh = socket.IPPROTO_IPIP ) 替换为: bind_layers(IPv6, IP, nh = 4 ) ,删除inet6.pyc即可

你可能感兴趣的:(python 使用scapy包告警WARNING: can't import layer inet: 'module' object has no attribute 'IPPROTO_IPIP')