iapp.c File Reference
#include "utils/includes.h"
#include <net/if.h>
#include <sys/ioctl.h>
#include <netpacket/packet.h>
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/ieee802_11_defs.h"
#include "hostapd.h"
#include "ap_config.h"
#include "ieee802_11.h"
#include "sta_info.h"
#include "iapp.h"
Go to the source code of this file.
Classes |
struct | iapp_ack_security_block |
struct | iapp_add_notify |
struct | iapp_cache_notify |
struct | iapp_cache_response |
struct | iapp_data |
struct | iapp_hdr |
struct | iapp_layer2_update |
struct | iapp_move_notify |
struct | iapp_move_response |
struct | iapp_send_security_block |
Defines |
#define | IAPP_MULTICAST "224.0.1.178" |
#define | IAPP_TCP_PORT 3517 |
#define | IAPP_UDP_PORT 3517 |
#define | IAPP_VERSION 0 |
Enumerations |
enum | { IAPP_MOVE_SUCCESSFUL = 0,
IAPP_MOVE_DENIED = 1,
IAPP_MOVE_STALE_MOVE = 2
} |
enum | { IAPP_CACHE_SUCCESSFUL = 0,
IAPP_CACHE_STALE_CACHE = 1
} |
enum | IAPP_COMMAND {
IAPP_CMD_ADD_notify = 0,
IAPP_CMD_MOVE_notify = 1,
IAPP_CMD_MOVE_response = 2,
IAPP_CMD_Send_Security_Block = 3,
IAPP_CMD_ACK_Security_Block = 4,
IAPP_CMD_CACHE_notify = 5,
IAPP_CMD_CACHE_response = 6
} |
Functions |
void | iapp_deinit (struct iapp_data *iapp) |
struct iapp_data * | iapp_init (struct hostapd_data *hapd, const char *iface) |
void | iapp_new_station (struct iapp_data *iapp, struct sta_info *sta) |
static void | iapp_process_add_notify (struct iapp_data *iapp, struct sockaddr_in *from, struct iapp_hdr *hdr, int len) |
static void | iapp_receive_udp (int sock, void *eloop_ctx, void *sock_ctx) |
static void | iapp_send_add (struct iapp_data *iapp, u8 *mac_addr, u16 seq_num) |
static void | iapp_send_layer2_update (struct iapp_data *iapp, u8 *addr) |
Variables |
struct iapp_hdr | packed |
Define Documentation
#define IAPP_MULTICAST "224.0.1.178" |
#define IAPP_TCP_PORT 3517 |
#define IAPP_UDP_PORT 3517 |
Enumeration Type Documentation
- Enumerator:
IAPP_MOVE_SUCCESSFUL |
|
IAPP_MOVE_DENIED |
|
IAPP_MOVE_STALE_MOVE |
|
Definition at line 126 of file iapp.c.
- Enumerator:
IAPP_CACHE_SUCCESSFUL |
|
IAPP_CACHE_STALE_CACHE |
|
Definition at line 154 of file iapp.c.
- Enumerator:
IAPP_CMD_ADD_notify |
|
IAPP_CMD_MOVE_notify |
|
IAPP_CMD_MOVE_response |
|
IAPP_CMD_Send_Security_Block |
|
IAPP_CMD_ACK_Security_Block |
|
IAPP_CMD_CACHE_notify |
|
IAPP_CMD_CACHE_response |
|
Definition at line 73 of file iapp.c.
Function Documentation
iapp_new_station - IAPP processing for a new STA : IAPP data : The associated station
Definition at line 249 of file iapp.c.
static void iapp_process_add_notify |
( |
struct iapp_data * |
iapp, |
|
|
struct sockaddr_in * |
from, |
|
|
struct iapp_hdr * |
hdr, |
|
|
int |
len | |
|
) |
| | [static] |
static void iapp_receive_udp |
( |
int |
sock, |
|
|
void * |
eloop_ctx, |
|
|
void * |
sock_ctx | |
|
) |
| | [static] |
iapp_receive_udp - Process IAPP UDP frames : File descriptor for the socket : IAPP data (struct iapp_data *) : Not used
Definition at line 320 of file iapp.c.
static void iapp_send_add |
( |
struct iapp_data * |
iapp, |
|
|
u8 * |
mac_addr, |
|
|
u16 |
seq_num | |
|
) |
| | [static] |
static void iapp_send_layer2_update |
( |
struct iapp_data * |
iapp, |
|
|
u8 * |
addr | |
|
) |
| | [static] |
Variable Documentation