Commit 02328faf authored by scheuran's avatar scheuran Committed by Peter V. Saveliev

tuntap: support for s390x architecture (#469)

This patch adds support for the s390x architecture.
parent 1434a3ad
......@@ -28,7 +28,7 @@ _BONDING_MASTER = '/sys/class/net/%s/master/ifindex'
IFNAMSIZ = 16
TUNDEV = '/dev/net/tun'
if config.machine in ('i386', 'i686', 'x86_64'):
if config.machine in ('i386', 'i686', 'x86_64', 's390x'):
TUNSETIFF = 0x400454ca
TUNSETPERSIST = 0x400454cb
TUNSETOWNER = 0x400454cc
......
......@@ -27,7 +27,7 @@ _BONDING_MASTER = '/sys/class/net/%s/master/ifindex'
IFNAMSIZ = 16
TUNDEV = '/dev/net/tun'
if config.machine in ('i386', 'i686', 'x86_64', 'armv6l', 'armv7l'):
if config.machine in ('i386', 'i686', 'x86_64', 'armv6l', 'armv7l', 's390x'):
TUNSETIFF = 0x400454ca
TUNSETPERSIST = 0x400454cb
TUNSETOWNER = 0x400454cc
......
......@@ -101,7 +101,8 @@ __NR = {'x86_': {'64bit': 308},
'armv': {'32bit': 375},
'aarc': {'32bit': 375,
'64bit': 268}, # FIXME: EABI vs. OABI?
'ppc6': {'64bit': 350}}
'ppc6': {'64bit': 350},
's390': {'64bit': 339}}
__NR_setns = __NR.get(config.machine[:4], {}).get(config.arch, 308)
CLONE_NEWNET = 0x40000000
......
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