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

driver.c File Reference

#include <include.h>
#include <src/interface.h>
#include <src/crt_io.h>
#include <src/driver.h>
#include <src/wlan-ng.h>
#include <src/cisco.h>
#include <src/atheros.h>
#include <src/prism54g.h>
#include <src/hostap.h>
#include <src/hermes.h>

Include dependency graph for driver.c:

Go to the source code of this file.

Defines

#define NOT_YET_ANALIZED()   perror("Type of packet is not yet analysed"); exit(EXIT_FAILURE)

Functions

int NextChannel (char *devname, unsigned int NumberOfHop)
void PrintScaleChannel (int channel)
int selectChannel (char *devname, int channel)
int shutCard (char *devname)
int openCard (char *devname)
int openPacket (char *devname)
void closePacket (void)
int getPacket (unsigned char *buf, int maxlen, unsigned int timeout)
 unsigned int timeout is for now unused

Variables

unsigned int DebugLevel
WINDOW * Sum_WND
WINDOW * RealTime_WND
ScanResult_t Res
ConfigStruct config
pthread_mutex_t screen_mutex
 MUTEX for lock screen, so only one func write to it at the same time.
p80211_caphdr_t wlan_header
const UINT8 Posit [15] = { 0, 1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14 }
const char * Indic [15]


Define Documentation

 
#define NOT_YET_ANALIZED  )     perror("Type of packet is not yet analysed"); exit(EXIT_FAILURE)
 

Definition at line 39 of file driver.c.

Referenced by closePacket(), getPacket(), openCard(), openPacket(), and shutCard().


Function Documentation

int NextChannel char *  devname,
unsigned int  NumberOfHop
 

Definition at line 58 of file driver.c.

References selectChannel().

Referenced by ChangeChannel_th(), and main().

void PrintScaleChannel int  channel  ) 
 

Definition at line 102 of file driver.c.

References Indic, Posit, screen_mutex, and Sum_WND.

Referenced by selectChannel(), and selectChannelWLAN().

int selectChannel char *  devname,
int  channel
 

Definition at line 122 of file driver.c.

References ATHEROS_CARD, CISCO_CARD, CISCO_CVS_CARD, config, DEBUG_POINT, HOSTAP_CARD, LUCENT_CARD, PCAP_VIRTUAL_CARD, PrintScaleChannel(), PRISM54G_CARD, Res, ScanResult_t::SChannel, selectChannelATHEROS(), selectChannelHERMES(), selectChannelHOSTAP(), selectChannelPRISM54g(), selectChannelWLAN(), ConfigStruct::TypeOfCard, WLAN_NG_CARD, and WLAN_NG_CARD_AVS_CFF2.

Referenced by main(), NextChannel(), and parse_keystring().

int shutCard char *  devname  ) 
 

Definition at line 167 of file driver.c.

References ATHEROS_CARD, CISCO_CARD, CISCO_CVS_CARD, config, FALSE, HOSTAP_CARD, LUCENT_CARD, NOT_YET_ANALIZED, PCAP_VIRTUAL_CARD, PRISM54G_CARD, shutCardATHEROS(), shutCardCISCO(), shutCardHERMES(), shutCardHOSTAP(), shutCardPRISM54g(), shutCardWLAN(), ConfigStruct::TypeOfCard, WLAN_NG_CARD, and WLAN_NG_CARD_AVS_CFF2.

Referenced by main().

int openCard char *  devname  ) 
 

Definition at line 203 of file driver.c.

References ATHEROS_CARD, CISCO_CARD, CISCO_CVS_CARD, config, FALSE, HOSTAP_CARD, LUCENT_CARD, NOT_YET_ANALIZED, openCardATHEROS(), openCardCISCO(), openCardHERMES(), openCardHOSTAP(), openCardPRISM54g(), openCardWLAN(), PCAP_VIRTUAL_CARD, PRISM54G_CARD, ConfigStruct::TypeOfCard, WLAN_NG_CARD, and WLAN_NG_CARD_AVS_CFF2.

Referenced by main().

int openPacket char *  devname  ) 
 

Definition at line 243 of file driver.c.

References ATHEROS_CARD, CISCO_CARD, CISCO_CVS_CARD, config, HOSTAP_CARD, LUCENT_CARD, NOT_YET_ANALIZED, openPacketATHEROS(), openPacketCISCO(), openPacketHERMES(), openPacketHOSTAP(), openPacketPRISM54g(), openPacketWLAN(), PCAP_VIRTUAL_CARD, PRISM54G_CARD, ConfigStruct::TypeOfCard, WLAN_NG_CARD, and WLAN_NG_CARD_AVS_CFF2.

Referenced by main().

void closePacket void   ) 
 

Definition at line 284 of file driver.c.

References ATHEROS_CARD, CISCO_CARD, CISCO_CVS_CARD, closePacketATHEROS(), closePacketCISCO(), closePacketHERMES(), closePacketHOSTAP(), closePacketPRISM54g(), closePacketWLAN(), config, HOSTAP_CARD, LUCENT_CARD, NOT_YET_ANALIZED, PCAP_VIRTUAL_CARD, PRISM54G_CARD, ConfigStruct::TypeOfCard, WLAN_NG_CARD, and WLAN_NG_CARD_AVS_CFF2.

Referenced by main().

int getPacket unsigned char *  buf,
int  maxlen,
unsigned int  timeout
 

unsigned int timeout is for now unused

Definition at line 320 of file driver.c.

References ATHEROS_CARD, CISCO_CARD, CISCO_CVS_CARD, config, getPacketATHEROS(), getPacketCISCO(), getPacketHERMES(), getPacketHOSTAP(), getPacketPRISM54g(), getPacketWLAN(), HOSTAP_CARD, LUCENT_CARD, NOT_YET_ANALIZED, PCAP_VIRTUAL_CARD, PRISM54G_CARD, ConfigStruct::TypeOfCard, WLAN_NG_CARD, and WLAN_NG_CARD_AVS_CFF2.

Referenced by main().


Variable Documentation

unsigned int DebugLevel
 

WINDOW* Sum_WND
 

Definition at line 60 of file scanner.c.

Referenced by check_keys_th(), InitScreen(), main(), PrintScaleChannel(), RefreshAllWND(), and WriteSummary().

WINDOW * RealTime_WND
 

Definition at line 60 of file scanner.c.

ScanResult_t Res
 

Definition at line 59 of file scanner.c.

ConfigStruct config
 

Definition at line 57 of file scanner.c.

pthread_mutex_t screen_mutex
 

MUTEX for lock screen, so only one func write to it at the same time.

Definition at line 66 of file scanner.c.

p80211_caphdr_t wlan_header
 

Definition at line 52 of file driver.c.

const UINT8 Posit[15] = { 0, 1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14 }
 

Definition at line 95 of file driver.c.

Referenced by PrintScaleChannel(), and WritePanel().

const char* Indic[15]
 

Initial value:

    { "", "^-.", "-^-.", ".-^-.", ".-^-.", ".-^-.", ".-^-.", ".-^-.",
  ".-^-.",
  ".-^-.", ".-^-.", ".-^-.", ".-^-.", ".-^-.", ".-^"
}

Definition at line 96 of file driver.c.

Referenced by PrintScaleChannel().


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