PMTypes.h File Reference

#include <limits.h>
#include <netinet/in.h>
#include <net/ethernet.h>
#include <linux/if_ether.h>
#include <linux/types.h>
#include <linux/wireless.h>

Go to the source code of this file.

Classes

struct  wireless_config
struct  wireless_info
struct  msgHeader
struct  s_dataMsg
union  vifParameter
struct  s_configNotification
struct  configMsg
struct  s_vifRegistrationData
struct  s_registrationInfo
struct  registrationMsg
struct  plainMsg

Defines

#define KILO   1e3
#define MEGA   1e6
#define GIGA   1e9
#define MAX_NUM_VIF   2
#define MAX_FRAME_SIZE   (1500 + sizeof(struct ether_header))
#define max(a, b)   ((a) > (b) ? (a) : (b))
#define DATA_MSG   0
#define DATA_PREAMBLE_SIZE   (sizeof(msgHeader) + 2 * sizeof(uint16_t))
#define DATA_MSG_SIZE   sizeof(dataMsg)
#define CONFIG_MSG   1
#define CONFIG_MSG_SIZE   sizeof(configMsg)
#define REGISTRATION_MSG   2
#define REGISTRATION_MSG_SIZE   sizeof(registrationMsg)
#define PLAIN_MSG_SIZE   sizeof(plainMsg)
#define ACK_MSG   3
#define ACK_MSG_SIZE   PLAIN_MSG_SIZE
#define DEREGISTRATION_MSG   4
#define DEREGISTRATION_MSG_SIZE   PLAIN_MSG_SIZE
#define MAX_MSG_SIZE   max(DATA_MSG_SIZE, REGISTRATION_MSG_SIZE)

Typedefs

typedef struct iw_statistics iwstats
typedef struct iw_range iwrange
typedef struct iw_param iwparam
typedef struct iw_freq iwfreq
typedef struct iw_quality iwqual
typedef struct iw_priv_args iwprivargs
typedef struct sockaddr sockaddr
typedef unsigned char mac_addr [ETH_ALEN]
typedef char host_id [2 *ETH_ALEN+1]
typedef char rawFrame [MAX_FRAME_SIZE]
typedef struct s_dataMsg dataMsg
typedef struct s_configNotification configNotification
typedef struct
s_vifRegistrationData 
vifRegistrationData
typedef struct s_registrationInfo registrationInfo

Variables

struct s_dataMsg __packed__


Define Documentation

#define ACK_MSG   3

Definition at line 245 of file PMTypes.h.

#define ACK_MSG_SIZE   PLAIN_MSG_SIZE

Definition at line 246 of file PMTypes.h.

#define CONFIG_MSG   1

Definition at line 237 of file PMTypes.h.

#define CONFIG_MSG_SIZE   sizeof(configMsg)

Definition at line 238 of file PMTypes.h.

#define DATA_MSG   0

PM MESSAGE TYPES

Definition at line 233 of file PMTypes.h.

#define DATA_MSG_SIZE   sizeof(dataMsg)

Definition at line 235 of file PMTypes.h.

#define DATA_PREAMBLE_SIZE   (sizeof(msgHeader) + 2 * sizeof(uint16_t))

Definition at line 234 of file PMTypes.h.

#define DEREGISTRATION_MSG   4

Definition at line 248 of file PMTypes.h.

#define DEREGISTRATION_MSG_SIZE   PLAIN_MSG_SIZE

Definition at line 249 of file PMTypes.h.

#define GIGA   1e9

Definition at line 37 of file PMTypes.h.

#define KILO   1e3

Header to include PacketModeller related types INCLUDES IW TYPES If we didn't include iwlib.h before, define iw data types ourselves. This is used to compile WlanModel without dependency to wireless-tools headers (taken from /usr/include/iwlib.h) Some usefull constants

Definition at line 35 of file PMTypes.h.

#define max ( a,
 )     ((a) > (b) ? (a) : (b))

Definition at line 120 of file PMTypes.h.

#define MAX_FRAME_SIZE   (1500 + sizeof(struct ether_header))

maximal size of an Ethernet frame (MTU 1500)

Definition at line 115 of file PMTypes.h.

#define MAX_MSG_SIZE   max(DATA_MSG_SIZE, REGISTRATION_MSG_SIZE)

Definition at line 252 of file PMTypes.h.

#define MAX_NUM_VIF   2

PM VIF DATA TYPES Maximum number of virtual interfaces that WlanModel can handle

Definition at line 112 of file PMTypes.h.

#define MEGA   1e6

Definition at line 36 of file PMTypes.h.

#define PLAIN_MSG_SIZE   sizeof(plainMsg)

Definition at line 243 of file PMTypes.h.

#define REGISTRATION_MSG   2

Definition at line 240 of file PMTypes.h.

#define REGISTRATION_MSG_SIZE   sizeof(registrationMsg)

Definition at line 241 of file PMTypes.h.


Typedef Documentation

Definition at line 175 of file PMTypes.h.

typedef struct s_dataMsg dataMsg

Definition at line 151 of file PMTypes.h.

typedef char host_id[2 *ETH_ALEN+1]

Definition at line 118 of file PMTypes.h.

typedef struct iw_freq iwfreq

Definition at line 43 of file PMTypes.h.

typedef struct iw_param iwparam

Definition at line 42 of file PMTypes.h.

typedef struct iw_priv_args iwprivargs

Definition at line 45 of file PMTypes.h.

typedef struct iw_quality iwqual

Definition at line 44 of file PMTypes.h.

typedef struct iw_range iwrange

Definition at line 41 of file PMTypes.h.

typedef struct iw_statistics iwstats

Shortcuts

Definition at line 40 of file PMTypes.h.

typedef unsigned char mac_addr[ETH_ALEN]

Definition at line 117 of file PMTypes.h.

typedef char rawFrame[MAX_FRAME_SIZE]

Container for RAW Ethernet frame

Definition at line 138 of file PMTypes.h.

Definition at line 211 of file PMTypes.h.

typedef struct sockaddr sockaddr

Definition at line 46 of file PMTypes.h.

Definition at line 199 of file PMTypes.h.


Variable Documentation

Vif registration information

Host registration information


Generated on Mon Feb 8 14:55:06 2010 for WlanModel by  doxygen 1.5.8