mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-17 22:08:11 -07:00
Single HW_MTU field
This commit is contained in:
@@ -30,6 +30,9 @@ import sys
|
|||||||
import os
|
import os
|
||||||
import RNS
|
import RNS
|
||||||
|
|
||||||
|
class TCPInterface():
|
||||||
|
HW_MTU = 2**20
|
||||||
|
|
||||||
class HDLC():
|
class HDLC():
|
||||||
FLAG = 0x7E
|
FLAG = 0x7E
|
||||||
ESC = 0x7D
|
ESC = 0x7D
|
||||||
@@ -96,7 +99,7 @@ class TCPClientInterface(Interface):
|
|||||||
connect_timeout = c.as_int("connect_timeout") if "connect_timeout" in c else None
|
connect_timeout = c.as_int("connect_timeout") if "connect_timeout" in c else None
|
||||||
max_reconnect_tries = c.as_int("max_reconnect_tries") if "max_reconnect_tries" in c else None
|
max_reconnect_tries = c.as_int("max_reconnect_tries") if "max_reconnect_tries" in c else None
|
||||||
|
|
||||||
self.HW_MTU = 32768
|
self.HW_MTU = TCPInterface.HW_MTU
|
||||||
self.IN = True
|
self.IN = True
|
||||||
self.OUT = False
|
self.OUT = False
|
||||||
self.socket = None
|
self.socket = None
|
||||||
@@ -456,7 +459,7 @@ class TCPServerInterface(Interface):
|
|||||||
if port != None:
|
if port != None:
|
||||||
bindport = port
|
bindport = port
|
||||||
|
|
||||||
self.HW_MTU = 32768
|
self.HW_MTU = TCPInterface.HW_MTU
|
||||||
|
|
||||||
self.online = False
|
self.online = False
|
||||||
self.spawned_interfaces = []
|
self.spawned_interfaces = []
|
||||||
|
|||||||
Reference in New Issue
Block a user