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

analyse.h File Reference

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

Go to the source code of this file.

Defines

#define HISTOSIZE   37
#define POS_MAC   6
#define POS_SSID   24
#define POS_HISTO   56
#define SENSOFIDS_TS   5

Functions

void LogPutSN (UINT8 AddMac[WLAN_ADDR_LEN], UINT32 SN)
void LogPutRate (UINT8 AddMac[WLAN_ADDR_LEN], UINT8 Rate)
void LogPutMaxRate (UINT8 AddMac[WLAN_ADDR_LEN], UINT8 Rate)
void LogDetectedClient (UINT8 AddMac[WLAN_ADDR_LEN])
void LogPutBSSID (UINT8 AddMac[WLAN_ADDR_LEN], UINT8 BSSID[WLAN_ADDR_LEN])
void LogPutDS (UINT8 BSSID[WLAN_ADDR_LEN])
void LogPutWep (UINT8 BSSID[WLAN_ADDR_LEN], UINT8 hasWep)
void LogPutSSID (UINT8 AddMac[WLAN_ADDR_LEN], UINT8 BSSID[WLAN_ADDR_LEN], char *SSID)
void LogPutChannel (UINT8 AddMac[WLAN_ADDR_LEN], UINT8 BSSID[WLAN_ADDR_LEN], UINT8 Channel)
void LogPutIsAP (UINT8 AddMac[WLAN_ADDR_LEN], UINT8 hasWep, UINT16 bcn_int)
void LogPutIsP2P (UINT8 AddMac[WLAN_ADDR_LEN], UINT8 hasWep, UINT16 bcn_int)
void LogPutOtherInformation (UINT8 AddMac[WLAN_ADDR_LEN], char *OtherInformation)
void LogPutTimestamp (UINT8 AddMac[WLAN_ADDR_LEN], UINT64 TS)
void LogPutSeqNum (UINT8 AddMac[WLAN_ADDR_LEN], UINT8 AddMacDst[WLAN_ADDR_LEN], UINT16 SeqNum)
void LogPutLastIV (UINT8 AddMac[WLAN_ADDR_LEN], UINT8 IV[4])
void LogWriteReport (void)
void LogWriteDOT (FILE *filename)
void LogWritePanel (void)
void LogWriteHisto (void)
void DoSummary (void)
void WritePanel (UINT8 GoodPacket)
UINT8 IDS (void)


Define Documentation

#define HISTOSIZE   37
 

Definition at line 31 of file analyse.h.

Referenced by WritePanel().

#define POS_MAC   6
 

Definition at line 32 of file analyse.h.

Referenced by WritePanel().

#define POS_SSID   24
 

Definition at line 33 of file analyse.h.

Referenced by WritePanel().

#define POS_HISTO   56
 

Definition at line 34 of file analyse.h.

Referenced by WritePanel().

#define SENSOFIDS_TS   5
 

Definition at line 36 of file analyse.h.


Function Documentation

void LogPutSN UINT8  AddMac[WLAN_ADDR_LEN],
UINT32  SN
 

Definition at line 77 of file analyse.c.

References ClientInfo, CompareAddMac(), HISTORY_SIZE, NumberOfDetectedClient, ClientInfo_t::SN, ClientInfo_t::SNMax, ClientInfo_t::SNMed, ClientInfo_t::SNMin, and UINT32.

Referenced by analyseBeacon(), analyseData(), analyseMGMT(), analyseProbeRep(), analyseProbeReq(), analysePSPOLL(), and analyseRTS().

void LogPutRate UINT8  AddMac[WLAN_ADDR_LEN],
UINT8  Rate
 

Definition at line 105 of file analyse.c.

References ClientInfo, CompareAddMac(), NumberOfDetectedClient, ClientInfo_t::RateMax, and ClientInfo_t::RateMin.

Referenced by analyseBeacon(), analyseData(), analyseMGMT(), analyseProbeRep(), analyseProbeReq(), analysePSPOLL(), and analyseRTS().

