Skip to content
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

net: need portable api to find network masks from local interfaces #7955

Closed
gopherbot opened this issue May 8, 2014 · 2 comments

Comments

Projects
None yet
3 participants
@gopherbot
Copy link

commented May 8, 2014

by everton.marques:

The functions below don't provide network masks under Windows 7:

    http://golang.org/pkg/net/#InterfaceAddrs
    http://golang.org/pkg/net/#Interface.Addrs

What does 'go version' print?
go version go1.2.2 windows/amd64

What steps reproduce the problem?
1. save http://play.golang.org/p/LNSJnZS-Be to ip.go
2. go run ip.go

What happened?
Under Windows 7, only the ip addresses are shown (but not the netmasks).

What should have happened instead?
Need a portable api to get network masks from local interfaces.

Please provide any additional information below.

Question on stackoverflow:
http://stackoverflow.com/questions/23529663/how-to-get-all-addresses-and-masks-from-local-interfaces-in-go
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented May 8, 2014

Comment 1:

Labels changed: added repo-net.

@mikioh

This comment has been minimized.

Copy link
Contributor

commented May 8, 2014

Comment 2:

Labels changed: added repo-main, os-windows, removed repo-net.

Status changed to Duplicate.

Merged into issue #5395.

@golang golang locked and limited conversation to collaborators Jun 25, 2016

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.