tcpdump mailing list archives

Re: pcap_compile Segmentation Fault


From: Flavio Truzzi <flaviotruzzi () gmail com>
Date: Mon, 6 Jun 2011 14:39:16 -0300

Anyone?

On Sun, Jun 5, 2011 at 12:26 AM, Flavio Truzzi <flaviotruzzi () gmail com>wrote:

class Sniffer
{
public:
    Sniffer();
    void processPacket(const u_char* instance, const pcap_pkthdr *pkthdr);


private:
    char* dev;
    char errbuff[PCAP_ERRBUF_SIZE];
    pcap_t *handle;
    struct pcap_pkthdr header;
    struct bpf_program filtro;
    bool match(const u_char* str1,int len);
    const struct sniff_ip *ip; /* The IP header */
    const u_char *payload; /* Packet payload */
    u_int size_ip;
    u_int size_tcp;

};


On Sat, Jun 4, 2011 at 3:41 PM, Guy Harris <guy () alum mit edu> wrote:


On Jun 4, 2011, at 11:23 AM, Flavio Truzzi wrote:

In the class header

How is it defined?  I.e., what is the statement that defines it?
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.




--
Flavio Sales Truzzi




-- 
Flavio Sales Truzzi
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: