Skip to content

Commit 45593c2

Browse files
committed
Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge
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 <[email protected]>
2 parents 795709a + 42cb0be commit 45593c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+437
-311
lines changed

Documentation/ABI/testing/sysfs-class-net-mesh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ Description:
6868
Defines the penalty which will be applied to an
6969
originator message's tq-field on every hop.
7070

71+
What: /sys/class/net/<mesh_iface>/mesh/isolation_mark
72+
Date: Nov 2013
73+
Contact: Antonio Quartulli <[email protected]>
74+
Description:
75+
Defines the isolation mark (and its bitmask) which
76+
is used to classify clients as "isolated" by the
77+
Extended Isolation feature.
78+
7179
What: /sys/class/net/<mesh_iface>/mesh/network_coding
7280
Date: Nov 2012
7381
Contact: Martin Hundeboll <[email protected]>

net/batman-adv/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# General Public License for more details.
1414
#
1515
# You should have received a copy of the GNU General Public License
16-
# along with this program; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18-
# 02110-1301, USA
16+
# along with this program; if not, see <http://www.gnu.org/licenses/>.
1917
#
2018

2119
obj-$(CONFIG_BATMAN_ADV) += batman-adv.o

net/batman-adv/bat_algo.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#ifndef _NET_BATMAN_ADV_BAT_ALGO_H_

net/batman-adv/bat_iv_ogm.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#include "main.h"

net/batman-adv/bitarray.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#include "main.h"

net/batman-adv/bitarray.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#ifndef _NET_BATMAN_ADV_BITARRAY_H_

net/batman-adv/bridge_loop_avoidance.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#include "main.h"

net/batman-adv/bridge_loop_avoidance.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#ifndef _NET_BATMAN_ADV_BLA_H_

net/batman-adv/debugfs.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#include "main.h"

net/batman-adv/debugfs.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#ifndef _NET_BATMAN_ADV_DEBUGFS_H_

net/batman-adv/distributed-arp-table.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

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

144-
return (memcmp(data1, data2, sizeof(__be32)) == 0 ? 1 : 0);
142+
return memcmp(data1, data2, sizeof(__be32)) == 0 ? 1 : 0;
145143
}
146144

147145
/**
@@ -1039,9 +1037,9 @@ bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv,
10391037
if (hdr_size == sizeof(struct batadv_unicast_4addr_packet))
10401038
err = batadv_send_skb_via_tt_4addr(bat_priv, skb_new,
10411039
BATADV_P_DAT_CACHE_REPLY,
1042-
vid);
1040+
NULL, vid);
10431041
else
1044-
err = batadv_send_skb_via_tt(bat_priv, skb_new, vid);
1042+
err = batadv_send_skb_via_tt(bat_priv, skb_new, NULL, vid);
10451043

10461044
if (err != NET_XMIT_DROP) {
10471045
batadv_inc_counter(bat_priv, BATADV_CNT_DAT_CACHED_REPLY_TX);

net/batman-adv/distributed-arp-table.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

20-
#ifndef _NET_BATMAN_ADV_ARP_H_
21-
#define _NET_BATMAN_ADV_ARP_H_
18+
#ifndef _NET_BATMAN_ADV_DISTRIBUTED_ARP_TABLE_H_
19+
#define _NET_BATMAN_ADV_DISTRIBUTED_ARP_TABLE_H_
2220

2321
#ifdef CONFIG_BATMAN_ADV_DAT
2422

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

170168
#endif /* CONFIG_BATMAN_ADV_DAT */
171169

172-
#endif /* _NET_BATMAN_ADV_ARP_H_ */
170+
#endif /* _NET_BATMAN_ADV_DISTRIBUTED_ARP_TABLE_H_ */

net/batman-adv/fragmentation.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#include "main.h"

net/batman-adv/fragmentation.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
15-
* along with this program; if not, write to the Free Software
16-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17-
* 02110-1301, USA
15+
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1816
*/
1917

2018
#ifndef _NET_BATMAN_ADV_FRAGMENTATION_H_

0 commit comments

Comments
 (0)