[PATCH] fix SNMP STATS indexes (#define)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The indexes in these (unused) #defines appear to be backwards.

Please apply (to 2.5.64).

Thanks,
--
~Randy


patch_name:	snmp-index.patch
patch_version:	2003-03-09.20:04:32
author:		Randy.Dunlap <rddunlap@osdl.org>
description:	correct SNMP stats indexes in #defines
product:	Linux
product_versions: linux-2564
changelog:	_
URL:		_
requires:	_
conflicts:	_
diffstat:	=
 include/net/snmp.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Naur ./include/net/snmp.h%SNMPIX ./include/net/snmp.h
--- ./include/net/snmp.h%SNMPIX	Tue Mar  4 19:29:16 2003
+++ ./include/net/snmp.h	Sun Mar  9 20:03:39 2003
@@ -299,8 +299,8 @@
 #define DECLARE_SNMP_STAT(type, name)	\
 	extern __typeof__(type) *name[2]
 
-#define SNMP_STAT_USRPTR(name)	(name[0])
-#define SNMP_STAT_BHPTR(name)	(name[1])
+#define SNMP_STAT_BHPTR(name)	(name[0])
+#define SNMP_STAT_USRPTR(name)	(name[1])
 
 #define SNMP_INC_STATS_BH(mib, field) 	\
 	(per_cpu_ptr(mib[0], smp_processor_id())->field++)

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux