Re: *Negative* TX bytecount?

From: Jouni Malinen (
Date: 2002-04-13 12:48:11 UTC

On Fri, Apr 12, 2002 at 02:05:05PM -0500, Brian Capouch wrote:

> Just wondering if anyone could explain the following value I found in
> the record maintained by the HostAP driver for one of my NICS:

> rx_bytes=206928116
> tx_bytes=-1350147424

I used signed integers in the format string, but the variables are unsigned. Values starting from 2^31 were shown negative. This is now fixed, but the numbers with still wrap around at 2^32 (about 4 GB), assuming you have 32-bit CPU.

> While I'm on the line, I have a couple of questions that came up in a
> conversation that I am embarrassed to admit I couldn't answer: What are
> the meanings of the common 802.11b driver acronyms "RID" and "BAP"?

RIDs (Resource IDentifiers) are configuration or informational data elements that are used to configure the card. BAP (Buffer Access Path) is a set of registers that the host computer can use to access buffer memory (e.g., RIDs and TX/RX packets).

Jouni Malinen                                            PGP id EFC895FA

This archive was generated by hypermail 2.1.4.