Classes | Functions | Variables
wpa_priv.c File Reference
#include "includes.h"
#include <sys/un.h>
#include <sys/stat.h>
#include "common.h"
#include "eloop.h"
#include "common/version.h"
#include "drivers/driver.h"
#include "l2_packet/l2_packet.h"
#include "common/privsep_commands.h"
#include "common/ieee802_11_defs.h"
Include dependency graph for wpa_priv.c:

Go to the source code of this file.

Classes

struct  wpa_priv_interface

Functions

int main (int argc, char *argv[])
static void usage (void)
static void wpa_priv_cmd_associate (struct wpa_priv_interface *iface, void *buf, size_t len)
static void wpa_priv_cmd_get_bssid (struct wpa_priv_interface *iface, struct sockaddr_un *from)
static void wpa_priv_cmd_get_capa (struct wpa_priv_interface *iface, struct sockaddr_un *from)
static void wpa_priv_cmd_get_scan_results (struct wpa_priv_interface *iface, struct sockaddr_un *from)
static void wpa_priv_cmd_get_ssid (struct wpa_priv_interface *iface, struct sockaddr_un *from)
static void wpa_priv_cmd_l2_notify_auth_start (struct wpa_priv_interface *iface, struct sockaddr_un *from)
static void wpa_priv_cmd_l2_register (struct wpa_priv_interface *iface, struct sockaddr_un *from, void *buf, size_t len)
static void wpa_priv_cmd_l2_send (struct wpa_priv_interface *iface, struct sockaddr_un *from, void *buf, size_t len)
static void wpa_priv_cmd_l2_unregister (struct wpa_priv_interface *iface, struct sockaddr_un *from)
static void wpa_priv_cmd_register (struct wpa_priv_interface *iface, struct sockaddr_un *from)
static void wpa_priv_cmd_scan (struct wpa_priv_interface *iface, char *buf, size_t len)
static void wpa_priv_cmd_set_country (struct wpa_priv_interface *iface, char *buf)
static void wpa_priv_cmd_set_key (struct wpa_priv_interface *iface, void *buf, size_t len)
static void wpa_priv_cmd_unregister (struct wpa_priv_interface *iface, struct sockaddr_un *from)
static void wpa_priv_fd_workaround (void)
static void wpa_priv_get_scan_results2 (struct wpa_priv_interface *iface, struct sockaddr_un *from)
static void wpa_priv_interface_deinit (struct wpa_priv_interface *iface)
static struct wpa_priv_interfacewpa_priv_interface_init (const char *dir, const char *params)
static void wpa_priv_l2_rx (void *ctx, const u8 *src_addr, const u8 *buf, size_t len)
static void wpa_priv_receive (int sock, void *eloop_ctx, void *sock_ctx)
static void wpa_priv_send_assoc (struct wpa_priv_interface *iface, int event, union wpa_event_data *data)
static int wpa_priv_send_event (struct wpa_priv_interface *iface, int event, const void *data, size_t data_len)
static void wpa_priv_send_ft_response (struct wpa_priv_interface *iface, union wpa_event_data *data)
static void wpa_priv_send_interface_status (struct wpa_priv_interface *iface, union wpa_event_data *data)
static void wpa_priv_terminate (int sig, void *eloop_ctx, void *signal_ctx)
void wpa_supplicant_event (void *ctx, wpa_event_type event, union wpa_event_data *data)
void wpa_supplicant_rx_eapol (void *ctx, const u8 *src_addr, const u8 *buf, size_t len)

Variables

int wpa_debug_level
struct wpa_driver_opswpa_drivers []

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 959 of file wpa_priv.c.

static void usage ( void  ) [static]

Definition at line 945 of file wpa_priv.c.

static void wpa_priv_cmd_associate ( struct wpa_priv_interface iface,
void *  buf,
size_t  len 
) [static]

Definition at line 181 of file wpa_priv.c.

static void wpa_priv_cmd_get_bssid ( struct wpa_priv_interface iface,
struct sockaddr_un *  from 
) [static]

Definition at line 227 of file wpa_priv.c.

static void wpa_priv_cmd_get_capa ( struct wpa_priv_interface iface,
struct sockaddr_un *  from 
) [static]

Definition at line 302 of file wpa_priv.c.

static void wpa_priv_cmd_get_scan_results ( struct wpa_priv_interface iface,
struct sockaddr_un *  from 
) [static]

