MCPcopy Create free account
hub / github.com/secdev/scapy / NTPInfoSys

Class NTPInfoSys

scapy/layers/ntp.py:1042–1071  ·  view source on GitHub ↗

System info. Mostly the sys.* variables, plus a few unique to the implementation.

Source from the content-addressed store, hash-verified

1040
1041
1042class 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
1074class NTPInfoSysStats(Packet):

Callers

nothing calls this directly

Calls 8

IPFieldClass · 0.90
ByteFieldClass · 0.90
SignedByteFieldClass · 0.90
FixedPointFieldClass · 0.90
IntFieldClass · 0.90
FlagsFieldClass · 0.90
IP6FieldClass · 0.90
TimeStampFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…