aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-08-12 23:55:41 -0400
committerDavid S. Miller <davem@davemloft.net>2016-08-12 23:55:41 -0400
commitf9f9ab17268e53b2ca0920c0c0c50f98bd267fe3 (patch)
tree1247dc65ecbe2176a8ac96b8e173d38072adb4ca /Documentation/networking
parent85be21bd6969d840a1af73ede4ec01dd0e1ecb66 (diff)
parentb5dcbad25219b82408e15e6d775a406be2116af1 (diff)
Merge tag 'batadv-next-for-davem-20160812' of git://git.open-mesh.org/linux-merge
Simon Wunderlich says: ==================== This feature patchset includes the following changes (mostly chronological order): - bump version strings, by Simon Wunderlich - kerneldoc clean up, by Sven Eckelmann - enable RTNL automatic loading and according documentation changes, by Sven Eckelmann (2 patches) - fix/improve interface removal and associated locking, by Sven Eckelmann (3 patches) - clean up unused variables, by Linus Luessing - implement Gateway selection code for B.A.T.M.A.N. V by Antonio Quartulli (4 patches) - rewrite TQ comparison by Markus Pargmann - fix Cocinelle warnings on bool vs integers (by Fenguang Wu/Intels kbuild test robot) and bitwise arithmetic operations (by Linus Luessing) - rewrite packet creation for forwarding for readability and to avoid reference count mistakes, by Linus Luessing - use kmem_cache for translation table, which results in more efficient storing of translation table entries, by Sven Eckelmann - rewrite/clarify reference handling for send_skb_unicast, by Sven Eckelmann - fix debug messages when updating routes, by Sven Eckelmann ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/batman-adv.txt17
1 files changed, 11 insertions, 6 deletions
diff --git a/Documentation/networking/batman-adv.txt b/Documentation/networking/batman-adv.txt
index 1b5e7a7f2185..8a8d3d96f6c6 100644
--- a/Documentation/networking/batman-adv.txt
+++ b/Documentation/networking/batman-adv.txt
@@ -43,10 +43,15 @@ new interfaces to verify the compatibility. There is no need to
43reload the module if you plug your USB wifi adapter into your ma- 43reload the module if you plug your USB wifi adapter into your ma-
44chine after batman advanced was initially loaded. 44chine after batman advanced was initially loaded.
45 45
46To activate a given interface simply write "bat0" into its 46The batman-adv soft-interface can be created using the iproute2
47"mesh_iface" file inside the batman_adv subfolder: 47tool "ip"
48 48
49# echo bat0 > /sys/class/net/eth0/batman_adv/mesh_iface 49# ip link add name bat0 type batadv
50
51To activate a given interface simply attach it to the "bat0"
52interface
53
54# ip link set dev eth0 master bat0
50 55
51Repeat this step for all interfaces you wish to add. Now batman 56Repeat this step for all interfaces you wish to add. Now batman
52starts using/broadcasting on this/these interface(s). 57starts using/broadcasting on this/these interface(s).
@@ -56,10 +61,10 @@ By reading the "iface_status" file you can check its status:
56# cat /sys/class/net/eth0/batman_adv/iface_status 61# cat /sys/class/net/eth0/batman_adv/iface_status
57# active 62# active
58 63
59To deactivate an interface you have to write "none" into its 64To deactivate an interface you have to detach it from the
60"mesh_iface" file: 65"bat0" interface:
61 66
62# echo none > /sys/class/net/eth0/batman_adv/mesh_iface 67# ip link set dev eth0 nomaster
63 68
64 69
65All mesh wide settings can be found in batman's own interface 70All mesh wide settings can be found in batman's own interface