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;
Best regards
Alfredo
On Dec 22, 2011, at 5:19 PM, Y J wrote:
>> Yann
>> Yes it is possible, your plugin function has to allocate a struct
>> parse_buffer to be assigned to the parse_memory parameter, filling .mem and
>> .mem_len with >the info of the memory (the additional header) that will be
>> copied at the start of the packet buffer.
>
> I just did this but I don't find how to retrieve data from userland API. You
> said it is at the start of packet buffer. But I don't see this field.
>
> 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