From: DragonBluep <70847398+DragonBluep@users.noreply.github.com> Date: Thu, 21 Nov 2024 03:17:22 +0000 (+0800) Subject: pppd: remove redundant rtentry device name init in cifdefaultroute() (#535) X-Git-Tag: v2.5.2~8 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=3102b0b61816daad8b0c5b4212db1bf6828cb334;p=ppp.git 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 --- 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 */