Home | History | Annotate | Download | only in net

Lines Matching defs:Interface

14 // Interface are not implemented.
17 // the MulticastAddrs method of Interface is not implemented.
20 errInvalidInterface = errors.New("invalid network interface")
21 errInvalidInterfaceIndex = errors.New("invalid network interface index")
22 errInvalidInterfaceName = errors.New("invalid network interface name")
23 errNoSuchInterface = errors.New("no such network interface")
24 errNoSuchMulticastInterface = errors.New("no such multicast network interface")
27 // Interface represents a mapping between network interface name
28 // and index. It also represents network interface facility
30 type Interface struct {
41 FlagUp Flags = 1 << iota // interface is up
42 FlagBroadcast // interface supports broadcast access capability
43 FlagLoopback // interface is a loopback interface
44 FlagPointToPoint // interface belongs to a point-to-point link
45 FlagMulticast // interface supports multicast access capability
72 // Addrs returns a list of unicast interface addresses for a specific
73 // interface.
74 func (ifi *Interface) Addrs() ([]Addr, error) {
86 // for a specific interface.
87 func (ifi *Interface) MulticastAddrs() ([]Addr, error) {
99 func Interfaces() ([]Interface, error) {
110 // InterfaceAddrs returns a list of the system's unicast interface
113 // The returned list does not identify the associated interface; use
114 // Interfaces and Interface.Addrs for more detail.
123 // InterfaceByIndex returns the interface specified by index.
128 func InterfaceByIndex(index int) (*Interface, error) {
143 func interfaceByIndex(ift []Interface, index int) (*Interface, error) {
152 // InterfaceByName returns the interface specified by name.
153 func InterfaceByName(name string) (*Interface, error) {
173 // interface information. It is used for reducing the cost of IPv6
181 toIndex map[string]int // interface name to its index
182 toName map[int]string // interface index to its name
190 func (zc *ipv6ZoneCache) update(ift []Interface) {