Home
last modified time | relevance | path

Searched refs:packed_seconds (Results 1 – 1 of 1) sorted by relevance

/external/scapy/scapy/layers/
Ddns.py663 def _convert_seconds(self, packed_seconds): argument
665 seconds = struct.unpack("!H", packed_seconds[:2])[0]
666 seconds += struct.unpack("!I", packed_seconds[2:])[0]
681 def i2h(self, pkt, packed_seconds): argument
685 if packed_seconds is None:
688 return self._convert_seconds(packed_seconds)
690 def i2repr(self, pkt, packed_seconds): argument
693 time_struct = time.gmtime(self._convert_seconds(packed_seconds))