-
Notifications
You must be signed in to change notification settings - Fork 18k
net: add FlagRunning as network interface flag #29991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CC @mikioh |
Looks like reporting just |
Reading through the code review and I couldn't find anything that speaks against supporting |
It seems like we should have the bit since it's part of the standard network API. Accepting. |
The current set of net.Flags are chosen from the following criteria:
IIUC, IFF_RUNNING was introduced in BSD variants to represent some state of My recommendation as follows:
|
http://golang.org/cl/162037 is a counter proposal. |
Change https://golang.org/cl/162037 mentions this issue: |
It looks like this was proposed again in #53482 and implemented by https://go.dev/cl/413454, so I think this can be closed as completed. |
FlagUp
doesn't tell if for example an ethernet cable is physically attached to a network interface.According to the IFF_UP vs IFF_RUNNING answer, the flag
IFF_RUNNING
actually does that.(I did not verify this.)
I propose to add
net.FlagRunning
to know if a network interface is operational.The text was updated successfully, but these errors were encountered: