aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-udld.c
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2016-09-14 06:08:00 +0200
committerJörg Mayer <jmayer@loplof.de>2016-09-18 19:13:34 +0000
commit9dad78a6fcb7c9f14c25235b95f19b27701e4326 (patch)
tree34bdd936c59ef0ef0966bf4e65c818c1c67f610d /epan/dissectors/packet-udld.c
parentf823464174785a4a329faef680cfeb97a312775c (diff)
UDLD has been an informational RFC for a while
Fix some whitespace Change-Id: I7438b6b394078a23eda6d77fbda789d5413e0417 Reviewed-on: https://code.wireshark.org/review/17782 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'epan/dissectors/packet-udld.c')
-rw-r--r--epan/dissectors/packet-udld.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/epan/dissectors/packet-udld.c b/epan/dissectors/packet-udld.c
index b77d3ce6ee..aa0fc91c11 100644
--- a/epan/dissectors/packet-udld.c
+++ b/epan/dissectors/packet-udld.c
@@ -30,7 +30,7 @@
/*
* See
*
- * http://www.ietf.org/internet-drafts/draft-foschiano-udld-02.txt
+ * http://tools.ietf.org/rfc/rfc5171.txt
*
* for some information on UDLD.
*/
@@ -110,25 +110,25 @@ dissect_udld(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
col_clear(pinfo->cinfo, COL_INFO);
if (tree) {
- proto_item *flags_ti;
- proto_tree *flags_tree;
-
- ti = proto_tree_add_item(tree, proto_udld, tvb, offset, -1, ENC_NA);
- udld_tree = proto_item_add_subtree(ti, ett_udld);
-
- /* UDLD header */
- proto_tree_add_item(udld_tree, hf_udld_version, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(udld_tree, hf_udld_opcode, tvb, offset, 1, ENC_BIG_ENDIAN);
- offset += 1;
- flags_ti = proto_tree_add_item(udld_tree, hf_udld_flags, tvb, offset, 1, ENC_BIG_ENDIAN);
- flags_tree = proto_item_add_subtree(flags_ti, ett_udld_flags);
- proto_tree_add_item(flags_tree, hf_udld_flags_rt, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(flags_tree, hf_udld_flags_rsy, tvb, offset, 1, ENC_BIG_ENDIAN);
- offset += 1;
- proto_tree_add_checksum(udld_tree, tvb, offset, hf_udld_checksum, -1, NULL, pinfo, 0, ENC_BIG_ENDIAN, PROTO_CHECKSUM_NO_FLAGS);
- offset += 2;
+ proto_item *flags_ti;
+ proto_tree *flags_tree;
+
+ ti = proto_tree_add_item(tree, proto_udld, tvb, offset, -1, ENC_NA);
+ udld_tree = proto_item_add_subtree(ti, ett_udld);
+
+ /* UDLD header */
+ proto_tree_add_item(udld_tree, hf_udld_version, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(udld_tree, hf_udld_opcode, tvb, offset, 1, ENC_BIG_ENDIAN);
+ offset += 1;
+ flags_ti = proto_tree_add_item(udld_tree, hf_udld_flags, tvb, offset, 1, ENC_BIG_ENDIAN);
+ flags_tree = proto_item_add_subtree(flags_ti, ett_udld_flags);
+ proto_tree_add_item(flags_tree, hf_udld_flags_rt, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(flags_tree, hf_udld_flags_rsy, tvb, offset, 1, ENC_BIG_ENDIAN);
+ offset += 1;
+ proto_tree_add_checksum(udld_tree, tvb, offset, hf_udld_checksum, -1, NULL, pinfo, 0, ENC_BIG_ENDIAN, PROTO_CHECKSUM_NO_FLAGS);
+ offset += 2;
} else {
- offset += 4; /* The version/opcode/flags/checksum fields from above */
+ offset += 4; /* The version/opcode/flags/checksum fields from above */
}
while (tvb_reported_length_remaining(tvb, offset) != 0) {