From 3102b0b61816daad8b0c5b4212db1bf6828cb334 Mon Sep 17 00:00:00 2001 From: DragonBluep <70847398+DragonBluep@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:17:22 +0800 Subject: [PATCH] pppd: remove redundant rtentry device name init in cifdefaultroute() (#535) The rtentry device name has already been set in commit: 9856f47063c0 ("Specify the device name on the default route deletion") Fixes: 35e5a569c988 (pppd: add support for defaultroute-metric option) Signed-off-by: Shiji Yang --- pppd/sys-linux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index c0955a0..b497231 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -2279,8 +2279,6 @@ int cifdefaultroute (int unit, u_int32_t ouraddr, u_int32_t gateway) SET_SA_FAMILY (rt.rt_dst, AF_INET); SET_SA_FAMILY (rt.rt_gateway, AF_INET); - rt.rt_dev = ifname; - rt.rt_dev = ifname; rt.rt_metric = dfl_route_metric + 1; /* +1 for binary compatibility */ -- 2.39.5