1. 24 2月, 2016 1 次提交
  2. 10 12月, 2015 1 次提交
  3. 08 10月, 2015 1 次提交
  4. 22 9月, 2015 1 次提交
    • A
      ieee802154: change needed headroom/tailroom · 87a93e4e
      Alexander Aring 提交于
      This patch cleanups needed_headroom, needed_tailroom and hard_header_len
      fields for wpan and lowpan interfaces.
      
      For wpan interfaces the worst case mac header len should be part of
      needed_headroom, currently this is set as hard_header_len, but
      hard_header_len should be set to the minimum header length which xmit
      call assumes and this is the minimum frame length of 802.15.4.
      The hard_header_len value will check inside send callbacl of AF_PACKET
      raw sockets.
      
      For lowpan interfaces, if fragmentation isn't needed the skb will
      call dev_hard_header for 802154 layer and queue it afterwards. This
      happens without new skb allocation, so we need the same headroom and
      tailroom lengths like 802154 inside 802154 6lowpan layer. At least we
      assume as minimum header length an ipv6 header size.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      87a93e4e
  5. 17 9月, 2015 4 次提交
  6. 19 8月, 2015 1 次提交
  7. 16 8月, 2015 1 次提交
  8. 12 8月, 2015 1 次提交
  9. 11 8月, 2015 1 次提交
  10. 23 5月, 2015 2 次提交
  11. 15 3月, 2015 1 次提交
    • A
      ieee802154: 6lowpan: fix ARPHRD to ARPHRD_6LOWPAN · 965e613d
      Alexander Aring 提交于
      Currently there exists two interface types with ARPHRD_IEEE802154. These
      are the 802.15.4 interfaces and 802.15.4 6LoWPAN interfaces. This is
      more a bug because some userspace applications checks on this value like
      wireshark. This occurs that wireshark will always try to parse a lowpan
      interface as 802.15.4 frames. With ARPHRD_6LOWPAN wireshark will parse
      it as IPv6 frames which is correct.
      
      Much applications checks on this value to readout the EUI64 mac address
      which should be the same for ARPHRD_6LOWPAN. BTLE 6LoWPAN and ieee802154
      6LoWPAN will share now the same ARPHRD.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      965e613d
  12. 14 2月, 2015 1 次提交
  13. 08 1月, 2015 5 次提交
  14. 05 12月, 2014 1 次提交
  15. 26 11月, 2014 1 次提交
  16. 07 11月, 2014 1 次提交
  17. 06 11月, 2014 1 次提交
  18. 02 11月, 2014 1 次提交
  19. 27 10月, 2014 3 次提交
  20. 26 10月, 2014 1 次提交
  21. 25 10月, 2014 5 次提交
  22. 24 9月, 2014 1 次提交
    • S
      ieee802154: 6lowpan: ensure header compression does not corrupt ipv6 header · f19f4f95
      Simon Vincent 提交于
      The 6lowpan ipv6 header compression was causing problems for other interfaces
      that expected a ipv6 header to still be in place, as we were replacing the
      ipv6 header with a compressed version. This happened if you sent a packet to a
      multicast address as the packet would be output on 802.15.4, ethernet, and also
      be sent to the loopback interface. The skb data was shared between these
      interfaces so all interfaces ended up with a compressed ipv6 header.
      
      The solution is to ensure that before we do any header compression we are not
      sharing the skb or skb data with any other interface. If we are then we must
      take a copy of the skb and skb data before modifying the ipv6 header.
      The only place we can copy the skb is inside the xmit function so we don't
      leave dangling references to skb.
      
      This patch moves all the header compression to inside the xmit function. Very
      little code has been changed it has mostly been moved from lowpan_header_create
      to lowpan_xmit. At the top of the xmit function we now check if the skb is
      shared and if so copy it. In lowpan_header_create all we do now is store the
      source and destination addresses for use later when we compress the header.
      Signed-off-by: NSimon Vincent <simon.vincent@xsilon.com>
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      f19f4f95
  23. 20 8月, 2014 2 次提交
  24. 14 8月, 2014 1 次提交
  25. 08 7月, 2014 1 次提交