Package dpkt :: Module ntp :: Class NTP
[hide private]
[frames] | no frames]

Class NTP

source code

 object --+    
          |    
dpkt.Packet --+
              |
             NTP

Nested Classes [hide private]

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]
 
_get_v(self) source code
 
_set_v(self, v) source code
 
_get_li(self) source code
 
_set_li(self, li) source code
 
_get_mode(self) source code
 
_set_mode(self, mode) source code

Inherited from dpkt.Packet: __getitem__, __init__, __len__, __repr__, __str__, pack, pack_hdr, unpack

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __hdr__ = (('flags', 'B', 0), ('stratum', 'B', 0), ('interval'...
  __hdr_defaults__ = {'delay': 0, 'dispersion': 0, 'flags': 0, '...
  __hdr_fields__ = ['flags', 'stratum', 'interval', 'precision',...
  __hdr_fmt__ = '>BBBBII4s8s8s8s8s'
  __hdr_len__ = 48
Properties [hide private]
  v
  li
  mode
  data
  delay
  dispersion
  flags
  id
  interval
  originate_time
  precision
  receive_time
  stratum
  transmit_time
  update_time

Inherited from object: __class__

Class Variable Details [hide private]

__hdr__

Value:
(('flags', 'B', 0),
 ('stratum', 'B', 0),
 ('interval', 'B', 0),
 ('precision', 'B', 0),
 ('delay', 'I', 0),
 ('dispersion', 'I', 0),
 ('id', '4s', 0),
 ('update_time', '8s', 0),
...

__hdr_defaults__

Value:
{'delay': 0,
 'dispersion': 0,
 'flags': 0,
 'id': 0,
 'interval': 0,
 'originate_time': 0,
 'precision': 0,
 'receive_time': 0,
...

__hdr_fields__

Value:
['flags',
 'stratum',
 'interval',
 'precision',
 'delay',
 'dispersion',
 'id',
 'update_time',
...

Property Details [hide private]

v

Get Method:
_get_v(self)
Set Method:
_set_v(self, v)

li

Get Method:
_get_li(self)
Set Method:
_set_li(self, li)

mode

Get Method:
_get_mode(self)
Set Method:
_set_mode(self, mode)