Change-Id: I064a7e21bdc55d7f72147bcf6cfb91b96dbb77bb
Reviewed-on: https://go-review.googlesource.com/17795
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
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) {
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
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) {