System info. Mostly the sys.* variables, plus a few unique to the implementation.
| 1040 | |
| 1041 | |
| 1042 | class NTPInfoSys(Packet): |
| 1043 | """ |
| 1044 | System info. Mostly the sys.* variables, plus a few unique to |
| 1045 | the implementation. |
| 1046 | """ |
| 1047 | |
| 1048 | name = "info_sys" |
| 1049 | fields_desc = [ |
| 1050 | IPField("peer", "0.0.0.0"), |
| 1051 | ByteField("peer_mode", 0), |
| 1052 | ByteField("leap", 0), |
| 1053 | ByteField("stratum", 0), |
| 1054 | SignedByteField("precision", 0), |
| 1055 | FixedPointField("rootdelay", 0, size=32, frac_bits=16), |
| 1056 | FixedPointField("rootdispersion", 0, size=32, frac_bits=16), |
| 1057 | IPField("refid", 0), |
| 1058 | TimeStampField("reftime", 0), |
| 1059 | IntField("poll", 0), |
| 1060 | FlagsField("flags", 0, 8, _sys_info_flags), |
| 1061 | ByteField("unused1", 0), |
| 1062 | ByteField("unused2", 0), |
| 1063 | ByteField("unused3", 0), |
| 1064 | FixedPointField("bdelay", 0, size=32, frac_bits=16), |
| 1065 | FixedPointField("frequency", 0, size=32, frac_bits=16), |
| 1066 | TimeStampField("authdelay", 0), |
| 1067 | FixedPointField("stability", 0, size=32, frac_bits=16), |
| 1068 | IntField("v6_flag", 0), |
| 1069 | IntField("unused4", 0), |
| 1070 | IP6Field("peer6", "::") |
| 1071 | ] |
| 1072 | |
| 1073 | |
| 1074 | class NTPInfoSysStats(Packet): |
nothing calls this directly
no test coverage detected
searching dependent graphs…