diff options
author | Dmitry Popov <ixaphire@qrator.net> | 2014-06-08 03:03:08 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-11 11:43:37 +0400 |
commit | 5ce54af1fc9d2718d46c9fd92a161379fb197266 (patch) | |
tree | e34303a4c625ab15d9a1bb457181227973721461 /net/ipv6/datagram.c | |
parent | 7c8e6b9c2811fd37702a9043eabea3545022011e (diff) | |
download | linux-5ce54af1fc9d2718d46c9fd92a161379fb197266.tar.xz |
ip_tunnel: fix i_key matching in ip_tunnel_find
Some tunnels (though only vti as for now) can use i_key just for internal use:
for example vti uses it for fwmark'ing incoming packets. So raw i_key value
shouldn't be treated as a distinguisher for them. ip_tunnel_key_match exists for
cases when we want to compare two ip_tunnel_parms' i_keys.
Example bug:
ip link add type vti ikey 1 local 1.0.0.1 remote 2.0.0.2
ip link add type vti ikey 2 local 1.0.0.1 remote 2.0.0.2
spawned two tunnels, although it doesn't make sense.
Signed-off-by: Dmitry Popov <ixaphire@qrator.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/datagram.c')
0 files changed, 0 insertions, 0 deletions