1 | initial version |
how can I add a column called source and assign it a value from ProtoField?
By doing it somewhere other than in the code. :-)
That's a UI function; in the Wireshark preferences, select "Columns", add a column with the "+" button, give it whatever title you want (Source, or whatever), give it a type of "Custom", and in "Fields" give it the name of the field, e.g. "mybussnifer_can.fields.source.name".