[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-24 Thread Dmitry Tantsur
Dmitry Tantsur added the comment: That would be fantastic, but I did not dare asking for it :) This is how the output of if_nameindex looks on my Fedora 29: [(1, 'lo'), (2, 'enp0s31f6'), (3, 'wlp4s0'), (4, 'virbr0'), (5, 'virbr0-nic'),

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-22 Thread Dmitry Tantsur
New submission from Dmitry Tantsur : These two calls are currently Unix-only in the socket module. However, Windows supports them starting with Vista: https://docs.microsoft.com/en-us/windows/desktop/api/netioapi/nf-netioapi-if_indextoname https://docs.microsoft.com/en-us/windows/desktop/api