From 6c42de84e41d6b7f1f9c41dfb8fab890890f2495 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Wed, 22 Nov 2023 15:48:41 +0100 Subject: use correct fd for pppiocgidle --- src/supervisor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/supervisor.rs b/src/supervisor.rs index 6e9397d..4e94718 100644 --- a/src/supervisor.rs +++ b/src/supervisor.rs @@ -540,7 +540,7 @@ impl Client { _ = echo_timeout.tick() => { if *lcp_rx.borrow() { - if let Some(ctl) = ctl { + if let Some(ppp_dev) = ppp_dev { // Send an LCP Echo-Request every 12 seconds // if no data traffic has been received for 30 seconds. @@ -549,7 +549,7 @@ impl Client { recv_idle: 0, }; - if unsafe { ioctls::pppiocgidle64(ctl.as_raw_fd(), &mut idle) } < 0 { + if unsafe { ioctls::pppiocgidle64(ppp_dev.as_raw_fd(), &mut idle) } < 0 { os_err!(); } -- cgit v1.2.3