1. 05 3月, 2011 1 次提交
  2. 12 2月, 2011 1 次提交
  3. 31 1月, 2011 2 次提交
  4. 17 12月, 2010 1 次提交
  5. 30 11月, 2010 1 次提交
    • M
      Staging: batman-adv: softif bridge loop avoidance · 42019357
      Marek Lindner 提交于
      By connecting multiple batman-adv mesh nodes to the same ethernet
      segment a loop can be created when the soft-interface is bridged
      into that ethernet segment. A simple visualization of the loop
      involving the most common case - a LAN as ethernet segment:
      
      node1  <-- LAN  -->  node2
         |                   |
       wifi  <-- mesh -->  wifi
      
      Packets from the LAN (e.g. ARP broadcasts) will circle forever from
      node1 or node2 over the mesh back into the LAN.
      
      This patch adds the functionality to detect other batman-adv nodes
      connected to the LAN and select a 'gateway' to talk to the
      non-batman-adv devices on this LAN. All traffic from and to the mesh
      will be handled by this gateway to avoid the loop. OGMs received via
      the soft-interface are interpreted as 'port announcements' to locate
      potential batman-adv nodes. The patch can also deal with vlans on
      top of batX and offers a list of LAN neighbors via debugfs.
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      [sven.eckelmann@gmx.de: Rework on top of current version]
      Signed-off-by: NSven Eckelmann <sven.eckelmann@gmx.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      42019357
  6. 10 11月, 2010 1 次提交
  7. 05 9月, 2010 3 次提交
    • M
      Staging: batman-adv: multiple mesh clouds · 8c70f138
      Marek Lindner 提交于
      This patch removes all remaining global variables and includes the
      necessary bits into the bat_priv structure. It is the last
      remaining piece to allow multiple concurrent mesh clouds on the
      same device.
      A few global variables have been rendered obsolete during the process
      and have been removed entirely.
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      [sven.eckelmann@gmx.de: Rework on top of current version]
      Signed-off-by: NSven Eckelmann <sven.eckelmann@gmx.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8c70f138
    • M
      Staging: batman-adv: attach each hard-interface to a soft-interface · 6a0e9fa8
      Marek Lindner 提交于
      This patch replaces the static bat0 interface with a dynamic/abstracted
      approach. It is now possible to create multiple batX interfaces by
      assigning hard interfaces to them. Each batX interface acts as an
      independent mesh network. A soft interface is removed once no hard
      interface references it any longer.
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      [sven.eckelmann@gmx.de: Rework on top of current version]
      Signed-off-by: NSven Eckelmann <sven.eckelmann@gmx.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6a0e9fa8
    • A
      Staging: batman-adv: layer2 unicast packet fragmentation · e63760e5
      Andreas Langer 提交于
      This patch implements a simple layer2 fragmentation to allow traffic
      exchange over network interfaces with a MTU smaller than 1500 bytes. The
      fragmentation splits the big packets into two parts and marks the frames
      accordingly. The receiving end buffers the packets to reassemble the
      orignal packet before passing it to the higher layers. This feature
      makes it necessary to modify the batman-adv encapsulation for unicast
      packets by adding a sequence number, flags and the originator address.
      This modifcation is part of a seperate packet type for fragemented
      packets to keep the original overhead as low as possible. This patch
      enables the feature by default to ensure the data traffic can travel
      through the network. But it also prints a warning to notify the user
      about the performance implications.
      
      Note: Fragmentation should be avoided at all costs since it has a
      dramatic impact on the performance, especially when it comes wifi
      networks. Instead of a single packet, 2 packets have to be sent! Not
      only valuable airtime is wasted but also packetloss decreases the
      throughput. A link with 50% packetloss and fragmentation enabled is
      pretty much unusable.
      Signed-off-by: NAndreas Langer <an.langer@gmx.de>
      [sven.eckelmann@gmx.de: Rework on top of current version]
      Signed-off-by: NSven Eckelmann <sven.eckelmann@gmx.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e63760e5
  8. 09 7月, 2010 1 次提交
  9. 23 6月, 2010 3 次提交
    • S
      Staging: batman-adv: bonding and interface alternating · 11f79dec
      Simon Wunderlich 提交于
      This patch adds interface alternating to the new bonding feature. By
      default, we now try to avoid forwarding packets on the receiving
      interface, instead choosing alternative interfaces. This feature
      works only on nodes which have multiple interfaces connected to the
      mesh. This approach should reduce problems of the half-duplex nature
      of WiFi Hardware and thus increase performance.
      Signed-off-by: NSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
      Acked-by: NMarek Lindner <lindner_marek@yahoo.de>
      [sven.eckelmann@gmx.de: Rework on top of current version]
      Signed-off-by: NSven Eckelmann <sven.eckelmann@gmx.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      11f79dec
    • S
      Staging: batman-adv: Add bonding functionality · e35fd5ec
      Simon Wunderlich 提交于
      This patch introduces bonding functionality to batman-advanced, targeted
      for the 0.3 release. As we are able to route the payload traffic as we
      want, we may use multiple interfaces on multihomed hosts to transfer data
      to achieve higher bandwidth. This can be considered as "light Multi Path
      Routing" for single hop connections.
      
      To detect which interfaces of a peer node belong to the same host, a
      new flag PRIMARIES_FIRST_HOP is introduced. This flag is set on the first hop
      of OGMs of the primary (first) interface, which is broadcasted on all
      interfaces. When receiving such an OGM, we can learn which interfaces
      belong to the same host (by assigning them to the primary originator).
      
      Bonding works by sending packets in a round-robin fashion to the available
      interfaces of a neighbor host, if multiple interfaces are available. The
      neighbor interfaces should be almost equally good to reach.
      
      To avoid interferences (i.e. sending on the same channel), only neighbor
      interfaces with different mac addresses and different outgoing interfaces
      are considered as candidates.
      
      Bonding is deactivated by default, and can be activated by
      
      echo 1 > /sys/class/net/bat0/mesh/bonding
      
      for each individual node.
      Signed-off-by: NSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
      [sven.eckelmann@gmx.de: Rework on top of current version]
      Signed-off-by: NSven Eckelmann <sven.eckelmann@gmx.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e35fd5ec
    • S
      Staging: batman-adv: Mark locally used symbols as static · 42fa1b92
      Sven Eckelmann 提交于
      Functions and variables which are used only inside one object file can
      be declared as static. This helped to find unused functions/variables
      
       * mainIfAddr_default
       * main_if_was_up
      
      and functions with declarations but missing definitions
      
       * hash_debug
       * orig_find
       * send_own_packet_work
      Signed-off-by: NSven Eckelmann <sven.eckelmann@gmx.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      42fa1b92
  10. 12 5月, 2010 1 次提交
  11. 04 3月, 2010 3 次提交
  12. 12 12月, 2009 1 次提交