1. 31 Jan, 2011 2 commits
    • Sven Eckelmann's avatar
      batman-adv: Calculate correct size for merged packets · ae361ce1
      Sven Eckelmann authored
      The routing algorithm must be able to decide if a fragment can be merged with
      the missing part and still be passed to a forwarding interface. The fragments
      can only differ by one byte in case that the original payload had an uneven
      length. In that situation the sender has to inform all possible receivers that
      the tail is one byte longer using the flag UNI_FRAG_LARGETAIL.
      
      The combination of UNI_FRAG_LARGETAIL and UNI_FRAG_HEAD flag makes it possible
      to calculate the correct length for even and uneven sized payloads.
      
      The original formula missed to add the unicast header at all and forgot to
      remove the fragment header of the second fragment. This made the results highly
      unreliable and only useful for machines with large differences between the
      configured MTUs.
      Reported-by: default avatarRussell Senior <russell@personaltelco.net>
      Reported-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      ae361ce1
    • Sven Eckelmann's avatar
      batman-adv: Create roughly equal sized fragments · 5c77d8bb
      Sven Eckelmann authored
      The routing algorithm must know how large two fragments are to be able to
      decide that it is safe to merge them or if it should resubmit without waiting
      for the second part. When these two fragments have a too different size, it is
      not possible to guess right in every situation.
      
      The user could easily configure the MTU of the attached cards so that one
      fragment is forwarded and the other one is added to the fragments table to wait
      for the missing part.
      
      For even sized packets, it is possible to split it so that the resulting
      packages are equal sized by ignoring the old non-fragment header at the
      beginning of the original packet.
      
      This still creates different sized fragments for uneven sized packets.
      Reported-by: default avatarRussell Senior <russell@personaltelco.net>
      Reported-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      5c77d8bb
  2. 22 Jan, 2011 2 commits
    • Linus Torvalds's avatar
      Linux 2.6.38-rc2 · 1bae4ce2
      Linus Torvalds authored
      1bae4ce2
    • Linus Torvalds's avatar
      Merge branch 'media_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 · 13a3cec8
      Linus Torvalds authored
      * 'media_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (101 commits)
        [media] staging/lirc: fix mem leaks and ptr err usage
        [media] hdpvr: reduce latency of i2c read/write w/recycled buffer
        [media] hdpvr: enable IR part
        [media] rc/mceusb: timeout should be in ns, not us
        [media] v4l2-device: fix 'use-after-freed' oops
        [media] v4l2-dev: don't memset video_device.dev
        [media] zoran: use video_device_alloc instead of kmalloc
        [media] w9966: zero device state after a detach
        [media] v4l: Fix a use-before-set in the control framework
        [media] v4l: Include linux/videodev2.h in media/v4l2-ctrls.h
        [media] DocBook/v4l: update V4L2 revision and update copyright years
        [media] DocBook/v4l: fix validation error in dev-rds.xml
        [media] v4l2-ctrls: queryctrl shouldn't attempt to replace V4L2_CID_PRIVATE_BASE IDs
        [media] v4l2-ctrls: fix missing 'read-only' check
        [media] pvrusb2: Provide more information about IR units to lirc_zilog and ir-kbd-i2c
        [media] ir-kbd-i2c: Add back defaults setting for Zilog Z8's at addr 0x71
        [media] lirc_zilog: Update TODO.lirc_zilog
        [media] lirc_zilog: Add Andy Walls to copyright notice and authors list
        [media] lirc_zilog: Remove useless struct i2c_driver.command function
        [media] lirc_zilog: Remove unneeded tests for existence of the IR Tx function
        ...
      13a3cec8
  3. 21 Jan, 2011 36 commits