Commit 7305b78
r8152: allow userland to disable multicast
The rtl8152 driver does not disable multicasting when userspace asks
it to. For example:
$ ifconfig eth0 -multicast -allmulti
$ tcpdump -p -i eth0 # will still capture multicast frames
Fix by clearing the device multicast filter table when multicast and
allmulti are both unset.
Tested as follows:
- Set multicast on eth0 network interface
- verify that multicast packets are coming in:
$ tcpdump -p -i eth0
- Clear multicast and allmulti on eth0 network interface
- verify that no more multicast packets are coming in:
$ tcpdump -p -i eth0
Signed-off-by: Sven van Ashbrook <svenva@chromium.org>
Acked-by: Hayes Wang <hayeswang@realtek.com>
Link: https://lore.kernel.org/r/20220830045923.net-next.v1.1.I4fee0ac057083d4f848caf0fa3a9fd466fc374a0@changeid
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent f029c78 commit 7305b78
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2727 | 2727 | | |
2728 | 2728 | | |
2729 | 2729 | | |
2730 | | - | |
2731 | | - | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
2732 | 2733 | | |
2733 | 2734 | | |
2734 | 2735 | | |
2735 | 2736 | | |
2736 | 2737 | | |
2737 | | - | |
2738 | | - | |
2739 | 2738 | | |
2740 | 2739 | | |
2741 | | - | |
2742 | | - | |
2743 | 2740 | | |
2744 | | - | |
2745 | | - | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
2746 | 2750 | | |
2747 | 2751 | | |
2748 | 2752 | | |
| |||
0 commit comments