aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2016-01-05 10:33:20 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-01-05 11:35:01 +0000
commitb4ee72d4f4025fb5e9341649ce0fe26058d1c1ae (patch)
tree75b8a42b1b1df85d9ccbc548cdbdada2edf1ef12
parent4a408c9641cd5e5a62064d4e4f545f7fe38b7dbb (diff)
Netflow/Ipfix: Enhance Netscaler Appflow ICA fields
Change some Netscaler ICA fields to display absolute time and not epoch timestamp seconds. Change Process ID field to display decimal number Change-Id: I57eb8883f4699072df90c0ea351e4bce3313dc0e Reviewed-on: https://code.wireshark.org/review/13049 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--epan/dissectors/packet-netflow.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/epan/dissectors/packet-netflow.c b/epan/dissectors/packet-netflow.c
index 7c2405a9bf..7dd531ed15 100644
--- a/epan/dissectors/packet-netflow.c
+++ b/epan/dissectors/packet-netflow.c
@@ -6769,11 +6769,11 @@ dissect_v9_v10_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pdutree,
break;
case ((VENDOR_NETSCALER << 16) | 223):
ti = proto_tree_add_item(pdutree, hf_pie_netscaler_icasessionupdatebeginsec,
- tvb, offset, length, ENC_BIG_ENDIAN);
+ tvb, offset, length, ENC_TIME_TIMESPEC|ENC_BIG_ENDIAN);
break;
case ((VENDOR_NETSCALER << 16) | 224):
ti = proto_tree_add_item(pdutree, hf_pie_netscaler_icasessionupdateendsec,
- tvb, offset, length, ENC_BIG_ENDIAN);
+ tvb, offset, length, ENC_TIME_TIMESPEC|ENC_BIG_ENDIAN);
break;
case ((VENDOR_NETSCALER << 16) | 225):
ti = proto_tree_add_item(pdutree, hf_pie_netscaler_icachannelid1,
@@ -6833,7 +6833,7 @@ dissect_v9_v10_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pdutree,
break;
case ((VENDOR_NETSCALER << 16) | 239):
ti = proto_tree_add_item(pdutree, hf_pie_netscaler_applicationstartuptime,
- tvb, offset, length, ENC_BIG_ENDIAN);
+ tvb, offset, length, ENC_TIME_TIMESPEC|ENC_BIG_ENDIAN);
break;
case ((VENDOR_NETSCALER << 16) | 240):
ti = proto_tree_add_item(pdutree, hf_pie_netscaler_icaapplicationterminationtype,
@@ -6893,11 +6893,11 @@ dissect_v9_v10_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pdutree,
break;
case ((VENDOR_NETSCALER << 16) | 254):
ti = proto_tree_add_item(pdutree, hf_pie_netscaler_icanetworkupdatestarttime,
- tvb, offset, length, ENC_BIG_ENDIAN);
+ tvb, offset, length, ENC_TIME_TIMESPEC|ENC_BIG_ENDIAN);
break;
case ((VENDOR_NETSCALER << 16) | 255):
ti = proto_tree_add_item(pdutree, hf_pie_netscaler_icanetworkupdateendtime,
- tvb, offset, length, ENC_BIG_ENDIAN);
+ tvb, offset, length, ENC_TIME_TIMESPEC|ENC_BIG_ENDIAN);
break;
case ((VENDOR_NETSCALER << 16) | 256):
ti = proto_tree_add_item(pdutree, hf_pie_netscaler_icaclientsidesrtt,
@@ -11411,14 +11411,14 @@ proto_register_netflow(void)
/* netscaler, 5951 / 223 */
{&hf_pie_netscaler_icasessionupdatebeginsec,
{"ICA Session Update Begin Sec", "cflow.pie.netscaler.ica-session-update-begin-sec",
- FT_UINT64, BASE_DEC, NULL, 0x0,
- "ICA Session Update Begin Sec (s)", HFILL}
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0x0,
+ NULL, HFILL}
},
/* netscaler, 5951 / 224 */
{&hf_pie_netscaler_icasessionupdateendsec,
{"ICA Session Update End Sec", "cflow.pie.netscaler.ica-session-update-end-sec",
- FT_UINT64, BASE_DEC, NULL, 0x0,
- "ICA Session Update End Sec (s)", HFILL}
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0x0,
+ NULL, HFILL}
},
/* netscaler, 5951 / 225 */
{&hf_pie_netscaler_icachannelid1,
@@ -11507,8 +11507,8 @@ proto_register_netflow(void)
/* netscaler, 5951 / 239 */
{&hf_pie_netscaler_applicationstartuptime,
{"Application Startup Time", "cflow.pie.netscaler.application-startup-time",
- FT_UINT64, BASE_DEC, NULL, 0x0,
- "Application Startup Time (s)", HFILL}
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0x0,
+ NULL, HFILL}
},
/* netscaler, 5951 / 240 */
{&hf_pie_netscaler_icaapplicationterminationtype,
@@ -11543,7 +11543,7 @@ proto_register_netflow(void)
/* netscaler, 5951 / 245 */
{&hf_pie_netscaler_icaappprocessid,
{"ICA App Process ID", "cflow.pie.netscaler.ica-app-processid",
- FT_UINT32, BASE_HEX, NULL, 0x0,
+ FT_UINT32, BASE_DEC_HEX, NULL, 0x0,
NULL, HFILL}
},
/* netscaler, 5951 / 246 */
@@ -11597,14 +11597,14 @@ proto_register_netflow(void)
/* netscaler, 5951 / 254 */
{&hf_pie_netscaler_icanetworkupdatestarttime,
{"ICA Network Update Start Time", "cflow.pie.netscaler.ica-network-update-start-time",
- FT_UINT64, BASE_DEC, NULL, 0x0,
- "ICA Network Update Start Time (s)", HFILL}
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0x0,
+ NULL, HFILL}
},
/* netscaler, 5951 / 255 */
{&hf_pie_netscaler_icanetworkupdateendtime,
{"ICA Network Update End Time", "cflow.pie.netscaler.ica-network-update-end-time",
- FT_UINT64, BASE_DEC, NULL, 0x0,
- "ICA Network Update End Time (s)", HFILL}
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0x0,
+ NULL, HFILL}
},
/* netscaler, 5951 / 256 */
{&hf_pie_netscaler_icaclientsidesrtt,