From patchwork Sun May 26 15:56:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Linus_L=C3=BCssing?= X-Patchwork-Id: 3025 Return-Path: Received: from mout.web.de (mout.web.de [212.227.15.3]) by open-mesh.org (Postfix) with ESMTP id 6EC23601C9A for ; Sun, 26 May 2013 17:55:35 +0200 (CEST) Received: from localhost ([46.246.33.198]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MeBPe-1V5Rnw3dzK-00Q4Zi; Sun, 26 May 2013 17:55:34 +0200 From: =?UTF-8?q?Linus=20L=C3=BCssing?= To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 26 May 2013 17:56:07 +0200 Message-Id: <1369583768-15280-1-git-send-email-linus.luessing@web.de> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-Provags-ID: V02:K0:OOP8AgWs3pPQ6+DAPQPZtk+ZnerphL8Zz3AGk0G32eA XEYlFOyPNcNz5tvX++8JsO1zi1ncAzpgxxWQGNT6Z2dN54npeq qCFp5Iq4co2fY5fNXnlknGGPaUBhl1+truis1OzY6BUVSDxMTz 4tnWiLh93tZ5cauuKabYa6d6ParkjguoCPhAOamJDd+5awOC7q VUvDg9k9fJtFmd6P46/0g== Subject: [B.A.T.M.A.N.] [PATCHv2] batman-adv: Add dummy soft-interface rx mode handler X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 May 2013 15:55:35 -0000 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 --- * Fixes issue #171 v2: added kernel doc soft-interface.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/soft-interface.c b/soft-interface.c index 2bad57f..54b3991 100644 --- a/soft-interface.c +++ b/soft-interface.c @@ -137,6 +137,18 @@ static int batadv_interface_change_mtu(struct net_device *dev, int new_mtu) return 0; } +/** + * batadv_interface_set_rx_mode - set the rx mode of a device + * @dev: registered network device to modify + * + * 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. + */ +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 +584,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,