aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-07-13 11:33:44 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-07-13 11:33:44 +0000
commit19de5ccfa15df7ccd89313b02072678cd833e703 (patch)
tree508a4bb194d06912aedef3c7f655ee33af309f7a
parented324ee570e33562cf1695573e6ba68a1c785c79 (diff)
From Vaibhav Katkade
Add Netflow Record TrustSec fields https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8928 svn path=/trunk/; revision=50553
-rw-r--r--epan/dissectors/packet-netflow.c53
1 files changed, 53 insertions, 0 deletions
diff --git a/epan/dissectors/packet-netflow.c b/epan/dissectors/packet-netflow.c
index f9a3d80e74..652dcb0b4d 100644
--- a/epan/dissectors/packet-netflow.c
+++ b/epan/dissectors/packet-netflow.c
@@ -605,6 +605,11 @@ static const value_string v9_v10_template_types[] = {
{ 33000, "INGRESS_ACL_ID" },
{ 33001, "EGRESS_ACL_ID" },
{ 33002, "FW_EXT_EVENT" },
+ /* Cisco TrustSec */
+ { 34000, "SGT_SOURCE_TAG" },
+ { 34001, "SGT_DESTINATION_TAG" },
+ { 34002, "SGT_SOURCE_NAME" },
+ { 34003, "SGT_DESTINATION_NAME" },
/* medianet performance monitor */
{ 37000, "PACKETS_DROPPED" },
{ 37003, "BYTE_RATE" },
@@ -1311,6 +1316,10 @@ static int hf_cflow_information_element_range_end = -1; /* ID: 3
static int hf_cflow_information_element_semantics = -1; /* ID: 344 */
static int hf_cflow_information_element_units = -1; /* ID: 345 */
static int hf_cflow_private_enterprise_number = -1; /* ID: 346 */
+static int hf_cflow_cts_sgt_source_tag = -1; /* ID: 34000 */
+static int hf_cflow_cts_sgt_destination_tag = -1; /* ID: 34001 */
+static int hf_cflow_cts_sgt_source_name = -1; /* ID: 34002 */
+static int hf_cflow_cts_sgt_destination_name = -1; /* ID: 34003 */
static int hf_cflow_packets_dropped = -1; /* ID: 37000 */
static int hf_cflow_byte_rate = -1; /* ID: 37003 */
static int hf_cflow_application_media_bytes = -1; /* ID: 37004 */
@@ -4273,6 +4282,26 @@ dissect_v9_v10_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pdutree,
tvb, offset, length, ENC_BIG_ENDIAN);
break;
+ case 34000: /* cts_sgt_source_tag */
+ ti = proto_tree_add_item(pdutree, hf_cflow_cts_sgt_source_tag,
+ tvb, offset, length, ENC_BIG_ENDIAN);
+ break;
+
+ case 34001: /* cts_sgt_destination_tag */
+ ti = proto_tree_add_item(pdutree, hf_cflow_cts_sgt_destination_tag,
+ tvb, offset, length, ENC_BIG_ENDIAN);
+ break;
+
+ case 34002: /* cts_sgt_source_name */
+ ti = proto_tree_add_item(pdutree, hf_cflow_cts_sgt_source_name,
+ tvb, offset, length, ENC_BIG_ENDIAN);
+ break;
+
+ case 34003: /* cts_sgt_destination_name */
+ ti = proto_tree_add_item(pdutree, hf_cflow_cts_sgt_destination_name,
+ tvb, offset, length, ENC_BIG_ENDIAN);
+ break;
+
case 37000: /* packets_dropped */
ti = proto_tree_add_item(pdutree, hf_cflow_packets_dropped,
tvb, offset, length, ENC_BIG_ENDIAN);
@@ -7284,6 +7313,30 @@ proto_register_netflow(void)
FT_UINT32, BASE_DEC, NULL, 0x0,
"IPFIX Private Enterprise Number", HFILL}
},
+ {&hf_cflow_cts_sgt_source_tag,
+ {"Source SGT",
+ "cflow.source_sgt_tag",
+ FT_UINT16, BASE_DEC, NULL, 0x0,
+ NULL, HFILL}
+ },
+ {&hf_cflow_cts_sgt_destination_tag,
+ {"Destination SGT",
+ "cflow.destination_sgt_tag",
+ FT_UINT16, BASE_DEC, NULL, 0x0,
+ NULL, HFILL}
+ },
+ {&hf_cflow_cts_sgt_source_name,
+ {"Source SGT Name",
+ "cflow.source_sgt_name",
+ FT_STRING, BASE_NONE, NULL, 0x0,
+ NULL, HFILL}
+ },
+ {&hf_cflow_cts_sgt_destination_name,
+ {"Destination SGT Name",
+ "cflow.destination_sgt_name",
+ FT_STRING, BASE_NONE, NULL, 0x0,
+ NULL, HFILL}
+ },
{&hf_cflow_packets_dropped,
{"Packets Dropped",
"cflow.packets_dropped",