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

wlan-ng.c File Reference

#include <include.h>
#include <src/interface.h>
#include <src/crt_io.h>
#include <src/wlan-ng.h>
#include <src/driver.h>

Include dependency graph for wlan-ng.c:

Go to the source code of this file.

Functions

void dump_msg (void *msg)
int do_ioctl (char *devname, UINT8 *msg, size_t size)
int selectChannelWLAN (char *devname, int channel)
int shutCardWLAN (char *devname)
int openCardWLAN (char *devname)
int getPacketWLAN (unsigned char *buf, int maxlen)
int openPacketWLAN (char *devname)
void closePacketWLAN (void)

Variables

static char * ID = "$Id: wlan-ng.c,v 1.31 2005/02/23 11:36:53 poggij Exp $"
WINDOW * Sum_WND
WINDOW * RealTime_WND
ScanResult_t Res
static CaptureArg ca
static char errbuf [PCAP_ERRBUF_SIZE]
p80211_caphdr_t wlan_header
static UINT8 wlan_payload [4096]
static p80211msg_lnxreq_wlansniff_t lnxreq_wlansniff
static p80211msg_lnxreq_ifstate_t lnxreq_ifstate


Function Documentation

void dump_msg void *  msg  ) 
 

Definition at line 61 of file wlan-ng.c.

References debug.

Referenced by do_ioctl().

int do_ioctl char *  devname,
UINT8 msg,
size_t  size
 

Definition at line 93 of file wlan-ng.c.

References DEVNAME_LEN, dump_msg(), MSG_BUFF_LEN, P80211_IFREQ, P80211_IOCTL_MAGIC, and warning().

Referenced by openCardWLAN(), selectChannelWLAN(), and shutCardWLAN().

int selectChannelWLAN char *  devname,
int  channel
 

Definition at line 162 of file wlan-ng.c.

References debug, DEVNAME_LEN, DIDmsg_lnxreq_wlansniff, DIDmsg_lnxreq_wlansniff_channel, DIDmsg_lnxreq_wlansniff_enable, DIDmsg_lnxreq_wlansniff_keepwepflags, DIDmsg_lnxreq_wlansniff_prismheader, DIDmsg_lnxreq_wlansniff_resultcode, do_ioctl(), fatal(), lnxreq_wlansniff, P80211ENUM_msgitem_status_no_value, P80211ENUM_truth_false, P80211ENUM_truth_true, PrintScaleChannel(), Res, and ScanResult_t::SChannel.

Referenced by selectChannel().

int shutCardWLAN char *  devname  ) 
 

Definition at line 297 of file wlan-ng.c.

References debug, DEVNAME_LEN, DIDmsg_lnxreq_wlansniff, DIDmsg_lnxreq_wlansniff_channel, DIDmsg_lnxreq_wlansniff_enable, DIDmsg_lnxreq_wlansniff_resultcode, do_ioctl(), lnxreq_wlansniff, P80211ENUM_msgitem_status_no_value, and P80211ENUM_truth_false.

Referenced by shutCard().

int openCardWLAN char *  devname  ) 
 

Definition at line 344 of file wlan-ng.c.

References debug, DEVNAME_LEN, DIDmsg_lnxreq_ifstate, DIDmsg_lnxreq_ifstate_ifstate, DIDmsg_lnxreq_ifstate_resultcode, DIDmsg_lnxreq_wlansniff, DIDmsg_lnxreq_wlansniff_channel, DIDmsg_lnxreq_wlansniff_enable, DIDmsg_lnxreq_wlansniff_resultcode, do_ioctl(), fatal(), lnxreq_ifstate, lnxreq_wlansniff, P80211ENUM_ifstate_enable, P80211ENUM_msgitem_status_no_value, P80211ENUM_resultcode_refused, P80211ENUM_resultcode_success, P80211ENUM_truth_false, and warning().

Referenced by openCard().

int getPacketWLAN unsigned char *  buf,
int  maxlen
 

Definition at line 431 of file wlan-ng.c.

References ca, debug, MAX_BUFFER_SIZE, memcpy_buff(), CaptureArg_t::pcap, phytype_dsss_dot11_b, wlan_header, and wlan_payload.

Referenced by getPacket().

int openPacketWLAN char *  devname  ) 
 

Definition at line 496 of file wlan-ng.c.

References ca, debug, DLT_PRISM_HEADER, errbuf, fatal(), CaptureArg_t::offset, and CaptureArg_t::pcap.

Referenced by openPacket().

void closePacketWLAN void   ) 
 

Definition at line 529 of file wlan-ng.c.

References ca, and CaptureArg_t::pcap.

Referenced by closePacket().


Variable Documentation

char* ID = "$Id: wlan-ng.c,v 1.31 2005/02/23 11:36:53 poggij Exp $" [static]
 

Definition at line 34 of file wlan-ng.c.

WINDOW* Sum_WND
 

Definition at line 60 of file scanner.c.

WINDOW * RealTime_WND
 

Definition at line 60 of file scanner.c.

ScanResult_t Res
 

Definition at line 59 of file scanner.c.

CaptureArg ca [static]
 

Definition at line 41 of file wlan-ng.c.

Referenced by closePacketWLAN(), getPacketWLAN(), and openPacketWLAN().

char errbuf[PCAP_ERRBUF_SIZE] [static]
 

Definition at line 42 of file wlan-ng.c.

Referenced by openPacketWLAN().

p80211_caphdr_t wlan_header
 

Definition at line 52 of file driver.c.

UINT8 wlan_payload[4096] [static]
 

Definition at line 48 of file wlan-ng.c.

Referenced by getPacketWLAN().

p80211msg_lnxreq_wlansniff_t lnxreq_wlansniff [static]
 

Definition at line 54 of file wlan-ng.c.

Referenced by openCardWLAN(), selectChannelWLAN(), and shutCardWLAN().

p80211msg_lnxreq_ifstate_t lnxreq_ifstate [static]
 

Definition at line 55 of file wlan-ng.c.

Referenced by openCardWLAN().


Generated on Fri Feb 25 12:03:11 2005 for WifiScanner by  doxygen 1.4.1