Skip to content

Commit

Permalink
Add ETH_P_ALL to socket
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemarx committed May 8, 2024
1 parent 2d33fe2 commit 22a479b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/socket.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ if sys.version_info >= (3, 12):
ETHERTYPE_VLAN as ETHERTYPE_VLAN,
)

if sys.platform == "linux":
from _socket import ETH_P_ALL as ETH_P_ALL

# Re-exported from errno
EBADF: int
EAGAIN: int
Expand Down

0 comments on commit 22a479b

Please sign in to comment.