Definition at line 167 of file wpa_priv.c.

static void wpa_priv_cmd_get_ssid ( struct wpa_priv_interface iface,
struct sockaddr_un *  from 
) [static]

Definition at line 248 of file wpa_priv.c.

static void wpa_priv_cmd_l2_notify_auth_start ( struct wpa_priv_interface iface,
struct sockaddr_un *  from 
) [static]

Definition at line 410 of file wpa_priv.c.

static void wpa_priv_cmd_l2_register ( struct wpa_priv_interface iface,
struct sockaddr_un *  from,
void *  buf,
size_t  len 
) [static]

Definition at line 347 of file wpa_priv.c.

static void wpa_priv_cmd_l2_send ( struct wpa_priv_interface iface,
struct sockaddr_un *  from,
void *  buf,
size_t  len 
) [static]

Definition at line 418 of file wpa_priv.c.

static void wpa_priv_cmd_l2_unregister ( struct wpa_priv_interface iface,
struct sockaddr_un *  from 
) [static]

Definition at line 400 of file wpa_priv.c.

static void wpa_priv_cmd_register ( struct wpa_priv_interface iface,
struct sockaddr_un *  from 
) [static]

Definition at line 49 of file wpa_priv.c.

static void wpa_priv_cmd_scan ( struct wpa_priv_interface iface,
char *  buf,
size_t  len 
) [static]

Definition at line 101 of file wpa_priv.c.

static void wpa_priv_cmd_set_country ( struct wpa_priv_interface iface,
char *  buf 
) [static]

Definition at line 450 of file wpa_priv.c.

static void wpa_priv_cmd_set_key ( struct wpa_priv_interface iface,
void *  buf,
size_t  len 
) [static]

Definition at line 274 of file wpa_priv.c.

static void wpa_priv_cmd_unregister ( struct wpa_priv_interface iface,
struct sockaddr_un *  from 
) [static]

Definition at line 89 of file wpa_priv.c.

static void wpa_priv_fd_workaround ( void  ) [static]

Definition at line 925 of file wpa_priv.c.

static void wpa_priv_get_scan_results2 ( struct wpa_priv_interface iface,
struct sockaddr_un *  from 
) [static]

Definition at line 121 of file wpa_priv.c.

static void wpa_priv_interface_deinit ( struct wpa_priv_interface iface) [static]

Definition at line 540 of file wpa_priv.c.

static struct wpa_priv_interface* wpa_priv_interface_init ( const char *  dir,
const char *  params 
) [static, read]

Definition at line 564 of file wpa_priv.c.

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

Definition at line 323 of file wpa_priv.c.

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

Definition at line 461 of file wpa_priv.c.

static void wpa_priv_send_assoc ( struct wpa_priv_interface iface,
int  event,
union wpa_event_data data 
) [static]

Definition at line 707 of file wpa_priv.c.

static int wpa_priv_send_event ( struct wpa_priv_interface iface,
int  event,
const void *  data,
size_t  data_len 
) [static]

Definition at line 681 of file wpa_priv.c.

static void wpa_priv_send_ft_response ( struct wpa_priv_interface iface,
union wpa_event_data data 
) [static]

Definition at line 800 of file wpa_priv.c.

static void wpa_priv_send_interface_status ( struct wpa_priv_interface iface,
union wpa_event_data data 
) [static]

Definition at line 768 of file wpa_priv.c.

static void wpa_priv_terminate ( int  sig,
void *  eloop_ctx,
void *  signal_ctx 
) [static]

Definition at line 918 of file wpa_priv.c.

void wpa_supplicant_event ( void *  ctx,
enum wpa_event_type  event,
union wpa_event_data data 
)

wpa_supplicant_event - Report a driver event for wpa_supplicant : Context pointer (wpa_s); this is the ctx variable registered with struct wpa_driver_ops::init() : event type (defined above) : possible extra data for the event

Driver wrapper code should call this function whenever an event is received from the driver.

Definition at line 828 of file wpa_priv.c.

void wpa_supplicant_rx_eapol ( void *  ctx,
const u8 *  src_addr,
const u8 *  buf,
size_t  len 
)

Definition at line 891 of file wpa_priv.c.


Variable Documentation

Definition at line 29 of file wpa_debug.c.

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:25