+ /*
+ * If -O is specified, only display the protocols which are in the
+ * lookup table. Only check on the first level: once we start printing
+ * a tree, print the rest of the subtree. Otherwise we won't print
+ * subitems whose abbreviation doesn't match the protocol--for example
+ * text items (whose abbreviation is simply "text").
+ */
+ if (output_only_tables != NULL && pdata->level == 0
+ && g_hash_table_lookup(output_only_tables, fi->hfinfo->abbrev) == NULL) {
+ pdata->success = TRUE;
+ return;
+ }
+