summaryrefslogtreecommitdiff
path: root/tests/net_test/net_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/net_test/net_test.py')
-rwxr-xr-xtests/net_test/net_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/net_test/net_test.py b/tests/net_test/net_test.py
index 932a4af6..23b78689 100755
--- a/tests/net_test/net_test.py
+++ b/tests/net_test/net_test.py
@@ -22,6 +22,8 @@ IPV6_FLOWINFO_SEND = 33
ETH_P_IP = 0x0800
ETH_P_IPV6 = 0x86dd
+IPPROTO_GRE = 47
+
SIOCSIFHWADDR = 0x8924
IPV6_FL_A_GET = 0
@@ -47,7 +49,8 @@ IPV6_SEQ_DGRAM_HEADER = (" sl "
"st tx_queue rx_queue tr tm->when retrnsmt"
" uid timeout inode ref pointer drops\n")
-IPPROTO_GRE = 47
+# Unix group to use if we want to open sockets as non-root.
+AID_INET = 3003
def SetSocketTimeout(sock, ms):