https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=14310
--- Comment #2 from Garri <g.djavad...@gmail.com> ---
It is specified in RFC 5340 [1], but the needed code already exists in
epan/dissectors/packet-ospf.c. Though, it is not applied in
dissect_ospf_ls_req(). For example, below is excerpt from
dissect_ospf_v3_lsa():
-----------
/* OSPFv3 LS Types */
{&hf_ospf_v3_ls_type,
{ "LS Type", "ospf.v3.lsa", FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_v3_ls_type_u,
{ "LSA Handling", "ospf.v3.lsa.u", FT_BOOLEAN, 16,
TFS(&tfs_v3_ls_type_u), 0x8000,
NULL, HFILL }},
{&hf_ospf_v3_ls_type_s12,
{ "Flooding Scope", "ospf.v3.lsa.s12", FT_UINT16, BASE_HEX,
VALS(v3_ls_type_s12_vals), 0x6000,
NULL, HFILL }},
{&hf_ospf_v3_ls_type_fc,
{ "Function Code", "ospf.v3.lsa.fc", FT_UINT16, BASE_DEC,
VALS(v3_ls_type_vals), 0x1FFF,
NULL, HFILL }},
...
dissect_ospf_v3_lsa(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree
*tree,
gboolean disassemble_body, guint8 address_family)
{
...
ti = proto_tree_add_item(ospf_lsa_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);
...
}
-----------------
Thanks.
[1] https://tools.ietf.org/html/rfc5340#appendix-A.4.2.1
--
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via: Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives: https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe