]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: bridge: add src field to br_ip
authorNikolay Aleksandrov <nikolay@nvidia.com>
Tue, 22 Sep 2020 07:30:15 +0000 (10:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2020 20:24:34 +0000 (13:24 -0700)
Add a new src field to struct br_ip which will be used to lookup S, G
entries. When SSM option is added we will enable full br_ip lookups.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h

index 6479a38e52fa9d23efb350b42a60d379995ba519..4fb9c4954f3a4800f257d4f988b5e0f2a160d59b 100644 (file)
@@ -18,6 +18,12 @@ struct br_ip {
                __be32  ip4;
 #if IS_ENABLED(CONFIG_IPV6)
                struct in6_addr ip6;
+#endif
+       } src;
+       union {
+               __be32  ip4;
+#if IS_ENABLED(CONFIG_IPV6)
+               struct in6_addr ip6;
 #endif
        } u;
        __be16          proto;