Error while adding usb ethernet driver

Deval Shah deval.maker at gmail.com
Mon Jun 27 12:29:07 UTC 2016


Hello all,

I am trying to add USB-Ethernet driver for Raspberry Pi. I added required
files to libbsd.py and tried to compile.

I am getting the following error which is very strange because the symbols
in this error are already defined in net/if_var.h and the file is included
in usb_ethernet.c.


../../freebsd/sys/dev/usb/net/usb_ethernet.c: In function 'uether_rxmbuf':
../../freebsd/sys/dev/usb/net/usb_ethernet.c:585:22: error:
'IFCOUNTER_IPACKETS' undeclared (first use in this function)
  if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
                      ^~~~~~~~~~~~~~~~~~
../../freebsd/sys/dev/usb/net/usb_ethernet.c:585:22: note: each undeclared
identifier is reported only once for each function it appears in
../../freebsd/sys/dev/usb/net/usb_ethernet.c: In function 'uether_rxbuf':
../../freebsd/sys/dev/usb/net/usb_ethernet.c:608:23: error:
'IFCOUNTER_IQDROPS' undeclared (first use in this function)
   if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1);
                       ^~~~~~~~~~~~~~~~~
../../freebsd/sys/dev/usb/net/usb_ethernet.c:615:22: error:
'IFCOUNTER_IPACKETS' undeclared (first use in this function)
  if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
                      ^~~~~~~~~~~~~~~~~~

Regards,
Deval Shah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160627/6e9596ff/attachment.html>


More information about the devel mailing list