Mailing List Archive

PF_RING ZC API: Allocated buffer question
Hi, Suppose a buffer has been allocated from global resources with pfring_zc_get_packet_handle(): Why does pfring_zc_pkt_buff_data() also need to know a queue handle? Is it possible to fill up the u_char* packet buffer of this resource without knowing the proper tx queue handle at this moment? Regards, Manuel
Re: PF_RING ZC API: Allocated buffer question [ In reply to ]
Hi Manuel
you can pass any queue handle, it is needed by the library just to know the cluster belonging to the pkt handle,
we use a queue because in inter-process application you do not have a cluster handle.

Alfredo

> On 11 Mar 2016, at 16:21, Manuel Reichelt <manurei@web.de> wrote:
>
> Hi,
>
> Suppose a buffer has been allocated from global resources with pfring_zc_get_packet_handle():
> Why does pfring_zc_pkt_buff_data() also need to know a queue handle? Is it possible to fill up the
> u_char* packet buffer of this resource without knowing the proper tx queue handle at this moment?
>
> Regards,
> Manuel
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc