Classes | Functions | Variables
driver_privsep.c File Reference
#include "includes.h"
#include <sys/un.h>
#include "common.h"
#include "driver.h"
#include "eloop.h"
#include "common/privsep_commands.h"
Include dependency graph for driver_privsep.c:

Go to the source code of this file.

Classes

struct  wpa_driver_privsep_data

Functions

static int wpa_driver_privsep_associate (void *priv, struct wpa_driver_associate_params *params)
static int wpa_driver_privsep_deauthenticate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_privsep_deinit (void *priv)
static int wpa_driver_privsep_disassociate (void *priv, const u8 *addr, int reason_code)
static void wpa_driver_privsep_event_assoc (void *ctx, enum wpa_event_type event, u8 *buf, size_t len)
static void wpa_driver_privsep_event_ft_response (void *ctx, u8 *buf, size_t len)
static void wpa_driver_privsep_event_interface_status (void *ctx, u8 *buf, size_t len)
static void wpa_driver_privsep_event_michael_mic_failure (void *ctx, u8 *buf, size_t len)
static void wpa_driver_privsep_event_pmkid_candidate (void *ctx, u8 *buf, size_t len)
static void wpa_driver_privsep_event_rx_eapol (void *ctx, u8 *buf, size_t len)
static void wpa_driver_privsep_event_stkstart (void *ctx, u8 *buf, size_t len)
static int wpa_driver_privsep_get_bssid (void *priv, u8 *bssid)
static int wpa_driver_privsep_get_capa (void *priv, struct wpa_driver_capa *capa)
static const u8 * wpa_driver_privsep_get_mac_addr (void *priv)
static struct wpa_scan_resultswpa_driver_privsep_get_scan_results2 (void *priv)
static int wpa_driver_privsep_get_ssid (void *priv, u8 *ssid)
static void * wpa_driver_privsep_init (void *ctx, const char *ifname)
static void wpa_driver_privsep_receive (int sock, void *eloop_ctx, void *sock_ctx)
static int wpa_driver_privsep_scan (void *priv, struct wpa_driver_scan_params *params)
static int wpa_driver_privsep_set_country (void *priv, const char *alpha2)
static int wpa_driver_privsep_set_key (const char *ifname, void *priv, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len)
static int wpa_driver_privsep_set_param (void *priv, const char *param)
static int wpa_priv_cmd (struct wpa_driver_privsep_data *drv, int cmd, const void *data, size_t data_len, void *reply, size_t *reply_len)
static int wpa_priv_reg_cmd (struct wpa_driver_privsep_data *drv, int cmd)

Variables

struct wpa_driver_ops wpa_driver_privsep_ops
struct wpa_driver_opswpa_drivers []

Function Documentation

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

Definition at line 227 of file driver_privsep.c.

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

Definition at line 302 of file driver_privsep.c.

static void wpa_driver_privsep_deinit ( void *  priv) [static]

Definition at line 539 of file driver_privsep.c.

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

Definition at line 313 of file driver_privsep.c.

static void wpa_driver_privsep_event_assoc ( void *  ctx,
enum wpa_event_type  event,
u8 *  buf,
size_t  len 
) [static]

Definition at line 324 of file driver_privsep.c.

static void wpa_driver_privsep_event_ft_response ( void *  ctx,
u8 *  buf,
size_t  len 
) [static]

Definition at line 416 of file driver_privsep.c.

static void wpa_driver_privsep_event_interface_status ( void *  ctx,
u8 *  buf,
size_t  len 
) [static]

Definition at line 355 of file driver_privsep.c.

static void wpa_driver_privsep_event_michael_mic_failure ( void *  ctx,
u8 *  buf,
size_t  len 
) [static]

Definition at line 375 of file driver_privsep.c.

static void wpa_driver_privsep_event_pmkid_candidate ( void *  ctx,
u8 *  buf,
size_t  len 
) [static]

Definition at line 389 of file driver_privsep.c.

static void wpa_driver_privsep_event_rx_eapol ( void *  ctx,
u8 *  buf,
size_t  len 
) [static]

Definition at line 433 of file driver_privsep.c.

static void wpa_driver_privsep_event_stkstart ( void *  ctx,
u8 *  buf,
size_t  len 
) [static]

Definition at line 403 of file driver_privsep.c.

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

Definition at line 269 of file driver_privsep.c.

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

Definition at line 703 of file driver_privsep.c.

static const u8* wpa_driver_privsep_get_mac_addr ( void *  priv) [static]

Definition at line 717 of file driver_privsep.c.

static struct wpa_scan_results* wpa_driver_privsep_get_scan_results2 ( void *  priv) [static, read]

Definition at line 118 of file driver_privsep.c.

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

Definition at line 282 of file driver_privsep.c.

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

Definition at line 523 of file driver_privsep.c.

static void wpa_driver_privsep_receive ( int  sock,
void *  eloop_ctx,
void *  sock_ctx 
) [static]

Definition at line 441 of file driver_privsep.c.

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

Definition at line 105 of file driver_privsep.c.

static int wpa_driver_privsep_set_country ( void *  priv,
const char *  alpha2 
) [static]

Definition at line 725 of file driver_privsep.c.

static int wpa_driver_privsep_set_key ( const char *  ifname,
void *  priv,
enum wpa_alg  alg,
const u8 *  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 193 of file driver_privsep.c.

static int wpa_driver_privsep_set_param ( void *  priv,
const char *  param 
) [static]

Definition at line 568 of file driver_privsep.c.

static int wpa_priv_cmd ( struct wpa_driver_privsep_data drv,
int  cmd,
const void *  data,
size_t  data_len,
void *  reply,
size_t *  reply_len 
) [static]

Definition at line 49 of file driver_privsep.c.

static int wpa_priv_reg_cmd ( struct wpa_driver_privsep_data drv,
int  cmd 
) [static]

Definition at line 36 of file driver_privsep.c.


Variable Documentation

Initial value:
 {
        "privsep",
        "wpa_supplicant privilege separated driver",
        .get_bssid = wpa_driver_privsep_get_bssid,
        .get_ssid = wpa_driver_privsep_get_ssid,
        .set_key = wpa_driver_privsep_set_key,
        .init = wpa_driver_privsep_init,
        .deinit = wpa_driver_privsep_deinit,
        .set_param = wpa_driver_privsep_set_param,
        .scan2 = wpa_driver_privsep_scan,
        .deauthenticate = wpa_driver_privsep_deauthenticate,
        .disassociate = wpa_driver_privsep_disassociate,
        .associate = wpa_driver_privsep_associate,
        .get_capa = wpa_driver_privsep_get_capa,
        .get_mac_addr = wpa_driver_privsep_get_mac_addr,
        .get_scan_results2 = wpa_driver_privsep_get_scan_results2,
        .set_country = wpa_driver_privsep_set_country,
}

Definition at line 734 of file driver_privsep.c.

Initial value:

Definition at line 754 of file driver_privsep.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:23