diff --git a/CHANGELOG.md b/CHANGELOG.md index 9885c7a..b27ffdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). # [unreleased] +## Fixed + +- Destination handler now only checks entity ID values when checking inserted packets + # [v0.4.0] 2024-11-08 ## Added diff --git a/src/cfdppy/handler/dest.py b/src/cfdppy/handler/dest.py index d748934..ca82068 100644 --- a/src/cfdppy/handler/dest.py +++ b/src/cfdppy/handler/dest.py @@ -433,7 +433,7 @@ def state_machine(self, packet: GenericPduPacket | None = None) -> FsmResult: def _check_inserted_packet(self, packet: GenericPduPacket) -> None: if packet.direction != Direction.TOWARDS_RECEIVER: raise InvalidPduDirection(Direction.TOWARDS_RECEIVER, packet.pdu_header.direction) - if packet.dest_entity_id != self.cfg.local_entity_id: + if packet.dest_entity_id.value != self.cfg.local_entity_id.value: raise InvalidDestinationId(self.cfg.local_entity_id, packet.dest_entity_id) if self.remote_cfg_table.get_cfg(packet.source_entity_id) is None: raise NoRemoteEntityCfgFound(entity_id=packet.dest_entity_id)