Skip to content

gh-100231: Clarify AF_PACKET protocol byte order#154741

Open
nightcityblade wants to merge 1 commit into
python:mainfrom
nightcityblade:fix/issue-100231
Open

gh-100231: Clarify AF_PACKET protocol byte order#154741
nightcityblade wants to merge 1 commit into
python:mainfrom
nightcityblade:fix/issue-100231

Conversation

@nightcityblade

@nightcityblade nightcityblade commented Jul 26, 2026

Copy link
Copy Markdown

Clarify that AF_PACKET protocol numbers passed to socket.socket() must
be converted to network byte order, and show ETH_P_ALL with
socket.htons().

Fixes #100231.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33765611 | 📁 Comparing 45e9f61 against main (5afbb60)

  🔍 Preview build  

1 file changed
± library/socket.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

socket.AF_PACKET doc: proto is *not* in network byte order

1 participant