Moep Library
2.0-nc
|
Files | |
file | moep80211.h |
Data Structures | |
struct | moep80211_hdr |
Macros | |
#define | MOEP80211_FRAME_DISCRIMINATOR 0xff5e0000 |
Functions | |
void | moep_set_moep80211_discriminator (u32 d) |
set the moep80211 discriminator More... | |
moep_dev_t | moep_dev_moep80211_open (const char *devname, u32 freq, enum moep80211_chan_width chan_width, u32 freq1, u32 freq2, int mtu) |
open a moep80211 device More... | |
moep_dev_t | moep_dev_moep80211_unix_open (const char *devname, int mtu) |
open a moep80211 unix device More... | |
moep_frame_t | moep_frame_moep80211_create (void) |
create a moep80211 frame More... | |
moep_frame_t | moep_frame_moep80211_unix_create (void) |
create a moep80211 unix frame More... | |
struct moep80211_hdr * | moep_frame_moep80211_hdr (moep_frame_t frame) |
moep80211 header More... | |
void moep_set_moep80211_discriminator | ( | u32 | d | ) |
set the moep80211 discriminator
d | the moep80211 discriminator |
moep_dev_t moep_dev_moep80211_open | ( | const char * | devname, |
u32 | freq, | ||
enum moep80211_chan_width | chan_width, | ||
u32 | freq1, | ||
u32 | freq2, | ||
int | mtu | ||
) |
open a moep80211 device
The function moep_dev_moep80211_open() is used to open a moep80211 device.
devname | the device name; This can either be the physical device name e.g. 'phy0' or an interface name e.g. 'wlan1'. |
freq | the channel frequency in MHz |
chan_width | the channel width |
freq1 | the first center frequency in MHz; This value may be ignored depending on the channel width. |
freq2 | the second center frequency in MHz; This value may be ignored depending on the channel width. |
mtu | the MTU of the device; This includes all headers. |
NULL | on error, errno is set appropriately. |
EINVAL | Invalid argument |
EMFILE | Too many open files; Some filedescriptors are too big for select. |
ENOMEM | Not enough memory available |
moep_dev_t moep_dev_moep80211_unix_open | ( | const char * | devname, |
int | mtu | ||
) |
open a moep80211 unix device
The function moep_dev_moep80211_unix_open() is used to open a moep80211 unix device.
devname | the device name; This must be the path of a unix domain socket. |
mtu | the MTU of the device; This includes all headers. |
NULL | on error, errno is set appropriately. |
EINVAL | Invalid argument |
EMFILE | Too many open files; Some filedescriptors are too big for select. |
ENOMEM | Not enough memory available |
moep_frame_t moep_frame_moep80211_create | ( | void | ) |
create a moep80211 frame
The function moep_frame_moep80211_create() is used to create a moep80211 frame.
NULL | on error, errno is set appropriately. |
moep_frame_t moep_frame_moep80211_unix_create | ( | void | ) |
create a moep80211 unix frame
The function moep_frame_moep80211_unix_create() is used to create a moep80211 unix frame.
NULL | on error, errno is set appropriately. |
struct moep80211_hdr* moep_frame_moep80211_hdr | ( | moep_frame_t | frame | ) |
moep80211 header
The function moep_frame_moep80211_hdr() is used to get the moep80211 header of a frame.
frame | the frame |
NULL | on error, errno is set appropriately. |
EACCES | The frame is not a moep80211 frame. |
ENOMEM | Not enough memory available |