Skip to content

Commit

Permalink
net: mpls: Fix setting ttl_propagate for rt2
Browse files Browse the repository at this point in the history
Fix copy and paste error setting rt_ttl_propagate.

Fixes: 5b441ac ("mpls: allow TTL propagation to IP packets to be configured")
Signed-off-by: David Ahern <[email protected]>
Acked-by: Robert Shearman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
David Ahern authored and davem330 committed Mar 24, 2017
1 parent c483674 commit 6a18c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mpls/af_mpls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6a18c31

Please sign in to comment.