1. 12 12月, 2013 1 次提交
  2. 20 11月, 2013 3 次提交
  3. 19 11月, 2013 1 次提交
  4. 15 11月, 2013 3 次提交
    • J
      6lowpan: Uncompression of traffic class field was incorrect · 1188f054
      Jukka Rissanen 提交于
      If priority/traffic class field in IPv6 header is set (seen when
      using ssh), the uncompression sets the TC and Flow fields incorrectly.
      
      Example:
      
      This is IPv6 header of a sent packet. Note the priority/TC (=1) in
      the first byte.
      
      00000000: 61 00 00 00 00 2c 06 40 fe 80 00 00 00 00 00 00
      00000010: 02 02 72 ff fe c6 42 10 fe 80 00 00 00 00 00 00
      00000020: 02 1e ab ff fe 4c 52 57
      
      This gets compressed like this in the sending side
      
      00000000: 72 31 04 06 02 1e ab ff fe 4c 52 57 ec c2 00 16
      00000010: aa 2d fe 92 86 4e be c6 ....
      
      In the receiving end, the packet gets uncompressed to this
      IPv6 header
      
      00000000: 60 06 06 02 00 2a 1e 40 fe 80 00 00 00 00 00 00
      00000010: 02 02 72 ff fe c6 42 10 fe 80 00 00 00 00 00 00
      00000020: ab ff fe 4c 52 57 ec c2
      
      First four bytes are set incorrectly and we have also lost
      two bytes from destination address.
      
      The fix is to switch the case values in switch statement
      when checking the TC field.
      Signed-off-by: NJukka Rissanen <jukka.rissanen@linux.intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1188f054
    • J
      genetlink: make all genl_ops users const · 4534de83
      Johannes Berg 提交于
      Now that genl_ops are no longer modified in place when
      registering, they can be made const. This patch was done
      mostly with spatch:
      
      @@
      identifier ops;
      @@
      +const
       struct genl_ops ops[] = {
       ...
       };
      
      (except the struct thing in net/openvswitch/datapath.c)
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4534de83
    • J
      ieee802154: use genl_register_family_with_ops() · 1c582d91
      Johannes Berg 提交于
      This simplifies the code since there's no longer a need to
      have error handling in the registration.
      
      Unfortunately it means more extern function declarations are
      needed, but the overall goal would seem to justify this.
      
      While at it, also fix the registration error path - if the
      family registration failed then it shouldn't be unregistered.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1c582d91
  5. 08 11月, 2013 1 次提交
  6. 31 10月, 2013 4 次提交
  7. 29 10月, 2013 5 次提交
  8. 09 10月, 2013 2 次提交
  9. 21 8月, 2013 6 次提交
  10. 27 7月, 2013 1 次提交
  11. 29 5月, 2013 1 次提交
  12. 09 4月, 2013 1 次提交
    • W
      ieee802154/nl-mac.c: make some MLME operations optional · 56aa091d
      Werner Almesberger 提交于
      Check for NULL before calling the following operations from "struct
      ieee802154_mlme_ops": assoc_req, assoc_resp, disassoc_req, start_req,
      and scan_req.
      
      This fixes a current oops where those functions are called but not
      implemented. It also updates the documentation to clarify that they
      are now optional by design. If a call to an unimplemented function
      is attempted, the kernel returns EOPNOTSUPP via netlink.
      
      The following operations are still required: get_phy, get_pan_id,
      get_short_addr, and get_dsn.
      
      Note that the places where this patch changes the initialization
      of "ret" should not affect the rest of the code since "ret" was
      always set (again) before returning its value.
      Signed-off-by: NWerner Almesberger <werner@almesberger.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      56aa091d
  13. 08 4月, 2013 1 次提交
  14. 30 3月, 2013 1 次提交
  15. 29 3月, 2013 1 次提交
  16. 27 3月, 2013 8 次提交