[PATCH v2 0/2] add session transfer stats to stations' deauth messages and to the SIGUSR1-dump

Jan Vales jan
Wed Jan 2 05:57:04 PST 2013


I like stats and didnt felt like setting up a RADIUS server, so i tried to
enhance allready existing functionality to display already available
information.
Therefore I added transfer stats to hostapd's SIGUSR1-dump and to the message
that gets logged when a station deauthenticates, as hostapd stores this
information internally anyway, but currently only reports them to accounting
RADIUS servers.

I am aware that the counters wrap around, but i didnt want to dig thru the
RADIUS code to make wraparound counters similar to the existing ones, or
adapting the RADIUS code to not allways return if no accounting server was
configured and reuse that code.
It is imho a known problem that on 32bit systems and busy networks those
counters wrap and there is not much we can do about that. The munin folks seem
to have done some calculations.

Well this is my first patch-contribution to an open source project ever, so I
dont know what to write here - feel free to criticize ;)

v2:
  * fixed linewidth. (tabwidth=4)

Jan Vales (2):
  Included session transfer stats (rx/tx packets/bytes) and duration
    into the     station's "deauthentiation"-log message.
  Included session transfer stats (rx/tx packets/bytes) into each
    station's     SIGUSR1-dump.

 hostapd/dump_state.c |  7 +++++++
 src/ap/ieee802_11.c  | 19 +++++++++++++++++--
 2 files changed, 24 insertions(+), 2 deletions(-)

-- 
1.8.0.2




More information about the Hostap mailing list