|
@@ 103-108 (lines=6) @@
|
| 100 |
|
return |
| 101 |
|
elif node == 'GATE' and port['net'].startswith('2M'): |
| 102 |
|
frame['path'] = frame['path'][:hop_index] + [recv_port['identifier'] + '*'] + [node + '*'] +\ |
| 103 |
|
frame['path'][hop_index+1:] |
| 104 |
|
port['tnc'].write(frame, port['tnc_port']) |
| 105 |
|
self.aprsis.write(frame) |
| 106 |
|
return |
| 107 |
|
if node.startswith('WIDE') and ssid > 1: |
| 108 |
|
frame['path'] = frame['path'][:hop_index] + [recv_port['identifier'] + '*'] +\ |
| 109 |
|
[node + '-' + str(ssid-1)] + frame['path'][hop_index+1:] |
| 110 |
|
port['tnc'].write(frame, port['tnc_port']) |
| 111 |
|
self.aprsis.write(frame) |
|
@@ 89-94 (lines=6) @@
|
| 86 |
|
else: |
| 87 |
|
if port['net'].startswith(node): |
| 88 |
|
frame['path'] = frame['path'][:hop_index] + [recv_port['identifier'] + '*'] +\ |
| 89 |
|
[hop + '*'] + frame['path'][hop_index+1:] |
| 90 |
|
port['tnc'].write(frame, port['tnc_port']) |
| 91 |
|
self.aprsis.write(frame) |
| 92 |
|
return |
| 93 |
|
if node == port_callsign and ssid == port_ssid: |
| 94 |
|
if ssid is 0: |
| 95 |
|
frame['path'][hop_index] = port_callsign + '*' |
| 96 |
|
else: |
| 97 |
|
frame['path'][hop_index] = port['identifier'] + '*' |
|
@@ 82-87 (lines=6) @@
|
| 79 |
|
if band_path_net: |
| 80 |
|
if node == port['net']: |
| 81 |
|
frame['path'] = frame['path'][:hop_index] + [recv_port['identifier'] + '*'] +\ |
| 82 |
|
[hop + '*'] + frame['path'][hop_index+1:] |
| 83 |
|
port['tnc'].write(frame, port['tnc_port']) |
| 84 |
|
self.aprsis.write(frame) |
| 85 |
|
return |
| 86 |
|
else: |
| 87 |
|
if port['net'].startswith(node): |
| 88 |
|
frame['path'] = frame['path'][:hop_index] + [recv_port['identifier'] + '*'] +\ |
| 89 |
|
[hop + '*'] + frame['path'][hop_index+1:] |
| 90 |
|
port['tnc'].write(frame, port['tnc_port']) |