Main Page | Data Structures | File List | Data Fields | Globals

mac_recv_frame_info Struct Reference

Structure, to store per-packet information between the callback function of pcap_loop and mac_recv. More...

#include <libmac.h>


Data Fields

ether_header * hptr
 This pointer is initialized to NULL and when each frame is received, it is set to point to the ethernet frame header.
unsigned char * data
 This pointer is initialized to NULL and when each frame is received, it is set to point to the first byte after the header.
short data_len
 This member contains the total length of the received payload, i.e. length(length field + data + parameter information).


Detailed Description

Structure that contains three members, a pointer to the ethernet header, a pointer to the received data, i.e. frame without ethernet header, and the other is the length of the received data.


Generated on Tue Aug 24 17:01:42 2004 for libmac by doxygen 1.3.8