Simon 4 years ago
parent a1fdfac15e
commit b4268bf0a2
No known key found for this signature in database
GPG Key ID: 6ACF11630B5D8F82

@ -2083,7 +2083,7 @@ class routerHBP(HBSYSTEM):
#_pkt_crc = hash(_data).digest()
#Use blake2b hash
_h = blake2b()
_h = blake2b(digest_size=16)
_h.update(_data)
_pkt_crc = _h.digest()

@ -163,7 +163,7 @@ class OPENBRIDGE(DatagramProtocol):
if not self._config['TARGET_IP']:
logger.debug('(%s) Not sent packet as TARGET_IP not currently known')
else:
logger.error('(%s) OpenBridge system was asked to send non DMRD packet with send_system(): %s', self._system, _packet)
logger.error('(%s) OpenBridge system was asked to send non DMR packet with send_system(): %s', self._system, _packet)
def send_bcka(self):
if self._config['TARGET_IP']:
@ -375,7 +375,7 @@ class OPENBRIDGE(DatagramProtocol):
#Remove timestamp from data. For now dmrd_received does not expect it
#Leaving it in screws up the AMBE data
_data = b''.join([_data[:15],_data[23:]])
_data = b''.join([_data[:15],_data[24:]])
# Userland actions -- typically this is the function you subclass for an application
self.dmrd_received(_peer_id, _rf_src, _dst_id, _seq, _slot, _call_type, _frame_type, _dtype_vseq, _stream_id, _data,_hash)
#Silently treat a DMRD packet like a keepalive - this is because it's traffic and the

Loading…
Cancel
Save

Powered by TurnKey Linux.