I install a scapy module for python 2.6, and when I import this module, I get this warning:
WARNING: unable to import ipsec layer: object 'module' does not have attribute 'IPPROTO_AH'
I looked at the socket attributes and I did not find the IPPROTO_AH attribute. Also, I tried to edit the ipsec.py module and find a way to replace IPPROTO_AH with something else, but then I received a WARNING with IPPROTO_ESP!
I tried editing lines in ipsec.py, for example:
overload_fields = { IP: {'proto': IPTest}, IPv6: {'nh': IPTest}, IPv6ExtHdrHopByHop: {'nh': socket.IPPROTO_AH}, IPv6ExtHdrDestOpt: {'nh': socket.IPPROTO_AH}, IPv6ExtHdrRouting: {'nh': socket.IPPROTO_AH},} bind_layers(IP, AH, proto=socket.IPPROTO_AH) bind_layers(IPv6, AH, nh=socket.IPPROTO_AH)
how can i fix this?
source share