GH-100813: Add socket.IP_PKTINFO constant (#10294)

This commit is contained in:
dsentinel 2023-01-09 01:00:40 -08:00 committed by GitHub
parent e47b13934b
commit 7a50d6b5b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1 @@
Add :data:`socket.IP_PKTINFO` constant.

View File

@ -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