Package killerbee :: Module dev_wislab
[hide private]
[frames] | no frames]

Module dev_wislab

source code

Classes [hide private]
  WISLAB
Functions [hide private]
 
ntp_to_system_time(secs, msecs)
convert a NTP time to system time
source code
 
getFirmwareVersion(ip) source code
 
getMacAddr(ip)
Returns a string for the MAC address of the sniffer.
source code
 
isWislab(dev) source code
Variables [hide private]
  DEFAULT_IP = '10.10.10.2'
  DEFAULT_GW = '10.10.10.1'
  DEFAULT_UDP = 17754
  TESTED_FW_VERS = ['0.5']
  NTP_DELTA = 2207520000
Convert the two parts of an NTP timestamp to a datetime object.
  __package__ = 'killerbee'
Variables Details [hide private]

NTP_DELTA

Convert 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 }

Value:
2207520000