Skip to content

Commit 03b522d

Browse files
authored
[3.11] Backport PR #112477: correct socket AF_PACKET docs (#112478)
Backport PR #112477: correct socket AF_PACKET docs Network byte order is not involved in the `int` on the Python side. That happens under the hood. Correctly use the term addresses instead of packets.
1 parent c3e5d0d commit 03b522d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/library/socket.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,11 @@ created. Socket addresses are represented as follows:
185185
.. versionadded:: 3.7
186186

187187
- :const:`AF_PACKET` is a low-level interface directly to network devices.
188-
The packets are represented by the tuple
188+
The addresses are represented by the tuple
189189
``(ifname, proto[, pkttype[, hatype[, addr]]])`` where:
190190

191191
- *ifname* - String specifying the device name.
192-
- *proto* - An in network-byte-order integer specifying the Ethernet
193-
protocol number.
192+
- *proto* - An integer specifying the Ethernet protocol number.
194193
- *pkttype* - Optional integer specifying the packet type:
195194

196195
- ``PACKET_HOST`` (the default) - Packet addressed to the local host.

0 commit comments

Comments
 (0)