<div dir="ltr">Hello all,<div><br></div><div>I am trying to add USB-Ethernet driver for Raspberry Pi. I added required files to libbsd.py and tried to compile. </div><div><br></div><div>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.</div><div><br></div><div><br></div><div><div>../../freebsd/sys/dev/usb/net/usb_ethernet.c: In function 'uether_rxmbuf':</div><div>../../freebsd/sys/dev/usb/net/usb_ethernet.c:585:22: error: 'IFCOUNTER_IPACKETS' undeclared (first use in this function)</div><div>  if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);</div><div>                      ^~~~~~~~~~~~~~~~~~</div><div>../../freebsd/sys/dev/usb/net/usb_ethernet.c:585:22: note: each undeclared identifier is reported only once for each function it appears in</div><div>../../freebsd/sys/dev/usb/net/usb_ethernet.c: In function 'uether_rxbuf':</div><div>../../freebsd/sys/dev/usb/net/usb_ethernet.c:608:23: error: 'IFCOUNTER_IQDROPS' undeclared (first use in this function)</div><div>   if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1);</div><div>                       ^~~~~~~~~~~~~~~~~</div><div>../../freebsd/sys/dev/usb/net/usb_ethernet.c:615:22: error: 'IFCOUNTER_IPACKETS' undeclared (first use in this function)</div><div>  if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);</div><div>                      ^~~~~~~~~~~~~~~~~~</div></div><div><br></div><div>Regards,</div><div>Deval Shah</div></div>