X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/18349069c27a0b4fb2e39669fb535600805ad160..1a444762d8fd7d48e4f56a87c6bd77f837522d5d:/m17app/src/app.rs diff --git a/m17app/src/app.rs b/m17app/src/app.rs index a7bb3cd..7d363dd 100644 --- a/m17app/src/app.rs +++ b/m17app/src/app.rs @@ -84,12 +84,7 @@ pub struct TxHandle { } impl TxHandle { - pub fn transmit_packet( - &self, - link_setup: &LinkSetup, - packet_type: &PacketType, - payload: &[u8], - ) { + pub fn transmit_packet(&self, link_setup: &LinkSetup, packet_type: PacketType, payload: &[u8]) { let (pack_type, pack_type_len) = packet_type.as_proto(); if pack_type_len + payload.len() > 823 { // TODO: error for invalid transmission type @@ -204,7 +199,7 @@ fn spawn_reader(mut tnc: T, adapters: Arc>) { adapters.read().unwrap().packet.values().cloned().collect(); for s in subs { s.packet_received( - lsf.clone(), + LinkSetup::new_raw(lsf.clone()), packet_type.clone(), packet_payload.clone(), ); @@ -226,7 +221,7 @@ fn spawn_reader(mut tnc: T, adapters: Arc>) { let subs: Vec<_> = adapters.read().unwrap().stream.values().cloned().collect(); for s in subs { - s.stream_began(lsf.clone()); + s.stream_began(LinkSetup::new_raw(lsf.clone())); } } else if n == 26 { if !stream_running {