rendered paste bodyIndex: agent/mibgroup/if-mib/data_access/interface_linux.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/agent/mibgroup/if-mib/data_access/interface_linux.c,v
retrieving revision 1.33
diff -u -p -r1.33 interface_linux.c
--- agent/mibgroup/if-mib/data_access/interface_linux.c 27 Jul 2006 10:08:18 -0000 1.33
+++ agent/mibgroup/if-mib/data_access/interface_linux.c 6 Sep 2006 17:09:00 -0000
@@ -383,11 +455,13 @@ _parse_stats(netsnmp_interface_entry *en
/*
* calculated stats.
- *
- * we have imcast, but not ibcast.
- */
+ *
+ * we have imcast, but not ibcast.
+ */
entry->stats.inucast = entry->stats.imcast.low +
entry->stats.ibcast.low;
+ entry->stats.onucast = entry->stats.omcast.low +
+ entry->stats.obcast.low;
return 0;
}
Index: agent/mibgroup/if-mib/ifTable/ifTable.h
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/agent/mibgroup/if-mib/ifTable/ifTable.h,v
retrieving revision 1.25
diff -u -p -r1.25 ifTable.h
--- agent/mibgroup/if-mib/ifTable/ifTable.h 27 Jan 2006 19:42:32 -0000 1.25
+++ agent/mibgroup/if-mib/ifTable/ifTable.h 6 Sep 2006 17:09:57 -0000
@@ -139,7 +139,7 @@ config_exclude(mibII/interfaces)
/*
* ifInNUcastPkts(12)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h
*/
- u_long ifInNUcastPkts;
+#define ifInNUcastPkts ifentry->stats.inucast
/*
* ifInDiscards(13)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h
@@ -206,22 +206,22 @@ config_exclude(mibII/interfaces)
/*
* ifInMulticastPkts(2)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h
*/
- u_long ifInMulticastPkts;
+#define ifInMulticastPkts ifentry->stats.imcast.low
/*
* ifInBroadcastPkts(3)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h
*/
- u_long ifInBroadcastPkts;
+#define ifInBroadcastPkts ifentry->stats.ibcast.low
/*
* ifOutMulticastPkts(4)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h
*/
- u_long ifOutMulticastPkts;
+#define ifOutMulticastPkts ifentry->stats.omcast.low
/*
* ifOutBroadcastPkts(5)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h
*/
- u_long ifOutBroadcastPkts;
+#define ifOutBroadcastPkts ifentry->stats.obcast.low
/*
* ifHCInOctets(6)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h
@@ -271,7 +271,7 @@ config_exclude(mibII/interfaces)
/*
* ifHighSpeed(15)/GAUGE/ASN_GAUGE/u_long(u_long)//l/A/w/e/r/d/h
*/
- u_long ifHighSpeed;
+#define ifHighSpeed ifentry->speed_high
/*
* ifPromiscuousMode(16)/TruthValue/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h