From cd57beebe35485b2579adf51773d91315708b27c Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 14 Feb 2022 23:39:01 +0000 Subject: [PATCH] Discard packets with old timestamp (low level) --- hblink.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hblink.py b/hblink.py index 2bcd73f..8bc7789 100755 --- a/hblink.py +++ b/hblink.py @@ -385,6 +385,11 @@ class OPENBRIDGE(DatagramProtocol): self._laststrid.append(_stream_id) return + #Discard old packets + if (_timestamp/1000000000) < (time() - 30): + logger.warning('(%s) Packet more than 30s old!, discarding', self._system) + return + #Increment max hops _inthops = _hops +1