Skip to content

Is pcap_next ignoring timeout? #572

@ardikars

Description

@ardikars

pcap_t *p = pcap_open_live("eth0", 65535, 1, 500. errbuf);

u_char *buf = pcap_next(p, pkt_hdr);

in libpcap 1.7.4, if after 500 ms no packet is captured it's return NULL, in libpcap 1.8.1 pcap_next still waiting next packet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions