William Dauchy
25629fdaff
net, ip_tunnel: fix interface lookup with no key
...
when creating a new ipip interface with no local/remote configuration,
the lookup is done with TUNNEL_NO_KEY flag, making it impossible to
match the new interface (only possible match being fallback or metada
case interface); e.g: `ip link add tunl1 type ipip dev eth0`
To fix this case, adding a flag check before the key comparison so we
permit to match an interface with no local/remote config; it also avoids
breaking possible userland tools relying on TUNNEL_NO_KEY flag and
uninitialised key.
context being on my side, I'm creating an extra ipip interface attached
to the physical one, and moving it to a dedicated namespace.
Fixes: c544193214
("GRE: Refactor GRE tunneling code.")
Signed-off-by: William Dauchy <w.dauchy@criteo.com >
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2020-03-29 22:16:27 -07:00
..
2019-05-21 12:33:38 -07:00
2020-02-04 03:05:26 +00:00
2019-11-26 13:20:46 -08:00
2019-06-06 08:34:50 +02:00
2019-05-30 11:26:32 -07:00
2020-03-17 20:40:19 +01:00
2020-02-22 21:45:55 -08:00
2019-11-01 14:57:52 -07:00
2019-12-07 11:55:11 -08:00
2020-01-15 12:18:35 +01:00
2019-12-09 09:59:07 +01:00
2020-03-23 20:59:40 -07:00
2020-01-14 18:53:35 -08:00
2019-10-04 11:10:56 -07:00
2019-10-04 11:10:56 -07:00
2020-01-14 18:53:35 -08:00
2020-03-29 21:51:28 -07:00
2020-01-23 14:32:52 +01:00
2020-03-08 21:25:37 -07:00
2020-01-03 12:24:34 -08:00
2020-02-13 14:19:00 -08:00
2019-10-04 14:26:46 -07:00
2020-03-11 23:57:33 -07:00
2020-03-08 21:57:48 -07:00
2019-08-08 15:55:10 -07:00
2019-12-13 21:40:49 -08:00
2019-05-21 10:50:45 +02:00
2019-11-07 16:15:56 -08:00
2019-09-20 18:23:33 -07:00
2019-08-08 15:55:10 -07:00
2020-03-16 17:19:56 -07:00
2019-11-21 14:45:55 -08:00
2019-06-21 18:35:51 +02:00
2020-01-14 11:48:41 -08:00
2019-05-25 11:00:50 -07:00
2019-11-21 11:47:39 -08:00
2020-03-29 22:16:27 -07:00
2020-02-06 13:27:30 +01:00
2019-07-05 15:01:15 -07:00
2020-02-04 03:05:26 +00:00
2019-07-25 17:23:40 -07:00
2019-10-04 11:10:56 -07:00
2019-11-16 21:51:42 -08:00
2020-02-06 13:27:30 +01:00
2020-01-09 08:46:18 -08:00
2019-05-21 10:50:45 +02:00
2019-01-28 11:32:58 +01:00
2019-05-21 10:50:45 +02:00
2020-01-27 10:54:08 +01:00
2019-09-13 21:44:19 +02:00
2020-01-26 15:28:47 +01:00
2019-05-30 11:26:32 -07:00
2020-03-08 21:57:48 -07:00
2019-10-01 18:42:15 +02:00
2020-02-04 03:05:26 +00:00
2020-01-29 17:45:20 +01:00
2019-12-09 20:17:48 -08:00
2020-01-21 10:45:49 +01:00
2019-05-21 10:50:45 +02:00
2020-01-15 23:26:13 +01:00
2019-05-21 10:50:45 +02:00
2020-01-09 08:46:18 -08:00
2019-12-30 14:44:27 -08:00
2019-05-30 11:26:32 -07:00
2018-10-10 22:26:00 -07:00
2019-11-06 16:14:48 -08:00
2019-10-25 19:25:37 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2020-02-23 17:23:35 -08:00
2020-01-23 08:10:16 +01:00
2019-05-21 10:50:45 +02:00
2019-12-09 20:17:48 -08:00
2020-01-09 08:46:18 -08:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2020-03-20 19:36:38 -07:00
2019-05-21 10:50:45 +02:00
2018-09-21 19:37:59 -07:00
2019-05-21 10:50:45 +02:00
2020-01-26 15:28:47 +01:00
2020-01-15 23:26:13 +01:00
2019-05-21 10:50:45 +02:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2020-03-23 13:02:01 -07:00
2019-05-21 10:50:45 +02:00
2020-03-08 21:57:48 -07:00
2019-01-17 15:01:08 -08:00
2020-01-27 11:00:21 +01:00
2019-05-21 10:50:45 +02:00
2020-02-19 16:34:11 -08:00
2019-05-30 11:26:32 -07:00
2018-09-04 10:26:30 +02:00
2019-11-15 23:44:48 +01:00
2019-12-24 22:28:54 -08:00
2019-12-09 09:59:07 +01:00
2019-06-06 08:34:50 +02:00
2019-06-06 08:34:50 +02:00