summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHugo Santos <hsantos@av.it.pt>2006-02-24 13:16:25 -0800
committerDavid S. Miller <davem@davemloft.net>2006-02-24 13:16:25 -0800
commit0c0888908dec145aaaa40d8a49d34913573f5a27 (patch)
treeaec1c2ada56fe338934bad1ca916328beff0a1c3 /net
parentf52ee1410d563cd409b08822492273a5bc235821 (diff)
downloadlwn-0c0888908dec145aaaa40d8a49d34913573f5a27.tar.gz
lwn-0c0888908dec145aaaa40d8a49d34913573f5a27.zip
[IPV6] ip6_tunnel: release cached dst on change of tunnel params
The included patch fixes ip6_tunnel to release the cached dst entry when the tunnel parameters (such as tunnel endpoints) are changed so they are used immediatly for the next encapsulated packets. Signed-off-by: Hugo Santos <hsantos@av.it.pt> Acked-by: Ville Nuorvala <vnuorval@tcs.hut.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/ip6_tunnel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index faea8a120ee2..48597538db3f 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -884,6 +884,7 @@ ip6ip6_tnl_change(struct ip6_tnl *t, struct ip6_tnl_parm *p)
t->parms.encap_limit = p->encap_limit;
t->parms.flowinfo = p->flowinfo;
t->parms.link = p->link;
+ ip6_tnl_dst_reset(t);
ip6ip6_tnl_link_config(t);
return 0;
}