David Ahern
b8fb1ab461
net ipv6: Prevent neighbor add if protocol is disabled on device
...
Disabling IPv6 on an interface removes existing entries but nothing prevents
new entries from being manually added. To that end, add a new neigh_table
operation, allow_add, that is called on RTM_NEWNEIGH to see if neighbor
entries are allowed on a given device. If IPv6 is disabled on the device,
allow_add returns false and passes a message back to the user via extack.
$ echo 1 > /proc/sys/net/ipv6/conf/eth1/disable_ipv6
$ ip -6 neigh add fe80::4c88:bff:fe21:2704 dev eth1 lladdr de:ad:be:ef:01:01
Error: IPv6 is disabled on this device.
Signed-off-by: David Ahern <dsahern@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-04-17 23:19:07 -07:00
..
2019-01-22 09:51:19 +01:00
2019-03-13 11:50:04 +01:00
2017-11-21 15:57:07 -08:00
2019-04-04 17:18:34 -07:00
2019-03-15 11:25:48 -07:00
2019-04-17 11:26:25 -07:00
2019-01-23 11:18:00 -08:00
2019-04-05 14:14:19 -07:00
2019-04-12 10:25:03 -07:00
2019-04-12 00:53:00 +02:00
2019-02-23 13:34:40 -08:00
2019-04-17 11:26:25 -07:00
2019-04-10 12:20:46 -07:00
2019-01-22 11:33:46 +01:00
2019-03-25 22:28:07 +01:00
2019-04-17 23:19:07 -07:00
2018-07-27 13:17:50 -07:00
2019-04-01 18:15:10 -07:00
2019-04-01 18:10:51 -07:00
2019-04-11 14:01:08 -07:00
2019-04-05 14:14:19 -07:00
2019-02-22 12:55:31 -08:00
2019-04-15 17:22:02 -07:00
2019-03-22 10:38:23 -04:00
2018-04-22 21:12:00 -04:00
2019-04-17 11:26:25 -07:00
2019-04-17 23:19:07 -07:00
2018-11-10 16:55:11 -08:00
2019-04-01 14:59:20 -07:00
2019-02-12 10:36:42 +01:00
2019-03-22 10:38:23 -04:00
2018-12-03 14:15:26 -08:00
2017-11-21 16:35:54 -08:00
2019-04-12 10:25:03 -07:00
2019-04-17 11:26:25 -07:00
2018-09-28 12:46:07 +08:00
2019-04-08 15:22:40 -07:00
2019-03-22 10:38:23 -04:00
2019-04-12 01:47:39 +02:00
2019-03-22 10:38:23 -04:00
2019-04-17 11:26:25 -07:00
2019-04-11 13:59:49 -07:00
2019-04-08 23:39:36 -07:00
2018-07-12 16:55:29 -07:00
2019-04-08 23:02:52 +02:00
2019-03-27 17:37:58 -07:00
2019-02-21 16:23:56 -08:00
2017-11-01 12:19:03 +09:00
2019-03-05 21:07:14 -08:00
2019-04-12 10:25:03 -07:00
2018-12-18 13:13:56 +01:00
2019-03-18 16:53:22 -07:00
2019-04-17 11:26:25 -07:00
2019-04-11 21:32:27 -07:00
2019-04-17 11:26:25 -07:00
2019-04-17 11:26:25 -07:00
2019-04-17 11:26:25 -07:00
2019-04-11 15:41:14 -04:00
2019-03-01 21:35:19 -08:00
2019-04-17 11:26:25 -07:00
2019-04-17 11:26:25 -07:00
2019-04-08 09:51:54 -07:00
2019-03-08 15:15:44 -08:00
2019-03-22 10:38:23 -04:00
2019-04-17 11:26:25 -07:00
2019-03-11 15:40:14 -07:00
2019-03-16 01:27:51 +01:00
2019-03-20 11:18:54 -07:00
2019-03-05 14:08:26 -08:00
2019-03-24 14:55:31 -04:00
2019-02-28 08:24:23 -07:00
2019-03-15 15:29:47 -07:00
2018-03-27 13:18:09 -04:00