tshark: add support for field alias when specifying a list of fields to display
The ek/pdml/json output will display the new filter name and not the aliased older one
This commit is contained in:
parent
aa54f33700
commit
274e67998e
8
tshark.c
8
tshark.c
|
@ -1344,7 +1344,13 @@ main(int argc, char *argv[])
|
|||
break;
|
||||
case 'e':
|
||||
/* Field entry */
|
||||
output_fields_add(output_fields, ws_optarg);
|
||||
{
|
||||
header_field_info *hfi = proto_registrar_get_byalias(ws_optarg);
|
||||
if (hfi)
|
||||
output_fields_add(output_fields, hfi->abbrev);
|
||||
else
|
||||
output_fields_add(output_fields, ws_optarg);
|
||||
}
|
||||
break;
|
||||
case 'E':
|
||||
/* Field option */
|
||||
|
|
Loading…
Reference in New Issue