Classes | Defines | Functions | Variables
driver_bsd.c File Reference
#include "includes.h"
#include <sys/ioctl.h>
#include "common.h"
#include "driver.h"
#include "eloop.h"
#include "common/ieee802_11_defs.h"
#include <net/if.h>
#include <net/if_media.h>
#include <net/ethernet.h>
#include <net/route.h>
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_ioctl.h>
#include <net80211/ieee80211_crypto.h>
#include "l2_packet/l2_packet.h"
Include dependency graph for driver_bsd.c:

Go to the source code of this file.

Classes

struct  bsd_driver_data

Defines

#define GETPARAM(drv, param, v)   (((v) = get80211param(drv, param)) != -1)

Functions

static int bsd_configure_wpa (void *priv, struct wpa_bss_params *params)
static int bsd_ctrl_iface (void *priv, int enable)
static int bsd_del_key (void *priv, const u8 *addr, int key_idx)
static int bsd_get80211 (void *priv, struct ieee80211req *ireq, int op, void *arg, int arg_len)
static int bsd_get_if_media (void *priv)
static int bsd_get_ssid (void *priv, u8 *ssid, int len)
static void bsd_new_sta (void *priv, void *ctx, u8 addr[IEEE80211_ADDR_LEN])
static int bsd_send_eapol (void *priv, const u8 *addr, const u8 *data, size_t data_len, int encrypt, const u8 *own_addr)
static int bsd_send_mlme_param (void *priv, const u8 op, const u16 reason, const u8 *addr)
static int bsd_set80211 (void *priv, int op, int val, const void *arg, int arg_len)
static int bsd_set_freq (void *priv, u16 channel)
static int bsd_set_ieee8021x (void *priv, struct wpa_bss_params *params)
static int bsd_set_if_media (void *priv, int media)
static int bsd_set_key (const char *ifname, void *priv, enum wpa_alg alg, const unsigned char *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len)
static int bsd_set_mediaopt (void *priv, uint32_t mask, uint32_t mode)
static int bsd_set_opt_ie (void *priv, const u8 *ie, size_t ie_len)
static int bsd_set_ssid (void *priv, const u8 *ssid, int ssid_len)
static int bsd_set_sta_authorized (void *priv, const u8 *addr, int total_flags, int flags_or, int flags_and)
static int get80211param (struct bsd_driver_data *drv, int op)
static int get80211var (struct bsd_driver_data *drv, int op, void *arg, int arg_len)
static void handle_read (void *ctx, const u8 *src_addr, const u8 *buf, size_t len)
static int set80211param (struct bsd_driver_data *drv, int op, int arg)
static int set80211var (struct bsd_driver_data *drv, int op, const void *arg, int arg_len)
static void wpa_driver_bsd_add_scan_entry (struct wpa_scan_results *res, struct ieee80211req_scan_result *sr)
static int wpa_driver_bsd_associate (void *priv, struct wpa_driver_associate_params *params)
static int wpa_driver_bsd_capa (struct bsd_driver_data *drv)
static int wpa_driver_bsd_deauthenticate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_bsd_deinit (void *priv)
static int wpa_driver_bsd_disassociate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_bsd_event_receive (int sock, void *ctx, void *sock_ctx)
static int wpa_driver_bsd_get_bssid (void *priv, u8 *bssid)
static int wpa_driver_bsd_get_capa (void *priv, struct wpa_driver_capa *capa)
struct wpa_scan_resultswpa_driver_bsd_get_scan_results2 (void *priv)
static int wpa_driver_bsd_get_ssid (void *priv, u8 *ssid)
static void * wpa_driver_bsd_init (void *ctx, const char *ifname)
static int wpa_driver_bsd_scan (void *priv, struct wpa_driver_scan_params *params)
static int wpa_driver_bsd_set_auth_alg (void *priv, int auth_alg)
static int wpa_driver_bsd_set_countermeasures (void *priv, int enabled)
static int wpa_driver_bsd_set_drop_unencrypted (void *priv, int enabled)
static int wpa_driver_bsd_set_wpa (void *priv, int enabled)
static int wpa_driver_bsd_set_wpa_ie (struct bsd_driver_data *drv, const u8 *wpa_ie, size_t wpa_ie_len)
static int wpa_driver_bsd_set_wpa_internal (void *priv, int wpa, int privacy)

