summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2017-03-23 19:02:27 -0600
committerDavid S. Miller <davem@davemloft.net>2017-03-24 13:29:17 -0700
commit6a18c312320766b6d13a12c681f77df04894f1a5 (patch)
tree465059131a11e37531d2741bb847b97d2e831f25
parentc48367427a39ea0b85c7cf018fe4256627abfd9e (diff)
downloadlinux-6a18c312320766b6d13a12c681f77df04894f1a5.tar.gz
linux-6a18c312320766b6d13a12c681f77df04894f1a5.tar.bz2
linux-6a18c312320766b6d13a12c681f77df04894f1a5.zip
net: mpls: Fix setting ttl_propagate for rt2
Fix copy and paste error setting rt_ttl_propagate. Fixes: 5b441ac8784c1 ("mpls: allow TTL propagation to IP packets to be configured") Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Acked-by: Robert Shearman <rshearma@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/mpls/af_mpls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index 82589b2abf3c..cd8be8d5e4ad 100644
--- a/net/mpls/af_mpls.c
+++ b/net/mpls/af_mpls.c
@@ -1949,7 +1949,7 @@ static int resize_platform_label_table(struct net *net, size_t limit)
RCU_INIT_POINTER(rt2->rt_nh->nh_dev, lo);
rt2->rt_protocol = RTPROT_KERNEL;
rt2->rt_payload_type = MPT_IPV6;
- rt0->rt_ttl_propagate = MPLS_TTL_PROP_DEFAULT;
+ rt2->rt_ttl_propagate = MPLS_TTL_PROP_DEFAULT;
rt2->rt_nh->nh_via_table = NEIGH_LINK_TABLE;
rt2->rt_nh->nh_via_alen = lo->addr_len;
memcpy(__mpls_nh_via(rt2, rt2->rt_nh), lo->dev_addr,