On 01/26/2010 01:05 PM, Tom Carly wrote:

Hi,

 

I am trying to call pfring_recv with wait_for_incoming_packet = 0 because I don’t want my application to be blocked if no packets are arriving. Though, it seems that I cannot longer receive packets doing that. The result of pfring_recv is always smaller than 0. If I put the parameter to 1, I get all packets.

Any idea what could be wrong?


Tom
if you don't like blocking, then set wait to 0 but do call pfring_get_selectable_fd() obtain a file description and call a select or poll in order to be notified when there are packets available

Cheers Luca

 

Thanks,

 

Tom Carly

 

 


_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc



_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to