mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-01 04:55:49 -04:00
Added hardware MTU parameter to interfaces
This commit is contained in:
parent
d99d31097b
commit
c6df6293b2
10 changed files with 41 additions and 10 deletions
|
@ -79,6 +79,8 @@ class AX25KISSInterface(Interface):
|
|||
|
||||
self.rxb = 0
|
||||
self.txb = 0
|
||||
|
||||
self.HW_MTU = 564
|
||||
|
||||
self.pyserial = serial
|
||||
self.serial = None
|
||||
|
@ -304,7 +306,7 @@ class AX25KISSInterface(Interface):
|
|||
in_frame = True
|
||||
command = KISS.CMD_UNKNOWN
|
||||
data_buffer = b""
|
||||
elif (in_frame and len(data_buffer) < RNS.Reticulum.MTU+AX25.HEADER_SIZE):
|
||||
elif (in_frame and len(data_buffer) < self.HW_MTU+AX25.HEADER_SIZE):
|
||||
if (len(data_buffer) == 0 and command == KISS.CMD_UNKNOWN):
|
||||
# We only support one HDLC port for now, so
|
||||
# strip off the port nibble
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue