class axl::io::PcapFilter

#include <axl_io_PcapFilter.h>

class PcapFilter: public bpf_program
{
public:
    // construction

    PcapFilter();
    ~PcapFilter();

    // methods

    void
    free();

    bool
    isEmpty();

    bool
    compile(
        pcap_t* pcap,
        const sl::StringRef& filter,
        bool isOptimized = true,
        uint32_t netMask = 0xffffffff
        );

    bool
    compile(
        int linkType,
        size_t snapshotSize,
        const sl::StringRef& filter,
        bool isOptimized = true,
        uint32_t netMask = 0xffffffff
        );

    bool
    match(
        const void* p,
        size_t size
        );
};