* [B.A.T.M.A.N.] [PATCH] batman-adv: Add dummy soft-interface rx mode handler
@ 2013-05-25 21:17 Linus Lüssing
2013-05-25 21:44 ` Antonio Quartulli
2013-05-25 22:08 ` Marek Lindner
0 siblings, 2 replies; 3+ messages in thread
From: Linus Lüssing @ 2013-05-25 21:17 UTC (permalink / raw)
To: b.a.t.m.a.n
We do not actually need to set any rx filters for the virtual batman
soft interface. However a dummy handler enables a user to set static
multicast listeners for instance.
Signed-off-by: Linus Lüssing <linus.luessing@web.de>
---
* Fixes issue #171
soft-interface.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/soft-interface.c b/soft-interface.c
index 2bad57f..e40e74f 100644
--- a/soft-interface.c
+++ b/soft-interface.c
@@ -137,6 +137,10 @@ static int batadv_interface_change_mtu(struct net_device *dev, int new_mtu)
return 0;
}
+static void batadv_interface_set_rx_mode(struct net_device *dev)
+{
+}
+
static int batadv_interface_tx(struct sk_buff *skb,
struct net_device *soft_iface)
{
@@ -572,6 +576,7 @@ static const struct net_device_ops batadv_netdev_ops = {
.ndo_get_stats = batadv_interface_stats,
.ndo_set_mac_address = batadv_interface_set_mac_addr,
.ndo_change_mtu = batadv_interface_change_mtu,
+ .ndo_set_rx_mode = batadv_interface_set_rx_mode,
.ndo_start_xmit = batadv_interface_tx,
.ndo_validate_addr = eth_validate_addr,
.ndo_add_slave = batadv_softif_slave_add,
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Add dummy soft-interface rx mode handler
2013-05-25 21:17 [B.A.T.M.A.N.] [PATCH] batman-adv: Add dummy soft-interface rx mode handler Linus Lüssing
@ 2013-05-25 21:44 ` Antonio Quartulli
2013-05-25 22:08 ` Marek Lindner
1 sibling, 0 replies; 3+ messages in thread
From: Antonio Quartulli @ 2013-05-25 21:44 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
[-- Attachment #1: Type: text/plain, Size: 537 bytes --]
On Sat, May 25, 2013 at 11:17:11PM +0200, Linus Lüssing wrote:
> We do not actually need to set any rx filters for the virtual batman
> soft interface. However a dummy handler enables a user to set static
> multicast listeners for instance.
>
> Signed-off-by: Linus Lüssing <linus.luessing@web.de>
> ---
> * Fixes issue #171
Thank you Linus for digging into this.
I've seen that the bridge code does the very same thing.
Cheers,
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Add dummy soft-interface rx mode handler
2013-05-25 21:17 [B.A.T.M.A.N.] [PATCH] batman-adv: Add dummy soft-interface rx mode handler Linus Lüssing
2013-05-25 21:44 ` Antonio Quartulli
@ 2013-05-25 22:08 ` Marek Lindner
1 sibling, 0 replies; 3+ messages in thread
From: Marek Lindner @ 2013-05-25 22:08 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Sunday, May 26, 2013 05:17:11 Linus Lüssing wrote:
> diff --git a/soft-interface.c b/soft-interface.c
> index 2bad57f..e40e74f 100644
> --- a/soft-interface.c
> +++ b/soft-interface.c
> @@ -137,6 +137,10 @@ static int batadv_interface_change_mtu(struct
> net_device *dev, int new_mtu) return 0;
> }
>
> +static void batadv_interface_set_rx_mode(struct net_device *dev)
> +{
> +}
For the kernel doc I suggest to stress the point that we only add this dummy
handler to make multicast listeners possible.
Cheers,
Marek
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-25 22:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-25 21:17 [B.A.T.M.A.N.] [PATCH] batman-adv: Add dummy soft-interface rx mode handler Linus Lüssing
2013-05-25 21:44 ` Antonio Quartulli
2013-05-25 22:08 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox