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. asked 22 Feb '16, 02:14 _michel |
2 Answers:
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. answered 22 Feb '16, 02:25 grahamb ♦ edited 09 Feb '17, 06:49 |
How long do you need the string to last? That determines the scope to pass to answered 22 Feb '16, 16:59 Guy Harris ♦♦ edited 22 Feb '16, 17:00 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 ♦♦ |
Thank you, it works. In case someone is interested, I paste here the relevant lines :
with the following declaraction in wmem_scopes.h