hostapd.h File Reference

hostapd / Initialization and configuration Host AP kernel driver More...

#include "common.h"
#include "ap.h"
#include "config.h"

Include dependency graph for hostapd.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define IFNAMSIZ   16
#define ETH_P_ALL   0x0003
#define ETH_P_PAE   0x888E
#define BIT(x)   (1 << (x))
#define MAC2STR(a)   (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
#define MACSTR   "%02x:%02x:%02x:%02x:%02x:%02x"
#define MAX_VLAN_ID   4094
#define IEEE80211_DA_FROMDS   addr1
#define IEEE80211_BSSID_FROMDS   addr2
#define IEEE80211_SA_FROMDS   addr3
#define IEEE80211_HDRLEN   (sizeof(struct ieee80211_hdr))
#define IEEE80211_FC(type, stype)   host_to_le16((type << 2) | (stype << 4))
#define HOSTAPD_MTU   2290
#define HOSTAPD_DEBUG(level, args...)
#define HOSTAPD_DEBUG_COND(level)   (hapd->conf->debug >= (level))

Typedefs

typedef void(* hostapd_iface_cb )(struct hostapd_iface *iface, int status)
 Generic callback type for per-iface asynchronous requests.

Functions

void hostapd_new_assoc_sta (struct hostapd_data *hapd, struct sta_info *sta, int reassoc)
 Notify that a new station associated with the AP.
void hostapd_logger (struct hostapd_data *hapd, const u8 *addr, unsigned int module, int level, const char *fmt,...) PRINTF_FORMAT(5
const char * hostapd_ip_txt (const struct hostapd_ip_addr *addr, char *buf, size_t buflen)
int hostapd_ip_diff (struct hostapd_ip_addr *a, struct hostapd_ip_addr *b)

Variables

ieee8023_hdr STRUCT_PACKED
unsigned char rfc1042_header [6]


Detailed Description

hostapd / Initialization and configuration Host AP kernel driver

Copyright
Copyright (c) 2002-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 hostapd.h.


Define Documentation

#define HOSTAPD_DEBUG level,
args...   ) 
 

Value:

do { \
        if (hapd->conf == NULL || hapd->conf->debug >= (level)) \
                printf(args); \
} while (0)

Definition at line 246 of file hostapd.h.


Typedef Documentation

typedef void(* hostapd_iface_cb)(struct hostapd_iface *iface, int status)
 

Generic callback type for per-iface asynchronous requests.

Parameters:
iface the interface the event occured on.
status 0 if the request succeeded; -1 if the request failed.

Definition at line 180 of file hostapd.h.


Function Documentation

void hostapd_new_assoc_sta struct hostapd_data hapd,
struct sta_info *  sta,
int  reassoc
 

Notify that a new station associated with the AP.

Parameters:
hapd Pointer to BSS data
sta Pointer to the associated STA data
reassoc 1 to indicate this was a re-association; 0 = first association
This function will be called whenever a station associates with the AP. It can be called for ieee802_11.c for drivers that export MLME to hostapd and from driver_*.c for drivers that take care of management frames (IEEE 802.11 authentication and association) internally.

Definition at line 275 of file hostapd.c.


Generated on Sun Dec 31 13:44:57 2006 for hostapd by  doxygen 1.4.2