aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-netflow.c
diff options
context:
space:
mode:
authorDeep Datta <deepdatta2010@yahoo.co.in>2017-08-09 12:00:52 -0500
committerMichael Mann <mmann78@netscape.net>2017-08-29 20:25:07 +0000
commit1e0dc0637b33314c14897ea00e2eb32b146141ea (patch)
tree166b21ab98c0decc23ad6ff74b20ec43097b8a73 /epan/dissectors/packet-netflow.c
parent8f3a3914fe3a01001fd1062ac693a5e41a466b59 (diff)
Adding new Ixia netflow fields for DNS hostnames and class
Change-Id: I850c008f1bd96f313811cf6404acae35496e0c3c Reviewed-on: https://code.wireshark.org/review/23272 Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com> Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-netflow.c')
-rw-r--r--epan/dissectors/packet-netflow.c38
1 files changed, 37 insertions, 1 deletions
diff --git a/epan/dissectors/packet-netflow.c b/epan/dissectors/packet-netflow.c
index 934911924c..a688930180 100644
--- a/epan/dissectors/packet-netflow.c
+++ b/epan/dissectors/packet-netflow.c
@@ -2888,6 +2888,9 @@ static int hf_pie_ixia_dns_txt = -1;
static int hf_pie_ixia_source_as_name = -1;
static int hf_pie_ixia_dest_as_name = -1;
static int hf_pie_ixia_transaction_latency = -1;
+static int hf_pie_ixia_dns_query_names = -1;
+static int hf_pie_ixia_dns_answer_names = -1;
+static int hf_pie_ixia_dns_classes = -1;
static int hf_pie_netscaler = -1;
static int hf_pie_netscaler_roundtriptime = -1;
@@ -9025,6 +9028,18 @@ dissect_v9_v10_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pdutree,
ti = proto_tree_add_item(pdutree, hf_pie_ixia_transaction_latency,
tvb, offset, length, ENC_BIG_ENDIAN);
break;
+ case ((VENDOR_IXIA << 16) | 189):
+ ti = proto_tree_add_item(pdutree, hf_pie_ixia_dns_query_names,
+ tvb, offset, length, ENC_ASCII|ENC_NA);
+ break;
+ case ((VENDOR_IXIA << 16) | 190):
+ ti = proto_tree_add_item(pdutree, hf_pie_ixia_dns_answer_names,
+ tvb, offset, length, ENC_ASCII|ENC_NA);
+ break;
+ case ((VENDOR_IXIA << 16) | 191):
+ ti = proto_tree_add_item(pdutree, hf_pie_ixia_dns_classes,
+ tvb, offset, length, ENC_ASCII|ENC_NA);
+ break;
/* END Ixia Communications */
/* START Netscaler Communications */
@@ -15389,11 +15404,32 @@ proto_register_netflow(void)
/* ixia, 3054 / 188 */
{&hf_pie_ixia_transaction_latency,
- {"Transaction Latency (ms)", "cflow.pie.ixia.transact-latency-ms",
+ {"Transaction Latency (us)", "cflow.pie.ixia.transact-latency-us",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL}
},
+ /* ixia, 3054 / 189 */
+ {&hf_pie_ixia_dns_query_names,
+ {"DNS Query Names", "cflow.pie.ixia.dns-query-names",
+ FT_STRING, STR_ASCII, NULL, 0x0,
+ "Names in the Query section of a DNS message (comma separated list)", HFILL}
+ },
+
+ /* ixia, 3054 / 190 */
+ {&hf_pie_ixia_dns_answer_names,
+ {"DNS Answer Names", "cflow.pie.ixia.dns-answer-names",
+ FT_STRING, STR_ASCII, NULL, 0x0,
+ "Names in the Answer section of a DNS message (comma separated list)", HFILL}
+ },
+
+ /* ixia, 3054 / 191 */
+ {&hf_pie_ixia_dns_classes,
+ {"DNS Classes", "cflow.pie.ixia.dns-classes",
+ FT_STRING, STR_ASCII, NULL, 0x0,
+ "Class types appearing in a DNS message (comma separated list)", HFILL}
+ },
+
/* Netscaler root (a hidden item to allow filtering) */
{&hf_pie_netscaler,
{"Netscaler", "cflow.pie.netscaler",