mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-06 08:25:57 -04:00
Before Identity restructure
This commit is contained in:
parent
be8fa4f7bb
commit
5fcbb5d338
16 changed files with 128 additions and 20 deletions
3
FPE/Packet.py
Normal file → Executable file
3
FPE/Packet.py
Normal file → Executable file
|
@ -21,8 +21,9 @@ class Packet:
|
|||
self.raw = self.header + self.ciphertext
|
||||
|
||||
if len(self.raw) > self.MTU:
|
||||
raise IOError("Packet size exceeds MTU of "+Packet.MTU+" bytes")
|
||||
raise IOError("Packet size of "+str(len(self.raw))+" exceeds MTU of "+str(self.MTU)+" bytes")
|
||||
|
||||
print("Size: "+str(len(self.raw)))
|
||||
Transport.outbound(self.raw)
|
||||
self.sent = True
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue