|
@@ -353,6 +353,15 @@ class BaseAttack(metaclass=ABCMeta):
|
|
|
|
|
|
if param_name == Parameter.INJECT_AT_TIMESTAMP and is_valid and ((value - int(value)) == 0):
|
|
|
value = value + random.uniform(0, 0.999999)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if param_name == Parameter.INJECT_AT_TIMESTAMP and is_valid:
|
|
|
+ ts_first_pkt = pr.pcap_processor(self.statistics.pcap_filepath, "False").get_timestamp_mu_sec(1)
|
|
|
+ if ts_first_pkt >= 0:
|
|
|
+ is_valid = True
|
|
|
+ value = value + (ts_first_pkt / 1000000)
|
|
|
elif param_type == ParameterTypes.TYPE_TIMESTAMP:
|
|
|
is_valid = self._is_timestamp(value)
|
|
|
elif param_type == ParameterTypes.TYPE_BOOLEAN:
|