[New-bugs-announce] [issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

Dmitry Tantsur report at bugs.python.org
Wed May 22 07:01:24 EDT 2019


New submission from Dmitry Tantsur <divius.inside at gmail.com>:

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/netioapi/nf-netioapi-if_nametoindex

I checked with ctypes and they do seem to work. Unfortunately, if_nameindex is not implemented.

----------
components: Library (Lib)
messages: 343171
nosy: dtantsur
priority: normal
severity: normal
status: open
title: Implement socket.if_{nametoindex,indextoname} for Windows
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37007>
_______________________________________


More information about the New-bugs-announce mailing list