Variables

struct bsd_driver_data __attribute__
struct wpa_driver_ops wpa_driver_bsd_ops

Define Documentation

#define GETPARAM (   drv,
  param,
 
)    (((v) = get80211param(drv, param)) != -1)

Function Documentation

static int bsd_configure_wpa ( void *  priv,
struct wpa_bss_params params 
) [static]

Definition at line 356 of file driver_bsd.c.

static int bsd_ctrl_iface ( void *  priv,
int  enable 
) [static]

Definition at line 259 of file driver_bsd.c.

static int bsd_del_key ( void *  priv,
const u8 *  addr,
int  key_idx 
) [static]

Definition at line 228 of file driver_bsd.c.

static int bsd_get80211 ( void *  priv,
struct ieee80211req *  ireq,
int  op,
void *  arg,
int  arg_len 
) [static]

Definition at line 95 of file driver_bsd.c.

static int bsd_get_if_media ( void *  priv) [static]

Definition at line 177 of file driver_bsd.c.

static int bsd_get_ssid ( void *  priv,
u8 *  ssid,
int  len 
) [static]

Definition at line 137 of file driver_bsd.c.

static void bsd_new_sta ( void *  priv,
void *  ctx,
u8  addr[IEEE80211_ADDR_LEN] 
) [static]

Definition at line 491 of file driver_bsd.c.

static int bsd_send_eapol ( void *  priv,
const u8 *  addr,
const u8 *  data,
size_t  data_len,
int  encrypt,
const u8 *  own_addr 
) [static]

Definition at line 518 of file driver_bsd.c.

static int bsd_send_mlme_param ( void *  priv,
const u8  op,
const u16  reason,
const u8 *  addr 
) [static]

Definition at line 247 of file driver_bsd.c.

static int bsd_set80211 ( void *  priv,
int  op,
int  val,
const void *  arg,
int  arg_len 
) [static]

Definition at line 73 of file driver_bsd.c.

static int bsd_set_freq ( void *  priv,
u16  channel 
) [static]

Definition at line 530 of file driver_bsd.c.

static int bsd_set_ieee8021x ( void *  priv,
struct wpa_bss_params params 
) [static]

Definition at line 442 of file driver_bsd.c.

static int bsd_set_if_media ( void *  priv,
int  media 
) [static]

Definition at line 195 of file driver_bsd.c.

static int bsd_set_key ( const char *  ifname,
void *  priv,
enum wpa_alg  alg,
const unsigned char *  addr,
int  key_idx,
int  set_tx,
const u8 *  seq,
size_t  seq_len,
const u8 *  key,
size_t  key_len 
) [static]

Definition at line 286 of file driver_bsd.c.

static int bsd_set_mediaopt ( void *  priv,
uint32_t  mask,
uint32_t  mode 
) [static]

Definition at line 214 of file driver_bsd.c.

static int bsd_set_opt_ie ( void *  priv,
const u8 *  ie,
size_t  ie_len 
) [static]

Definition at line 561 of file driver_bsd.c.

static int bsd_set_ssid ( void *  priv,
const u8 *  ssid,
int  ssid_len 
) [static]

Definition at line 158 of file driver_bsd.c.

static int bsd_set_sta_authorized ( void *  priv,
const u8 *  addr,
int  total_flags,
int  flags_or,
int  flags_and 
) [static]

Definition at line 471 of file driver_bsd.c.

static int get80211param ( struct bsd_driver_data drv,
int  op 
) [static]

