aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ospf.c
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2018-01-07 15:30:37 +0100
committerAnders Broman <a.broman58@gmail.com>2018-01-08 09:13:45 +0000
commitb5e744bca246072d4d2c446752f909dd1081bfcf (patch)
treefd00c778d9c5fa1f3f50ea63768d219f1c4be549 /epan/dissectors/packet-ospf.c
parent8738b3e45ac131322ed6f1700b1ce77f8e8f5d8f (diff)
OSPF: Dissect LS Type bytes of OSPFv3 LS Request
Dissecting of LS Types bytes for LS Requests was missing. Dissecting of LS Types bytes for LS Acknowledgments have been implemented. Bug: 14310 Change-Id: I13d5b564a1e97f0c5a33c749273b11f94c90cbc0 Reviewed-on: https://code.wireshark.org/review/25183 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ospf.c')
-rw-r--r--epan/dissectors/packet-ospf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ospf.c b/epan/dissectors/packet-ospf.c
index e3a0ec4ff6..7b26dfb744 100644
--- a/epan/dissectors/packet-ospf.c
+++ b/epan/dissectors/packet-ospf.c
@@ -1767,6 +1767,7 @@ dissect_ospf_ls_req(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *t
{
proto_item *ti;
proto_tree *ospf_lsr_tree;
+ proto_tree *lsa_type_tree;
guint16 reserved;
int orig_offset = offset;
@@ -1788,8 +1789,12 @@ dissect_ospf_ls_req(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *t
if (reserved != 0)
expert_add_info(pinfo, ti, &ei_ospf_header_reserved);
- proto_tree_add_item(ospf_lsr_tree, hf_ospf_v3_ls_type,
+ ti = proto_tree_add_item(ospf_lsr_tree, hf_ospf_v3_ls_type,
tvb, offset + 2, 2, ENC_BIG_ENDIAN);
+ lsa_type_tree = proto_item_add_subtree(ti, ett_ospf_lsa_type);
+ proto_tree_add_item(lsa_type_tree, hf_ospf_v3_ls_type_u, tvb, offset + 2, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(lsa_type_tree, hf_ospf_v3_ls_type_s12, tvb, offset + 2, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(lsa_type_tree, hf_ospf_v3_ls_type_fc, tvb, offset + 2, 2, ENC_BIG_ENDIAN);
break;
}