void LogPutMaxRate UINT8  AddMac[WLAN_ADDR_LEN],
UINT8  Rate
 

Definition at line 121 of file analyse.c.

References ClientInfo, CompareAddMac(), ClientInfo_t::MaxSpeed, and NumberOfDetectedClient.

Referenced by ProcessTagBits().

void LogDetectedClient UINT8  AddMac[WLAN_ADDR_LEN]  ) 
 

Definition at line 131 of file analyse.c.

References AddMacToManufModel(), AddMacToManufName(), BroadcastMAC, ClientInfo, CompareAddMac(), debug, MANUF_MAXSTRINGLENGTH, MAX_NUMBER_OF_DETECTED_CLIENT, NumberOfDetectedClient, and WLAN_ADDR_LEN.

Referenced by analyseACK(), analyseBeacon(), analyseCTS(), analyseData(), analyseMGMT(), analyseProbeRep(), analyseProbeReq(), analysePSPOLL(), and analyseRTS().

void LogPutBSSID UINT8  AddMac[WLAN_ADDR_LEN],
UINT8  BSSID[WLAN_ADDR_LEN]
 

Definition at line 165 of file analyse.c.

References BroadcastMAC, ClientInfo, CompareAddMac(), NumberOfDetectedClient, and WLAN_ADDR_LEN.

Referenced by analyseBeacon(), analyseData(), analyseProbeRep(), and analyseProbeReq().

void LogPutDS UINT8  BSSID[WLAN_ADDR_LEN]  ) 
 

Definition at line 180 of file analyse.c.

References ClientInfo, CompareAddMac(), ClientInfo_t::IsDS, and NumberOfDetectedClient.

Referenced by analyseData().

void LogPutWep UINT8  BSSID[WLAN_ADDR_LEN],
UINT8  hasWep
 

Definition at line 192 of file analyse.c.

References ClientInfo, CompareAddMac(), ClientInfo_t::hasWep, and NumberOfDetectedClient.

Referenced by LogPutIsAP().

void LogPutSSID UINT8  AddMac[WLAN_ADDR_LEN],
UINT8  BSSID[WLAN_ADDR_LEN],
char *  SSID
 

Definition at line 278 of file analyse.c.

References BroadcastMAC, CompareAddMac(), LogPutSSID_byAddMac(), and LogPutSSID_byBSSID().

Referenced by ProcessTagBits().

void LogPutChannel UINT8  AddMac[WLAN_ADDR_LEN],
UINT8  BSSID[WLAN_ADDR_LEN],
UINT8  Channel
 

Definition at line 228 of file analyse.c.

References BroadcastMAC, CompareAddMac(), LogPutChannel_byAddMac(), and LogPutChannel_byBSSID().

Referenced by ProcessTagBits().

void LogPutIsAP UINT8  AddMac[WLAN_ADDR_LEN],
UINT8  hasWep,
UINT16  bcn_int
 

Definition at line 291 of file analyse.c.

References ClientInfo_t::bcn_int, ClientInfo, CompareAddMac(), ClientInfo_t::hasWep, HISTORY_SIZE, ClientInfo_t::IsAP, LogPutWep(), NumberOfDetectedClient, and WLAN_ADDR_LEN.

Referenced by analyseBeacon(), analyseData(), and analyseProbeRep().

void LogPutIsP2P UINT8  AddMac[WLAN_ADDR_LEN],
UINT8  hasWep,
UINT16  bcn_int
 

Definition at line 313 of file analyse.c.

References ClientInfo_t::bcn_int, ClientInfo, CompareAddMac(), debug, ClientInfo_t::hasWep, HISTORY_SIZE, ClientInfo_t::IsAP, ClientInfo_t::IsP2P, and NumberOfDetectedClient.

Referenced by analyseBeacon(), and analyseProbeRep().

void LogPutOtherInformation UINT8  AddMac[WLAN_ADDR_LEN],
char *  OtherInformation
 

