GNU Radio 3.4.0 C++ API
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:
ethertypethe 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:
ethertypethe ethertype we're looking for
our_macour 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:
ethertypethe ethertype we're looking for
usrp_macthe source MAC address

Member Data Documentation

struct sock_filter* usrp2::pktfilter::d_inst

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