Home | History | Annotate | Download | only in net

Lines Matching refs:interface

14 // interface.
15 func interfaceTable(ifindex int) ([]Interface, error) {
21 ifcs := make([]Interface, n)
36 return []Interface{*ifc}, nil
39 func readInterface(i int) (*Interface, error) {
40 ifc := &Interface{
42 Name: netdir + "/ipifc/" + itoa(i), // Name is the full path to the interface path in plan9
54 return nil, errors.New("invalid interface status file: " + ifcstat)
59 return nil, errors.New("invalid interface status file: " + ifcstat)
67 return nil, errors.New("invalid status file of interface: " + ifcstat)
81 return nil, errors.New("invalid address file for interface: " + device + "/addr")
133 // interface.
134 func interfaceAddrTable(ifi *Interface) ([]Addr, error) {
135 var ifcs []Interface
143 ifcs = []Interface{*ifi}
158 return nil, errors.New("cannot parse IP address for interface: " + status)
161 // This assumes only a single address for the interface.
164 return nil, errors.New("cannot parse IP address for interface: " + status)
169 return nil, errors.New("cannot parse IP address for interface: " + status)
178 return nil, errors.New("cannot parse network mask for interface: " + status)
195 // interface.
196 func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {