1. 24 3月, 2018 1 次提交
  2. 04 3月, 2018 1 次提交
  3. 22 12月, 2017 1 次提交
  4. 16 12月, 2017 3 次提交
  5. 28 9月, 2017 1 次提交
  6. 17 3月, 2017 1 次提交
  7. 26 1月, 2017 1 次提交
  8. 30 10月, 2016 2 次提交
  9. 09 8月, 2016 2 次提交
  10. 30 6月, 2016 6 次提交
  11. 04 5月, 2016 1 次提交
  12. 10 2月, 2016 1 次提交
  13. 02 2月, 2016 2 次提交
  14. 13 1月, 2016 1 次提交
    • S
      batman-adv: fix lockdep splat when doing mcast_free · af63cf51
      Simon Wunderlich 提交于
      While testing, we got something like this:
      
      WARNING: CPU: 0 PID: 238 at net/batman-adv/multicast.c:142 batadv_mcast_mla_tt_retract+0x94/0x205 [batman_adv]()
      [...]
      Call Trace:
      [<ffffffff815fc597>] dump_stack+0x4b/0x64
      [<ffffffff810b34dc>] warn_slowpath_common+0xbc/0x120
      [<ffffffffa0024ec5>] ? batadv_mcast_mla_tt_retract+0x94/0x205 [batman_adv]
      [<ffffffff810b3705>] warn_slowpath_null+0x15/0x20
      [<ffffffffa0024ec5>] batadv_mcast_mla_tt_retract+0x94/0x205 [batman_adv]
      [<ffffffffa00273fe>] batadv_mcast_free+0x36/0x39 [batman_adv]
      [<ffffffffa0020c77>] batadv_mesh_free+0x7d/0x13f [batman_adv]
      [<ffffffffa0036a6b>] batadv_softif_free+0x15/0x25 [batman_adv]
      [...]
      Signed-off-by: NSimon Wunderlich <simon@open-mesh.com>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      Signed-off-by: NAntonio Quartulli <a@unstable.cc>
      af63cf51
  15. 25 8月, 2015 3 次提交
  16. 15 8月, 2015 2 次提交
  17. 07 6月, 2015 1 次提交
    • S
      batman-adv: Add required includes to all files · 1e2c2a4f
      Sven Eckelmann 提交于
      The header files could not be build indepdent from each other. This is
      happened because headers didn't include the files for things they've used.
      This was problematic because the success of a build depended on the
      knowledge about the right order of local includes.
      
      Also source files were not including everything they've used explicitly.
      Instead they required that transitive includes are always stable. This is
      problematic because some transitive includes are not obvious, depend on
      config settings and may not be stable in the future.
      
      The order for include blocks are:
      
       * primary headers (main.h and the *.h file of a *.c file)
       * global linux headers
       * required local headers
       * extra forward declarations for pointers in function/struct declarations
      
      The only exceptions are linux/bitops.h and linux/if_ether.h in packet.h.
      This header file is shared with userspace applications like batctl and must
      therefore build together with userspace applications. The header
      linux/bitops.h is not part of the uapi headers and linux/if_ether.h
      conflicts with the musl implementation of netinet/if_ether.h. The
      maintainers rejected the use of __KERNEL__ preprocessor checks and thus
      these two headers are only in main.h. All files using packet.h first have
      to include main.h to work correctly.
      Reported-by: NMarkus Pargmann <mpa@pengutronix.de>
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      1e2c2a4f
  18. 29 5月, 2015 1 次提交
  19. 06 1月, 2015 2 次提交
  20. 08 8月, 2014 1 次提交
  21. 31 5月, 2014 1 次提交
  22. 22 3月, 2014 5 次提交
    • L
      batman-adv: Send multicast packets to nodes with a WANT_ALL flag · 4c8755d6
      Linus Lüssing 提交于
      With this patch a node sends IPv4 multicast packets to nodes which
      have a BATADV_MCAST_WANT_ALL_IPV4 flag set and IPv6 multicast packets
      to nodes which have a BATADV_MCAST_WANT_ALL_IPV6 flag set, too.
      
      Why is this needed? There are scenarios involving bridges where
      multicast report snooping and multicast TT announcements are not
      sufficient, which would lead to packet loss for some nodes otherwise:
      
      MLDv1 and IGMPv1/IGMPv2 have a suppression mechanism
      for multicast listener reports. When we have an MLDv1/IGMPv1/IGMPv2
      querier behind a bridge then our snooping bridge is potentially not
      going to see any reports even though listeners exist because according
      to RFC4541 such reports are only forwarded to multicast routers:
      
      -----------------------------------------------------------
                  ---------------
      {Querier}---|Snoop. Switch|----{Listener}
                  ---------------
                             \           ^
                            -------
                            | br0 |  <  ???
                            -------
                                \
                           _-~---~_
                       _-~/        ~-_
                      ~   batman-adv  \-----{Sender}
                      \~_   cloud    ~/
                         -~~__-__-~_/
      
      I)  MLDv1 Query:  {Querier}  -> flooded
      II) MLDv1 Report: {Listener} -> {Querier}
      
      -> br0 cannot detect the {Listener}
      => Packets from {Sender} need to be forwarded to all
         detected listeners and MLDv1/IGMPv1/IGMPv2 queriers.
      
      -----------------------------------------------------------
      
      Note that we do not need to explicitly forward to MLDv2/IGMPv3 queriers,
      because these protocols have no report suppression: A bridge has no
      trouble detecting MLDv2/IGMPv3 listeners.
      
      Even though we do not support bridges yet we need to provide the
      according infrastructure already to not break compatibility later.
      Signed-off-by: NLinus Lüssing <linus.luessing@web.de>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      Signed-off-by: NAntonio Quartulli <antonio@meshcoding.com>
      4c8755d6
    • L
      batman-adv: Add IPv4 link-local/IPv6-ll-all-nodes multicast support · ab49886e
      Linus Lüssing 提交于
      With this patch a node may additionally perform the dropping or
      unicasting behaviour for a link-local IPv4 and link-local-all-nodes
      IPv6 multicast packet, too.
      
      The extra counter and BATADV_MCAST_WANT_ALL_UNSNOOPABLES flag is needed
      because with a future bridge snooping support integration a node with a
      bridge on top of its soft interface is not able to reliably detect its
      multicast listeners for IPv4 link-local and the IPv6
      link-local-all-nodes addresses anymore (see RFC4541, section 2.1.2.2
      and section 3).
      
      Even though this new flag does make "no difference" now, it'll ensure
      a seamless integration of multicast bridge support without needing to
      break compatibility later.
      
      Also note, that even with multicast bridge support it won't be possible
      to optimize 224.0.0.x and ff02::1 towards nodes with bridges, they will
      always receive these ranges.
      Signed-off-by: NLinus Lüssing <linus.luessing@web.de>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      Signed-off-by: NAntonio Quartulli <antonio@meshcoding.com>
      ab49886e
    • L
      batman-adv: Modified forwarding behaviour for multicast packets · 1d8ab8d3
      Linus Lüssing 提交于
      With this patch a multicast packet is not always simply flooded anymore,
      the behaviour for the following cases is changed to reduce
      unnecessary overhead:
      
      If all nodes within the horizon of a certain node have signalized
      multicast listener announcement capability then an IPv6 multicast packet
      with a destination of IPv6 link-local scope (excluding ff02::1) coming
      from the upstream of this node...
      
      * ...is dropped if there is no according multicast listener in the
        translation table,
      * ...is forwarded via unicast if there is a single node with interested
        multicast listeners
      * ...and otherwise still gets flooded.
      Signed-off-by: NLinus Lüssing <linus.luessing@web.de>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      Signed-off-by: NAntonio Quartulli <antonio@meshcoding.com>
      1d8ab8d3
    • L
      batman-adv: Announce new capability via multicast TVLV · 60432d75
      Linus Lüssing 提交于
      If the soft interface of a node is not part of a bridge then a node
      announces a new multicast TVLV: The existence of this TVLV
      signalizes that this node is announcing all of its multicast listeners
      via the translation table infrastructure.
      Signed-off-by: NLinus Lüssing <linus.luessing@web.de>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      Signed-off-by: NAntonio Quartulli <antonio@meshcoding.com>
      60432d75
    • L
      batman-adv: Multicast Listener Announcements via Translation Table · c5caf4ef
      Linus Lüssing 提交于
      With this patch a node which has no bridge interface on top of its soft
      interface announces its local multicast listeners via the translation
      table.
      Signed-off-by: NLinus Lüssing <linus.luessing@web.de>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      Signed-off-by: NAntonio Quartulli <antonio@meshcoding.com>
      c5caf4ef