genode/repos/dde_linux/src/drivers/usb_net
Oleg Girko 4007cee852 Fix MAC address printing in dde_linux USB net drivers.
Passing array of unsigned chars to Genode::log() function
makes it converted to void pointer, resulting in printing its address.

Wrapping this array into Genode::Cstring solves this problem
and makes it being printed properly as zero-terminaled string.

Signed-off-by: Oleg Girko <ol@infoserver.lv>

Fixes #3530
2019-11-19 14:42:23 +01:00
..
README dde_linux: USB client driver for NIC version 4.16 2018-08-30 09:24:46 +02:00
component.cc os: explicit cache policy in Nic::Session_component 2019-05-06 16:15:26 +02:00
component.h dde_linux: USB client driver for NIC version 4.16 2018-08-30 09:24:46 +02:00
driver.h dde_linux: USB client driver for NIC version 4.16 2018-08-30 09:24:46 +02:00
dummies.c dde_linux: USB client driver for NIC version 4.16 2018-08-30 09:24:46 +02:00
lx_emul.cc Fix MAC address printing in dde_linux USB net drivers. 2019-11-19 14:42:23 +01:00
lx_emul.h dde_linux: use correct type in lx_emul's `min` 2018-09-13 14:54:20 +02:00
lxc.c dde_linux: USB client driver for NIC version 4.16 2018-08-30 09:24:46 +02:00
lxc.h dde_linux: USB client driver for NIC version 4.16 2018-08-30 09:24:46 +02:00
main.cc dde_linux: USB client driver for NIC version 4.16 2018-08-30 09:24:46 +02:00
target.mk dde_linux: USB client driver for NIC version 4.16 2018-08-30 09:24:46 +02:00

README

USB NIC driver
##############

Driver for network interface cards connected via USB.

Configuration snippet:

!<start name="usb_net_drv">
!  <resource name="RAM" quantum="10M"/>
!  <provides> <service name="Nic"/> </provides>
!  <config mac="2e:60:90:0c:4e:01" />
!</start>

There is the 'mac' attribute where one can specify the hardware address of
the network interface. This is necessary in case the EEPROM of the network card
cannot be accessed via the host controller making it impossible to retrieve the
devices hardware address. If this is the case and no 'mac' attribute is given a
fallback address will be assigned to the network device. Note that the fallback
address will always be the same.