As requested on bug #320652, here's the lshal output for my tap0 vs. eth0 devices. The key difference I notice is the net.originating_device, which shows only '/org/freedesktop/Hal/devices/computer' for tap0 - I think this corresponds to the fact that /sys/class/net/tap0/ has no 'device' entry, and seems to be an accurate way to distinguish physical devices from virtual ones.
Hi Alexander,
As requested on bug #320652, here's the lshal output for my tap0 vs. eth0 devices. The key difference I notice is the net.originating _device, which shows only '/org/freedeskt op/Hal/ devices/ computer' for tap0 - I think this corresponds to the fact that /sys/class/ net/tap0/ has no 'device' entry, and seems to be an accurate way to distinguish physical devices from virtual ones.
udi = '/org/freedeskt op/Hal/ devices/ net_c2_ af_1e_10_ ca_56' op.Hal. Device. WakeOnLan' } (string list) op/Hal/ devices/ computer' (string) op/Hal/ devices/ net_c2_ af_1e_10_ ca_56' (string) hotplug_ type = 2 (0x2) (int) virtual/ net/tap0' (string) mac_address = 214057379482198 (0xc2af1e10ca56) (uint64) proto_hw_ id = 1 (0x1) (int) ng_device = '/org/freedeskt op/Hal/ devices/ computer' (string) op.Hal. Device. WakeOnLan. method_ argnames = {'', '', 'enable'} (string list) op.Hal. Device. WakeOnLan. method_ execpaths = {'hal-system- wol-supported' , 'hal-system- wol-enabled' , 'hal-system- wol-enable' } (string list) op.Hal. Device. WakeOnLan. method_ names = {'GetSupported', 'GetEnabled', 'SetEnabled'} (string list) op.Hal. Device. WakeOnLan. method_ signatures = {'', '', 'b'} (string list)
info.capabilities = {'net', 'net.80203', 'wake_on_lan'} (string list)
info.category = 'net.80203' (string)
info.interfaces = {'org.freedeskt
info.parent = '/org/freedeskt
info.product = 'Networking Interface' (string)
info.subsystem = 'net' (string)
info.udi = '/org/freedeskt
linux.
linux.subsystem = 'net' (string)
linux.sysfs_path = '/sys/devices/
net.80203.
net.address = 'c2:af:1e:10:ca:56' (string)
net.arp_
net.interface = 'tap0' (string)
net.linux.ifindex = 7 (0x7) (int)
net.originati
org.freedeskt
org.freedeskt
org.freedeskt
org.freedeskt
udi = '/org/freedeskt op/Hal/ devices/ net_00_ 15_58_81_ 5a_8c' op.Hal. Device. WakeOnLan' } (string list) op/Hal/ devices/ pci_8086_ 109a' (string) op/Hal/ devices/ net_00_ 15_58_81_ 5a_8c' (string) hotplug_ type = 2 (0x2) (int) pci0000: 00/0000: 00:1c.0/ 0000:02: 00.0/net/ eth0' (string) mac_address = 91679185548 (0x1558815a8c) (uint64) proto_hw_ id = 1 (0x1) (int) ng_device = '/org/freedeskt op/Hal/ devices/ pci_8086_ 109a' (string) op.Hal. Device. WakeOnLan. method_ argnames = {'', '', 'enable'} (string list) op.Hal. Device. WakeOnLan. method_ execpaths = {'hal-system- wol-supported' , 'hal-system- wol-enabled' , 'hal-system- wol-enable' } (string list) op.Hal. Device. WakeOnLan. method_ names = {'GetSupported', 'GetEnabled', 'SetEnabled'} (string list) op.Hal. Device. WakeOnLan. method_ signatures = {'', '', 'b'} (string list)
info.capabilities = {'net', 'net.80203', 'wake_on_lan'} (string list)
info.category = 'net.80203' (string)
info.interfaces = {'org.freedeskt
info.parent = '/org/freedeskt
info.product = 'Networking Interface' (string)
info.subsystem = 'net' (string)
info.udi = '/org/freedeskt
linux.
linux.subsystem = 'net' (string)
linux.sysfs_path = '/sys/devices/
net.80203.
net.address = '00:15:58:81:5a:8c' (string)
net.arp_
net.interface = 'eth0' (string)
net.linux.ifindex = 2 (0x2) (int)
net.originati
org.freedeskt
org.freedeskt
org.freedeskt
org.freedeskt