|
|
|
|
/home/brennan/n-sim/OrbisQuartus/server/protocols/mac_lib.h File ReferenceFunction interface for various MAC libraries. More...
#include <dlfcn.h>
#include <string.h>
#include <limits.h>
#include <oq.h>
#include <sim_if.h>
Go to the source code of this file.
|
Classes |
struct | protocol_entry |
Typedefs |
typedef int(* | mac_filter_t )(struct oq_req_resp *) |
typedef long long(* | mac_throughput_t )(void) |
Enumerations |
enum | {
OQ_SKB_DROP = 0,
OQ_SKB_PASS = 1,
OQ_SKB_WAIT = 2,
OQ_SKB_INJECT = 3,
OQ_SKB_SEND = 4,
OQ_SKB_RECV = 5,
OQ_SKB_RELEASE = 6
} |
Functions |
long long | null_throughput (void) |
int | null_filter (struct oq_req_resp *) |
int | protocol_filter (char *name, struct oq_req_resp *rr) |
long long | protocol_throughput (char *name) |
void | add_protocol (char *path, char *name, char *filter, char *through) |
void | remove_protocol (char *name) |
Detailed Description
Function interface for various MAC libraries.
Detailed description
Definition in file mac_lib.h.
Typedef Documentation
Enumeration Type Documentation
|
- Enumerator:
-
OQ_SKB_DROP |
|
OQ_SKB_PASS |
|
OQ_SKB_WAIT |
|
OQ_SKB_INJECT |
|
OQ_SKB_SEND |
|
OQ_SKB_RECV |
|
OQ_SKB_RELEASE |
|
Definition at line 54 of file mac_lib.h. |
Function Documentation
void add_protocol |
( |
char * |
path, |
|
|
char * |
name, |
|
|
char * |
filter, |
|
|
char * |
through |
|
) |
|
|
|
Add included csmaca library by calling add_protocol with one or all of: (absolute path)/csmaca.so, "802.11b", "csmaca_b_filter", "csmaca_throughput" (absolute path)/csmaca.so, "802.11g", "csmaca_g_filter", "csmaca_throughput"
Definition at line 100 of file null.cpp. |
long long null_throughput |
( |
void |
|
) |
|
|
int protocol_filter |
( |
char * |
name, |
|
|
struct oq_req_resp * |
rr |
|
) |
|
|
long long protocol_throughput |
( |
char * |
name |
) |
|
|
|
throughput iface
Definition at line 79 of file null.cpp. |
void remove_protocol |
( |
char * |
name |
) |
|
|
|
remove by name
Definition at line 122 of file null.cpp. |
|