From 30021d89cb71c08e78b0666a36b2c730a9958cb9 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 2 May 2023 17:33:38 +0200 Subject: [PATCH] Fixed header bits in get_packed_flags(). Fixes #275. --- RNS/Packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Packet.py b/RNS/Packet.py index a105dec..53c61ff 100755 --- a/RNS/Packet.py +++ b/RNS/Packet.py @@ -141,7 +141,7 @@ class Packet: def get_packed_flags(self): if self.context == Packet.LRPROOF: - packed_flags = (self.header_type << 6) | (self.transport_type << 4) | RNS.Destination.LINK | self.packet_type + packed_flags = (self.header_type << 6) | (self.transport_type << 4) | (RNS.Destination.LINK << 2) | self.packet_type else: packed_flags = (self.header_type << 6) | (self.transport_type << 4) | (self.destination.type << 2) | self.packet_type return packed_flags