aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-01-13 10:41:32 +0100
committerAnders Broman <a.broman58@gmail.com>2015-01-20 07:29:59 +0000
commitb2e172a2386b0e3ebfc0572e16e5e38aa5f54f32 (patch)
tree477a55a31b596caf66ec92b5b03301facb6c5bdc
parentf3cbee6aab66e076489f153299786ce5578083e6 (diff)
downloadwireshark-b2e172a2386b0e3ebfc0572e16e5e38aa5f54f32.tar.gz
wireshark-b2e172a2386b0e3ebfc0572e16e5e38aa5f54f32.tar.bz2
wireshark-b2e172a2386b0e3ebfc0572e16e5e38aa5f54f32.zip
DHCP/BOOTP: Option 125 Suboption: (5) fix display Modem Capabilities
Only display dissect of Modem Capabilites when sub option = 5 Actually, it is always display when ftype == special (like sub option = 0) Change-Id: I5b75654b750bae5ae5022adcb5e8dd055ce6b291 Reviewed-on: https://code.wireshark.org/review/6519 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-bootp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bootp.c b/epan/dissectors/packet-bootp.c
index be97d7a3d3..a09ea1c10c 100644
--- a/epan/dissectors/packet-bootp.c
+++ b/epan/dissectors/packet-bootp.c
@@ -3720,8 +3720,11 @@ dissect_vendor_cl_suboption(packet_info *pinfo, proto_item *v_ti, proto_tree *v_
proto_tree_add_item(o125_v_tree, *o125_cl_opt[subopt].phf, tvb, suboptoff, subopt_len, ENC_BIG_ENDIAN);
else
proto_tree_add_item(o125_v_tree, hf_bootp_option125_value, tvb, suboptoff, subopt_len, ENC_NA);
-
- dissect_docsis_cm_cap(o125_v_tree, tvb, optoff, subopt_len+2, TRUE);
+ switch(subopt){
+ case 5: /* Modem Capabilities */
+ dissect_docsis_cm_cap(o125_v_tree, tvb, optoff, subopt_len+2, TRUE);
+ break;
+ }
break;
default:
if (o125_cl_opt[subopt].phf == NULL)