|
|
|
@ -144,7 +144,7 @@ class OPENBRIDGE(DatagramProtocol):
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
if not _hops:
|
|
|
|
if not _hops:
|
|
|
|
_hops = 0
|
|
|
|
_hops = 1
|
|
|
|
_hops = _hops.to_bytes(1,'big')
|
|
|
|
_hops = _hops.to_bytes(1,'big')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -399,7 +399,7 @@ class OPENBRIDGE(DatagramProtocol):
|
|
|
|
#_inthops = int.from_bytes(_hops,'big')
|
|
|
|
#_inthops = int.from_bytes(_hops,'big')
|
|
|
|
_inthops = _hops +1
|
|
|
|
_inthops = _hops +1
|
|
|
|
_hops = _inthops.to_bytes(1,'big')
|
|
|
|
_hops = _inthops.to_bytes(1,'big')
|
|
|
|
#print(_hops)
|
|
|
|
print(_hops)
|
|
|
|
# Userland actions -- typically this is the function you subclass for an application
|
|
|
|
# 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,_hops)
|
|
|
|
self.dmrd_received(_peer_id, _rf_src, _dst_id, _seq, _slot, _call_type, _frame_type, _dtype_vseq, _stream_id, _data,_hash,_hops)
|
|
|
|
#Silently treat a DMRD packet like a keepalive - this is because it's traffic and the
|
|
|
|
#Silently treat a DMRD packet like a keepalive - this is because it's traffic and the
|
|
|
|
|