Nicolas Dichtel
8d89dcdf80
vti: don't allow to add the same tunnel twice
...
Before the patch, it was possible to add two times the same tunnel:
ip l a vti1 type vti remote 10.16.0.121 local 10.16.0.249 key 41
ip l a vti2 type vti remote 10.16.0.121 local 10.16.0.249 key 41
It was possible, because ip_tunnel_newlink() calls ip_tunnel_find() with the
argument dev->type, which was set only later (when calling ndo_init handler
in register_netdevice()). Let's set this type in the setup handler, which is
called before newlink handler.
Introduced by commit b9959fd3b0fa ("vti: switch to new ip tunnel code").
CC: Cong Wang <amwang@redhat.com>
CC: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-04-12 17:03:11 -04:00
..
2014-04-05 17:46:22 +02:00
2014-03-14 22:41:36 -04:00
2014-02-25 07:04:17 +01:00
2014-01-02 00:08:38 -05:00
2013-12-26 13:43:21 -05:00
2013-12-06 07:24:39 +01:00
2014-02-06 20:02:15 -08:00
2014-02-25 07:04:17 +01:00
2014-03-24 12:45:01 -04:00
2013-12-28 17:01:46 -05:00
2013-12-10 17:54:23 -05:00
2013-12-28 17:01:46 -05:00
2013-11-15 09:32:20 +09:00
2014-03-26 15:18:40 -04:00
2014-01-16 16:08:27 -08:00
2014-01-13 11:22:55 -08:00
2014-01-14 15:15:25 -08:00
2014-01-14 15:15:25 -08:00
2014-01-13 22:35:46 -08:00
2014-03-06 15:28:45 -05:00
2013-10-19 19:45:35 -04:00
2013-12-29 16:34:25 -05:00
2013-10-08 23:19:24 -04:00
2013-12-28 17:03:20 -05:00
2014-02-19 01:24:22 -05:00
2013-12-17 16:36:21 -05:00
2014-04-12 17:03:11 -04:00
2014-01-27 16:22:11 -08:00
2014-01-02 03:30:36 -05:00
2014-03-05 20:32:02 -05:00
2014-02-26 15:51:00 -05:00
2014-03-29 18:48:54 -04:00
2014-03-29 18:48:54 -04:00
2014-04-12 17:03:11 -04:00
2014-02-25 07:04:17 +01:00
2014-02-14 00:14:23 -05:00
2014-01-18 23:08:02 -08:00
2014-03-20 16:24:28 -04:00
2013-09-03 21:41:43 -04:00
2014-02-25 07:04:16 +01:00
2014-02-19 11:41:25 +01:00
2014-02-19 16:28:42 -05:00
2014-03-03 15:58:03 -05:00
2013-11-28 18:47:51 -05:00
2014-02-19 16:28:42 -05:00
2014-04-07 16:36:14 -07:00
2013-12-26 13:43:21 -05:00
2014-01-13 11:22:54 -08:00
2013-11-04 19:57:59 -05:00
2014-03-05 20:32:02 -05:00
2014-02-26 17:08:40 -05:00
2013-11-04 19:57:47 -05:00
2014-02-13 18:22:34 -05:00
2013-11-04 19:57:59 -05:00
2014-02-26 17:08:40 -05:00
2014-02-26 17:08:40 -05:00
2014-04-11 16:15:36 -04:00
2014-04-11 16:15:36 -04:00
2014-02-26 17:08:40 -05:00
2014-03-19 10:23:54 -04:00
2014-02-26 17:08:40 -05:00
2014-04-11 16:15:36 -04:00
2014-01-14 18:53:48 -08:00
2014-03-27 15:10:10 -04:00
2014-02-26 17:08:40 -05:00
2014-02-13 18:22:34 -05:00
2014-03-03 15:58:03 -05:00
2014-02-26 17:08:40 -05:00
2013-10-19 19:12:11 -04:00
2014-02-26 17:08:40 -05:00
2014-02-13 18:22:34 -05:00
2014-02-26 17:08:40 -05:00
2014-03-05 20:32:02 -05:00
2013-04-19 14:57:56 -04:00
2013-10-19 19:12:11 -04:00
2014-02-04 20:01:55 -08:00
2014-02-19 16:28:42 -05:00
2014-02-25 07:04:16 +01:00
2013-12-26 13:43:21 -05:00
2014-02-25 07:04:18 +01:00
2013-08-26 12:40:53 +02:00
2014-03-14 07:28:07 +01:00
2014-03-14 07:28:07 +01:00
2013-12-18 16:58:20 -05:00
2013-05-31 17:19:05 -07:00