On Wednesday 08 June 2005 21.10, you wrote: > feketgai@xxxxxxxx wrote: > > I needed to bind an interface to an ip6ip6 tunnel > > and I realized that it had no effect. > > I see that in linux/net/ipv6/ip6_tunnel.c/ip6ip6_tnl_change() > > there is no "t->parms.link = p->link;" line. After adding > > it I get the desired effect (packets sent via the tunnel are > > routed on the specified interface). > > Any reason why the updating of "link" is missing? > > That seems to be a bug. Can you send a patch? Here it is attached. Against 2.6.11.11. Thanks, Gabor
--- linux-2.6.11.11/net/ipv6/ip6_tunnel.c 2005-05-27 08:06:46.000000000 +0300 +++ linux-2.6.11.11-tnlfix/net/ipv6/ip6_tunnel.c 2005-06-08 21:22:55.000000000 +0300 @@ -881,6 +881,7 @@ t->parms.hop_limit = p->hop_limit; t->parms.encap_limit = p->encap_limit; t->parms.flowinfo = p->flowinfo; + t->parms.link = p->link; ip6ip6_tnl_link_config(t); return 0; }