From 2e7a6164984e3fcef931db1cce6ff43d4a082722 Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Tue, 13 Oct 2026 00:09:50 -0600 Subject: [PATCH] telephony: retain exact transport ownership across Link setup --- .github/workflows/ci.yml | 4 +- Cargo.lock | 19 ++++--- Cargo.toml | 14 +++--- THIRD_PARTY_LICENSES.json | 2 +- api/fixtures/Cargo.lock | 19 ++++--- api/snapshots/manifest-contract.json | 18 +++---- crates/lxst-telephony/src/lib.rs | 49 ++++++++++++++----- crates/lxst-telephony/src/tests.rs | 33 ++++++++++++- .../tests/python_telephone_live_interop.rs | 20 ++++---- tools/check-source-release.py | 4 +- 10 files changed, 122 insertions(+), 60 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 022bd37..8f175c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,8 +10,8 @@ permissions: contents: read env: - RSLXST_RSRETICULUM_VERSION: 1.3.0 - RSLXST_RSRETICULUM_COMMIT: 799e946ac997f388395fec4e8c49ea55a03e5bc8 + RSLXST_RSRETICULUM_VERSION: 1.4.0 + RSLXST_RSRETICULUM_COMMIT: 4bba059d9343bd1296e5524a1c644a5137356dd7 RSLXST_PYTHON_LXST_COMMIT: 1194c9011fe6402edc7aebe7ffe9650ea3b1afee RSLXST_PYTHON_RNS_COMMIT: b48b96e61676504e0a4e527b33b9a0b4495c6872 diff --git a/Cargo.lock b/Cargo.lock index d6e58b3..4fd6585 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -951,7 +951,7 @@ dependencies = [ [[package]] name = "rns-crypto" -version = "1.3.0" +version = "1.4.0" dependencies = [ "aes", "cbc", @@ -969,9 +969,10 @@ dependencies = [ [[package]] name = "rns-identity" -version = "1.3.0" +version = "1.4.0" dependencies = [ "hex", + "libc", "rand 0.8.6", "rmp-serde", "rmpv", @@ -979,6 +980,7 @@ dependencies = [ "rns-wire", "serde", "serde_bytes", + "sha2", "thiserror 2.0.18", "tracing", "windows-sys 0.61.2", @@ -987,7 +989,7 @@ dependencies = [ [[package]] name = "rns-interface" -version = "1.3.0" +version = "1.4.0" dependencies = [ "bytes", "hex", @@ -1015,7 +1017,7 @@ dependencies = [ [[package]] name = "rns-link" -version = "1.3.0" +version = "1.4.0" dependencies = [ "hex", "rand 0.8.6", @@ -1030,7 +1032,7 @@ dependencies = [ [[package]] name = "rns-protocol" -version = "1.3.0" +version = "1.4.0" dependencies = [ "bzip2", "hex", @@ -1039,6 +1041,7 @@ dependencies = [ "rns-crypto", "rns-link", "rns-wire", + "serde", "thiserror 2.0.18", "tokio", "tracing", @@ -1046,7 +1049,7 @@ dependencies = [ [[package]] name = "rns-runtime" -version = "1.3.0" +version = "1.4.0" dependencies = [ "bytes", "hex", @@ -1073,7 +1076,7 @@ dependencies = [ [[package]] name = "rns-transport" -version = "1.3.0" +version = "1.4.0" dependencies = [ "bytes", "hex", @@ -1092,7 +1095,7 @@ dependencies = [ [[package]] name = "rns-wire" -version = "1.3.0" +version = "1.4.0" dependencies = [ "rns-crypto", "sha2", diff --git a/Cargo.toml b/Cargo.toml index ce0dc47..f956eb0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,13 +27,13 @@ proptest = "1" opus-rs = { version = "=0.1.29", default-features = false, features = ["heap"] } serial_test = "3" -rns-crypto = { path = "../rsReticulum/crates/rns-crypto", version = "~1.3.0" } -rns-identity = { path = "../rsReticulum/crates/rns-identity", version = "~1.3.0" } -rns-interface = { path = "../rsReticulum/crates/rns-interface", version = "~1.3.0" } -rns-link = { path = "../rsReticulum/crates/rns-link", version = "~1.3.0" } -rns-runtime = { path = "../rsReticulum/crates/rns-runtime", version = "~1.3.0" } -rns-transport = { path = "../rsReticulum/crates/rns-transport", version = "~1.3.0" } -rns-wire = { path = "../rsReticulum/crates/rns-wire", version = "~1.3.0" } +rns-crypto = { path = "../rsReticulum/crates/rns-crypto", version = "~1.4.0" } +rns-identity = { path = "../rsReticulum/crates/rns-identity", version = "~1.4.0" } +rns-interface = { path = "../rsReticulum/crates/rns-interface", version = "~1.4.0" } +rns-link = { path = "../rsReticulum/crates/rns-link", version = "~1.4.0" } +rns-runtime = { path = "../rsReticulum/crates/rns-runtime", version = "~1.4.0" } +rns-transport = { path = "../rsReticulum/crates/rns-transport", version = "~1.4.0" } +rns-wire = { path = "../rsReticulum/crates/rns-wire", version = "~1.4.0" } lxst-core = { path = "crates/lxst-core", version = "0.3.0" } lxst-rns = { path = "crates/lxst-rns", version = "0.3.0" } diff --git a/THIRD_PARTY_LICENSES.json b/THIRD_PARTY_LICENSES.json index 456daea..d84a70b 100644 --- a/THIRD_PARTY_LICENSES.json +++ b/THIRD_PARTY_LICENSES.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "scope": "Adapted Codec2 and all registry third-party normal/build dependencies reachable from rsLXST workspace members across declared targets; dev-only and first-party path packages are excluded.", - "cargoLockSha256": "09011942917a316260e352f0ccf2a69a03a3d9ffe4d106ced443b60ef62411fb", + "cargoLockSha256": "cf1b2bbeba30dcebc335e6aa9a95e01f29ff2acdf8a9560178d4b081118095de", "packages": [ { "name": "aes", diff --git a/api/fixtures/Cargo.lock b/api/fixtures/Cargo.lock index f17a955..503510b 100644 --- a/api/fixtures/Cargo.lock +++ b/api/fixtures/Cargo.lock @@ -708,7 +708,7 @@ dependencies = [ [[package]] name = "rns-crypto" -version = "1.3.0" +version = "1.4.0" dependencies = [ "aes", "cbc", @@ -726,9 +726,10 @@ dependencies = [ [[package]] name = "rns-identity" -version = "1.3.0" +version = "1.4.0" dependencies = [ "hex", + "libc", "rand", "rmp-serde", "rmpv", @@ -736,6 +737,7 @@ dependencies = [ "rns-wire", "serde", "serde_bytes", + "sha2", "thiserror 2.0.20", "tracing", "windows-sys 0.61.2", @@ -744,7 +746,7 @@ dependencies = [ [[package]] name = "rns-interface" -version = "1.3.0" +version = "1.4.0" dependencies = [ "bytes", "hex", @@ -772,7 +774,7 @@ dependencies = [ [[package]] name = "rns-link" -version = "1.3.0" +version = "1.4.0" dependencies = [ "hex", "rand", @@ -787,7 +789,7 @@ dependencies = [ [[package]] name = "rns-protocol" -version = "1.3.0" +version = "1.4.0" dependencies = [ "bzip2", "hex", @@ -796,6 +798,7 @@ dependencies = [ "rns-crypto", "rns-link", "rns-wire", + "serde", "thiserror 2.0.20", "tokio", "tracing", @@ -803,7 +806,7 @@ dependencies = [ [[package]] name = "rns-runtime" -version = "1.3.0" +version = "1.4.0" dependencies = [ "bytes", "hex", @@ -830,7 +833,7 @@ dependencies = [ [[package]] name = "rns-transport" -version = "1.3.0" +version = "1.4.0" dependencies = [ "bytes", "hex", @@ -849,7 +852,7 @@ dependencies = [ [[package]] name = "rns-wire" -version = "1.3.0" +version = "1.4.0" dependencies = [ "rns-crypto", "sha2", diff --git a/api/snapshots/manifest-contract.json b/api/snapshots/manifest-contract.json index e278782..dff6e1a 100644 --- a/api/snapshots/manifest-contract.json +++ b/api/snapshots/manifest-contract.json @@ -190,7 +190,7 @@ "rename": null, "kind": null, "target": null, - "requirement": "~1.3.0", + "requirement": "~1.4.0", "optional": false, "defaultFeatures": true, "features": [], @@ -201,7 +201,7 @@ "rename": null, "kind": null, "target": null, - "requirement": "~1.3.0", + "requirement": "~1.4.0", "optional": false, "defaultFeatures": true, "features": [], @@ -212,7 +212,7 @@ "rename": null, "kind": null, "target": null, - "requirement": "~1.3.0", + "requirement": "~1.4.0", "optional": false, "defaultFeatures": true, "features": [], @@ -315,7 +315,7 @@ "rename": null, "kind": null, "target": null, - "requirement": "~1.3.0", + "requirement": "~1.4.0", "optional": false, "defaultFeatures": true, "features": [], @@ -326,7 +326,7 @@ "rename": null, "kind": null, "target": null, - "requirement": "~1.3.0", + "requirement": "~1.4.0", "optional": false, "defaultFeatures": true, "features": [], @@ -337,7 +337,7 @@ "rename": null, "kind": null, "target": null, - "requirement": "~1.3.0", + "requirement": "~1.4.0", "optional": false, "defaultFeatures": true, "features": [], @@ -348,7 +348,7 @@ "rename": null, "kind": null, "target": null, - "requirement": "~1.3.0", + "requirement": "~1.4.0", "optional": false, "defaultFeatures": true, "features": [], @@ -359,7 +359,7 @@ "rename": null, "kind": null, "target": null, - "requirement": "~1.3.0", + "requirement": "~1.4.0", "optional": false, "defaultFeatures": true, "features": [], @@ -370,7 +370,7 @@ "rename": null, "kind": null, "target": null, - "requirement": "~1.3.0", + "requirement": "~1.4.0", "optional": false, "defaultFeatures": true, "features": [], diff --git a/crates/lxst-telephony/src/lib.rs b/crates/lxst-telephony/src/lib.rs index 56f7e92..ce73a8c 100644 --- a/crates/lxst-telephony/src/lib.rs +++ b/crates/lxst-telephony/src/lib.rs @@ -2481,6 +2481,7 @@ pub struct TelephonyRnsEndpoint { } struct OutgoingLinkAttempt { + dispatch_result: Option>>, link: Link, remote_public_key: [u8; 64], event_rx: mpsc::Receiver, @@ -2493,6 +2494,7 @@ struct OutgoingLinkState { } struct OutgoingEndpointState { + interface_owner: Option, attached_interface: InterfaceId, bind_result_rx: Option>, lifecycle_rx: mpsc::UnboundedReceiver, @@ -2549,7 +2551,8 @@ impl TelephonyRnsEndpoint { let (closed_tx, link_closed_rx) = mpsc::channel(64); manager.set_link_established_channel(established_tx); manager.set_link_identified_channel(identified_tx); - manager.set_link_packet_channel(packet_tx); + manager.set_ordinary_packet_proof_strategy(ProofStrategy::ProveNone).expect("voice packets do not use delivery proofs"); + manager.set_link_packet_channel(packet_tx).expect("voice packets use automatic proof policy"); manager.set_link_closed_channel(closed_tx); Ok(Self { @@ -2742,17 +2745,25 @@ impl TelephonyRnsEndpoint { }, )?; - try_send_transport( + let (dispatch_tx,dispatch_rx)=oneshot::channel(); + if let Err(error)=try_send_transport( &self.transport_tx, - TransportMessage::Outbound(OutboundRequest { - raw: build_link_request_packet(destination_hash, &request_data), - destination_hash, - }), - )?; + TransportMessage::SendLinkRequest { + request: OutboundRequest { + raw: build_link_request_packet(destination_hash, &request_data), + destination_hash, + }, + result_tx:dispatch_tx, + }, + ) { + self.close_outgoing_link_locally(link_id)?; + return Err(error); + } self.outgoing_attempts.insert( link_id, OutgoingLinkAttempt { + dispatch_result:Some(dispatch_rx), link, remote_public_key, event_rx, @@ -3223,6 +3234,16 @@ impl TelephonyRnsEndpoint { let Some(attempt) = self.outgoing_attempts.get_mut(&link_id) else { continue; }; + if let Some(receiver)=attempt.dispatch_result.as_mut() { + match receiver.try_recv() { + Ok(Ok(()))=>attempt.dispatch_result=None, + Ok(Err(_))|Err(oneshot::error::TryRecvError::Closed)=> { + self.close_outgoing_link_locally(link_id)?; + return Ok(Some(TelephonyLinkEvent::LinkClosed {link_id})); + }, + Err(oneshot::error::TryRecvError::Empty)=>continue, + } + } match attempt.event_rx.try_recv() { Ok(event) => { if let Some(event) = self.handle_outgoing_attempt_event(link_id, event)? { @@ -3446,7 +3467,7 @@ impl TelephonyRnsEndpoint { link_id: LinkId, event: DestinationEvent, ) -> Result, Error> { - let (raw, interface_id, metrics) = match event { + let (raw, interface_id, interface_owner, metrics) = match event { DestinationEvent::LinkClosed { link_id: closed_id } if closed_id == link_id => { self.close_outgoing_link_locally(link_id)?; return Ok(Some(TelephonyLinkEvent::LinkClosed { link_id })); @@ -3454,8 +3475,9 @@ impl TelephonyRnsEndpoint { DestinationEvent::InboundPacket { raw, interface_id, + interface_owner, metrics, - } => (raw, interface_id, metrics), + } => (raw, interface_id, interface_owner, metrics), DestinationEvent::AnnounceRequested(_) | DestinationEvent::DeliveryProof { .. } | DestinationEvent::LinkEstablished { .. } @@ -3518,6 +3540,7 @@ impl TelephonyRnsEndpoint { binding: LinkEndpointBinding { link_id, interface_id, + interface_owner, role: LinkEndpointRole::Initiator, }, lifecycle_tx, @@ -3548,6 +3571,7 @@ impl TelephonyRnsEndpoint { event_rx: attempt.event_rx, endpoint: Some(OutgoingEndpointState { attached_interface: interface_id, + interface_owner, bind_result_rx: Some(bind_result_rx), lifecycle_rx, }), @@ -3562,7 +3586,7 @@ impl TelephonyRnsEndpoint { link_id: LinkId, event: DestinationEvent, ) -> Result, Error> { - let (raw, interface_id, metrics) = match event { + let (raw, interface_id, interface_owner, metrics) = match event { DestinationEvent::LinkClosed { link_id: closed_id } if closed_id == link_id => { self.close_outgoing_link_locally(link_id)?; return Ok(Some(TelephonyLinkEvent::LinkClosed { link_id })); @@ -3570,8 +3594,9 @@ impl TelephonyRnsEndpoint { DestinationEvent::InboundPacket { raw, interface_id, + interface_owner, metrics, - } => (raw, interface_id, metrics), + } => (raw, interface_id, interface_owner, metrics), DestinationEvent::AnnounceRequested(_) | DestinationEvent::DeliveryProof { .. } | DestinationEvent::LinkEstablished { .. } @@ -3582,7 +3607,7 @@ impl TelephonyRnsEndpoint { .outgoing_links .get(&link_id) .and_then(|state| state.endpoint.as_ref()) - .is_some_and(|endpoint| endpoint.attached_interface != interface_id) + .is_some_and(|endpoint| endpoint.attached_interface != interface_id || endpoint.interface_owner != interface_owner) { return Ok(None); } diff --git a/crates/lxst-telephony/src/tests.rs b/crates/lxst-telephony/src/tests.rs index 6811dac..bcd0321 100644 --- a/crates/lxst-telephony/src/tests.rs +++ b/crates/lxst-telephony/src/tests.rs @@ -211,6 +211,7 @@ fn queue_inbound_opus_frame( let encrypted = receiver.encrypt(&plaintext).unwrap(); link_event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::None, @@ -229,6 +230,10 @@ fn take_outbound( let message = rx.try_recv().unwrap(); match message { TransportMessage::Outbound(outbound) => break outbound, + TransportMessage::SendLinkRequest { request, result_tx } => { + result_tx.send(Ok(())).unwrap(); + break request; + } TransportMessage::SendLinkEndpoint { request: outbound, result_tx, @@ -1103,7 +1108,7 @@ fn rns_endpoint_try_step_feeds_established_and_packet_events() { ); let (packet_tx, packet_rx) = mpsc::unbounded_channel(); - endpoint.manager.set_link_packet_channel(packet_tx.clone()); + endpoint.manager.set_link_packet_channel(packet_tx.clone()).unwrap(); endpoint.link_packet_rx = packet_rx; let remote = identity(0xD2); core.caller_identified(link_id, remote).unwrap(); @@ -1153,7 +1158,7 @@ fn rns_endpoint_try_drive_once_executes_step_commands() { .unwrap(); let (packet_tx, packet_rx) = mpsc::unbounded_channel(); - endpoint.manager.set_link_packet_channel(packet_tx.clone()); + endpoint.manager.set_link_packet_channel(packet_tx.clone()).unwrap(); endpoint.link_packet_rx = packet_rx; packet_tx .send(( @@ -1194,6 +1199,7 @@ fn rns_endpoint_try_drive_ready_pumps_reticulum_handshake_events() { let link_id = initiator.link_id; destination_tx .try_send(DestinationEvent::LinkRequest { + interface_owner: None, raw: build_link_request_packet(endpoint.destination_hash, &request_data), interface_id: 7, metrics: PacketMetrics::default(), @@ -1262,6 +1268,7 @@ fn rns_endpoint_try_drive_ready_pumps_reticulum_handshake_events() { destination_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::Lrrtt, @@ -2441,6 +2448,7 @@ async fn telephony_service_decodes_inbound_opus_frames_with_call_profile() { let encrypted = receiver.encrypt(&plaintext).unwrap(); link_event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::None, @@ -2816,6 +2824,7 @@ async fn telephony_service_stops_media_streams_on_established_profile_switch() { let encrypted = receiver.encrypt(&plaintext).unwrap(); link_event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::None, @@ -3013,6 +3022,7 @@ fn outgoing_link_attempt_promotes_after_proof_and_drives_available_signal() { *invalid_proof_data.last_mut().unwrap() ^= 0x01; link_event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_proof_packet(link_id, &invalid_proof_data)), interface_id: 7, metrics: PacketMetrics { @@ -3034,6 +3044,7 @@ fn outgoing_link_attempt_promotes_after_proof_and_drives_available_signal() { link_event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_proof_packet(link_id, &proof_data)), interface_id: 1, metrics: PacketMetrics::default(), @@ -3067,6 +3078,7 @@ fn outgoing_link_attempt_promotes_after_proof_and_drives_available_signal() { link_event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::Keepalive, @@ -3084,6 +3096,7 @@ fn outgoing_link_attempt_promotes_after_proof_and_drives_available_signal() { let encrypted_available = responder.encrypt(&available).unwrap(); link_event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::None, @@ -3120,6 +3133,7 @@ fn outgoing_link_attempt_promotes_after_proof_and_drives_available_signal() { let close_data = responder.teardown(CloseReason::DestinationClosed).unwrap(); link_event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::LinkClose, @@ -3285,6 +3299,7 @@ fn outgoing_link_ignores_unauthenticated_remote_close() { event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::LinkClose, @@ -3325,6 +3340,7 @@ fn outgoing_link_closes_on_authenticated_remote_close() { event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::LinkClose, @@ -3386,6 +3402,7 @@ fn outgoing_attempt_transport_close_deregisters_link_destination() { endpoint.outgoing_attempts.insert( link_id, OutgoingLinkAttempt { + dispatch_result: None, link, remote_public_key: remote_identity.get_public_key(), event_rx, @@ -3417,6 +3434,7 @@ fn outgoing_attempt_ignores_shared_instance_announce_request() { endpoint.outgoing_attempts.insert( link_id, OutgoingLinkAttempt { + dispatch_result: None, link, remote_public_key: remote_identity.get_public_key(), event_rx, @@ -3486,6 +3504,7 @@ fn outgoing_active_ignores_inbound_link_request_event() { event_tx .try_send(DestinationEvent::LinkRequest { + interface_owner: None, raw: Bytes::from_static(&[0x01, 0x02, 0x03]), interface_id: 1, metrics: PacketMetrics::default(), @@ -3517,6 +3536,7 @@ fn outgoing_active_ignores_packet_for_other_destination() { event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link(0xE7), rns_wire::context::PacketContext::None, @@ -3584,6 +3604,7 @@ fn endpoint_teardown_of_outgoing_attempt_deregisters_link_destination() { endpoint.outgoing_attempts.insert( link_id, OutgoingLinkAttempt { + dispatch_result: None, link, remote_public_key: remote_identity.get_public_key(), event_rx, @@ -3665,6 +3686,7 @@ fn pinned_outgoing_link_rejects_wrong_interface_before_crypto_or_accounting() { link: sender, event_rx, endpoint: Some(OutgoingEndpointState { + interface_owner: None, attached_interface: 7, bind_result_rx: Some(bind_result_rx), lifecycle_rx, @@ -3683,6 +3705,7 @@ fn pinned_outgoing_link_rejects_wrong_interface_before_crypto_or_accounting() { )); event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: raw.clone(), interface_id: 8, metrics: PacketMetrics { @@ -3700,6 +3723,7 @@ fn pinned_outgoing_link_rejects_wrong_interface_before_crypto_or_accounting() { event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw, interface_id: 7, metrics: PacketMetrics::default(), @@ -3733,6 +3757,7 @@ fn initiator_interface_loss_closes_exact_call_once() { link: sender, event_rx, endpoint: Some(OutgoingEndpointState { + interface_owner: None, attached_interface: 7, bind_result_rx: Some(bind_result_rx), lifecycle_rx, @@ -3742,6 +3767,7 @@ fn initiator_interface_loss_closes_exact_call_once() { lifecycle_tx .send(LinkEndpointLifecycleEvent { binding: LinkEndpointBinding { + interface_owner: None, link_id, interface_id: 7, role: LinkEndpointRole::Initiator, @@ -3773,6 +3799,7 @@ fn outgoing_link_attempt_timeout_is_driven_by_endpoint_tick() { endpoint.outgoing_attempts.insert( link_id, OutgoingLinkAttempt { + dispatch_result: None, link, remote_public_key: remote_identity.get_public_key(), event_rx, @@ -3781,6 +3808,7 @@ fn outgoing_link_attempt_timeout_is_driven_by_endpoint_tick() { event_tx .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_proof_packet(link_id, &[0xA5; 96])), interface_id: 44, metrics: PacketMetrics { @@ -4032,6 +4060,7 @@ async fn native_codec2_duplex_and_input_lease_use_the_real_link() { .unwrap(); incoming .try_send(DestinationEvent::InboundPacket { + interface_owner: None, raw: Bytes::from(link_data_packet( link_id, rns_wire::context::PacketContext::None, diff --git a/crates/lxst-telephony/tests/python_telephone_live_interop.rs b/crates/lxst-telephony/tests/python_telephone_live_interop.rs index ae3fa01..d07bf9d 100644 --- a/crates/lxst-telephony/tests/python_telephone_live_interop.rs +++ b/crates/lxst-telephony/tests/python_telephone_live_interop.rs @@ -337,6 +337,8 @@ fn register_interface_entry( _ => rns_transport::constants::InterfaceMode::Gateway, }; let entry = InterfaceEntry { + owner: handle.owner, + packet_capacity: handle.packet_capacity, name: handle.name, mode, role: InterfaceRole::Normal, @@ -1063,6 +1065,15 @@ async fn python_telephone_announce_reaches_rust_transport() { .expect("timeout waiting for Python Telephone helper TCP connection") .expect("TCP accept channel closed"); + let (accepted_id, accepted_entry, accepted_read_task) = register_interface_entry(accepted); + actor_tx + .send(TransportMessage::RegisterInterface { + id: accepted_id, + entry: accepted_entry, + }) + .await + .expect("register accepted Python TCP interface"); + helper.send(json!({"cmd": "announce", "id": "announce-1"})); let announced = helper.wait_event("ANNOUNCED", Duration::from_secs(10)); assert_eq!(announced["destination_hash"], hex::encode(destination_hash)); @@ -1082,15 +1093,6 @@ async fn python_telephone_announce_reaches_rust_transport() { "direct Python TCP announce should not arrive through a routed path" ); - let (accepted_id, accepted_entry, accepted_read_task) = register_interface_entry(accepted); - actor_tx - .send(TransportMessage::RegisterInterface { - id: accepted_id, - entry: accepted_entry, - }) - .await - .expect("register accepted Python TCP interface"); - let local_identity = Identity::new(); let endpoint = TelephonyRnsEndpoint::register(actor_tx.clone(), &local_identity) .expect("register Rust LXST Telephone endpoint"); diff --git a/tools/check-source-release.py b/tools/check-source-release.py index be37c9d..d5b6391 100644 --- a/tools/check-source-release.py +++ b/tools/check-source-release.py @@ -14,8 +14,8 @@ ROOT = Path(__file__).resolve().parents[1] EXPECTED_PACKAGES = {"lxst-core", "lxst-codec2", "lxst-embedded", "lxst-rns", "lxst-telephony"} EXPECTED_MSRV = "1.89" EMBEDDED_MSRV = {"lxst-codec2": "1.87", "lxst-embedded": "1.87"} -EXPECTED_RETICULUM_VERSION = "1.3.0" -EXPECTED_RETICULUM_COMMIT = "799e946ac997f388395fec4e8c49ea55a03e5bc8" +EXPECTED_RETICULUM_VERSION = "1.4.0" +EXPECTED_RETICULUM_COMMIT = "4bba059d9343bd1296e5524a1c644a5137356dd7" EXPECTED_OPUS_DEPENDENCY = ( 'opus-rs = { version = "=0.1.29", default-features = false, ' 'features = ["heap"] }'