This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

USB Eth IOCTL SNMP stats fix


Hi Folks

A trivial fix for a problem with the USB Eth IOCTL SNMP statistics
retrieval function. It always returned EINVAL even though it had
actually done the requested work.

         Andrew

Index: io/usb/eth/slave/current//ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/usb/eth/slave/current/ChangeLog,v
retrieving revision 1.13
diff -u -r1.13 ChangeLog
--- io/usb/eth/slave/current//ChangeLog 1 May 2003 23:02:03 -0000       1.13
+++ io/usb/eth/slave/current//ChangeLog 27 Jun 2003 09:52:40 -0000
@@ -1,3 +1,9 @@
+2003-06-27  Manu Sharma  <manu.sharma@ascom.ch>
+
+       * src/usbsethdrv.c (usbs_ethdrv_ioctl): Return 0 when we handle
+       ETH_DRV_GET_IF_STATS* otherwise the caller thinks we don't support
+       these ioctl calls.
+
 2003-03-23  Iztok Zupet <iz@vsr.si>
 
        * doc/usbseth.sgml: Remove .eps and .gif and introduce .png for
Index: io/usb/eth/slave/current//src/usbsethdrv.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/usb/eth/slave/current/src/usbsethdrv.c,v
retrieving revision 1.4
diff -u -r1.4 usbsethdrv.c
--- io/usb/eth/slave/current//src/usbsethdrv.c  23 May 2002 23:06:33 -0000     1.4
+++ io/usb/eth/slave/current//src/usbsethdrv.c  27 Jun 2003 09:52:40 -0000
@@ -573,6 +573,7 @@
             p->rx_count             = eth->rx_count;
             p->tx_count             = eth->tx_count;
             p->tx_queue_len         = 1;
+            result=0;
         }
         break;
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]