Stephen Suryaputra 61e18ce734 gre/sit: Don't generate link-local addr if addr_gen_mode is IN6_ADDR_GEN_MODE_NONE
When addr_gen_mode is set to IN6_ADDR_GEN_MODE_NONE, the link-local addr
should not be generated. But it isn't the case for GRE (as well as GRE6)
and SIT tunnels. Make it so that tunnels consider the addr_gen_mode,
especially for IN6_ADDR_GEN_MODE_NONE.

Do this in add_v4_addrs() to cover both GRE and SIT only if the addr
scope is link.

Signed-off-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Acked-by: Antonio Quartulli <a@unstable.cc>
Link: https://lore.kernel.org/r/20211020200618.467342-1-ssuryaextr@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-10-22 14:10:36 -07:00
..
2021-06-11 14:48:50 +02:00
2019-07-27 14:23:48 -07:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-08-05 13:27:50 +01:00
2021-06-11 14:48:50 +02:00
2021-10-13 09:40:46 -07:00
2021-06-29 11:28:21 -07:00
2021-10-13 09:41:37 -07:00
2020-12-16 11:01:04 -08:00