summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/libwellenreiter/source/wl_types.hh
blob: afc105c02a2c369edf28844e87d5813c472e313c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* 
 * Global bufffer size and type definitions
 *
 * $Id$
 *
 */

#ifndef WL_TYPES_HH
#define WL_TYPES_HH

/* Type definitions, to be continued */
#define WL_NETFOUND 01
#define WL_NETLOST  02
#define WL_STARTSNIFF 98
#define WL_STOPSNIFF  99

/* Socket specific */
#define WL_SOCKBUF 512 /* Buffer for wl_send and wl_recv calls */

/* Channelswitching */
typedef struct {
  int type;        /* Type of card (chip) */
  char iface[6];   /* Interface of card   */
} wl_cardtype_t;


/* WL network structure */
typedef struct {
  int net_type;    /* 1 = Accesspoint ; 2 = Ad-Hoc   */
  int ssid_len;    /* Length of SSID                 */
  int channel;     /* Channel                        */
  int wep;         /* 1 = WEP enabled ; 0 = disabled */
  char mac[64];    /* MAC address of Accesspoint     */
  char bssid[128]; /* BSSID of Net                   */
} wl_network_t;

/* Config specific */
#define WL_CONFFILE "sample.conf"
#define WL_CONFBUFF 128


#endif /* WL_TYPES_HH */