Mailing List Archive

pf_ring_recv timeout
Hello Luca,



We are trying to add a timeout feature on pf_ring_recv function.

Do you have any advise on "how to".

Our idea is to use select with a timeout on the socket between userland and
ring.



Is that the correct way?



Yann
Re: pf_ring_recv timeout [ In reply to ]
Yann
why not

select()
if(packet received) then
pfring_recv()

Cheers Luca

On May 10, 2012, at 4:31 PM, Y J wrote:

> Hello Luca,
>
> We are trying to add a timeout feature on pf_ring_recv function.
> Do you have any advise on “how to”.
> Our idea is to use select with a timeout on the socket between userland and ring.
>
> Is that the correct way?
>
> Yann
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc