Fix RFC 1650 stats... should have read the doco more carefully.

Fixes PR#2011

Submitted by:  seki@sysrap.cs.fujitsu.co.jp
This commit is contained in:
wollman 1996-11-15 16:07:03 +00:00
parent 15f030a1b8
commit 6709c86ede
2 changed files with 2 additions and 8 deletions

View File

@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ed.c,v 1.106 1996/10/11 15:19:23 wollman Exp $
* $Id: if_ed.c,v 1.107 1996/10/17 13:42:13 nate Exp $
*/
/*
@ -2410,7 +2410,6 @@ edintr_sc(sc)
* TSR_ABT is set.
*/
collisions = 16;
sc->mibdata.dot3StatsMultipleCollisionFrames++;
sc->mibdata.dot3StatsExcessiveCollisions++;
sc->mibdata.dot3StatsCollFrequencies[15]++;
}
@ -2458,12 +2457,10 @@ edintr_sc(sc)
break;
case 1:
sc->mibdata.dot3StatsSingleCollisionFrames++;
sc->mibdata.dot3StatsDeferredTransmissions++;
sc->mibdata.dot3StatsCollFrequencies[0]++;
break;
default:
sc->mibdata.dot3StatsMultipleCollisionFrames++;
sc->mibdata.dot3StatsDeferredTransmissions++;
sc->mibdata.
dot3StatsCollFrequencies[collisions-1]
++;

View File

@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: if_ed.c,v 1.106 1996/10/11 15:19:23 wollman Exp $
* $Id: if_ed.c,v 1.107 1996/10/17 13:42:13 nate Exp $
*/
/*
@ -2410,7 +2410,6 @@ edintr_sc(sc)
* TSR_ABT is set.
*/
collisions = 16;
sc->mibdata.dot3StatsMultipleCollisionFrames++;
sc->mibdata.dot3StatsExcessiveCollisions++;
sc->mibdata.dot3StatsCollFrequencies[15]++;
}
@ -2458,12 +2457,10 @@ edintr_sc(sc)
break;
case 1:
sc->mibdata.dot3StatsSingleCollisionFrames++;
sc->mibdata.dot3StatsDeferredTransmissions++;
sc->mibdata.dot3StatsCollFrequencies[0]++;
break;
default:
sc->mibdata.dot3StatsMultipleCollisionFrames++;
sc->mibdata.dot3StatsDeferredTransmissions++;
sc->mibdata.
dot3StatsCollFrequencies[collisions-1]
++;