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
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel