mirror of
https://github.com/python/cpython.git
synced 2025-01-23 17:44:35 +08:00
GH-100813: Add socket.IP_PKTINFO
constant (#10294)
This commit is contained in:
parent
e47b13934b
commit
7a50d6b5b0
@ -436,6 +436,7 @@ Constants
|
||||
``TCP_FASTOPEN_CONNECT``, ``TCP_ULP``, ``TCP_MD5SIG_EXT``,
|
||||
``TCP_FASTOPEN_KEY``, ``TCP_FASTOPEN_NO_COOKIE``,
|
||||
``TCP_ZEROCOPY_RECEIVE``, ``TCP_INQ``, ``TCP_TX_DELAY``.
|
||||
Added ``IP_PKTINFO``.
|
||||
|
||||
.. data:: AF_CAN
|
||||
PF_CAN
|
||||
|
@ -0,0 +1 @@
|
||||
Add :data:`socket.IP_PKTINFO` constant.
|
@ -8351,6 +8351,9 @@ PyInit__socket(void)
|
||||
#ifdef IP_TRANSPARENT
|
||||
PyModule_AddIntMacro(m, IP_TRANSPARENT);
|
||||
#endif
|
||||
#ifdef IP_PKTINFO
|
||||
PyModule_AddIntMacro(m, IP_PKTINFO);
|
||||
#endif
|
||||
#ifdef IP_BIND_ADDRESS_NO_PORT
|
||||
PyModule_AddIntMacro(m, IP_BIND_ADDRESS_NO_PORT);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user