diff options
author | dsentinel <14005083+dsentinel@users.noreply.github.com> | 2023-01-09 09:00:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 09:00:40 (GMT) |
commit | 7a50d6b5b09a88e915891757fdd6d371310d2e96 (patch) | |
tree | 771bb40915d3d4303087ff8de04670b09f2a09a3 /Modules | |
parent | e47b13934b2eb50914e4dbae91f1dc59f8325e30 (diff) | |
download | cpython-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.c | 3 |
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 |