Add socket.IPPROTO_MPTCP (#6863)

This commit is contained in:
Rui Cunha
2022-01-08 18:57:03 +00:00
committed by GitHub
parent ea6c562928
commit d00b3b2d12
2 changed files with 5 additions and 0 deletions

View File

@@ -356,6 +356,9 @@ if sys.platform == "linux" and sys.version_info >= (3, 9):
J1939_FILTER_MAX: int
if sys.platform == "linux" and sys.version_info >= (3, 10):
IPPROTO_MPTCP: int
if sys.platform == "linux":
AF_PACKET: int
PF_PACKET: int

View File

@@ -366,6 +366,8 @@ if sys.platform == "linux" and sys.version_info >= (3, 9):
SO_J1939_PROMISC as SO_J1939_PROMISC,
SO_J1939_SEND_PRIO as SO_J1939_SEND_PRIO,
)
if sys.platform == "linux" and sys.version_info >= (3, 10):
from _socket import IPPROTO_MPTCP as IPPROTO_MPTCP
if sys.platform == "win32":
from _socket import (
RCVALL_IPLEVEL as RCVALL_IPLEVEL,