From Xiaoguang Liu
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 26 Oct 2006 14:36:09 +0000 (14:36 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 26 Oct 2006 14:36:09 +0000 (14:36 +0000)
In wireshark a NTP field is displayed as "clock dispersion".
But should it be called "root dispersion" as per RFC 1305?

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19705 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ntp.c

index f10811763020ad5b3331455a82689a0de40dcb44..9bff5dcb5158020df751156181e6caf7f59d177e 100644 (file)
@@ -539,7 +539,7 @@ dissect_ntp_std(tvbuff_t *tvb, proto_tree *ntp_tree, guint8 flags)
                                (tvb_get_ntohs(tvb, 10) / 65536.0);
        proto_tree_add_double_format(ntp_tree, hf_ntp_rootdispersion, tvb, 8, 4,
                                   rootdispersion,
                                (tvb_get_ntohs(tvb, 10) / 65536.0);
        proto_tree_add_double_format(ntp_tree, hf_ntp_rootdispersion, tvb, 8, 4,
                                   rootdispersion,
-                                  "Clock Dispersion: %9.4f sec",
+                                  "Root Dispersion: %9.4f sec",
                                   rootdispersion);
 
        /* Now, there is a problem with secondary servers.  Standards
                                   rootdispersion);
 
        /* Now, there is a problem with secondary servers.  Standards
@@ -846,8 +846,8 @@ proto_register_ntp(void)
                        "Root Delay", "ntp.rootdelay", FT_DOUBLE, BASE_DEC,
                        NULL, 0, "Root Delay", HFILL }},
                { &hf_ntp_rootdispersion, {
                        "Root Delay", "ntp.rootdelay", FT_DOUBLE, BASE_DEC,
                        NULL, 0, "Root Delay", HFILL }},
                { &hf_ntp_rootdispersion, {
-                       "Clock Dispersion", "ntp.rootdispersion", FT_DOUBLE, BASE_DEC,
-                       NULL, 0, "Clock Dispersion", HFILL }},
+                       "Root Dispersion", "ntp.rootdispersion", FT_DOUBLE, BASE_DEC,
+                       NULL, 0, "Root Dispersion", HFILL }},
                { &hf_ntp_refid, {
                        "Reference Clock ID", "ntp.refid", FT_BYTES, BASE_NONE,
                        NULL, 0, "Reference Clock ID", HFILL }},
                { &hf_ntp_refid, {
                        "Reference Clock ID", "ntp.refid", FT_BYTES, BASE_NONE,
                        NULL, 0, "Reference Clock ID", HFILL }},