This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: socket.IP_PKTINFO is missing from python
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Michael.Felt, ZackerySpytz, `, guerby, qdawans
Priority: normal Keywords: patch

Created on 2017-08-14 14:59 by guerby, last changed 2022-04-11 14:58 by admin.

Pull Requests
URL Status Linked Edit
PR 3161 closed GuyIncognito, 2017-08-20 16:31
PR 20029 open ZackerySpytz, 2020-05-10 23:06
Messages (3)
msg300248 - (view) Author: Laurent GUERBY (guerby) Date: 2017-08-14 14:59
The constant socket.IP_PKTINFO is missing.

Definition on Linux:

http://elixir.free-electrons.com/linux/v4.12.7/source/include/uapi/linux/in.h#L96

Exemple code that would benefit from the definition:

https://chiliproject.tetaneutral.net/projects/tetaneutral/wiki/Netconsole#nagios-selectors

Note: socket.IPV6_PKTINFO is defined :).
msg300249 - (view) Author: Laurent GUERBY (guerby) Date: 2017-08-14 15:09
Probable fix in Modules/socketmodule.c after /* IPv4 [gs]etsockopt options */ add:

#ifdef  IP_PKTINFO
    PyModule_AddIntMacro(m, IP_PKTINFO);
#endif
msg327001 - (view) Author: Michael Felt (Michael.Felt) * Date: 2018-10-03 18:46
FYI: define exists on
Linux 3.16.0-4-powerpc64 #1 SMP Debian 3.16.7-ckt9-3 (2015-04-23) ppc64 GNU/Linux
SunOS 5.11 11.3 

Not on AIX
History
Date User Action Args
2022-04-11 14:58:50adminsetgithub: 75386
2020-05-10 23:09:05ZackerySpytzsetversions: + Python 3.9, - Python 3.7
2020-05-10 23:06:31ZackerySpytzsetkeywords: + patch
nosy: + ZackerySpytz

pull_requests: + pull_request19339
stage: commit review -> patch review
2018-10-03 18:46:22Michael.Feltsetnosy: + Michael.Felt
messages: + msg327001
2017-10-20 19:40:30ned.deilysetnosy: + `
stage: commit review

versions: - Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
2017-10-20 08:52:20qdawanssetnosy: + qdawans
2017-08-20 16:31:08GuyIncognitosetpull_requests: + pull_request3197
2017-08-14 15:09:27guerbysetmessages: + msg300249
2017-08-14 14:59:44guerbycreate