Definition at line 845 of file driver_bsd.c.

static int get80211var ( struct bsd_driver_data drv,
int  op,
void *  arg,
int  arg_len 
) [static]

Definition at line 115 of file driver_bsd.c.

static void handle_read ( void *  ctx,
const u8 *  src_addr,
const u8 *  buf,
size_t  len 
) [static]

Definition at line 962 of file driver_bsd.c.

static int set80211param ( struct bsd_driver_data drv,
int  op,
int  arg 
) [static]

Definition at line 131 of file driver_bsd.c.

static int set80211var ( struct bsd_driver_data drv,
int  op,
const void *  arg,
int  arg_len 
) [static]

Definition at line 125 of file driver_bsd.c.

static void wpa_driver_bsd_add_scan_entry ( struct wpa_scan_results res,
struct ieee80211req_scan_result *  sr 
) [static]

Definition at line 1247 of file driver_bsd.c.

static int wpa_driver_bsd_associate ( void *  priv,
struct wpa_driver_associate_params params 
) [static]

Definition at line 970 of file driver_bsd.c.

static int wpa_driver_bsd_capa ( struct bsd_driver_data drv) [static]

Definition at line 1335 of file driver_bsd.c.

static int wpa_driver_bsd_deauthenticate ( void *  priv,
const u8 *  addr,
int  reason_code 
) [static]

Definition at line 932 of file driver_bsd.c.

static void wpa_driver_bsd_deinit ( void *  priv) [static]

Definition at line 1476 of file driver_bsd.c.

static int wpa_driver_bsd_disassociate ( void *  priv,
const u8 *  addr,
int  reason_code 
) [static]

Definition at line 939 of file driver_bsd.c.

static void wpa_driver_bsd_event_receive ( int  sock,
void *  ctx,
void *  sock_ctx 
) [static]

Definition at line 1134 of file driver_bsd.c.

static int wpa_driver_bsd_get_bssid ( void *  priv,
u8 *  bssid 
) [static]

Definition at line 855 of file driver_bsd.c.

static int wpa_driver_bsd_get_capa ( void *  priv,
struct wpa_driver_capa capa 
) [static]

Definition at line 1499 of file driver_bsd.c.

struct wpa_scan_results* wpa_driver_bsd_get_scan_results2 ( void *  priv) [read]

Definition at line 1305 of file driver_bsd.c.

static int wpa_driver_bsd_get_ssid ( void *  priv,
u8 *  ssid 
) [static]

Definition at line 873 of file driver_bsd.c.

static void* wpa_driver_bsd_init ( void *  ctx,
const char *  ifname 
) [static]

Definition at line 1410 of file driver_bsd.c.

static int wpa_driver_bsd_scan ( void *  priv,
struct wpa_driver_scan_params params 
) [static]

Definition at line 1066 of file driver_bsd.c.

static int wpa_driver_bsd_set_auth_alg ( void *  priv,
int  auth_alg 
) [static]

Definition at line 946 of file driver_bsd.c.

static int wpa_driver_bsd_set_countermeasures ( void *  priv,
int  enabled 
) [static]

Definition at line 917 of file driver_bsd.c.

static int wpa_driver_bsd_set_drop_unencrypted ( void *  priv,
int  enabled 
) [static]

Definition at line 925 of file driver_bsd.c.

static int wpa_driver_bsd_set_wpa ( void *  priv,
int  enabled 
) [static]

Definition at line 909 of file driver_bsd.c.

static int wpa_driver_bsd_set_wpa_ie ( struct bsd_driver_data drv,
const u8 *  wpa_ie,
size_t  wpa_ie_len 
) [static]

Definition at line 880 of file driver_bsd.c.

static int wpa_driver_bsd_set_wpa_internal ( void *  priv,
int  wpa,
int  privacy 
) [static]

Definition at line 891 of file driver_bsd.c.


Variable Documentation

Definition at line 1509 of file driver_bsd.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:40