Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyroute2/netlink/rtnl/ifinfmsg/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
TUNSETPERSIST = 0x400454cb
TUNSETOWNER = 0x400454cc
TUNSETGROUP = 0x400454ce
elif config.machine in ('ppc64', 'mips'):
elif config.machine in ('ppc64', 'mips', 'loongarch64'):
TUNSETIFF = 0x800454ca
TUNSETPERSIST = 0x800454cb
TUNSETOWNER = 0x800454cc
Expand Down
2 changes: 1 addition & 1 deletion pyroute2/netlink/rtnl/ifinfmsg/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
TUNSETPERSIST = 0x400454cb
TUNSETOWNER = 0x400454cc
TUNSETGROUP = 0x400454ce
elif config.machine in ('ppc64', 'mips'):
elif config.machine in ('ppc64', 'mips' , 'loongarch64'):
TUNSETIFF = 0x800454ca
TUNSETPERSIST = 0x800454cb
TUNSETOWNER = 0x800454cc
Expand Down
3 changes: 2 additions & 1 deletion pyroute2/netns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
'aarc': {'32bit': 375,
'64bit': 268}, # FIXME: EABI vs. OABI?
'ppc6': {'64bit': 350},
's390': {'64bit': 339}}
's390': {'64bit': 339},
'loon': {'64bit': 268}}
__NR_setns = __NR.get(config.machine[:4], {}).get(config.arch, 308)

CLONE_NEWNET = 0x40000000
Expand Down