Skip to content

Commit 8394115

Browse files
committed
only check ID value for destination handler ID check
1 parent fb2f46d commit 8394115

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88

99
# [unreleased]
1010

11+
## Fixed
12+
13+
- Destination handler now only checks entity ID values when checking inserted packets
14+
1115
# [v0.4.0] 2024-11-08
1216

1317
## Added

src/cfdppy/handler/dest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def state_machine(self, packet: GenericPduPacket | None = None) -> FsmResult:
433433
def _check_inserted_packet(self, packet: GenericPduPacket) -> None:
434434
if packet.direction != Direction.TOWARDS_RECEIVER:
435435
raise InvalidPduDirection(Direction.TOWARDS_RECEIVER, packet.pdu_header.direction)
436-
if packet.dest_entity_id != self.cfg.local_entity_id:
436+
if packet.dest_entity_id.value != self.cfg.local_entity_id.value:
437437
raise InvalidDestinationId(self.cfg.local_entity_id, packet.dest_entity_id)
438438
if self.remote_cfg_table.get_cfg(packet.source_entity_id) is None:
439439
raise NoRemoteEntityCfgFound(entity_id=packet.dest_entity_id)

0 commit comments

Comments
 (0)