func (n *netNIC) Type() LinkLayerDeviceType {
	nicType := n.parseType(n.Name())

	if nicType != UnknownDevice {
		return nicType
	}

	if n.nic.Flags&net.FlagLoopback > 0 {
		return LoopbackDevice
	}

	// See comment on super-method.
	// This is incorrect for veth, tuntap, macvtap et al.
	return EthernetDevice
}
// Type returns the interface type of the device.
Type returns the interface type of the device.
// Type returns the interface type of the device .
func (n *netNIC) Type() LinkLayerDeviceType {
	nicType := n.parseType(n.Name())
	if nicType != UnknownDevice {
		return nicType
	}
	if n.nic.Flags&net.FlagLoopback > 0 {
		return LoopbackDevice
	}
	return EthernetDevice
}
func ( n * netNIC ) Type ( ) LinkLayerDeviceType { nicType := n . parseType ( n . Name ( ) ) if nicType != UnknownDevice { return nicType } if n . nic . Flags & net . FlagLoopback > 0 { return LoopbackDevice } return EthernetDevice }
Type returns the interface type of the device.
Type returns the interface type of the device .
// See comment on super-method. // This is incorrect for veth, tuntap, macvtap et al.