diff --git a/doc/tshark.pod b/doc/tshark.pod index 6b31efe86a..1edfb48ecd 100644 --- a/doc/tshark.pod +++ b/doc/tshark.pod @@ -291,9 +291,9 @@ from such an account, it will not list any interfaces. Add a field to the list of fields to display if B<-T fields> is selected. This option can be used multiple times on the command line. At least one field must be provided if the B<-T fields> option is -selected. Column names may be used prefixed with "col." +selected. Column names may be used prefixed with "_ws.col." -Example: B<-e frame.number -e ip.addr -e udp -e col.info> +Example: B<-e frame.number -e ip.addr -e udp -e _ws.col.info> Giving a protocol rather than a single field will print multiple items of data about the protocol as a single field. Fields are separated by diff --git a/docbook/wsug_src/WSUG_app_tools.xml b/docbook/wsug_src/WSUG_app_tools.xml index 34041db746..5de2cba797 100644 --- a/docbook/wsug_src/WSUG_app_tools.xml +++ b/docbook/wsug_src/WSUG_app_tools.xml @@ -87,7 +87,7 @@ Output: -x add output of hex and ASCII dump (Packet Bytes) -T pdml|ps|psml|text|fields format of text output (def: text) - -e <field> field to print if -Tfields selected (e.g. tcp.port, col.Info); + -e <field> field to print if -Tfields selected (e.g. tcp.port, _ws.col.Info); this option can be repeated to print multiple fields -E<fieldsoption>=<value> set options for output when -Tfields selected: header=y|n switch headers on and off diff --git a/epan/print.c b/epan/print.c index a60a9c7672..6aa353f9ea 100644 --- a/epan/print.c +++ b/epan/print.c @@ -1382,7 +1382,7 @@ void output_fields_free(output_fields_t* fields) g_free(fields); } -#define COLUMN_FIELD_FILTER "col." +#define COLUMN_FIELD_FILTER "_ws.col." void output_fields_add(output_fields_t *fields, const gchar *field) { diff --git a/tshark.c b/tshark.c index 1d81362e59..ba73d1a70e 100644 --- a/tshark.c +++ b/tshark.c @@ -320,7 +320,7 @@ print_usage(gboolean print_ver) fprintf(output, " -x add output of hex and ASCII dump (Packet Bytes)\n"); fprintf(output, " -T pdml|ps|psml|text|fields\n"); fprintf(output, " format of text output (def: text)\n"); - fprintf(output, " -e field to print if -Tfields selected (e.g. tcp.port, col.Info);\n"); + fprintf(output, " -e field to print if -Tfields selected (e.g. tcp.port, _ws.col.Info);\n"); fprintf(output, " this option can be repeated to print multiple fields\n"); fprintf(output, " -E= set options for output when -Tfields selected:\n"); fprintf(output, " header=y|n switch headers on and off\n");