Logo Search packages:      
Sourcecode: uapevent version File versions  Download package

Defines | Functions | Variables

uapevent.c File Reference

Program to receive events from the driver/firmware of the uAP driver. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <time.h>
#include <sys/time.h>
#include <getopt.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#include "uapevent.h"
Include dependency graph for uapevent.c:

Go to the source code of this file.

Defines

#define DEBUG   0

Functions

static void hexdump (void *p, s32 len, s8 delim)
 Dump hex data.
int main (int argc, char *argv[])
 The main function.
void print_eapol_state (u8 state)
 Prints EAPOL state.
void print_event (EVENTHEADER *event, u16 size)
 Parse and print received event information.
void print_event_bss_start (u8 *buffer, u16 size)
 Parse and print BSS start event data.
void print_event_debug (u8 *buffer, u16 size)
 Parse and print debug event data.
void print_event_sta_assoc (u8 *buffer, u16 size)
 Parse and print STA associate event data.
void print_event_sta_deauth (u8 *buffer, u16 size)
 Parse and print STA deauthentication event data.
void print_mac (u8 *raw)
 Prints a MAC address in colon separated form from raw data.
void print_mgmt_frame (MrvlIETypes_MgmtFrameSet_t *mgmt_tlv, int tlv_len)
 Prints mgmt frame.
void print_reject_reason (u16 reason)
 Prints station reject reason.
void print_reject_state (u8 state)
 Prints station reject state.
void print_usage (void)
 Print usage information.
int read_event (int sk_fd, unsigned char *buffer, int timeout, struct nlmsghdr *nlh, struct msghdr *msg)
 Configure and read event data from netlink socket.
int read_event_netlink_socket (int sk_fd, unsigned char *buffer, struct nlmsghdr *nlh, struct msghdr *msg)
 Read event data from netlink socket.
void sig_handler (int sig)
 Signal handler.

Variables

static struct option long_opts []
int terminate_flag = 0

Detailed Description

Program to receive events from the driver/firmware of the uAP driver.

Copyright (C) 2008-2009, Marvell International Ltd.

This software file (the "File") is distributed by Marvell International Ltd. under the terms of the GNU General Public License Version 2, June 1991 (the "License"). You may use, redistribute and/or modify this File in accordance with the terms and conditions of the License, a copy of which is available along with the File in the gpl.txt file or by writing to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or on the worldwide web at http://www.gnu.org/licenses/gpl.txt.

THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. The License provides additional details about this warranty disclaimer.

Definition in file uapevent.c.


Generated by  Doxygen 1.6.0   Back to index