]> git.baikalelectronics.ru Git - kernel.git/commit
mpls: Correct the ttl decrement.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 7 Mar 2015 22:23:23 +0000 (16:23 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Mar 2015 23:30:06 +0000 (19:30 -0400)
commite59c2a7bb203e8f59e590613af1fb5794fc458bb
treeac11af07cf40a14c90b6bbd00c3c795719516992
parent3257c44e9ff9d0c16d43e482616ac7149b46928f
mpls: Correct the ttl decrement.

According to RFC3032 section 2.4.2  packets with an outgoing
ttl of 0 MUST NOT be forwarded.  According to section 2.4.1
an outgoing TTL of 0 comes from an incomming TTL <= 1.

Therefore any packets that is received with a ttl <= 1 should
not have it's ttl decremented and forwarded.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c