SIGN IN SIGN UP

[3.12] Correct documentation for AF_PACKET (GH-112339) (#112477)

Correct documentation for AF_PACKET (GH-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.cGH-L2144

network byte order doesn't make sense for a python level int anyways. It's a fixed size C serialization concept.
(cherry picked from commit 562d7149c6944fb9e4c7be80664b2f2d5a12a3ea)

Co-authored-by: Eugene Toder <eltoder@users.noreply.github.com>
M
Miss Islington (bot) committed
60a08e6ff2ef8306d276a40f861bf46f34ba09bd
Parent: ee7dc67
Committed by GitHub <noreply@github.com> on 11/27/2023, 11:48:59 PM