Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net, syscall: implement network interface API on Solaris #7177
changed the title
net, syscall: implement network interface API on dragonfly, solaris
Jan 23, 2015
referenced this issue
Aug 12, 2016
One issue with the code is that it fails the net.TestInterfaces
It would seem that the go code assumes that an ifindex on an interface uniquely refers to a set of properties on the interface. On Solaris... ifindex+family uniquely describe this.
So, on my box there are two interfaces with ifindex: 1... one is IPv4 and the other is IPv6... the test fails because these two interfaces have different MTUs.
I see two solution... fake an ifindex, or unbreak this uniqueness assumption.
Actually fudging the ifindex isn't useful. That test does a check by name as well. There are certainly two lo0's on my box... and they definitely have different MTUs. So, back to square one... almost need to simply annotate that the test assumptions aren't valid on Illumos/Solaris.