1. 27 Mar, 2016 22 commits
  2. 21 Mar, 2016 11 commits
  3. 14 Mar, 2016 3 commits
  4. 06 Mar, 2016 4 commits
    • Stephen Hemminger's avatar
      Merge branch 'master' into net-next · 0cfb9f6a
      Stephen Hemminger authored
      0cfb9f6a
    • Phil Sutter's avatar
      tc: pedit: Fix retain value for ihl adjustments · 338b003b
      Phil Sutter authored
      Since the IP Header Length field is just half a byte, adjust retain to
      only match these bits so the Version field is not overwritten by
      accident.
      
      The whole concept is actually broken due to dependency on endianness
      which pedit ignores.
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      338b003b
    • Phil Sutter's avatar
      tc: pedit: Fix parse_cmd() · f440e9d8
      Phil Sutter authored
      This was horribly broken:
      * pack_key8() and pack_key16() ...
        * missed to invert retain value when applying it to the mask,
        * did not sanitize val by ANDing it with retain,
        * and ignored the mask which is necessary for 'invert' command.
      * pack_key16() did not convert mask to network byte order.
      * Changing the retain value for 'invert' or 'retain' operation seems
        just plain wrong.
      * While here, also got rid of unnecessary offset sanitization in
        pack_key32().
      * Simplify code a bit by always assigning the local mask variable to
        tkey->mask before calling any of the pack_key*() variants.
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      f440e9d8
    • Phil Sutter's avatar
      tc: pedit: Fix layered op parsing · ec0ceeec
      Phil Sutter authored
      After lookup of the layered op submodule, pedit would pass argv and argc
      including the layered op identifier at first position which confused the
      submodule parser. Fix this by calling NEXT_ARG() before calling the
      parse_peopt() callback.
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      ec0ceeec