usrp2::pktfilter Class Reference

#include <pktfilter.h>

List of all members.

Public Member Functions

 pktfilter ()
 ~pktfilter ()

Static Public Member Functions

static pktfiltermake_ethertype (unsigned short ethertype)
 Return a filter that harvests packets with the specified ethertype.
static pktfiltermake_ethertype_inbound (unsigned short ethertype, const unsigned char *our_mac)
 Return a filter that harvests inbound packets with the specified ethertype.
static pktfiltermake_ethertype_inbound_target (unsigned short ethertype, const unsigned char *usrp_mac)
 Return a filter that harvests inbound packets with the specified ethertype and source MAC address.

Public Attributes

unsigned d_len
struct sock_filter * d_inst


Constructor & Destructor Documentation

usrp2::pktfilter::pktfilter (  ) 

usrp2::pktfilter::~pktfilter (  ) 


Member Function Documentation

static pktfilter* usrp2::pktfilter::make_ethertype ( unsigned short  ethertype  )  [static]

Return a filter that harvests packets with the specified ethertype.

Parameters:
ethertype the ethertype we're looking for.

static pktfilter* usrp2::pktfilter::make_ethertype_inbound ( unsigned short  ethertype,
const unsigned char *  our_mac 
) [static]

Return a filter that harvests inbound packets with the specified ethertype.

Parameters:
ethertype the ethertype we're looking for
our_mac our MAC address so we can avoid pkts we sent

static pktfilter* usrp2::pktfilter::make_ethertype_inbound_target ( unsigned short  ethertype,
const unsigned char *  usrp_mac 
) [static]

Return a filter that harvests inbound packets with the specified ethertype and source MAC address.

Parameters:
ethertype the ethertype we're looking for
usrp_mac the source MAC address


Member Data Documentation

struct sock_filter* usrp2::pktfilter::d_inst [read]


The documentation for this class was generated from the following file:

Generated on Wed Jul 29 07:23:14 2009 for GNU Radio 3.2.2 C++ API by  doxygen 1.5.8