Message ID | 20190806175141.GA17852@ubuntu |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show |
Series | [sashal@kernel.org:,Re:,Back-porting,request] | expand |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index cd84f7f68032..120ef1f284fa 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1652,11 +1652,7 @@ struct rtable *rt_dst_clone(struct net_device *dev, struct rtable *rt) new_rt->rt_iif = rt->rt_iif; new_rt->rt_pmtu = rt->rt_pmtu; new_rt->rt_mtu_locked = rt->rt_mtu_locked; - new_rt->rt_gw_family = rt->rt_gw_family; - if (rt->rt_gw_family == AF_INET) - new_rt->rt_gw4 = rt->rt_gw4; - else if (rt->rt_gw_family == AF_INET6) - new_rt->rt_gw6 = rt->rt_gw6; + new_rt->rt_gateway = rt->rt_gateway; INIT_LIST_HEAD(&new_rt->rt_uncached); new_rt->dst.flags |= DST_HOST;