#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <limits.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <sys/timeb.h>
#include <sys/socket.h>
#include <sys/resource.h>
#include <sys/ioctl.h>
#include <asm/types.h>
#include <linux/netlink.h>
#include <errno.h>
#include <ctype.h>
#include <net/bpf.h>
#include <ncurses.h>
#include <pthread.h>
#include <pcap.h>
#include <wlan/p80211hdr.h>
Include dependency graph for include.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | p80211_caphdr |
Defines | |
#define | LWNG_16 |
#define | LWNG_15 |
#define | LWNG_14 |
#define | ABSTRACTION_LAYER |
#define | FALSE (UINT8) 0 |
#define | TRUE (UINT8) 1 |
#define | UINT8_MAX (0xffUL) |
#define | UINT16_MAX (0xffffUL) |
#define | UINT32_MAX (0xffffffffUL) |
#define | INT8_MAX (0x7fL) |
#define | INT16_MAX (0x7fffL) |
#define | INT32_MAX (0x7fffffffL) |
#define | __WLAN_ATTRIB_PACK__ __attribute__ ((packed)) |
#define | __WLAN_PRAGMA_PACK1__ |
#define | __WLAN_PRAGMA_PACKDFLT__ |
#define | __WLAN_INLINE__ inline |
#define | WIFISCANNER_VERSION WIFISCANNER_VERSION_NUM |
#define | MAX_BUFFER_SIZE 4096 |
#define | DEVNAME_LEN 16 |
#define | MCAST_GRP_SNIFF 0x00000002 |
#define | WLAN_STR_ADDR_LEN 18 |
#define | MAXSIZE_OTHERINFORMATION 0x100 |
#define | HISTORY_SIZE 4 |
#define | MAX_NUMBER_OF_DETECTED_CLIENT 8192 |
#define | KEYBOARD_BUFFER 8 |
#define | MANUF_MAXSTRINGLENGTH 32 |
#define | TIME_TO_SLEEP_BEFORE_CHANGE_CHANNEL (1000/(14*1)) |
#define | TIMEOUT_TRY_TO_READ_PAQUET (1000000/(14/2)) |
#define | SET_BIT(a, n) (a|=(1<<n)) |
#define | CLR_BIT(a, n) (a&=~(1<<n)) |
#define | IS_BIT_SET(a, n) (a & (1<<n)) |
#define | IS_BIT_CLR(a, n) (~(a & (1<<n))) |
#define | SWITCH_BIT(a, n) (a^=(1<<n)) |
#define | GET_BIT(a, n) ((a >> n) & 1) |
#define | TYPE_BIT_AP 0 |
#define | TYPE_BIT_BEACON 1 |
#define | TYPE_BIT_P2P 2 |
#define | TYPE_BIT_DATA 3 |
#define | TYPE_BIT_TODS 4 |
#define | TYPE_BIT_FROMDS 5 |
#define | SET_TYPE_BIT_AP(x) SET_BIT(x, TYPE_BIT_AP) |
#define | SET_TYPE_BIT_BEACON(x) SET_BIT(x, TYPE_BIT_BEACON) |
#define | SET_TYPE_BIT_P2P(x) SET_BIT(x, TYPE_BIT_P2P) |
#define | SET_TYPE_BIT_DATA(x) SET_BIT(x, TYPE_BIT_DATA) |
#define | SET_TYPE_BIT_TODS(x) SET_BIT(x, TYPE_BIT_TODS) |
#define | SET_TYPE_BIT_FROMDS(x) SET_BIT(x, TYPE_BIT_FROMDS) |
#define | CLEAR_TYPE_BIT_AP(x) CLR_BIT(x, TYPE_BIT_AP) |
#define | CLEAR_TYPE_BIT_BEACON(x) CLR_BIT(x, TYPE_BIT_BEACON) |
#define | CLEAR_TYPE_BIT_P2P(x) CLR_BIT(x, TYPE_BIT_P2P) |
#define | CLEAR_TYPE_BIT_DATA(x) CLR_BIT(x, TYPE_BIT_DATA) |
#define | CLEAR_TYPE_BIT_TODS(x) CLR_BIT(x, TYPE_BIT_TODS) |
#define | CLEAR_TYPE_BIT_FROMDS(x) CLR_BIT(x, TYPE_BIT_FROMDS) |
#define | GET_TYPE_BIT_AP(x) GET_BIT(x, TYPE_BIT_AP) |
#define | GET_TYPE_BIT_BEACON(x) GET_BIT(x, TYPE_BIT_BEACON) |
#define | GET_TYPE_BIT_P2P(x) GET_BIT(x, TYPE_BIT_P2P) |
#define | GET_TYPE_BIT_DATA(x) GET_BIT(x, TYPE_BIT_DATA) |
#define | GET_TYPE_BIT_TODS(x) GET_BIT(x, TYPE_BIT_TODS) |
#define | GET_TYPE_BIT_FROMDS(x) GET_BIT(x, TYPE_BIT_FROMDS) |
#define | TYPE_BIT_00 "Client" |
#define | TYPE_BIT_01 "AP Base" |
#define | TYPE_BIT_02 "AP Base (STA in master mode)" |
#define | TYPE_BIT_03 "AP Base (dedicated)" |
#define | TYPE_BIT_04 "Ad-Hoc STA" |
#define | TYPE_BIT_05 "???5" |
#define | TYPE_BIT_06 "Ad-Hoc STA (beacon)" |
#define | TYPE_BIT_07 "Ad-Hoc STA" |
#define | TYPE_BIT_08 "STA Activity" |
#define | TYPE_BIT_09 "???9 Reserved" |
#define | TYPE_BIT_0A "???A Reserved" |
#define | TYPE_BIT_0B "???B Reserved" |
#define | TYPE_BIT_0C "???C Reserved" |
#define | TYPE_BIT_0D "???D Reserved" |
#define | TYPE_BIT_0E "???E Reserved" |
#define | TYPE_BIT_0F "???F Reserved" |
#define | SUBTYPE_BIT_00 "Radio only" |
#define | SUBTYPE_BIT_01 "Data To DS" |
#define | SUBTYPE_BIT_02 "Data From DS" |
#define | SUBTYPE_BIT_03 "Data AP to AP" |
#define | SUBTYPE_BIT_04 "???4 Reserved" |
#define | SUBTYPE_BIT_05 "???5 Reserved" |
#define | SUBTYPE_BIT_06 "???6 Reserved" |
#define | SUBTYPE_BIT_07 "???7 Reserved" |
#define | SUBTYPE_BIT_08 "???8 Reserved" |
#define | SUBTYPE_BIT_09 "???9 Reserved" |
#define | SUBTYPE_BIT_0A "???A Reserved" |
#define | SUBTYPE_BIT_0B "???B Reserved" |
#define | SUBTYPE_BIT_0C "???C Reserved" |
#define | SUBTYPE_BIT_0D "???D Reserved" |
#define | SUBTYPE_BIT_0E "???E Reserved" |
#define | SUBTYPE_BIT_0F "???F Reserved" |
#define | WLAN_SIZEOF_TYPEOFPACKET 6 |
#define | STR_YES "Yes" |
#define | STR_NO "No" |
#define | STR_WEP "Wep" |
#define | STR_NOWEP "---" |
#define | STR_STA "STA" |
#define | STR_AP "AP" |
#define | MAX_DEBUG_LEVEL 3 |
#define | DEBUG_POINT debug(3, "%s:%d\n", __FUNCTION__, __LINE__); |
#define | HELPTEXT1 |
#define | HELPTEXT |
#define | IS_DISPLAY_ACK(x) ( (x > 0) & 1) |
#define | IS_DISPLAY_BEACON(x) ( (x > 1) & 1) |
#define | IS_DISPLAY_CONTROL(x) ( (x > 2) & 1) |
#define | IS_DISPLAY_DATA(x) ( (x > 3) & 1) |
#define | WLAN_NG_CARD 1 |
#define | CISCO_CARD 2 |
#define | LUCENT_CARD 3 |
#define | WLAN_NG_CARD_AVS_CFF2 4 |
#define | PCAP_VIRTUAL_CARD 5 |
#define | HOSTAP_CARD 6 |
#define | CISCO_CVS_CARD 7 |
#define | ATHEROS_CARD 8 |
#define | PRISM54G_CARD 9 |
#define | phytype_fhss_dot11_97 1 |
#define | phytype_dsss_dot11_97 2 |
#define | phytype_irbaseband 3 |
#define | phytype_dsss_dot11_b 4 |
#define | phytype_pbcc_dot11_b 5 |
#define | phytype_ofdm_dot11_g 6 |
#define | phytype_pbcc_dot11_g 7 |
#define | phytype_ofdm_dot11_a 8 |
#define | WLAN_ETHADDR_LEN 6 |
#define | WLAN_IEEE_OUI_LEN 3 |
#define | WLAN_ETHCONV_ENCAP 1 |
#define | WLAN_ETHCONV_RFC1042 2 |
#define | WLAN_ETHCONV_8021h 3 |
#define | WLAN_MIN_ETHFRM_LEN 60 |
#define | WLAN_MAX_ETHFRM_LEN 1514 |
#define | WLAN_ETHHDR_LEN 14 |
#define | WLAN_SSID_MAXLEN 32 |
#define | P80211CAPTURE_VERSION 0x80211001 |
Typedefs | |
typedef p80211_caphdr | p80211_caphdr_t |
typedef CaptureArg_t | CaptureArg |
|
|
|
|
|
|
|
|
|
Definition at line 131 of file include.h. Referenced by debug(), debugTS(), EndCurses(), FilterESSID(), InitConfiguration(), InitScreen(), main(), openCard(), ParseCommandLine(), shutCard(), and warning(). |
|
Definition at line 134 of file include.h. Referenced by check_keys_th(), debug(), debugTS(), fatal(), InitConfiguration(), InitScreen(), main(), ParseCommandLine(), Send_IDS_Warning(), and warning(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 157 of file include.h. Referenced by InitScreen(), and main(). |
|
Definition at line 160 of file include.h. Referenced by DumpHexPaquets(), getPacketATHEROS(), getPacketWLAN(), main(), and memcpy_buff(). |
|
Definition at line 161 of file include.h. Referenced by do_ioctl(), openCardCISCO(), openCardWLAN(), ParseCommandLine(), selectChannelWLAN(), and shutCardWLAN(). |
|
|
|
Definition at line 163 of file include.h. Referenced by analyseACK(), analyseCTS(), analyseData(), analyseMGMT(), analysePSPOLL(), and analyseRTS(). |
|
Definition at line 164 of file include.h. Referenced by LogPutOtherInformation(), and UpdateOtherInformation(). |
|
Definition at line 165 of file include.h. Referenced by CalculCoef(), IDS_BcnInt(), IDS_TimeStamp(), IDS_Var_SeqNum(), LogPutIsAP(), LogPutIsP2P(), LogPutSeqNum(), LogPutSN(), and LogPutTimestamp(). |
|
Definition at line 166 of file include.h. Referenced by LogDetectedClient(), and main(). |
|
Definition at line 167 of file include.h. Referenced by check_keys_th(), and parse_keystring(). |
|
Definition at line 169 of file include.h. Referenced by LogDetectedClient(). |
|
Definition at line 180 of file include.h. Referenced by parse_keystring(). |
|
Definition at line 181 of file include.h. Referenced by main(). |
|
Definition at line 187 of file include.h. Referenced by ParseCommandLine(). |
|
|
|
Definition at line 189 of file include.h. Referenced by WritePanel(), and WriteSummary(). |
|
|
|
Definition at line 191 of file include.h. Referenced by parse_keystring(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 221 of file include.h. Referenced by analyseBeacon(), analyseData(), analyseProbeRep(), and ProcessTagBits(). |
|
Definition at line 222 of file include.h. Referenced by analyseBeacon(). |
|
Definition at line 223 of file include.h. Referenced by analyseBeacon(), analyseProbeRep(), and ProcessTagBits(). |
|
Definition at line 224 of file include.h. Referenced by processPacket(). |
|
Definition at line 225 of file include.h. Referenced by analyseData(). |
|
Definition at line 226 of file include.h. Referenced by analyseData(). |
|
Definition at line 228 of file include.h. Referenced by analyseBeacon(), analyseProbeRep(), and ProcessTagBits(). |
|
|
|
Definition at line 230 of file include.h. Referenced by analyseBeacon(), and analyseProbeRep(). |
|
|
|
|
|
|
|
Definition at line 235 of file include.h. Referenced by main(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 242 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 243 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 244 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 245 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 246 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 247 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 248 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 249 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 250 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 251 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 252 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 253 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 254 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 255 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 256 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 257 of file include.h. Referenced by TypeOfClientToString(). |
|
Definition at line 259 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 260 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 261 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 262 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 263 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 264 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 265 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 266 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 267 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 268 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 269 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 270 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 271 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 272 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 273 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 274 of file include.h. Referenced by SubTypeOfClientToString(). |
|
Definition at line 276 of file include.h. Referenced by processPacket(). |
|
Definition at line 278 of file include.h. Referenced by BoolToStr(). |
|
Definition at line 279 of file include.h. Referenced by BoolToStr(). |
|
Definition at line 281 of file include.h. Referenced by BoolToWepNoWep(). |
|
Definition at line 282 of file include.h. Referenced by BoolToWepNoWep(). |
|
Definition at line 284 of file include.h. Referenced by BoolToStaAp(). |
|
Definition at line 285 of file include.h. Referenced by BoolToStaAp(). |
|
The maximum of DEBUG Level * Definition at line 288 of file include.h. Referenced by DispConf(), parse_keystring(), and ParseCommandLine(). |
|
Definition at line 289 of file include.h. Referenced by selectChannel(). |
|
Value: "Call with no parameters or with the following options\n" \ " --help -h - This help page\n" \ " --version -v - Write Version and quit\n" \ " --verbose -V level - For verbose, level 2 is for debugging\n" \ " --card-driver -C - Wireless card driver :\n" \ " 'prism', 'cisco' 'cisco_wifi (eth+wifi)' 'orinoco' 'atheros', 'prism54g', or 'hostap'\n" \ " --iface -i device - Name of the interface (default wlan0)\n" \ " - for cisco_wifi driver, give the two interfaces like eth1,wifi0\n" \ " --output-file -F filename - Save output to a file as well as stdout\n" \ " --device-file -D filename - Create a file of detected devices, in a .dot format\n" \ " --hop -H number - Number of hops do for rotating channel (default 5)\n" \ " --channel -S channel - Only listen on a specific Channel (1-14)\n" \ " --computer-date -d - Write date in machine readable format\n" \ " --ids -I - Activate the IDS functions\n" \ " --max-packets -M number - Max packets to capture before exit\n" \ " (0 = unlimited)\n" \ " --hide-packets -N abcd - Do not display Ack, Beacon, Control, Data\n" \ " --hop-delay -t number - Number of ms before channel change (default=200)\n" \ " --disable-check -c - Do not chek curses screen size\n" \ |
|
Value: HELPTEXT1 \ " --pcap-file -W filename - Save sniffed data to a file in PCAP format\n" Definition at line 317 of file include.h. Referenced by HelpAndBye(). |
|
Functions to determine if we must not display some packet |
|
|
|
|
|
|
|
Captured Frame Format Definition at line 336 of file include.h. Referenced by closePacket(), getPacket(), InitConfiguration(), openCard(), openPacket(), ParseCommandLine(), selectChannel(), and shutCard(). |
|
Definition at line 337 of file include.h. Referenced by closePacket(), getPacket(), main(), openCard(), openPacket(), ParseCommandLine(), selectChannel(), and shutCard(). |
|
Definition at line 338 of file include.h. Referenced by closePacket(), getPacket(), openCard(), openPacket(), ParseCommandLine(), selectChannel(), and shutCard(). |
|
Definition at line 339 of file include.h. Referenced by closePacket(), getPacket(), openCard(), openPacket(), selectChannel(), and shutCard(). |
|
Definition at line 340 of file include.h. Referenced by closePacket(), getPacket(), openCard(), openPacket(), selectChannel(), and shutCard(). |
|
Definition at line 341 of file include.h. Referenced by closePacket(), getPacket(), openCard(), openPacket(), ParseCommandLine(), selectChannel(), and shutCard(). |
|
Definition at line 342 of file include.h. Referenced by closePacket(), DispConf(), getPacket(), main(), openCard(), openCardCISCO(), openPacket(), ParseCommandLine(), selectChannel(), shutCard(), and shutCardCISCO(). |
|
Definition at line 343 of file include.h. Referenced by closePacket(), getPacket(), openCard(), openPacket(), ParseCommandLine(), selectChannel(), and shutCard(). |
|
Definition at line 344 of file include.h. Referenced by closePacket(), getPacket(), openCard(), openPacket(), ParseCommandLine(), selectChannel(), and shutCard(). |
|
|
|
|
|
|
|
Definition at line 350 of file include.h. Referenced by getPacketATHEROS(), getPacketHERMES(), getPacketHOSTAP(), and getPacketWLAN(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Frame capture header. (See doc/capturefrm.txt) |
|
Capture Frame for Linux-WLAN-NG |