[Winpcap-users] pcap_loop wait

MARTIN, Jean-loic (FR - SX) jean-loic.martin at fr.meggitt.com
Wed Feb 19 15:08:04 UTC 2014

Yes it works fine!
Unfortunately this flag isn't available with pcap_open_live which is a portable solution.
Pcap_open is available only on Windows (and I use Windows only).

Thanks for your help.

Best regards / Cordialement,

Jean-Loïc MARTIN
Software engineer/ Ingénieur développement logiciel

Meggitt Sensing Systems "MSS"
196 rue Louis Rustin
Archamps Technopole
74166 Archamps

(tel) +33 (0) 450 95 43 55 Poste : 519
jean-loic.martin at fr.meggitt.com

 N'imprimez que si necessaire / Print only if necessary

-----Message d'origine-----
De : winpcap-users-bounces at winpcap.org [mailto:winpcap-users-bounces at winpcap.org] De la part de Guy Harris
Envoyé : samedi 15 février 2014 00:10
À : winpcap-users at winpcap.org
Objet : Re: [Winpcap-users] pcap_loop wait

On Feb 14, 2014, at 4:42 AM, "MARTIN, Jean-loic (FR - SX)" <jean-loic.martin at fr.meggitt.com> wrote:

> Is there a special configuration to call the packet handler function directly when a packet is received without wait the timeout ?

Use pcap_open() and open with the PCAP_OPENFLAG_MAX_RESPONSIVENESS flag:


The libpcap equivalent is to use pcap_create() and pcap_activate() and, between the pcap_create() and pcap_activate() calls, call

	pcap_set_immediate_mode(handle, 1);

in libpcap 1.5 and later (or to set immediate mode in a platform-dependent fashion in previous releases).
Winpcap-users mailing list
Winpcap-users at winpcap.org

More information about the Winpcap-users mailing list