aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/docsis
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-15 19:58:31 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-15 19:58:31 +0000
commit782cc6e3c31c2f3d1c4ec9771e7c323995d5c6fa (patch)
tree7016f1b411bc1cfb2d0cd29d1b972b6f9da5a35c /plugins/docsis
parent31abdcb584ed48002b54db6a6661e67a6b1b59e6 (diff)
Convert plugin files proto_tree_add_item() 'encoding' arg for field types FT_STRING, FT_STRINGZ, FT_UINT_STRING as follows:
1. If there's no character encoding (ENC_ASCII, ...) specified then use ENC_ASCII. 2. For all but FT_UINT_STRING, always use ENC_NA (replacing any existing True/1/FALSE/0 /ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN). svn path=/trunk/; revision=39429
Diffstat (limited to 'plugins/docsis')
-rw-r--r--plugins/docsis/packet-bpkmattr.c4
-rw-r--r--plugins/docsis/packet-tlv.c14
-rw-r--r--plugins/docsis/packet-vendor.c2
3 files changed, 10 insertions, 10 deletions
diff --git a/plugins/docsis/packet-bpkmattr.c b/plugins/docsis/packet-bpkmattr.c
index d261c90158..52e1acdba1 100644
--- a/plugins/docsis/packet-bpkmattr.c
+++ b/plugins/docsis/packet-bpkmattr.c
@@ -163,7 +163,7 @@ dissect_attrs (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
break;
case BPKM_SERIAL_NUM:
proto_tree_add_item (tree, hf_docsis_bpkmattr_serial_num, tvb, pos,
- length, FALSE);
+ length, ENC_ASCII|ENC_NA);
break;
case BPKM_MANUFACTURER_ID:
if (length == 3)
@@ -194,7 +194,7 @@ dissect_attrs (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
break;
case BPKM_DISPLAY_STR:
proto_tree_add_item (tree, hf_docsis_bpkmattr_display_str, tvb, pos,
- length, FALSE);
+ length, ENC_ASCII|ENC_NA);
break;
case BPKM_AUTH_KEY:
if ((length == 96) || (length == 128))
diff --git a/plugins/docsis/packet-tlv.c b/plugins/docsis/packet-tlv.c
index ba0710a917..4a1b17b9e1 100644
--- a/plugins/docsis/packet-tlv.c
+++ b/plugins/docsis/packet-tlv.c
@@ -680,7 +680,7 @@ dissect_phs_err (tvbuff_t * tvb, proto_tree * tree, int start,
break;
case PHS_ERR_MSG:
proto_tree_add_item (err_tree, hf_docsis_tlv_phs_err_msg, tvb, pos,
- length, FALSE);
+ length, ENC_ASCII|ENC_NA);
break;
} /* switch */
pos = pos + length;
@@ -900,7 +900,7 @@ dissect_sflow_err (tvbuff_t * tvb, proto_tree * tree, int start,
break;
case SFW_ERR_MSG:
proto_tree_add_item (err_tree, hf_docsis_tlv_sflow_err_msg, tvb,
- pos, length, FALSE);
+ pos, length, ENC_ASCII|ENC_NA);
break;
} /* switch */
pos = pos + length;
@@ -1141,7 +1141,7 @@ dissect_sflow (tvbuff_t * tvb, proto_tree * tree, int start, guint16 len,
break;
case SFW_SERVICE_CLASS_NAME:
proto_tree_add_item (sflow_tree, hf_docsis_tlv_sflow_classname, tvb,
- pos, length, FALSE);
+ pos, length, ENC_ASCII|ENC_NA);
break;
case SFW_ERRORS:
dissect_sflow_err (tvb, sflow_tree, pos, length);
@@ -1418,7 +1418,7 @@ dissect_clsfr_err (tvbuff_t * tvb, proto_tree * tree, int start,
break;
case CFR_ERR_MSG:
proto_tree_add_item (err_tree, hf_docsis_tlv_clsfr_err_msg, tvb,
- pos, length, FALSE);
+ pos, length, ENC_ASCII|ENC_NA);
break;
} /* switch */
pos = pos + length;
@@ -2360,7 +2360,7 @@ dissect_snmpv3_kickstart(tvbuff_t * tvb, proto_tree *tree, int start, guint16 le
case SNMPV3_SEC_NAME:
proto_tree_add_item (snmpv3_tree,
hf_docsis_tlv_snmpv3_kick_name, tvb,
- pos, length, FALSE);
+ pos, length, ENC_ASCII|ENC_NA);
break;
case SNMPV3_MGR_PUB_NUM:
proto_tree_add_item (snmpv3_tree,
@@ -2604,7 +2604,7 @@ dissect_tcc_err(tvbuff_t * tvb, proto_tree *tree, int start, guint16 len)
case TCC_ERR_MSG:
proto_tree_add_item (tccerr_tree,
hf_docsis_tcc_err_msg, tvb,
- pos, length, FALSE);
+ pos, length, ENC_ASCII|ENC_NA);
break;
} /* switch */
pos = pos + length;
@@ -3976,7 +3976,7 @@ dissect_tlv (tvbuff_t * tvb, packet_info * pinfo _U_, proto_tree * tree)
break;
case TLV_SW_UPG_FILE:
proto_tree_add_item (tlv_tree, hf_docsis_tlv_sw_file, tvb, pos,
- length, FALSE);
+ length, ENC_ASCII|ENC_NA);
break;
case TLV_SNMP_WRITE_CTRL:
proto_tree_add_item (tlv_tree, hf_docsis_tlv_snmp_access, tvb,
diff --git a/plugins/docsis/packet-vendor.c b/plugins/docsis/packet-vendor.c
index 635b0dce9b..75ce3969a1 100644
--- a/plugins/docsis/packet-vendor.c
+++ b/plugins/docsis/packet-vendor.c
@@ -206,7 +206,7 @@ dissect_cisco (tvbuff_t * tvb, proto_tree * tree, gint vsif_len)
break;
case IOS_CONFIG_FILE:
proto_tree_add_item (tree, hf_docsis_vsif_cisco_config_file, tvb,
- pos, length, FALSE);
+ pos, length, ENC_ASCII|ENC_NA);
}
pos += length;
}