lkml.org 
[lkml]   [1999]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectsmall patch for ni65.c
please add this small patch to 2.2.x/2.3.x which adds byte counts 
in /proc/net/dev. xosview won't show any network traffic without this patch.

additionally, I've updated Michael's email address which was out of date
and no longer valid.


-------------------------------------------------------------------------------
--- linux/drivers/net/ni65.c.229 Tue Jun 8 16:07:56 1999
+++ linux/drivers/net/ni65.c Tue Jun 8 16:19:12 1999
@@ -16,7 +16,7 @@
*
* comments/bugs/suggestions can be sent to:
* Michael Hipp
- * email: Michael.Hipp@student.uni-tuebingen.de
+ * email: hippm@informatik.uni-tuebingen.de
*
* sources:
* some things are from the 'ni6510-packet-driver for dos by Russ Nelson'
@@ -45,6 +45,7 @@
*/

/*
+ * 99.Jun.8: added support for /proc/net/dev byte count for xosview (HK)
* 96.Sept.29: virt_to_bus stuff added for new memory modell
* 96.April.29: Added Harald Koenig's Patches (MH)
* 96.April.13: enhanced error handling .. more tests (MH)
@@ -966,8 +967,10 @@
p->stats.tx_errors++;
tmdp->status2 = 0;
}
- else
+ else {
+ p->stats.tx_bytes -= (short)(tmdp->blen);
p->stats.tx_packets++;
+ }

#ifdef XMT_VIA_SKB
if(p->tmd_skb[p->tmdlast]) {
@@ -1054,6 +1057,7 @@
eth_copy_and_sum(skb, (unsigned char *) p->recvbounce[p->rmdnum],len,0);
#endif
p->stats.rx_packets++;
+ p->stats.rx_bytes += len;
skb->protocol=eth_type_trans(skb,dev);
netif_rx(skb);
}
--- linux/CREDITS~ Wed May 12 11:48:55 1999
+++ linux/CREDITS Tue Jun 8 16:19:56 1999
@@ -801,7 +801,7 @@
S: Germany

N: Michael Hipp
-E: mhipp@student.uni-tuebingen.de
+E: hippm@informatik.uni-tuebingen.de
D: drivers for the racal ni5210 & ni6510 Ethernet-boards
S: Talstr. 1
S: D - 72072 Tuebingen
--- linux/drivers/net/ni52.c~ Thu Oct 8 00:51:45 1998
+++ linux/drivers/net/ni52.c Tue Jun 8 16:22:40 1999
@@ -5,7 +5,7 @@
* same Gnu Public License that covers that work.
*
* Alphacode 0.82 (96/09/29) for Linux 2.0.0 (or later)
- * Copyrights (c) 1994,1995,1996 by M.Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ * Copyrights (c) 1994,1995,1996 by M.Hipp (hippm@informatik.uni-tuebingen.de)
* [feel free to mail ....]
*
* when using as module: (no autoprobing!)
--- linux/drivers/net/ni52.h~ Fri Apr 12 08:49:38 1996
+++ linux/drivers/net/ni52.h Tue Jun 8 16:22:23 1999
@@ -4,7 +4,7 @@
* This is an extension to the Linux operating system, and is covered by the
* same Gnu Public License that covers that work.
*
- * copyrights (c) 1994 by Michael Hipp (mhipp@student.uni-tuebingen.de)
+ * copyrights (c) 1994 by Michael Hipp (hippm@informatik.uni-tuebingen.de)
*
* I have done a look in the following sources:
* crynwr-packet-driver by Russ Nelson
-------------------------------------------------------------------------------

thanks,

Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:2.518 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site