Skip to content

Commit

Permalink
pppd: remove redundant rtentry device name init in cifdefaultroute() (#…
Browse files Browse the repository at this point in the history
…535)

The rtentry device name has already been set in commit:
9856f47 ("Specify the device name on the default route deletion")

Fixes: 35e5a56 (pppd: add support for defaultroute-metric option)

Signed-off-by: Shiji Yang <[email protected]>
  • Loading branch information
DragonBluep authored Nov 21, 2024
1 parent 5f6eabd commit 3102b0b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pppd/sys-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 3102b0b

Please sign in to comment.