Discard packets with old timestamp (low level)

ta
Simon 4 years ago
parent b61ea48e5d
commit cd57beebe3

@ -385,6 +385,11 @@ class OPENBRIDGE(DatagramProtocol):
self._laststrid.append(_stream_id) self._laststrid.append(_stream_id)
return return
#Discard old packets
if (_timestamp/1000000000) < (time() - 30):
logger.warning('(%s) Packet more than 30s old!, discarding', self._system)
return
#Increment max hops #Increment max hops
_inthops = _hops +1 _inthops = _hops +1

Loading…
Cancel
Save

Powered by TurnKey Linux.