summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authordsentinel <14005083+dsentinel@users.noreply.github.com>2023-01-09 09:00:40 (GMT)
committerGitHub <noreply@github.com>2023-01-09 09:00:40 (GMT)
commit7a50d6b5b09a88e915891757fdd6d371310d2e96 (patch)
tree771bb40915d3d4303087ff8de04670b09f2a09a3 /Modules
parente47b13934b2eb50914e4dbae91f1dc59f8325e30 (diff)
downloadcpython-7a50d6b5b09a88e915891757fdd6d371310d2e96.zip
cpython-7a50d6b5b09a88e915891757fdd6d371310d2e96.tar.gz
cpython-7a50d6b5b09a88e915891757fdd6d371310d2e96.tar.bz2
GH-100813: Add `socket.IP_PKTINFO` constant (#10294)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 2c59c2f..4747a23 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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