On Fri, Feb 04, 2005 at 10:07:56PM -0800, Randy.Dunlap wrote:
> 6. +struct ieee80211_ccmp_data {
>
> + u32 dot11RSNAStatsCCMPFormatErrors;
> + u32 dot11RSNAStatsCCMPReplays;
> + u32 dot11RSNAStatsCCMPDecryptErrors;
>
> Are these MIB-mandated names? otherwise the studlyCaps should go.
Well, I don't know whether it would be fair to say these are mandated as
variable names here, but yes, these are indeed the exact names used in
IEEE 802.11i MIB definition which is the reason for the variable names
here.
> 8. What calls the .print_stats functions?
> static char * ieee80211_ccmp_print_stats()
>
> Is it possible to use seq_file there instead of sprintf(),
> or is this in /sysfs (so seq_file is not possible)?
I used these for getting key information into procfs files. Conversion
to seq_file should be possible for procfs. This is of course assuming
that someone else has not used these for something else than procfs.
> Are there any overflow possibilities?
Should not be, these are used to create a procfs file of less than 500
bytes and the available buffer is at least a page. I did not yet look
how these are used in this patch or ipw2100/ipw2200 drivers, so this is
based on how I implemented this with Host AP driver.
--
Jouni Malinen PGP id EFC895FA
|