I didn't quite understand the #define part.Dougal wrote:I've tried looking a little at how we could identify interfaces that don'tBéèm wrote:For me, personally, there is no hurry. I can get the thing working.
But for newcomers it's not that obvious.
So yes there is work to do and if I can help testing, just say so.
identify as ethernet.
Doesgive you 24?Code: Select all
cat /sys/class/net/eth2/type
The file include/linux/if_arp.h contains a list of "ARP protocol HARDWARE
identifiers".
In the interfaces that identify as ethernet, the "type" file contains 1,
which seems to matchand the wmaster0 has 801 as the type, which seems to matchCode: Select all
#define ARPHRD_ETHER 1 /* Ethernet 10Mbps */
so I assume your case should be 24:Code: Select all
#define ARPHRD_IEEE80211 801 /* IEEE 802.11 */
I don't have the code for ifconfig here to look through, so I don't knowCode: Select all
#define ARPHRD_IEEE1394 24 /* IEEE 1394 IPv4 - RFC 2734 */
why it is listed as unspecified...
I could add a check for unspecified interfaces and, if they're named eth[0-9],
add them to the list of interfaces, but I'll need you to check a few things,
to make sure the wizard can find info about them. I'll need the results
of the following commands:What I'm not sure of is if we should just treat them as normal ethernetCode: Select all
readlink /sys/class/net/eth2/device readlink /sys/class/net/eth2/device/driver ls /sys/class/net/eth2/device
interfaces: doesn't a NIC have some mechanical parts in it that can't be
just emulated in a driver? What I mean is, can it do everything a "normal"
interface can do?
I suppose there is nothing to do for me.
Also it isn't ehci1394 but ohci1394
And yes FireWire being more general then ethernet (can be usd for other FireWire devices like cameras, CD/HDD drives, video devices, it might more tricky.
Here is the output you asked for:
Code: Select all
# cat /sys/class/net/eth2/type
24
#
# readlink /sys/class/net/eth2/device
../../../fw-host0
#
# readlink /sys/class/net/eth2/device/driver
../../../../../bus/ieee1394/drivers/nodemgr
#
# ls /sys/class/net/eth2/device
00061b00200b01ec host_id irm_id is_irm node_count selfid_count
0010dc00010c009d ieee1394_host is_busmgr is_root nodes_active subsystem
driver in_bus_reset is_cycmst net power uevent
#
# lsmod | grep 1394
eth1394 19460 0
ohci1394 33456 0
ieee1394 92216 2 eth1394,ohci1394
#
# modprobe ehci1394
FATAL: Module ehci1394 not found.
#