2023-07-12 07:54:46 +0000 | marked best answer | [Dissector] How to have a number of fields depending of the buffer? Hello everyone, It's been days that I try to solve this "simple" problem, but I can't find any solution by my own :( So here's the thing: the protocol I dissect can have a variable number of data fields, and I am trying to properly display all these data fields in ProtoFields in a sub-tree. Moreover, the name of each ProtoField should change depending on what's in the buffer. The number of fields and the name of each of these fields is determined by reading the first characters contained in the buffer. I tried the following solution to create a variable number of ProtoFields. It works, except that the displayed name of the ProtoFields can't be changed. The concept of this script was to create plenty of ProtoFields and to use only the ones I need. But as I said just above, I can not change the name of the ProtoField, as it is declared before knowing its real name. Would any of you have a solution? Even an idea would really be useful. Thanks in advance! ameu00 |
2023-07-12 07:54:46 +0000 | received badge | ● Scholar (source) |
2023-07-12 07:54:21 +0000 | commented answer | [Dissector] How to have a number of fields depending of the buffer? W O W that's exactly what I wanted to do! Thank you very much for your help! I mark this question as resolved. |
2023-07-11 13:43:31 +0000 | asked a question | [Dissector] How to have a number of fields depending of the buffer? [Dissector] How to have a number of fields depending of the buffer? Hello everyone, It's been days that I try to solve |