On Dec 22, 2011, at 5:43 PM, Y J wrote:
>> Yann
>> if your plugin allocates for instance a "struct your_plugin_data" and sets
> the
>> pointer into parse_buffer.mem and the length into parse_buffer.mem_len,
>> your userspace application should do something like this for each received
>> packet:
>>
>> if(header->extended_hdr.parsed_pkt.last_matched_plugin_id ==
>> YOUR_PLUGIN_ID) {
>> struct your_plugin_data *data = (struct your_plugin_data*) buffer;
>
> So the usual packet data will be at buffer+mem_len ?
Yes
Alfredo
>
> Yann
> _______________________________________________
> 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