#include <pktfilter.h>
Public Member Functions | |
| pktfilter () | |
| ~pktfilter () | |
Static Public Member Functions | |
| static pktfilter * | make_ethertype (unsigned short ethertype) |
| Return a filter that harvests packets with the specified ethertype. | |
| static pktfilter * | make_ethertype_inbound (unsigned short ethertype, const unsigned char *our_mac) |
| Return a filter that harvests inbound packets with the specified ethertype. | |
| static pktfilter * | make_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 |
| usrp2::pktfilter::pktfilter | ( | ) |
| usrp2::pktfilter::~pktfilter | ( | ) |
| static pktfilter* usrp2::pktfilter::make_ethertype | ( | unsigned short | ethertype | ) | [static] |
Return a filter that harvests packets with the specified ethertype.
| 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.
| 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.
| ethertype | the ethertype we're looking for | |
| usrp_mac | the source MAC address |
struct sock_filter* usrp2::pktfilter::d_inst [read] |
| unsigned usrp2::pktfilter::d_len |
1.5.9