Hi, I've been trying to use the following function to add some decoded text to a colum with the col_add_fstr() function.
I've read README.wmem, but still, I don't understand how to simply return the decoded string. |
The rdp dissector uses the function, around line 2161 if that helps. You haven't really described your issue, please amend your question to show how you're attempting to call the function from your code. Thank you, it works. In case someone is interested, I paste here the relevant lines :
with the following declaraction in wmem_scopes.h
(22 Feb '16, 07:41)
_michel
|
How long do you need the string to last? That determines the scope to pass to I don't know exactly, I just need it to be displayed in the column info. Since I don't know what and when is being freed by Wireshark, I can't tell the scope I need. I've looked in README.wmem but I don't have the necessary experience to choose between packet, file or epan pool. Off the top of my head, I'd say that packet pool, hence wmempacketscope(), is ok. I'd need a clear example to understand the limitations of each pool.
(22 Feb '16, 23:55)
_michel
Then you'll probably be doing
(23 Feb '16, 15:12)
Guy Harris ♦♦
|