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"
Include dependency graph for iapp.c:

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_dataiapp_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"

Definition at line 59 of file iapp.c.

#define IAPP_TCP_PORT   3517

Definition at line 61 of file iapp.c.

#define IAPP_UDP_PORT   3517

Definition at line 60 of file iapp.c.

#define IAPP_VERSION   0

Definition at line 71 of file iapp.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
IAPP_MOVE_SUCCESSFUL 
IAPP_MOVE_DENIED 
IAPP_MOVE_STALE_MOVE 

Definition at line 126 of file iapp.c.

anonymous enum
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

void iapp_deinit ( struct iapp_data iapp  ) 

Definition at line 510 of file iapp.c.

struct iapp_data* iapp_init ( struct hostapd_data hapd,
const char *  iface 
) [read]

Definition at line 391 of file iapp.c.

void iapp_new_station ( struct iapp_data iapp,
struct sta_info sta 
)

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]

Definition at line 277 of file iapp.c.

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]

Definition at line 184 of file iapp.c.

static void iapp_send_layer2_update ( struct iapp_data iapp,
u8 addr 
) [static]

Definition at line 217 of file iapp.c.


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:02:13 2013