From d7bf07c23ae4c714289ba4d27aecbb222b6f2c34 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 15 Apr 2021 18:45:36 +0100 Subject: [PATCH] bcka test --- bridge_master.py | 1 + hblink.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bridge_master.py b/bridge_master.py index 6ebc69b..34a9e63 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -1104,6 +1104,7 @@ class routerOBP(OPENBRIDGE): #If target has missed 6 (on 1 min) of keepalives, don't send if _target_system['ENHANCED_OBP'] ['_bcka'] in _target_system and _target_system['_bcka'] < _pkt_time - 60: + logger.debug(_target_system['_bcka']) continue diff --git a/hblink.py b/hblink.py index a3243d0..c4a6eb2 100755 --- a/hblink.py +++ b/hblink.py @@ -232,8 +232,8 @@ class OPENBRIDGE(DatagramProtocol): _hash = _packet[4:] _ckhs = hmac_new(self._config['PASSPHRASE'],_packet[:4],sha1).digest() if compare_digest(_hash, _ckhs): - logger.debug('(%s) *BridgeControl* Keep Alive received',self._system) self._config['_bcka'] = time() + logger.debug('(%s) *BridgeControl* Keep Alive received: time %s',self._system,int(self._config['_bcka'])) if _sockaddr != self._config['TARGET_SOCK']: h,p = _sockaddr logger.info('(%s) *BridgeControl* Source IP and Port has changed for OBP from %s:%s to %s:%s, updating',self._system,self._config['TARGET_IP'],self._config['TARGET_PORT'],h,p)