how to write to and read from the ethernet card directly?
Posted on 1997-07-11
I am doing a series of experiments about network lantency under
Linux. I try to write to and read from the ethernet card
However, because ethernet device is dynamically detected by
Linux, that means there is no device named ether0 under /dev.
(like /dev/ether0 in HP-UX ), I can't use open("/dev/ether0",..)
to create a file handler like what I did under HP-UX.
My problem is that how to access to such a device (eth0)
Is there anyone who knows how to do? Thanks.
Shih-wei Li email@example.com
System : Redhat 4.0, kernel 2.0.30
Ethernet Card: 3Com 3c905 Boomerang 100bassTx
--- message when booting -----
eth0: 3Com 3c905 Boomerang 100baseTx at 0xef00,
00:60:97:d4:09:25, IRQ 10
8K word-wide RAM 3:5 Rx:Tx split, autoselect/MII interface.
Rx Pacing bug exists, disabling bus-master receives.