]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitaa7da9375677d31dd53ed6253f55cb19e3075811
treeac11af07cf40a14c90b6bbd00c3c795719516992
parent0f7bbd5805e3d32e3ee58d1a802a8404a724f2fc
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