1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // Network interface identification
11 // If the ifindex is zero, interfaceTable returns mappings of all
12 // network interfaces. Otherwise it returns a mapping of a specific
14 func interfaceTable(ifindex int) ([]Interface, error) {
18 // If the ifindex is zero, interfaceAddrTable returns addresses
19 // for all network interfaces. Otherwise it returns addresses
20 // for a specific interface.
21 func interfaceAddrTable(ifindex int) ([]Addr, error) {
25 // If the ifindex is zero, interfaceMulticastAddrTable returns
26 // addresses for all network interfaces. Otherwise it returns
27 // addresses for a specific interface.
28 func interfaceMulticastAddrTable(ifindex int) ([]Addr, error) {