#include "includes.h"
#include <sys/un.h>
#include <sys/stat.h>
#include <grp.h>
#include <stddef.h>
#include "utils/common.h"
#include "utils/eloop.h"
#include "utils/list.h"
#include "eapol_supp/eapol_supp_sm.h"
#include "config.h"
#include "wpa_supplicant_i.h"
#include "ctrl_iface.h"
Go to the source code of this file.
Classes | |
struct | ctrl_iface_global_priv |
struct | ctrl_iface_priv |
struct | wpa_ctrl_dst |
Functions | |
static int | wpa_supplicant_ctrl_iface_attach (struct ctrl_iface_priv *priv, struct sockaddr_un *from, socklen_t fromlen) |
void | wpa_supplicant_ctrl_iface_deinit (struct ctrl_iface_priv *priv) |
static int | wpa_supplicant_ctrl_iface_detach (struct ctrl_iface_priv *priv, struct sockaddr_un *from, socklen_t fromlen) |
struct ctrl_iface_priv * | wpa_supplicant_ctrl_iface_init (struct wpa_supplicant *wpa_s) |
static int | wpa_supplicant_ctrl_iface_level (struct ctrl_iface_priv *priv, struct sockaddr_un *from, socklen_t fromlen, char *level) |
static void | wpa_supplicant_ctrl_iface_msg_cb (void *ctx, int level, const char *txt, size_t len) |
static char * | wpa_supplicant_ctrl_iface_path (struct wpa_supplicant *wpa_s) |
static void | wpa_supplicant_ctrl_iface_receive (int sock, void *eloop_ctx, void *sock_ctx) |
static void | wpa_supplicant_ctrl_iface_send (struct ctrl_iface_priv *priv, int level, const char *buf, size_t len) |
void | wpa_supplicant_ctrl_iface_wait (struct ctrl_iface_priv *priv) |
void | wpa_supplicant_global_ctrl_iface_deinit (struct ctrl_iface_global_priv *priv) |
struct ctrl_iface_global_priv * | wpa_supplicant_global_ctrl_iface_init (struct wpa_global *global) |
static void | wpa_supplicant_global_ctrl_iface_receive (int sock, void *eloop_ctx, void *sock_ctx) |
static int wpa_supplicant_ctrl_iface_attach | ( | struct ctrl_iface_priv * | priv, |
struct sockaddr_un * | from, | ||
socklen_t | fromlen | ||
) | [static] |
Definition at line 59 of file ctrl_iface_unix.c.
void wpa_supplicant_ctrl_iface_deinit | ( | struct ctrl_iface_priv * | priv | ) |
Definition at line 421 of file ctrl_iface_unix.c.
static int wpa_supplicant_ctrl_iface_detach | ( | struct ctrl_iface_priv * | priv, |
struct sockaddr_un * | from, | ||
socklen_t | fromlen | ||
) | [static] |
Definition at line 79 of file ctrl_iface_unix.c.
struct ctrl_iface_priv* wpa_supplicant_ctrl_iface_init | ( | struct wpa_supplicant * | wpa_s | ) | [read] |
Definition at line 255 of file ctrl_iface_unix.c.
static int wpa_supplicant_ctrl_iface_level | ( | struct ctrl_iface_priv * | priv, |
struct sockaddr_un * | from, | ||
socklen_t | fromlen, | ||
char * | level | ||
) | [static] |
Definition at line 103 of file ctrl_iface_unix.c.
static void wpa_supplicant_ctrl_iface_msg_cb | ( | void * | ctx, |
int | level, | ||
const char * | txt, | ||
size_t | len | ||
) | [static] |
Definition at line 244 of file ctrl_iface_unix.c.
static char* wpa_supplicant_ctrl_iface_path | ( | struct wpa_supplicant * | wpa_s | ) | [static] |
Definition at line 191 of file ctrl_iface_unix.c.
static void wpa_supplicant_ctrl_iface_receive | ( | int | sock, |
void * | eloop_ctx, | ||
void * | sock_ctx | ||
) | [static] |
Definition at line 130 of file ctrl_iface_unix.c.
static void wpa_supplicant_ctrl_iface_send | ( | struct ctrl_iface_priv * | priv, |
int | level, | ||
const char * | buf, | ||
size_t | len | ||
) | [static] |
wpa_supplicant_ctrl_iface_send - Send a control interface packet to monitors : Pointer to private data from wpa_supplicant_ctrl_iface_init() : Priority level of the message : Message data : Message length
Send a packet to all monitor programs attached to the control interface.
Definition at line 489 of file ctrl_iface_unix.c.
void wpa_supplicant_ctrl_iface_wait | ( | struct ctrl_iface_priv * | priv | ) |
Definition at line 543 of file ctrl_iface_unix.c.
void wpa_supplicant_global_ctrl_iface_deinit | ( | struct ctrl_iface_global_priv * | priv | ) |
Definition at line 703 of file ctrl_iface_unix.c.
struct ctrl_iface_global_priv* wpa_supplicant_global_ctrl_iface_init | ( | struct wpa_global * | global | ) | [read] |
Definition at line 626 of file ctrl_iface_unix.c.
static void wpa_supplicant_global_ctrl_iface_receive | ( | int | sock, |
void * | eloop_ctx, | ||
void * | sock_ctx | ||
) | [static] |
Definition at line 592 of file ctrl_iface_unix.c.