Reviewing batman-adv for net/
Subsystems (3)
Hi,
batman-adv is a meshing protocol currently in drivers/staging/batman-adv. We asked GregKH recently [1] if he thinks that it is ok to send a patch to you for review. He acknowledged that request and now we would like to ask you to review it.
I will send a patch referencing this mail. I hope you find time to send us your opinion and ideas.
thanks,
Sven
[1] https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2010-June/002881.html
[2] https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2010-June/002968.html
PATCH 1/1 net: Add batman-adv meshing protocol
B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is a routing protocol for multi-hop ad-hoc mesh networks. The networks may be wired or wireless. See http://www.open-mesh.org/ for more information and user space tools.
--- .../ABI/testing/sysfs-class-net-batman-adv | 14 + Documentation/ABI/testing/sysfs-class-net-mesh | 33 + MAINTAINERS | 8 + net/Kconfig | 1 + net/Makefile | 1 + net/batman-adv/CHANGELOG | 63 + net/batman-adv/Kconfig | 26 + net/batman-adv/Makefile | 22 + net/batman-adv/README | 240 ++++ net/batman-adv/aggregation.c | 268 ++++ net/batman-adv/aggregation.h | 43 + net/batman-adv/bat_debugfs.c | 150 +++ net/batman-adv/bat_debugfs.h | 33 + net/batman-adv/bat_sysfs.c | 433 +++++++ net/batman-adv/bat_sysfs.h | 42 + net/batman-adv/bitarray.c | 204 +++ net/batman-adv/bitarray.h | 46 + net/batman-adv/hard-interface.c | 548 +++++++++ net/batman-adv/hard-interface.h | 45 + net/batman-adv/hash.c | 306 +++++ net/batman-adv/hash.h | 100 ++ net/batman-adv/icmp_socket.c | 337 +++++ net/batman-adv/icmp_socket.h | 34 + net/batman-adv/main.c | 299 +++++ net/batman-adv/main.h | 169 +++ net/batman-adv/originator.c | 499 ++++++++ net/batman-adv/originator.h | 36 + net/batman-adv/packet.h | 120 ++ net/batman-adv/ring_buffer.c | 52 + net/batman-adv/ring_buffer.h | 28 + net/batman-adv/routing.c | 1291 ++++++++++++++++++++ net/batman-adv/routing.h | 46 + net/batman-adv/send.c | 576 +++++++++ net/batman-adv/send.h | 42 + net/batman-adv/soft-interface.c | 361 ++++++ net/batman-adv/soft-interface.h | 33 + net/batman-adv/translation-table.c | 498 ++++++++ net/batman-adv/translation-table.h | 45 + net/batman-adv/types.h | 175 +++ net/batman-adv/vis.c | 818 +++++++++++++ net/batman-adv/vis.h | 60 + 41 files changed, 8145 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-class-net-batman-adv create mode 100644 Documentation/ABI/testing/sysfs-class-net-mesh create mode 100644 net/batman-adv/CHANGELOG create mode 100644 net/batman-adv/Kconfig create mode 100644 net/batman-adv/Makefile create mode 100644 net/batman-adv/README create mode 100644 net/batman-adv/aggregation.c create mode 100644 net/batman-adv/aggregation.h create mode 100644 net/batman-adv/bat_debugfs.c create mode 100644 net/batman-adv/bat_debugfs.h create mode 100644 net/batman-adv/bat_sysfs.c create mode 100644 net/batman-adv/bat_sysfs.h create mode 100644 net/batman-adv/bitarray.c create mode 100644 net/batman-adv/bitarray.h create mode 100644 net/batman-adv/hard-interface.c create mode 100644 net/batman-adv/hard-interface.h create mode 100644 net/batman-adv/hash.c create mode 100644 net/batman-adv/hash.h create mode 100644 net/batman-adv/icmp_socket.c create mode 100644 net/batman-adv/icmp_socket.h create mode 100644 net/batman-adv/main.c create mode 100644 net/batman-adv/main.h create mode 100644 net/batman-adv/originator.c create mode 100644 net/batman-adv/originator.h create mode 100644 net/batman-adv/packet.h create mode 100644 net/batman-adv/ring_buffer.c create mode 100644 net/batman-adv/ring_buffer.h create mode 100644 net/batman-adv/routing.c create mode 100644 net/batman-adv/routing.h create mode 100644 net/batman-adv/send.c create mode 100644 net/batman-adv/send.h create mode 100644 net/batman-adv/soft-interface.c create mode 100644 net/batman-adv/soft-interface.h create mode 100644 net/batman-adv/translation-table.c create mode 100644 net/batman-adv/translation-table.h create mode 100644 net/batman-adv/types.h create mode 100644 net/batman-adv/vis.c create mode 100644 net/batman-adv/vis.h
Documentation/ABI/testing/sysfs-class-net-batman-adv new file +14 -0
@@ -0,0 +1,14 @@ + +What: /sys/class/net/<iface>/batman-adv/mesh_iface +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + The /sys/class/net/<iface>/batman-adv/mesh_iface file + displays the batman mesh interface this <iface> + currently is associated with. + +What: /sys/class/net/<iface>/batman-adv/iface_status +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + Indicates the status of <iface> as it is seen by batman.
Documentation/ABI/testing/sysfs-class-net-mesh new file +33 -0
@@ -0,0 +1,33 @@ + +What: /sys/class/net/<mesh_iface>/mesh/aggregated_ogms +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + Indicates whether the batman protocol messages of the + mesh <mesh_iface> shall be aggregated or not. + +What: /sys/class/net/<mesh_iface>/mesh/bonding +Date: June 2010 +Contact: Simon Wunderlich <[email protected]> +Description: + Indicates whether the data traffic going through the + mesh will be sent using multiple interfaces at the + same time (if available). + +What: /sys/class/net/<mesh_iface>/mesh/orig_interval +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + Defines the interval in milliseconds in which batman + sends its protocol messages. + +What: /sys/class/net/<mesh_iface>/mesh/vis_mode +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + Each batman node only maintains information about its + own local neighborhood, therefore generating graphs + showing the topology of the entire mesh is not easily + feasible without having a central instance to collect + the local topologies from all nodes. This file allows + to activate the collecting (server) mode.
MAINTAINERS +8 -0
@@ -1246,6 +1246,14 @@ S: Maintained F: drivers/video/backlight/ F: include/linux/backlight.h +BATMAN ADVANCED +M: Marek Lindner <[email protected]> +M: Simon Wunderlich <[email protected]> +L: [email protected] +W: http://www.open-mesh.org/ +S: Maintained +F: net/batman-adv/ + BAYCOM/HDLCDRV DRIVERS FOR AX.25 M: Thomas Sailer <[email protected]> L: [email protected]
net/Kconfig +1 -0
@@ -203,6 +203,7 @@ source "net/phonet/Kconfig" source "net/ieee802154/Kconfig" source "net/sched/Kconfig" source "net/dcb/Kconfig" +source "net/batman-adv/Kconfig" config RPS boolean
net/Makefile +1 -0
@@ -67,3 +67,4 @@ ifeq ($(CONFIG_NET),y) obj-$(CONFIG_SYSCTL) += sysctl_net.o endif obj-$(CONFIG_WIMAX) += wimax/ +obj-$(CONFIG_BATMAN_ADV) += batman-adv/
net/batman-adv/CHANGELOG new file +63 -0
63 lines not on this page · raw message
net/batman-adv/Kconfig new file +26 -0
@@ -0,0 +1,26 @@ +# +# B.A.T.M.A.N meshing protocol +# + +config BATMAN_ADV + tristate "B.A.T.M.A.N. Advanced Meshing Protocol" + depends on NET + default n + ---help--- + + B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is + a routing protocol for multi-hop ad-hoc mesh networks. The + networks may be wired or wireless. See + http://www.open-mesh.org/ for more information and user space + tools. + +config BATMAN_ADV_DEBUG + bool "B.A.T.M.A.N. debugging" + depends on BATMAN_ADV != n + ---help--- + + This is an option for use by developers; most people should + say N here. This enables compilation of support for + outputting debugging information to the kernel log. The + output is controlled via the module parameter debug. +
net/batman-adv/Makefile new file +22 -0
@@ -0,0 +1,22 @@ +# +# Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: +# +# Marek Lindner, Simon Wunderlich +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# 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 +# + +obj-$(CONFIG_BATMAN_ADV) += batman-adv.o +batman-adv-objs := main.o bat_debugfs.o bat_sysfs.o send.o routing.o soft-interface.o icmp_socket.o translation-table.o bitarray.o hash.o ring_buffer.o vis.o hard-interface.o aggregation.o originator.o
net/batman-adv/README new file +240 -0
240 lines not on this page · raw message
net/batman-adv/aggregation.c new file +268 -0
268 lines not on this page · raw message
net/batman-adv/aggregation.h new file +43 -0
43 lines not on this page · raw message
net/batman-adv/bat_debugfs.c new file +150 -0
150 lines not on this page · raw message
net/batman-adv/bat_debugfs.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright (C) 2010 B.A.T.M.A.N. contributors: +* +* Marek Lindner +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of version 2 of the GNU General Public +* License as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* 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 +* +*/ + + +#ifndef _NET_BATMAN_ADV_DEBUGFS_H_ +#define _NET_BATMAN_ADV_DEBUGFS_H_ + +#define DEBUGFS_BAT_SUBDIR "batman_adv" + +void debugfs_init (void ); +void debugfs_destroy (void ); +int debugfs_add_meshif (struct net_device *dev); +void debugfs_del_meshif (struct net_device *dev); + +#endif /* _NET_BATMAN_ADV_DEBUGFS_H_ */
net/batman-adv/bat_sysfs.c new file +433 -0
433 lines not on this page · raw message
net/batman-adv/bat_sysfs.h new file +42 -0
42 lines not on this page · raw message
net/batman-adv/bitarray.c new file +204 -0
204 lines not on this page · raw message
net/batman-adv/bitarray.h new file +46 -0
46 lines not on this page · raw message
net/batman-adv/hard-interface.c new file +548 -0
548 lines not on this page · raw message
net/batman-adv/hard-interface.h new file +45 -0
45 lines not on this page · raw message
net/batman-adv/hash.c new file +306 -0
306 lines not on this page · raw message
net/batman-adv/hash.h new file +100 -0
100 lines not on this page · raw message
net/batman-adv/icmp_socket.c new file +337 -0
337 lines not on this page · raw message
net/batman-adv/icmp_socket.h new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: +* +* Marek Lindner +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of version 2 of the GNU General Public +* License as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* 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 +* +*/ + +#ifndef _NET_BATMAN_ADV_ICMP_SOCKET_H_
Lines of this file are not shown. View the raw message.
net/batman-adv/main.c new file +299 -0
299 lines not on this page · raw message
net/batman-adv/main.h new file +169 -0
169 lines not on this page · raw message
net/batman-adv/originator.c new file +499 -0
499 lines not on this page · raw message
net/batman-adv/packet.h new file +120 -0
120 lines not on this page · raw message
net/batman-adv/ring_buffer.c new file +52 -0
52 lines not on this page · raw message
net/batman-adv/routing.c new file +1291 -0
1,291 lines not on this page · raw message
net/batman-adv/routing.h new file +46 -0
46 lines not on this page · raw message
net/batman-adv/send.c new file +576 -0
576 lines not on this page · raw message
net/batman-adv/send.h new file +42 -0
42 lines not on this page · raw message
net/batman-adv/soft-interface.c new file +361 -0
361 lines not on this page · raw message
net/batman-adv/soft-interface.h new file +33 -0
Lines of this file are not shown. View the raw message.
net/batman-adv/translation-table.c new file +498 -0
498 lines not on this page · raw message
net/batman-adv/translation-table.h new file +45 -0
45 lines not on this page · raw message
net/batman-adv/types.h new file +175 -0
175 lines not on this page · raw message
net/batman-adv/vis.c new file +818 -0
818 lines not on this page · raw message
net/batman-adv/vis.h new file +60 -0
60 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.1
Part of the diff is not shown here. View the raw message.
Quoted 7 lines · * Sven Eckelmann | 2010-06-26 02:14:05 [+0200]:
batman-adv is a meshing protocol currently in
drivers/staging/batman-adv. We asked GregKH recently [1] if he thinks that it is ok to send a patch to you for review. He acknowledged that request and now we would like to ask you to review it.I will send a patch referencing this mail. I hope you find time to send us your opinion and ideas.
Hello Sven,
o Where are the advantages of BATMAN compared to OLSR? OLSR is standardized by the IETF which is a great advantage compared to BATMAN. 20 byte IPv4 header respective 60 byte IPv6 header savings? Network protocol neutrality? Where are the differences between BATMAN and 802.11s? Where are the similarities? See commit 37c5798968d0ce4 of 802.11s
o Are there any publications which describe the protocol behavior in detail? I assume it is a pro-active protocol - similar to standard BATMAN - but what about neighbor discovery, TC, HNA and the like? What about multicast transport? It is difficult to rate the patchset if no one knowns what the intended behavior is.
o The major code is twisted about bookkeeping stuff, configuration aspects and so on. The minor codebase is about protocol processing. What about a generalized architecture and a userspace implementation of the protocol? And communication via netlink sockets.
Cheers, Hagen
Hi Hagen,
Quoted 5 lines
o Where are the advantages of BATMAN compared to OLSR? OLSR is standardized by the IETF which is a great advantage compared to BATMAN. 20 byte IPv4 header respective 60 byte IPv6 header savings? Network protocol
neutrality? Where are the differences between BATMAN and 802.11s? Where are the similarities? See commit37c5798968d0ce4of 802.11s
the OLSR as standardized by the IETF is known to be flawed when used outside of a simulator (even the IETF Manet people know this - I spoke with one of them). We have assembled a few documents explaining some of its weaknesses on our website (www.open-mesh.org) but I suggest you get in touch with the folks of www.olsr.org. They can go into the details of why they don't follow the RFC.
The B.A.T.M.A.N. kernel module implementation operates on layer 2.5 and as such, is not limited to wifi networks (opposed to 802.11s) but can run on any interface supporting ethernet frames. The project has its roots in the free wireless network scene (specially Freifunk) and is used by many communities and companies around the globe.
Quoted 5 lines
o Are there any publications which describe the protocol behavior in detail? I assume it is a pro-active protocol - similar to standard BATMAN
- but what about neighbor discovery, TC, HNA and the like? What about multicast transport? It is difficult to rate the patchset if no one knowns what the intended behavior is.
Yes, it is a pro-active protocol and we have a set of documentation about it. Please check our website and feel free to ask if you have more questions.
Regards,
Marek
Am Montag 28 Juni 2010, 01:15:23 schrieb Marek Lindner:
Quoted 6 lines
the OLSR as standardized by the IETF is known to be flawed when used outside of a simulator (even the IETF Manet people know this - I spoke with one of them). We have assembled a few documents explaining some of its weaknesses on our website (www.open-mesh.org) but I suggest you get in touch with the folks of www.olsr.org. They can go into the details of why they don't follow the RFC.
OLSRv1 lacks the support for routing metrics in the IETF RFC document. Most of the research groups began integrating routing metrics later, and OLSRv2 (which is worked on at the moment, 2 RFC's done, 1 at IESG, 1 as a draft) will contain specified ways to include a routing metric on a link and how to use it. We were talking about the generic metric encoding some weeks ago on the MANET WG list.
Using hopcount metric (as described in the RFC 3626) will result in a "worst link first" strategy in wireless networks, because you always optimize for long links which will break often.
It's not difficult to integrate a routing metric into OLSRv1, but in the old OLSRv1 RFC (2003) there it's not specified. We (the olsr.org team) use a custom message format to add metric information to our hello/tc messages, the NRL use a different one for their own metric aware OLSR.
Henning Rogge (olsr.org team)
Signature · 4 lines
1) You can't win. 2) You can't break even. 3) You can't leave the game. — The Laws of Thermodynamics, summarized
Hagen Paul Pfeifer wrote:
Thanks for your comments. Marek already answered the first two questions, and I will write something about the last part.
[...]
Quoted 4 lines
o The major code is twisted about bookkeeping stuff, configuration aspects and so on. The minor codebase is about protocol processing. What about a generalized architecture and a userspace implementation of the protocol? And communication via netlink sockets.
Even if it sounds interesting to have a userspace implementation - it just doesn't work. Maybe you have something different in mind - so please comment a little bit more about about your idea.
There were different implementations for that protocol, first one was a complete userspace implementation - but it was just slow and not really usable. The second one was not using skb because it was only a port of the userspace implementation to the kernel. It was faster (better throughput, not as much latency added), but still we noticed that we couldn't saturate our fast links due to the overhead we added. That was the time the current form of processing and forwarding using skbs was implemented. It was quite plain to us that those "tiny" parts must be processed as fast as possible and we are not able to communicate a lot inside the kernel to get the information we need to forward packets or process new ones.
So I would assume that when we communicate with userspace which does some processing of the incoming packets and changes them to get forwarded, we would have the same overhead problems as before. That means we add unnecessary latency and reduce the throughput a lot.
It works quite well for layer 3 mesh protocols (olsr, batman, babel, bmx, ..) because they must not care about the actual routing of the packets - everything is done by the IP routing code. But it does not work for things which must route ethernet frames as there does not exist such a framework and it is hard to create one which everyone will like and has enough information to provide all features they need. Meshing with ethernet frames is relative young (please correct me) and we see all the time that we need more things which couldn't be done by layer 3 (or at least with a lot more work). An example would be interface interface alternating which can reduce interferences when communicating over many hops.
thanks,
Sven
PATCH v2 1/1 net: Add batman-adv meshing protocol
In reply to Sven EckelmannB.A.T.M.A.N. (better approach to mobile ad-hoc networking) is a routing protocol for multi-hop ad-hoc mesh networks. The networks may be wired or wireless. See http://www.open-mesh.org/ for more information and user space tools.
---
This is an updated patch which includes changes send for staging to GregKH.
* Staging: batman-adv: add routing debug log accessible via debugfs
* Staging: batman-adv: Move printk to simplified macros
* Staging: batman-adv: Add last-seen in originator table
.../ABI/testing/sysfs-class-net-batman-adv | 14 + Documentation/ABI/testing/sysfs-class-net-mesh | 33 + MAINTAINERS | 8 + net/Kconfig | 1 + net/Makefile | 1 + net/batman-adv/CHANGELOG | 63 + net/batman-adv/Kconfig | 26 + net/batman-adv/Makefile | 22 + net/batman-adv/README | 240 ++++ net/batman-adv/aggregation.c | 271 ++++ net/batman-adv/aggregation.h | 43 + net/batman-adv/bat_debugfs.c | 341 +++++ net/batman-adv/bat_debugfs.h | 33 + net/batman-adv/bat_sysfs.c | 488 ++++++++ net/batman-adv/bat_sysfs.h | 42 + net/batman-adv/bitarray.c | 207 ++++ net/batman-adv/bitarray.h | 46 + net/batman-adv/hard-interface.c | 545 ++++++++ net/batman-adv/hard-interface.h | 45 + net/batman-adv/hash.c | 306 +++++ net/batman-adv/hash.h | 100 ++ net/batman-adv/icmp_socket.c | 338 +++++ net/batman-adv/icmp_socket.h | 34 + net/batman-adv/main.c | 285 +++++ net/batman-adv/main.h | 199 +++ net/batman-adv/originator.c | 509 ++++++++ net/batman-adv/originator.h | 36 + net/batman-adv/packet.h | 120 ++ net/batman-adv/ring_buffer.c | 52 + net/batman-adv/ring_buffer.h | 28 + net/batman-adv/routing.c | 1305 ++++++++++++++++++++ net/batman-adv/routing.h | 46 + net/batman-adv/send.c | 585 +++++++++ net/batman-adv/send.h | 42 + net/batman-adv/soft-interface.c | 361 ++++++ net/batman-adv/soft-interface.h | 33 + net/batman-adv/translation-table.c | 505 ++++++++ net/batman-adv/translation-table.h | 45 + net/batman-adv/types.h | 183 +++ net/batman-adv/vis.c | 817 ++++++++++++ net/batman-adv/vis.h | 60 + 41 files changed, 8458 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-class-net-batman-adv create mode 100644 Documentation/ABI/testing/sysfs-class-net-mesh create mode 100644 net/batman-adv/CHANGELOG create mode 100644 net/batman-adv/Kconfig create mode 100644 net/batman-adv/Makefile create mode 100644 net/batman-adv/README create mode 100644 net/batman-adv/aggregation.c create mode 100644 net/batman-adv/aggregation.h create mode 100644 net/batman-adv/bat_debugfs.c create mode 100644 net/batman-adv/bat_debugfs.h create mode 100644 net/batman-adv/bat_sysfs.c create mode 100644 net/batman-adv/bat_sysfs.h create mode 100644 net/batman-adv/bitarray.c create mode 100644 net/batman-adv/bitarray.h create mode 100644 net/batman-adv/hard-interface.c create mode 100644 net/batman-adv/hard-interface.h create mode 100644 net/batman-adv/hash.c create mode 100644 net/batman-adv/hash.h create mode 100644 net/batman-adv/icmp_socket.c create mode 100644 net/batman-adv/icmp_socket.h create mode 100644 net/batman-adv/main.c create mode 100644 net/batman-adv/main.h create mode 100644 net/batman-adv/originator.c create mode 100644 net/batman-adv/originator.h create mode 100644 net/batman-adv/packet.h create mode 100644 net/batman-adv/ring_buffer.c create mode 100644 net/batman-adv/ring_buffer.h create mode 100644 net/batman-adv/routing.c create mode 100644 net/batman-adv/routing.h create mode 100644 net/batman-adv/send.c create mode 100644 net/batman-adv/send.h create mode 100644 net/batman-adv/soft-interface.c create mode 100644 net/batman-adv/soft-interface.h create mode 100644 net/batman-adv/translation-table.c create mode 100644 net/batman-adv/translation-table.h create mode 100644 net/batman-adv/types.h create mode 100644 net/batman-adv/vis.c create mode 100644 net/batman-adv/vis.h
Documentation/ABI/testing/sysfs-class-net-batman-adv new file +14 -0
@@ -0,0 +1,14 @@ + +What: /sys/class/net/<iface>/batman-adv/mesh_iface +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + The /sys/class/net/<iface>/batman-adv/mesh_iface file + displays the batman mesh interface this <iface> + currently is associated with. + +What: /sys/class/net/<iface>/batman-adv/iface_status +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + Indicates the status of <iface> as it is seen by batman.
Documentation/ABI/testing/sysfs-class-net-mesh new file +33 -0
@@ -0,0 +1,33 @@ + +What: /sys/class/net/<mesh_iface>/mesh/aggregated_ogms +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + Indicates whether the batman protocol messages of the + mesh <mesh_iface> shall be aggregated or not. + +What: /sys/class/net/<mesh_iface>/mesh/bonding +Date: June 2010 +Contact: Simon Wunderlich <[email protected]> +Description: + Indicates whether the data traffic going through the + mesh will be sent using multiple interfaces at the + same time (if available). + +What: /sys/class/net/<mesh_iface>/mesh/orig_interval +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + Defines the interval in milliseconds in which batman + sends its protocol messages. + +What: /sys/class/net/<mesh_iface>/mesh/vis_mode +Date: May 2010 +Contact: Marek Lindner <[email protected]> +Description: + Each batman node only maintains information about its + own local neighborhood, therefore generating graphs + showing the topology of the entire mesh is not easily + feasible without having a central instance to collect + the local topologies from all nodes. This file allows + to activate the collecting (server) mode.
MAINTAINERS +8 -0
@@ -1248,6 +1248,14 @@ S: Maintained F: drivers/video/backlight/ F: include/linux/backlight.h +BATMAN ADVANCED +M: Marek Lindner <[email protected]> +M: Simon Wunderlich <[email protected]> +L: [email protected] +W: http://www.open-mesh.org/ +S: Maintained +F: net/batman-adv/ + BAYCOM/HDLCDRV DRIVERS FOR AX.25 M: Thomas Sailer <[email protected]> L: [email protected]
net/Kconfig +1 -0
@@ -203,6 +203,7 @@ source "net/phonet/Kconfig" source "net/ieee802154/Kconfig" source "net/sched/Kconfig" source "net/dcb/Kconfig" +source "net/batman-adv/Kconfig" config RPS boolean
net/Makefile +1 -0
@@ -67,3 +67,4 @@ ifeq ($(CONFIG_NET),y) obj-$(CONFIG_SYSCTL) += sysctl_net.o endif obj-$(CONFIG_WIMAX) += wimax/ +obj-$(CONFIG_BATMAN_ADV) += batman-adv/
net/batman-adv/CHANGELOG new file +63 -0
63 lines not on this page · raw message
net/batman-adv/Kconfig new file +26 -0
@@ -0,0 +1,26 @@ +# +# B.A.T.M.A.N meshing protocol +# + +config BATMAN_ADV + tristate "B.A.T.M.A.N. Advanced Meshing Protocol" + depends on NET + default n + ---help--- + + B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is + a routing protocol for multi-hop ad-hoc mesh networks. The + networks may be wired or wireless. See + http://www.open-mesh.org/ for more information and user space + tools. + +config BATMAN_ADV_DEBUG + bool "B.A.T.M.A.N. debugging" + depends on BATMAN_ADV != n + ---help--- + + This is an option for use by developers; most people should + say N here. This enables compilation of support for + outputting debugging information to the kernel log. The + output is controlled via the module parameter debug. +
net/batman-adv/Makefile new file +22 -0
@@ -0,0 +1,22 @@ +# +# Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: +# +# Marek Lindner, Simon Wunderlich +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# 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 +# + +obj-$(CONFIG_BATMAN_ADV) += batman-adv.o +batman-adv-objs := main.o bat_debugfs.o bat_sysfs.o send.o routing.o soft-interface.o icmp_socket.o translation-table.o bitarray.o hash.o ring_buffer.o vis.o hard-interface.o aggregation.o originator.o
net/batman-adv/README new file +240 -0
240 lines not on this page · raw message
net/batman-adv/aggregation.c new file +271 -0
271 lines not on this page · raw message
net/batman-adv/aggregation.h new file +43 -0
43 lines not on this page · raw message
net/batman-adv/bat_debugfs.c new file +341 -0
341 lines not on this page · raw message
net/batman-adv/bat_debugfs.h new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright (C) 2010 B.A.T.M.A.N. contributors: +* +* Marek Lindner +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of version 2 of the GNU General Public +* License as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* 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 +* +*/ + + +#ifndef _NET_BATMAN_ADV_DEBUGFS_H_ +#define _NET_BATMAN_ADV_DEBUGFS_H_ + +#define DEBUGFS_BAT_SUBDIR "batman_adv" + +void debugfs_init (void ); +void debugfs_destroy (void ); +int debugfs_add_meshif (struct net_device *dev); +void debugfs_del_meshif (struct net_device *dev); + +#endif /* _NET_BATMAN_ADV_DEBUGFS_H_ */
net/batman-adv/bat_sysfs.c new file +488 -0
488 lines not on this page · raw message
net/batman-adv/bat_sysfs.h new file +42 -0
42 lines not on this page · raw message
net/batman-adv/bitarray.c new file +207 -0
207 lines not on this page · raw message
net/batman-adv/bitarray.h new file +46 -0
46 lines not on this page · raw message
net/batman-adv/hard-interface.c new file +545 -0
545 lines not on this page · raw message
net/batman-adv/hard-interface.h new file +45 -0
45 lines not on this page · raw message
net/batman-adv/hash.c new file +306 -0
306 lines not on this page · raw message
net/batman-adv/hash.h new file +100 -0
100 lines not on this page · raw message
net/batman-adv/icmp_socket.c new file +338 -0
110 lines not on this page · raw message
net/batman-adv/main.c new file +285 -0
285 lines not on this page · raw message
net/batman-adv/main.h new file +199 -0
199 lines not on this page · raw message
net/batman-adv/originator.c new file +509 -0
509 lines not on this page · raw message
net/batman-adv/packet.h new file +120 -0
120 lines not on this page · raw message
net/batman-adv/ring_buffer.c new file +52 -0
52 lines not on this page · raw message
net/batman-adv/routing.c new file +1305 -0
1,305 lines not on this page · raw message
net/batman-adv/routing.h new file +46 -0
46 lines not on this page · raw message
net/batman-adv/send.c new file +585 -0
585 lines not on this page · raw message
net/batman-adv/send.h new file +42 -0
42 lines not on this page · raw message
net/batman-adv/soft-interface.c new file +361 -0
361 lines not on this page · raw message
net/batman-adv/soft-interface.h new file +33 -0
Lines of this file are not shown. View the raw message.
net/batman-adv/translation-table.c new file +505 -0
505 lines not on this page · raw message
net/batman-adv/translation-table.h new file +45 -0
45 lines not on this page · raw message
net/batman-adv/types.h new file +183 -0
183 lines not on this page · raw message
net/batman-adv/vis.c new file +817 -0
817 lines not on this page · raw message
net/batman-adv/vis.h new file +60 -0
60 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.1
Part of the diff is not shown here. View the raw message.