From bf5d5bcd74a3a0e5f8d9be28bc4ea4be46b4a512 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 19 Oct 2024 14:57:33 +1100 Subject: [PATCH] Fix FSX-48 packets from points --- app/Classes/FTN/Packet/FSC48.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Classes/FTN/Packet/FSC48.php b/app/Classes/FTN/Packet/FSC48.php index 09fbe3b..e772fbe 100644 --- a/app/Classes/FTN/Packet/FSC48.php +++ b/app/Classes/FTN/Packet/FSC48.php @@ -55,6 +55,10 @@ final class FSC48 extends Packet case 'capability': return sprintf('%016b',Arr::get($this->header,'capword')); + case 'fn': + // If the packet is from a point, then onet will be 0xffff + return ($x=Arr::get($this->header,'onet')) === 0xffff ? Arr::get($this->header,'auxnet') : $x; + default: return parent::__get($key); }