]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
r8169: respect userspace disabling IFF_MULTICAST
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 5 Nov 2023 22:43:36 +0000 (23:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:57:23 +0000 (11:57 +0100)
commit93e7f8feacb183a60e848c36494e686c58290afc
tree5d5aac2bb0e8a152dcaa7a1ea66d2574a0a197bf
parentdbe7967095a579c65bbfdf3e0a98184471a47bfe
r8169: respect userspace disabling IFF_MULTICAST

[ Upstream commit 8999ce4cfc87e61b4143ec2e7b93d8e92e11fa7f ]

So far we ignore the setting of IFF_MULTICAST. Fix this and clear bit
AcceptMulticast if IFF_MULTICAST isn't set.

Note: Based on the implementations I've seen it doesn't seem to be 100% clear
what a driver is supposed to do if IFF_ALLMULTI is set but IFF_MULTICAST
is not. This patch is based on the understanding that IFF_MULTICAST has
precedence.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/4a57ba02-d52d-4369-9f14-3565e6c1f7dc@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c