topo
Simon 3 years ago
parent f3de53d47b
commit d01019fa61

@ -269,6 +269,7 @@ class OPENBRIDGE(DatagramProtocol):
logger.trace('(%s) *BridgeControl* not sending BCVE, TARGET_IP currently not known',self._system)
def send_my_bcto(self):
if self._config['VER'] > 5:
_hops = 1
_hops = _hops.to_bytes(1,'big')
for system in self._CONFIG['SYSTEMS']:
@ -758,8 +759,8 @@ class OPENBRIDGE(DatagramProtocol):
_hops = _packet[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'))
if (int.from_bytes(_hops,'big') < 10):
self.retransmit_bcto(_packet[4:14],int.from_bytes(_hops,'big'))
if (int.from_bytes(_hops,'big') < 10 and _src != self._CONFIG['GLOBAL']['SERVER_ID']):
self.retransmit_bcto(_packet[4:13],int.from_bytes(_hops,'big'))
else:
logger.trace('(%s) *BridgeControl* not retransmitting BCTO - hop count exceeded',self._system)
self.process_bcto(_src,_dst,_ver)

Loading…
Cancel
Save

Powered by TurnKey Linux.