Skip to content

Commit

Permalink
Merge pull request #29 from sgaisser/destination_id_output
Browse files Browse the repository at this point in the history
Exception argument is wrong
  • Loading branch information
robamu authored Dec 2, 2024
2 parents 16138e8 + 60e7445 commit fb2f46d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cfdppy/handler/dest.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class TransactionStep(enum.Enum):
WAITING_FOR_METADATA = 2
"""Special state which is only used for acknowledged mode. The CFDP entity is still waiting
for a missing metadata PDU to be re-sent. Until then, all arriving file data PDUs will only
update the internal lost segment tracker. If the EOF PDU is arrive, the state will go to.
update the internal lost segment tracker. When the EOF PDU arrives, the state will be left.
Please note that deferred lost segment handling might also be active when this state is set."""
RECEIVING_FILE_DATA = 3
RECV_FILE_DATA_WITH_CHECK_LIMIT_HANDLING = 4
Expand Down Expand Up @@ -434,7 +434,7 @@ 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:
raise InvalidDestinationId(self.cfg.local_entity_id, packet.source_entity_id)
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)
if get_packet_destination(packet) == PacketDestination.SOURCE_HANDLER:
Expand Down

0 comments on commit fb2f46d

Please sign in to comment.