| Home | Trees | Indices | Help |
|
|---|
|
|
|
|||
| WISLAB | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
DEFAULT_IP =
|
|||
DEFAULT_GW =
|
|||
DEFAULT_UDP = 17754
|
|||
TESTED_FW_VERS =
|
|||
NTP_DELTA = 2207520000Convert the two parts of an NTP timestamp to a datetime object. |
|||
__package__ =
|
|||
|
|||
NTP_DELTAConvert the two parts of an NTP timestamp to a datetime object. Similar code from Wireshark source: 575 /* NTP_BASETIME is in fact epoch - ntp_start_time */ 576 #define NTP_BASETIME 2208988800ul 619 void 620 ntp_to_nstime(tvbuff_t *tvb, gint offset, nstime_t *nstime) 621 { 622 nstime->secs = tvb_get_ntohl(tvb, offset); 623 if (nstime->secs) 624 nstime->secs -= NTP_BASETIME; 625 nstime->nsecs = (int)(tvb_get_ntohl(tvb, offset+4)/(NTP_FLOAT_DENOM/1000000000.0)); 626 }
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Dec 30 17:49:11 2013 | http://epydoc.sourceforge.net |