message.h File Reference
Message definitions for WlanModel <-> iwconnect communication.
More...
#include <netinet/in.h>
#include <linux/if.h>
#include <net/ethernet.h>
#include <limits.h>
#include <stdint.h>
Go to the source code of this file.
Detailed Description
Message definitions for WlanModel <-> iwconnect communication.
Definition in file message.h.
Define Documentation
#define ACK_MSG_SIZE PLAIN_MSG_SIZE |
#define DATA_MSG_SIZE sizeof(struct data_msg) |
#define DATA_PREAMBLE_SIZE (sizeof(struct msg_header) + 2 * sizeof(uint16_t)) |
#define DEREGISTRATION_MSG 4 |
#define DEREGISTRATION_MSG_SIZE PLAIN_MSG_SIZE |
#define MAX_FRAME_SIZE (1500 + sizeof(struct ether_header)) |
Maximum size of an original wireless Ethernet frame
Definition at line 32 of file message.h.
#define MAX_MSG_SIZE max(WLAN_MSG_SIZE, REGISTRATION_MSG_SIZE) |
Maximal size of a iwconnect <-> WlanModel message
Definition at line 153 of file message.h.
#define PLAIN_MSG_SIZE sizeof(struct plain_msg) |
#define REGISTRATION_MSG 2 |
Typedef Documentation
Wireless frame data structure
Definition at line 36 of file message.h.
Function Documentation
void debug_msg |
( |
const char * |
message |
) |
|
Print message content to debug output
Definition at line 279 of file message.c.
Checks if it is ACK_MSG
Definition at line 53 of file message.c.
Checks if it is CONFIG_MSG
Definition at line 60 of file message.c.
Checks if it is DATA_MSG
Definition at line 32 of file message.c.
int is_deregistration_msg |
( |
struct msg_header * |
header |
) |
|
Checks if it is DEREGISTRATION_MSG
Definition at line 46 of file message.c.
int is_registration_msg |
( |
struct msg_header * |
header |
) |
|
Checks if it is REGISTRATION_MSG
Definition at line 39 of file message.c.
Variable Documentation
Data message (encapsulated wireless packet)
Configuration information
Virtual device parameter format for registration_msg
Registration information