OSDN Git Service

vxlan: fix snooping for link-local IPv6 addresses
authorMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 19 Jun 2017 08:03:59 +0000 (10:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 17:37:03 +0000 (13:37 -0400)
commit87613de95041a88e426105d05a53acece52fd81e
treea3e867402e93d7f66a688cb5b8373827ab353478
parent0f22a3c68d5fd1696dbc15c45d7ea375c865b7a1
vxlan: fix snooping for link-local IPv6 addresses

If VXLAN is run over link-local IPv6 addresses, it is necessary to store
the ifindex in the FDB entries. Otherwise, the used interface is undefined
and unicast communication will most likely fail.

Support for link-local IPv4 addresses should be possible as well, but as
the semantics aren't as well defined as for IPv6, and there doesn't seem to
be much interest in having the support, it's not implemented for now.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c