@ -283,17 +285,19 @@ class OPENBRIDGE(DatagramProtocol):
logger.trace('(%s) *BridgeControl* not sending BCTO, TARGET_IP currently not known. DST: %s, VER: %s',self._system,int_id(self._CONFIG['SYSTEMS'][system]['NETWORK_ID']),self._CONFIG['SYSTEMS'][system]['VER'])
logger.trace('(%s) *BridgeControl* not retransmitting BCTO, TARGET_IP currently not known.',self._system)
@ -751,9 +755,14 @@ class OPENBRIDGE(DatagramProtocol):
_src[4:8]
_dst[8:12]
_ver[12:13]
_hops[13:14]
if_hash==_hash2:
logger.trace('(%s) *ProtoControl* BCTO received: %s connected to %s with proto ver. %s'.self._system,int_id(_src),int_id(_dst),int.from_bytes_ver,'big')
self.retransmit_bcto(_packet[:13])
if(int(_hops.from_bytes('big'))<10):
retransmit_bcto(_packet[:14])
else:
if_hops>10:
logger.trace('(%s) *BridgeControl* not retransmitting BCTO - hop count exceeded',self._system)