Skip to content

Commit

Permalink
Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge
Browse files Browse the repository at this point in the history
Included changes:
- substitute FSF address with URL
- deselect current bat-GW when GW-client mode gets deactivated
- send every DHCP packet using bat-unicast messages when GW-client mode is
  enabled
- implement the Extended Isolation mechanism (it is an enhancement of the
  already existing batman-AP-isolation). This mechanism allows the user to drop
  packets exchanged by selected clients by using netfilter marks.
- fix typ0 in header guard
- minor code cleanups

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jan 10, 2014
2 parents 795709a + 42cb0be commit 45593c2
Show file tree
Hide file tree
Showing 42 changed files with 437 additions and 311 deletions.
8 changes: 8 additions & 0 deletions Documentation/ABI/testing/sysfs-class-net-mesh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ Description:
Defines the penalty which will be applied to an
originator message's tq-field on every hop.

What: /sys/class/net/<mesh_iface>/mesh/isolation_mark
Date: Nov 2013
Contact: Antonio Quartulli <antonio@meshcoding.com>
Description:
Defines the isolation mark (and its bitmask) which
is used to classify clients as "isolated" by the
Extended Isolation feature.

What: /sys/class/net/<mesh_iface>/mesh/network_coding
Date: Nov 2012
Contact: Martin Hundeboll <martin@hundeboll.net>
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#

obj-$(CONFIG_BATMAN_ADV) += batman-adv.o
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/bat_algo.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _NET_BATMAN_ADV_BAT_ALGO_H_
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/bat_iv_ogm.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "main.h"
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/bitarray.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "main.h"
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/bitarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _NET_BATMAN_ADV_BITARRAY_H_
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/bridge_loop_avoidance.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "main.h"
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/bridge_loop_avoidance.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _NET_BATMAN_ADV_BLA_H_
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "main.h"
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/debugfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _NET_BATMAN_ADV_DEBUGFS_H_
Expand Down
10 changes: 4 additions & 6 deletions net/batman-adv/distributed-arp-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include <linux/if_ether.h>
Expand Down Expand Up @@ -141,7 +139,7 @@ static int batadv_compare_dat(const struct hlist_node *node, const void *data2)
const void *data1 = container_of(node, struct batadv_dat_entry,
hash_entry);

return (memcmp(data1, data2, sizeof(__be32)) == 0 ? 1 : 0);
return memcmp(data1, data2, sizeof(__be32)) == 0 ? 1 : 0;
}

/**
Expand Down Expand Up @@ -1039,9 +1037,9 @@ bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv,
if (hdr_size == sizeof(struct batadv_unicast_4addr_packet))
err = batadv_send_skb_via_tt_4addr(bat_priv, skb_new,
BATADV_P_DAT_CACHE_REPLY,
vid);
NULL, vid);
else
err = batadv_send_skb_via_tt(bat_priv, skb_new, vid);
err = batadv_send_skb_via_tt(bat_priv, skb_new, NULL, vid);

if (err != NET_XMIT_DROP) {
batadv_inc_counter(bat_priv, BATADV_CNT_DAT_CACHED_REPLY_TX);
Expand Down
10 changes: 4 additions & 6 deletions net/batman-adv/distributed-arp-table.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _NET_BATMAN_ADV_ARP_H_
#define _NET_BATMAN_ADV_ARP_H_
#ifndef _NET_BATMAN_ADV_DISTRIBUTED_ARP_TABLE_H_
#define _NET_BATMAN_ADV_DISTRIBUTED_ARP_TABLE_H_

#ifdef CONFIG_BATMAN_ADV_DAT

Expand Down Expand Up @@ -169,4 +167,4 @@ static inline void batadv_dat_inc_counter(struct batadv_priv *bat_priv,

#endif /* CONFIG_BATMAN_ADV_DAT */

#endif /* _NET_BATMAN_ADV_ARP_H_ */
#endif /* _NET_BATMAN_ADV_DISTRIBUTED_ARP_TABLE_H_ */
4 changes: 1 addition & 3 deletions net/batman-adv/fragmentation.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#include "main.h"
Expand Down
4 changes: 1 addition & 3 deletions net/batman-adv/fragmentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _NET_BATMAN_ADV_FRAGMENTATION_H_
Expand Down
Loading

0 comments on commit 45593c2

Please sign in to comment.