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: It's not clear what "interface name" means in socket if_nameindex/if_nametoindex/if_indextoname on Windows
Type: enhancement Stage: resolved
Components: Library (Lib), Windows Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ZackerySpytz, dtantsur, jstasiak, miss-islington, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2020-06-07 13:17 by jstasiak, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20694 merged jstasiak, 2020-06-07 13:23
PR 22794 merged miss-islington, 2020-10-19 22:31
PR 22795 merged miss-islington, 2020-10-19 22:31
Messages (7)
msg370894 - (view) Author: Jakub Stasiak (jstasiak) * Date: 2020-06-07 13:17
On Windows there are different names for the same interface in different contexts.
msg370897 - (view) Author: Jakub Stasiak (jstasiak) * Date: 2020-06-07 13:27
if_nameindex(), if_indextoname() and if_nametoindex() have been implemented as part of https://bugs.python.org/issue37007

While working on ifaddr I discovered that all three different kinds of names ifaddr fetches for an interface on Windows are not what Python socket functions use so I thought it'd be useful to document it for the next person who bumps into this.
msg379044 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-10-19 22:31
New changeset f85658a09878c658ae0e0590bfa30e4ce51c9a04 by Jakub Stasiak in branch 'master':
bpo-40901: Describe what "interface name" means on Windows (GH-20694)
https://github.com/python/cpython/commit/f85658a09878c658ae0e0590bfa30e4ce51c9a04
msg379045 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-10-19 22:32
Very helpful contribution! Thank your
msg379048 - (view) Author: miss-islington (miss-islington) Date: 2020-10-19 22:39
New changeset 609a38a36f3006ee00eccc18b25e3b2d577a3e56 by Miss Skeleton (bot) in branch '3.8':
bpo-40901: Describe what "interface name" means on Windows (GH-20694)
https://github.com/python/cpython/commit/609a38a36f3006ee00eccc18b25e3b2d577a3e56
msg379049 - (view) Author: Jakub Stasiak (jstasiak) * Date: 2020-10-19 22:41
Cheers!
msg379054 - (view) Author: miss-islington (miss-islington) Date: 2020-10-19 22:49
New changeset 9308173f880f3c0a6447da8335f3ae68edad3b0f by Miss Skeleton (bot) in branch '3.9':
bpo-40901: Describe what "interface name" means on Windows (GH-20694)
https://github.com/python/cpython/commit/9308173f880f3c0a6447da8335f3ae68edad3b0f
History
Date User Action Args
2022-04-11 14:59:32adminsetgithub: 85078
2020-10-19 22:49:58miss-islingtonsetmessages: + msg379054
2020-10-19 22:41:12jstasiaksetmessages: + msg379049
2020-10-19 22:39:53miss-islingtonsetmessages: + msg379048
2020-10-19 22:32:25steve.dowersetstatus: open -> closed
resolution: fixed
messages: + msg379045

stage: patch review -> resolved
2020-10-19 22:31:22miss-islingtonsetpull_requests: + pull_request21751
2020-10-19 22:31:15miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request21750
2020-10-19 22:31:01steve.dowersetmessages: + msg379044
2020-06-07 13:27:35jstasiaksetnosy: + dtantsur, ZackerySpytz
messages: + msg370897
2020-06-07 13:23:23jstasiaksetkeywords: + patch
stage: patch review
pull_requests: + pull_request19909
2020-06-07 13:17:37jstasiakcreate