diff options
author | Jörg Mayer <jmayer@loplof.de> | 2010-10-15 21:02:30 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2010-10-15 21:02:30 +0000 |
commit | 2556852f9eae93a250353c17151a4cdcc5565563 (patch) | |
tree | a8b1de5ba286c354b6c26f31c93354f3a561f84a /epan/dissectors/packet-telnet.c | |
parent | 9d87437659ee5f552e94fb2b48b07d637ae24f29 (diff) |
Make the telnet data lines filterable elements.
svn path=/trunk/; revision=34527
Diffstat (limited to 'epan/dissectors/packet-telnet.c')
-rw-r--r-- | epan/dissectors/packet-telnet.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/dissectors/packet-telnet.c b/epan/dissectors/packet-telnet.c index 5eff21b661..2a47d8e239 100644 --- a/epan/dissectors/packet-telnet.c +++ b/epan/dissectors/packet-telnet.c @@ -54,6 +54,8 @@ static int hf_telnet_auth_krb5_type = -1; static int hf_telnet_enc_cmd = -1; static int hf_telnet_enc_type = -1; +static int hf_telnet_data = -1; + static gint ett_telnet = -1; static gint ett_telnet_subopt = -1; static gint ett_status_subopt = -1; @@ -1836,9 +1838,7 @@ telnet_add_text(proto_tree *tree, tvbuff_t *tvb, int offset, int len) */ linelen = next_offset - offset; - proto_tree_add_text(tree, tvb, offset, linelen, - "Data: %s", - tvb_format_text(tvb, offset, linelen)); + proto_tree_add_item(tree, hf_telnet_data, tvb, offset, linelen, FALSE); offset = next_offset; } } @@ -1957,6 +1957,9 @@ proto_register_telnet(void) { &hf_telnet_enc_type, { "Enc Type", "telnet.enc.type", FT_UINT8, BASE_DEC, VALS(enc_type_vals), 0, "Encryption type", HFILL }}, + { &hf_telnet_data, + { "Data", "telnet.data", FT_STRING, BASE_NONE, + NULL, 0, NULL, HFILL }}, }; static gint *ett[] = { &ett_telnet, |