func (n netlinkNIC) Type() LinkLayerDeviceType {
	switch n.nic.Type() {
	case "bridge":
		return BridgeDevice
	case "vlan":
		return VLAN8021QDevice
	case "bond":
		return BondDevice
	case "vxlan":
		return VXLANDevice
	}

	if n.nic.Attrs().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 netlinkNIC) Type() LinkLayerDeviceType {
	switch n.nic.Type() {
	case "bridge":
		return BridgeDevice
	case "vlan":
		return VLAN8021QDevice
	case "bond":
		return BondDevice
	case "vxlan":
		return VXLANDevice
	}
	if n.nic.Attrs().Flags&net.FlagLoopback > 0 {
		return LoopbackDevice
	}
	return EthernetDevice
}
func ( n netlinkNIC ) Type ( ) LinkLayerDeviceType { switch n . nic . Type ( ) { case " " : return BridgeDevice case " " : return VLAN8021QDevice case " " : return BondDevice case " " : return VXLANDevice } if n . nic . Attrs ( ) . 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.