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.
Define Documentation
#define ACK_MSG_SIZE PLAIN_MSG_SIZE |
#define DATA_MSG_SIZE sizeof(dataMsg) |
#define DATA_PREAMBLE_SIZE (sizeof(msgHeader) + 2 * sizeof(uint16_t)) |
#define DEREGISTRATION_MSG 4 |
#define DEREGISTRATION_MSG_SIZE PLAIN_MSG_SIZE |
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, |
|
|
b |
|
) |
((a) > (b) ? (a) : (b)) |
#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) |
PM VIF DATA TYPES Maximum number of virtual interfaces that WlanModel can handle
Definition at line 112 of file PMTypes.h.
#define REGISTRATION_MSG 2 |
Typedef Documentation
typedef char host_id[2 *ETH_ALEN+1] |
typedef struct iw_quality iwqual |
typedef struct iw_statistics iwstats |
typedef unsigned char mac_addr[ETH_ALEN] |
Container for RAW Ethernet frame
Definition at line 138 of file PMTypes.h.
Variable Documentation
Vif registration information
Host registration information