lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 12 Dec 2007 17:00:14 +0100 From: Patrick McHardy <kaber@...sh.net> To: Michal Schmidt <mschmidt@...hat.com> CC: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>, Marcela Maslanova <mmaslano@...hat.com> Subject: Re: [PATCH] IPIP: Allow rebinding the tunnel to another interface Michal Schmidt wrote: > +static void ipip_tunnel_bind_dev(struct net_device *dev) > +{ ... > + dev->iflink = tunnel->parms.link; > +} > + > static int > ipip_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) > { > @@ -723,6 +757,10 @@ ipip_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) > t->parms.iph.ttl = p.iph.ttl; > t->parms.iph.tos = p.iph.tos; > t->parms.iph.frag_off = p.iph.frag_off; > + if (t->parms.link != p.link) { > + t->parms.link = p.link; > + ipip_tunnel_bind_dev(dev); > + } If you change dev->iflink this should trigger a rtnetlink notification. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists