Classes | Defines | Enumerations | Functions | Variables
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

struct iapp_hdr __attribute__ ((packed))
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

enum IAPP_COMMAND __attribute__
u8 addr_len
u8 command
u8 control
u16 ctx_block_len
u8 current_ap [ETH_ALEN]
u8 da [ETH_ALEN]
u8 dsap
be16 identifier
u8 iv [8]
be16 len
be16 length
u8 mac_addr [ETH_ALEN]
u8 new_ap_ack_authenticator [48]
u8 reserved
u8 sa [ETH_ALEN]
u16 sec_block_len
be16 seq_num
u8 ssap
u8 status
u8 version
u8 xid_info [3]

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

struct iapp_hdr __attribute__ ( (packed)  )
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

Definition at line 91 of file iapp.c.

u8 command

Definition at line 71 of file iapp.c.

u8 control

Definition at line 108 of file iapp.c.

Definition at line 118 of file iapp.c.

Definition at line 148 of file iapp.c.

u8 da[ETH_ALEN]

Definition at line 103 of file iapp.c.

u8 dsap

Definition at line 106 of file iapp.c.

Definition at line 72 of file iapp.c.

u8 iv[8]

Definition at line 166 of file iapp.c.

Definition at line 105 of file iapp.c.

Definition at line 73 of file iapp.c.

Definition at line 93 of file iapp.c.

Definition at line 174 of file iapp.c.

Definition at line 92 of file iapp.c.

u8 sa[ETH_ALEN]

Definition at line 104 of file iapp.c.

Definition at line 167 of file iapp.c.

u16 seq_num

Definition at line 94 of file iapp.c.

u8 ssap

Definition at line 107 of file iapp.c.

u8 status

Definition at line 126 of file iapp.c.

u8 version

Definition at line 70 of file iapp.c.

u8 xid_info[3]

Definition at line 109 of file iapp.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:38