Issue 31203: socket.IP_PKTINFO is missing from python (original) (raw)

Issue31203

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:50 admin set github: 75386
2020-05-10 23:09:05 ZackerySpytz set versions: + Python 3.9, - Python 3.7
2020-05-10 23:06:31 ZackerySpytz set keywords: + patchnosy: + ZackerySpytzpull_requests: + <pull%5Frequest19339>stage: commit review -> patch review
2018-10-03 18:46:22 Michael.Felt set nosy: + Michael.Feltmessages: +
2017-10-20 19:40:30 ned.deily set nosy: + `stage: commit reviewversions: - Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
2017-10-20 08:52:20 qdawans set nosy: + qdawans
2017-08-20 16:31:08 GuyIncognito set pull_requests: + <pull%5Frequest3197>
2017-08-14 15:09:27 guerby set messages: +
2017-08-14 14:59:44 guerby create