diff options
author | Linus Lüssing <linus.luessing@web.de> | 2013-05-26 11:56:07 -0400 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2013-10-12 11:17:12 -0400 |
commit | a4deee1ad42d93746562fe7de2149729017e3fd1 (patch) | |
tree | b194a2f1e2c6cba499f6b92088937c2d9e98d27a /net/batman-adv/soft-interface.c | |
parent | e8cf234a4e7e278cb9721ac6071e0f9a3c95b978 (diff) |
batman-adv: Add dummy soft-interface rx mode handler
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>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 15c7237f427b..e8a2bd699d40 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -137,6 +137,18 @@ static int batadv_interface_change_mtu(struct net_device *dev, int new_mtu) | |||
137 | return 0; | 137 | return 0; |
138 | } | 138 | } |
139 | 139 | ||
140 | /** | ||
141 | * batadv_interface_set_rx_mode - set the rx mode of a device | ||
142 | * @dev: registered network device to modify | ||
143 | * | ||
144 | * We do not actually need to set any rx filters for the virtual batman | ||
145 | * soft interface. However a dummy handler enables a user to set static | ||
146 | * multicast listeners for instance. | ||
147 | */ | ||
148 | static void batadv_interface_set_rx_mode(struct net_device *dev) | ||
149 | { | ||
150 | } | ||
151 | |||
140 | static int batadv_interface_tx(struct sk_buff *skb, | 152 | static int batadv_interface_tx(struct sk_buff *skb, |
141 | struct net_device *soft_iface) | 153 | struct net_device *soft_iface) |
142 | { | 154 | { |
@@ -583,6 +595,7 @@ static const struct net_device_ops batadv_netdev_ops = { | |||
583 | .ndo_get_stats = batadv_interface_stats, | 595 | .ndo_get_stats = batadv_interface_stats, |
584 | .ndo_set_mac_address = batadv_interface_set_mac_addr, | 596 | .ndo_set_mac_address = batadv_interface_set_mac_addr, |
585 | .ndo_change_mtu = batadv_interface_change_mtu, | 597 | .ndo_change_mtu = batadv_interface_change_mtu, |
598 | .ndo_set_rx_mode = batadv_interface_set_rx_mode, | ||
586 | .ndo_start_xmit = batadv_interface_tx, | 599 | .ndo_start_xmit = batadv_interface_tx, |
587 | .ndo_validate_addr = eth_validate_addr, | 600 | .ndo_validate_addr = eth_validate_addr, |
588 | .ndo_add_slave = batadv_softif_slave_add, | 601 | .ndo_add_slave = batadv_softif_slave_add, |