pcapng.utils

pcapng.utils.unpack_ipv4(data)[source]
pcapng.utils.unpack_ipv6(data)[source]
pcapng.utils.unpack_macaddr(data)[source]
pcapng.utils.unpack_euiaddr(data)[source]
pcapng.utils.unpack_timestamp_resolution(data)[source]

Unpack a timestamp resolution.

Returns a floating point number representing the timestamp resolution (multiplier).

pcapng.utils.pack_timestamp_resolution(base, exponent)[source]

Pack a timestamp resolution.

Parameters:
  • base – 2 or 10
  • exponent – negative power of the base to be encoded