1. 22 3月, 2014 4 次提交
    • A
      batman-adv: improve the TT flags documentation · 43e6f65a
      Antonio Quartulli 提交于
      Convert the current documentation for the TT flags in proper
      kerneldoc and improve it by adding an explanation for each
      of the flags.
      Signed-off-by: NAntonio Quartulli <antonio@open-mesh.com>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      43e6f65a
    • 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: 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
  2. 12 1月, 2014 1 次提交
  3. 09 1月, 2014 2 次提交
  4. 28 12月, 2013 5 次提交
  5. 23 10月, 2013 2 次提交
  6. 20 10月, 2013 1 次提交
    • A
      batman-adv: make the TT CRC logic VLAN specific · 7ea7b4a1
      Antonio Quartulli 提交于
      This change allows nodes to handle the TT table on a
      per-VLAN basis. This is needed because nodes may have to
      store only some of the global entries advertised by another
      node.
      
      In this scenario such nodes would re-create only a partial
      global table and would not be able to compute a correct CRC
      anymore.
      
      This patch splits the logic and introduces one CRC per VLAN.
      In this way a node fetching only some entries belonging to
      some VLANs is still able to compute the needed CRCs and
      still check the table correctness.
      
      With this patch the shape of the TVLV-TT is changed too
      because now a node needs to advertise all the CRCs of all
      the VLANs that it is wired to.
      
      The debug output of the local Translation Table now shows
      the CRC along with each entry since there is not a common
      value for the entire table anymore.
      Signed-off-by: NAntonio Quartulli <antonio@open-mesh.com>
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      7ea7b4a1
  7. 19 10月, 2013 1 次提交
  8. 12 10月, 2013 3 次提交
  9. 10 10月, 2013 14 次提交
  10. 27 3月, 2013 1 次提交
  11. 14 3月, 2013 1 次提交
  12. 19 1月, 2013 1 次提交
  13. 30 11月, 2012 1 次提交
  14. 21 11月, 2012 1 次提交
  15. 08 11月, 2012 2 次提交