1. 30 6月, 2016 1 次提交
  2. 10 5月, 2016 1 次提交
  3. 02 2月, 2016 3 次提交
  4. 25 8月, 2015 1 次提交
  5. 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
  6. 29 5月, 2015 1 次提交
  7. 08 1月, 2015 1 次提交
  8. 12 1月, 2014 1 次提交
  9. 09 1月, 2014 1 次提交
  10. 19 1月, 2013 1 次提交
  11. 29 10月, 2012 1 次提交
  12. 02 7月, 2012 2 次提交
  13. 28 6月, 2012 1 次提交
  14. 25 6月, 2012 2 次提交
  15. 21 6月, 2012 2 次提交
  16. 11 4月, 2012 1 次提交
  17. 28 2月, 2012 1 次提交
  18. 17 2月, 2012 1 次提交
  19. 20 11月, 2011 1 次提交
  20. 22 8月, 2011 1 次提交
  21. 20 6月, 2011 2 次提交
  22. 30 5月, 2011 2 次提交
  23. 31 1月, 2011 1 次提交
  24. 17 12月, 2010 1 次提交
  25. 05 9月, 2010 2 次提交
  26. 09 7月, 2010 1 次提交
  27. 23 6月, 2010 2 次提交
  28. 12 5月, 2010 2 次提交
    • S
      Staging: batman-adv: Reorganize sequence number handling · f94cee24
      Simon Wunderlich 提交于
      BATMAN and broadcast packets are tracked with a sequence number window of
      currently 64 entries to measure and avoid duplicates. Packets which have a
      sequence number smaller than the newest received packet minus 64 are not
      within this sequence number window anymore and are called "old packets"
      from now on.
      
      When old packets are received, the routing code assumes that the host of the
      originator has been restarted. This assumption however might be wrong as
      packets can also be delayed by NIC drivers, e.g. because of long queues or
      collision detection in dense WiFi? environments. This behaviour can be
      reproduced by doing a broadcast ping flood in a dense node environment.
      
      The effect is that the sequence number window is jumping forth and back,
      accepting and forwarding any packet (because packets are assumed to be "new")
      and causing loops.
      
      To overcome this problem, the sequence number handling has been reorganized.
      When an old packet is received, the window is reset back only once. Other old
      packets are dropped for (currently) 30 seconds to "protect" the new sequence
      number and avoid the hopping as described above.
      
      The reorganization brings some code cleanups (at least i hope you feel the
      same) and also fixes a bug in count_real_packets() which falsely updated
      the last_real_seqno for slightly older packets within the seqno window
      if they are no duplicates.
      
      This second version of the patch also fixes a problem where for seq_diff==64
      bit_shift() reads from outside of the seqno window, and removes the loop
      for seq_diff == -64 which was present in the first patch.
      
      The third iteration also adds a window for the next expected sequence numbers.
      This minimizes sequence number flapping for packets with very big differences
      (e.g. 3 packets with seqno 0, 25000 and 50000 might still cause problems
      without this window).
      Signed-off-by: NSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f94cee24
    • S
      9b6d10b7
  29. 04 3月, 2010 1 次提交
  30. 12 12月, 2009 1 次提交