Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

functions.h File Reference

#include <wlan/p80211types.h>
#include <wlan/p80211msg.h>
#include <wlan/p80211meta.h>
#include <wlan/p80211metamsg.h>
#include <wlan/p80211metastruct.h>
#include <wlan/p80211mgmt.h>

Include dependency graph for functions.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CHANNEL_MIN   1
#define CHANNEL_MAX   14
#define HOP_MIN   1
#define HOP_MAX   13
#define IFACE_WLAN_MIN   0
#define IFACE_WLAN_MAX   4

Functions

int processPacket (unsigned char *packet, int len)
void ParseCommandLine (int argc, char **argv, ConfigStruct *config)
void ChannelToStr (char *strChannel, UINT8 Channel, UINT8 SChannel)
char * safe_strncpy (char *dst, const char *src, int size)
int safe_snprintf (char *s, int size, char *fmt,...)
void * memcpy_buff (void *dest, const void *src, size_t n)


Define Documentation

#define CHANNEL_MIN   1
 

Definition at line 38 of file functions.h.

Referenced by ParseCommandLine().

#define CHANNEL_MAX   14
 

Definition at line 39 of file functions.h.

Referenced by parse_keystring(), and ParseCommandLine().

#define HOP_MIN   1
 

Definition at line 41 of file functions.h.

Referenced by parse_keystring(), and ParseCommandLine().

#define HOP_MAX   13
 

Definition at line 42 of file functions.h.

Referenced by parse_keystring(), and ParseCommandLine().

#define IFACE_WLAN_MIN   0
 

Definition at line 44 of file functions.h.

#define IFACE_WLAN_MAX   4
 

Definition at line 45 of file functions.h.


Function Documentation

int processPacket unsigned char *  packet,
int  len
 

Definition at line 206 of file functions.c.

References analyseACK(), analyseBeacon(), analyseCTS(), analyseData(), analyseMGMT(), analyseProbeRep(), analyseProbeReq(), analysePSPOLL(), analyseRTS(), Statistics_t::Beacon, debug, ScanResult_t::Noise, ScanResult_t::Rate, Res, SET_TYPE_BIT_DATA, ScanResult_t::Signal, Stats, ScanResult_t::TypeOfClient, ScanResult_t::TypeOfPacket, TypeOfPacketToString(), ScanResult_t::TypeSubtype, UINT32, WLAN_FSTYPE_ACK, WLAN_FSTYPE_ASSOCREQ, WLAN_FSTYPE_ASSOCRESP, WLAN_FSTYPE_ATIM, WLAN_FSTYPE_AUTHEN, WLAN_FSTYPE_BEACON, WLAN_FSTYPE_CFACK, WLAN_FSTYPE_CFACK_CFPOLL, WLAN_FSTYPE_CFEND, WLAN_FSTYPE_CFENDCFACK, WLAN_FSTYPE_CFPOLL, WLAN_FSTYPE_CTS, WLAN_FSTYPE_DATA_CFACK, WLAN_FSTYPE_DATA_CFACK_CFPOLL, WLAN_FSTYPE_DATA_CFPOLL, WLAN_FSTYPE_DATAONLY, WLAN_FSTYPE_DEAUTHEN, WLAN_FSTYPE_DISASSOC, WLAN_FSTYPE_NULL, WLAN_FSTYPE_PROBEREQ, WLAN_FSTYPE_PROBERESP, WLAN_FSTYPE_PSPOLL, WLAN_FSTYPE_REASSOCREQ, WLAN_FSTYPE_REASSOCRESP, WLAN_FSTYPE_RTS, WLAN_FTYPE_CTL, WLAN_FTYPE_DATA, WLAN_FTYPE_MGMT, WLAN_GET_FC_FSTYPE, WLAN_GET_FC_FTYPE, wlan_header, and WLAN_SIZEOF_TYPEOFPACKET.

Referenced by main().

void ParseCommandLine int  argc,
char **  argv,
ConfigStruct config
 

Definition at line 1007 of file functions.c.

References ATHEROS_CARD, Bye(), CHANNEL_MAX, CHANNEL_MIN, ConfigStruct::ChannelHop, ConfigStruct::CheckScreenSize, CISCO_CARD, CISCO_CVS_CARD, config, ConfigStruct::DateFormat, debug, ConfigStruct::DebugLevel, ConfigStruct::devname, ConfigStruct::devname2, DEVNAME_LEN, ConfigStruct::DoNotDisplay, FALSE, HelpAndBye(), HOP_MAX, HOP_MIN, HOSTAP_CARD, ConfigStruct::IDS_is_ON, LUCENT_CARD, MAX_DEBUG_LEVEL, ConfigStruct::MaxPacket, ConfigStruct::OutDotFileName, ConfigStruct::OutDumpFileName, ConfigStruct::OutFileName, PRISM54G_CARD, ConfigStruct::SendAlert2Syslog, SET_BIT, ConfigStruct::SingleChannel, ConfigStruct::TimeToSleepBeforeChangeChannel, TRUE, ConfigStruct::TypeOfCard, and WLAN_NG_CARD.

Referenced by main().

void ChannelToStr char *  strChannel,
UINT8  Channel,
UINT8  SChannel
 

Channel to string

Definition at line 1351 of file functions.c.

References debug.

Referenced by main().

char* safe_strncpy char *  dst,
const char *  src,
int  size
 

Definition at line 79 of file functions.c.

int safe_snprintf char *  s,
int  size,
char *  fmt,
  ...
 

Definition at line 85 of file functions.c.

void* memcpy_buff void *  dest,
const void *  src,
size_t  n
 

Definition at line 101 of file functions.c.

References debug, and MAX_BUFFER_SIZE.

Referenced by getPacketATHEROS(), getPacketCISCO(), getPacketHERMES(), getPacketHOSTAP(), getPacketPRISM54g(), and getPacketWLAN().


Generated on Fri Feb 25 12:02:48 2005 for WifiScanner by  doxygen 1.4.1