]> err.no Git - linux-2.6/commit
[INET]: Use port unreachable instead of proto for tunnels
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Apr 2006 05:31:19 +0000 (22:31 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 10 Apr 2006 05:25:29 +0000 (22:25 -0700)
commit45af08be6d120690d379cb8421ebaf9d9f86ba52
tree5d0105eab9b524e0fa35b3caf9e6c1444e640010
parentcdee5751bf91d02616aaf30a5affef56105e3b79
[INET]: Use port unreachable instead of proto for tunnels

This patch changes GRE and SIT to generate port unreachable instead of
protocol unreachable errors when we can't find a matching tunnel for a
packet.

This removes the ambiguity as to whether the error is caused by no
tunnel being found or by the lack of support for the given tunnel
type.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
net/ipv6/sit.c