mirror of
https://github.com/paulusmack/ppp.git
synced 2024-11-23 02:13:28 +08:00
pppd: remove redundant rtentry device name init in cifdefaultroute() (#535)
The rtentry device name has already been set in commit:9856f47063
("Specify the device name on the default route deletion") Fixes:35e5a569c9
(pppd: add support for defaultroute-metric option) Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
This commit is contained in:
parent
5f6eabdb66
commit
3102b0b618
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user