41 #ifndef __MOEP80211_MODULE_H
42 #define __MOEP80211_MODULE_H
46 #include <moep/types.h>
69 void *(* create)(void);
86 void *(* parse)(u8 **raw,
size_t *maxlen);
116 int (*
build)(
void *hdr, u8 *raw,
size_t maxlen);
struct moep_frame * moep_frame_t
a moep frame
Definition: frame.h:45
void * moep_dev_get_priv(moep_dev_t dev, struct moep_dev_ops *ops)
return the private data of a moep device
void moep_frame_convert(moep_frame_t frame, struct moep_frame_ops *l1_ops, struct moep_frame_ops *l2_ops)
convert a frame
moep device operations
Definition: module.h:217
int(* close)(int fd, void *priv)
close a device
Definition: module.h:231
void * moep_frame_l2_hdr(moep_frame_t frame, struct moep_frame_ops *l2_ops)
layer 2 header
void * moep_frame_l1_hdr(moep_frame_t frame, struct moep_frame_ops *l1_ops)
layer 1 header
void(* destroy)(void *hdr)
destroy a header
Definition: module.h:126
int(* build_len)(void *hdr)
length of the built header
Definition: module.h:100
frame header operations
Definition: module.h:57
struct moep_dev * moep_dev_t
a moep device
Definition: dev.h:46
moep_frame_t moep_frame_create(struct moep_frame_ops *l1_ops, struct moep_frame_ops *l2_ops)
create a frame
int(* build)(void *hdr, u8 *raw, size_t maxlen)
build a header
Definition: module.h:116
moep_dev_t moep_dev_open(int fd, int mtu, struct moep_dev_ops *ops, void *priv, struct moep_frame_ops *l1_ops, struct moep_frame_ops *l2_ops)
open a moep device