1
0
mirror of https://github.com/golang/go synced 2024-11-18 02:54:47 -07:00

net: fix typo

Change-Id: I064a7e21bdc55d7f72147bcf6cfb91b96dbb77bb
Reviewed-on: https://go-review.googlesource.com/17795
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
This commit is contained in:
Mikio Hara 2015-12-14 12:16:13 +09:00
parent 6a1c2a5989
commit 24a7955c74

View File

@ -71,7 +71,7 @@ func interfaceTable(ifindex int) ([]Interface, error) {
var ift []Interface
for _, aa := range aas {
index := aa.IfIndex
if index == 0 { // ipv6IfIndex is a sustitute for ifIndex
if index == 0 { // ipv6IfIndex is a substitute for ifIndex
index = aa.Ipv6IfIndex
}
if ifindex == 0 || ifindex == int(index) {
@ -128,7 +128,7 @@ func interfaceAddrTable(ifi *Interface) ([]Addr, error) {
var ifat []Addr
for _, aa := range aas {
index := aa.IfIndex
if index == 0 { // ipv6IfIndex is a sustitute for ifIndex
if index == 0 { // ipv6IfIndex is a substitute for ifIndex
index = aa.Ipv6IfIndex
}
var pfx4, pfx6 []IPNet
@ -250,7 +250,7 @@ func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {
var ifat []Addr
for _, aa := range aas {
index := aa.IfIndex
if index == 0 { // ipv6IfIndex is a sustitute for ifIndex
if index == 0 { // ipv6IfIndex is a substitute for ifIndex
index = aa.Ipv6IfIndex
}
if ifi == nil || ifi.Index == int(index) {