It is also used to provide packet data for Decode As dialog (packet scope).
void
-p_add_proto_data(wmem_allocator_t *scope, frame_data *fd, int proto, guint32 key, void *proto_data)
+p_add_proto_data(wmem_allocator_t *scope, packet_info *pinfo, int proto, guint32 key, void *proto_data)
void *
-p_get_proto_data(wmem_allocator_t *scope, frame_data *fd, int proto, guint32 key)
+p_get_proto_data(wmem_allocator_t *scope, packet_info *pinfo, int proto, guint32 key)
Where:
scope - Lifetime of the data to be stored, typically wmem_file_scope()
or pinfo->pool (packet scope). Must match scope of data
allocated.
- fd - The fd pointer in the pinfo structure, pinfo->fd
+ pinfo - The packet info pointer.
proto - Protocol id returned by the proto_register_protocol call
during initialization
key - key associated with 'proto_data'