From b2a82d9898d17dd16dc6978e37c8b25a4594f2e1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 1 Aug 2021 19:20:14 +0100 Subject: [PATCH] fix Signed-off-by: Ian Jackson --- src/bin/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/client.rs b/src/bin/client.rs index 3f2b448..1bac9c3 100644 --- a/src/bin/client.rs +++ b/src/bin/client.rs @@ -174,7 +174,7 @@ async fn run_client( }); let tx_stream = ipif.stdout.take().unwrap(); - let mut tx_stream = tokio::io::BufReader::new(tx_stream).split(SLIP_ESC); + let mut tx_stream = tokio::io::BufReader::new(tx_stream).split(SLIP_END); let mut tx_defer = None; let stream_for_rx = ipif.stdin .take().unwrap(); @@ -207,6 +207,7 @@ async fn run_client( let mut packet = packet.context("read from ipif")? .ok_or_else(|| io::Error::from(io::ErrorKind::UnexpectedEof))?; +// eprintln!("packet={:x?}", &packet); if let Ok(()) = check_checkmtu_mimeswap ::(&ic, &mut packet) { -- 2.30.2