Definition at line 334 of file analyse.c.

References ClientInfo, CompareAddMac(), MAXSIZE_OTHERINFORMATION, and NumberOfDetectedClient.

Referenced by ProcessTagBits().

void LogPutTimestamp UINT8  AddMac[WLAN_ADDR_LEN],
UINT64  TimeStamp
 

Get a timestamp of a BSSID and put it in the fifo of TS

Todo:
TODO Save System Timestamp

Definition at line 348 of file analyse.c.

References ClientInfo, CompareAddMac(), debug, HISTORY_SIZE, NumberOfDetectedClient, and ClientInfo_t::TimeStamp.

Referenced by analyseBeacon(), and analyseProbeRep().

void LogPutSeqNum UINT8  AddMac[WLAN_ADDR_LEN],
UINT8  AddMacDst[WLAN_ADDR_LEN],
UINT16  SeqNum
 

Get a Sequence Number of a BSSID and put it in the fifo of SeqNum

TODO : Analyse also when it's not a broadcast packet ad a new array (Mac@ cli, SeqNum)

Definition at line 371 of file analyse.c.

References BroadcastMAC, ClientInfo, CompareAddMac(), HISTORY_SIZE, NumberOfDetectedClient, ClientInfo_t::SeqNum, and WLAN_GET_SEQ_SEQNUM.

Referenced by analyseBeacon(), analyseMGMT(), analyseProbeRep(), analyseProbeReq(), and analysePSPOLL().

void LogPutLastIV UINT8  AddMac[WLAN_ADDR_LEN],
UINT8  IV[4]
 

Put the last IV find in packets

Definition at line 392 of file analyse.c.

References ClientInfo, CompareAddMac(), ClientInfo_t::LastIV, and NumberOfDetectedClient.

void LogWriteReport void   ) 
 

Write the final report

Definition at line 410 of file analyse.c.

References AddMacToManufModel(), AddMacToManufName(), ClientInfo, NumberOfDetectedClient, and RateToString().

Referenced by main().

void LogWriteDOT FILE *  filename  ) 
 

Write the .dot file with all informations we have

Definition at line 508 of file analyse.c.

References ClientInfo, and NumberOfDetectedClient.

Referenced by main().

void LogWritePanel void   ) 
 

void LogWriteHisto void   ) 
 

Definition at line 565 of file analyse.c.

References debug, HISTO_SIGNAL_CHAN, HISTO_SIGNAL_SIZE, Statistics_t::MaxSignal, NumberOfDetectedClient, and Stats.

Referenced by main().

void DoSummary void   ) 
 

Function to calculate some stats

Definition at line 738 of file analyse.c.

References Statistics_t::AP, ClientInfo_t::Channel, Statistics_t::Channel, ClientInfo, NumberOfDetectedClient, Statistics_t::STA, and Stats.

Referenced by WriteSummary().

void WritePanel UINT8  GoodPacket  ) 
 

Definition at line 616 of file analyse.c.

References ClientInfo, COL_WND_PANEL, config, debug, ConfigStruct::DoNotDisplay, ConfigStruct::FirstNIC, HISTOSIZE, IS_BIT_SET, ClientInfo_t::Manuf, NumberOfDetectedClient, Panel_WND, POS_HISTO, POS_MAC, POS_SSID, Posit, Res, ROW_WND_PANEL, screen_mutex, ScanResult_t::Signal, ClientInfo_t::SNMax, ClientInfo_t::SNMed, and ScanResult_t::SrcMac.

Referenced by main().

UINT8 IDS void   ) 
 

Function to analyse data and try to determine an Intrusion or a DOS Try also to determine a jammer like FakeAP

ret == 0x01; Beacon interval history is suspect ret == 0x02; TS history is suspect ret == 0x04; SeqNum history is suspect

Definition at line 929 of file analyse.c.

References IDS_BcnInt(), IDS_Detect_FakeAP(), IDS_TimeStamp(), and IDS_Var_SeqNum().

Referenced by main().


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