ctrl_iface.c File Reference

WPA Supplicant / Control interface (shared code for all backends). More...

#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "wpa.h"
#include "wpa_supplicant.h"
#include "config.h"
#include "eapol_sm.h"
#include "wpa_supplicant_i.h"
#include "ctrl_iface.h"
#include "l2_packet.h"
#include "preauth.h"
#include "pmksa_cache.h"
#include "wpa_ctrl.h"
#include "eap.h"

Include dependency graph for ctrl_iface.c:

Go to the source code of this file.

Functions

char * wpa_supplicant_ctrl_iface_process (struct wpa_supplicant *wpa_s, char *buf, size_t *resp_len)
 Process ctrl_iface command.
char * wpa_supplicant_global_ctrl_iface_process (struct wpa_global *global, char *buf, size_t *resp_len)
 Process global ctrl_iface command.


Detailed Description

WPA Supplicant / Control interface (shared code for all backends).

Copyright
Copyright (c) 2004-2006, Jouni Malinen <[email protected]>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file ctrl_iface.c.


Function Documentation

char* wpa_supplicant_ctrl_iface_process struct wpa_supplicant wpa_s,
char *  buf,
size_t *  resp_len
 

Process ctrl_iface command.

Parameters:
wpa_s Pointer to wpa_supplicant data
buf Received command buffer (nul terminated string)
resp_len Variable to be set to the response length
Returns:
Response (*resp_len bytes) or NULL on failure
Control interface backends call this function when receiving a message that they do not process internally, i.e., anything else than ATTACH, DETACH, and LEVEL. The return response value is then sent to the external program that sent the command. Caller is responsible for freeing the buffer after this. If NULL is returned, *resp_len can be set to two special values: 1 = send "FAIL\n" response, 2 = send "OK\n" response. If *resp_len has any other value, no response is sent.

Definition at line 1068 of file ctrl_iface.c.

Here is the call graph for this function:

char* wpa_supplicant_global_ctrl_iface_process struct wpa_global global,
char *  buf,
size_t *  resp_len
 

Process global ctrl_iface command.

Parameters:
global Pointer to global data from wpa_supplicant_init()
buf Received command buffer (nul terminated string)
resp_len Variable to be set to the response length
Returns:
Response (*resp_len bytes) or NULL on failure
Control interface backends call this function when receiving a message from the global ctrl_iface connection. The return response value is then sent to the external program that sent the command. Caller is responsible for freeing the buffer after this. If NULL is returned, *resp_len can be set to two special values: 1 = send "FAIL\n" response, 2 = send "OK\n" response. If *resp_len has any other value, no response is sent.

Definition at line 1325 of file ctrl_iface.c.

Here is the call graph for this function:


Generated on Sun Dec 31 13:50:06 2006 for wpa_supplicant by  doxygen 1.4.2