What I want to do, is to add 2 custom columns to the WireShark view. The columns must contain a custom value which I add there by performing the following steps:
This way working fine, however a problem arise when I want to create 2 custom columns where the field name have the same name. For example consider the following screenshot:
Here, I have 2 fields with similar name (gsm_map.address.digits). Obviously I cannot use the same name twice since it only will show the value which was assigned to the last appearing field.
Is there any way to solve this limitation?
You'd have to create two columns with different "Field occurrence" values - 1 for the first "Address digits" field, 2 for the second. The dialog that pops up for "Columns" in Edit->Preferences has, for custom columns, a "Field occurrence" field to the right of the "Field name" field. That's where you'd put the "Field occurrence" value.
If the dialog doesn't have that field, it might have been added in a later version of Wireshark than the one you're using, in which case you're out of luck.
(Unfortunately, there's no way to, for example, say "the occurrence of gsm_map.address.digits in the networkNode-Number tree" or something such as that. I suspect that's what you really want, rather than the first and second occurrences of the field.)