Commit d68d3aaa authored by Peter V. Saveliev's avatar Peter V. Saveliev

netns: arch reference fixed

Bug-Url: https://github.com/svinota/pyroute2/issues/203
parent 6ef896a7
......@@ -83,13 +83,14 @@ import errno
import ctypes
from pyroute2 import config
__NR = {'x86_64': {'64bit': 308},
# FIXME: arch reference
__NR = {'x86_': {'64bit': 308},
'i386': {'32bit': 346},
'mips': {'32bit': 4344,
'64bit': 5303}, # FIXME: NABI32?
'arm': {'32bit': 375,
'64bit': 375}} # FIXME: EABI vs. OABI?
__NR_setns = __NR.get(config.machine, {}).get(config.arch, 308)
'armv': {'32bit': 375,
'64bit': 375}} # FIXME: EABI vs. OABI?
__NR_setns = __NR.get(config.machine[:4], {}).get(config.arch, 308)
CLONE_NEWNET = 0x40000000
MNT_DETACH = 0x00000002
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment