Skip to content

Commit 22a479b

Browse files
committed
Add ETH_P_ALL to socket
1 parent 2d33fe2 commit 22a479b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/socket.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ if sys.version_info >= (3, 12):
474474
ETHERTYPE_VLAN as ETHERTYPE_VLAN,
475475
)
476476

477+
if sys.platform == "linux":
478+
from _socket import ETH_P_ALL as ETH_P_ALL
479+
477480
# Re-exported from errno
478481
EBADF: int
479482
EAGAIN: int

0 commit comments

Comments
 (0)