From 3169f27040b0dccc173ba9ba5f983bce57dc209f Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Sat, 31 Jul 2021 17:18:28 -0400 Subject: [PATCH 1/2] add availability info to AF_PACKET section --- Doc/library/socket.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 95c7d7e0699f01..c6a4226ee14cc3 100755 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -197,6 +197,8 @@ created. Socket addresses are represented as follows: - *addr* - Optional bytes-like object specifying the hardware physical address, whose interpretation depends on the device. + .. availability:: Linux >= 2.2. + - :const:`AF_QIPCRTR` is a Linux-only socket based interface for communicating with services running on co-processors in Qualcomm platforms. The address family is represented as a ``(node, port)`` tuple where the *node* and *port* From f75b248d046c9f6332ad9a175cfb2778135cf1d8 Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Sat, 31 Jul 2021 19:02:17 -0400 Subject: [PATCH 2/2] add availability for AF_QIPCRTR as well --- Doc/library/socket.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index c6a4226ee14cc3..e3343d655ae640 100755 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -204,6 +204,8 @@ created. Socket addresses are represented as follows: family is represented as a ``(node, port)`` tuple where the *node* and *port* are non-negative integers. + .. availability:: Linux >= 4.7. + .. versionadded:: 3.8 - :const:`IPPROTO_UDPLITE` is a variant of UDP which allows you to specify