]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Correct documentation for AF_PACKET (#112339)
authorEugene Toder <eltoder@users.noreply.github.com>
Mon, 27 Nov 2023 23:42:37 +0000 (18:42 -0500)
committerGitHub <noreply@github.com>
Mon, 27 Nov 2023 23:42:37 +0000 (15:42 -0800)
commit562d7149c6944fb9e4c7be80664b2f2d5a12a3ea
tree3429dada42a19d49e7d6e45ea5d2bc466e0b61f2
parentb90a5cf11cdb69e60aed7be732e80113bca7bbe4
Correct documentation for AF_PACKET (#112339)

Protocol in the address tuple should *not* be in the network-byte-order, because it is converted internally[1].

[1] https://github.com/python/cpython/blob/89ddea4886942b0c27a778a0ad3f0d5ac5f518f0/Modules/socketmodule.c#L2144

network byte order doesn't make sense for a python level int anyways. It's a fixed size C serialization concept.
Doc/library/socket.rst