#include <mac.h>
Data Fields | |
u_short(* | get_address )(void) |
u_short(* | get_mtu )(void) |
int(* | receive )(u_short *src, u_short *dst, u_char *data, u_short *data_length, u_long ms) |
int(* | send )(u_short dst, u_char *data, u_short data_len) |
u_short(* mac_interface_st::get_address)(void) |
Returns the configured mac address.
u_short(* mac_interface_st::get_mtu)(void) |
Returns the maximal payload size of a MAC packet.
int(* mac_interface_st::receive)(u_short *src, u_short *dst, u_char *data, u_short *data_length, u_long ms) |
Receives a MAC packet.
src | [out] source address | |
dst | [out] destination address | |
data | [out] payload of the packet | |
data_length | [in] maximal size of the payload [out] actual size of the payload | |
ms | [in] maximal duration (in ms) to wait for a packet |
int(* mac_interface_st::send)(u_short dst, u_char *data, u_short data_len) |
Sends a MAC packet.
dst | [in] destination address | |
data | [in] payload of the packet | |
data_len | [in] payload size |