Skip to content
Snippets Groups Projects
Commit 03f254bf authored by Robert Gomulka's avatar Robert Gomulka
Browse files

Fix for missing socket.IPPROTO_IPIP

In bug report https://bitbucket.org/secdev/scapy/issue/5119
it is stated that Solaris has no IPPROTO_IPIP.
The same holds true on windows platform.
Add (monkey patch) missing attribute.
Reference: http://en.wikipedia.org/wiki/List_of_IP_protocol_numbers

--HG--
branch : missing_ipip
parent 04e9f624
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,9 @@ if not socket.has_ipv6:
if not hasattr(socket, "IPPROTO_IPV6"):
# Workaround for http://bugs.python.org/issue6926
socket.IPPROTO_IPV6 = 41
if not hasattr(socket, "IPPROTO_IPIP"):
# Workaround for https://bitbucket.org/secdev/scapy/issue/5119
socket.IPPROTO_IPIP = 4
from scapy.config import conf
from scapy.layers.l2 import *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment