1. 13 4月, 2016 4 次提交
  2. 09 4月, 2016 1 次提交
  3. 11 3月, 2016 1 次提交
  4. 26 2月, 2016 1 次提交
  5. 24 2月, 2016 3 次提交
  6. 21 10月, 2015 9 次提交
  7. 17 9月, 2015 1 次提交
  8. 12 8月, 2015 1 次提交
  9. 11 8月, 2015 1 次提交
  10. 23 7月, 2015 1 次提交
  11. 15 2月, 2015 2 次提交
  12. 05 12月, 2014 1 次提交
  13. 07 11月, 2014 1 次提交
  14. 05 11月, 2014 1 次提交
  15. 27 10月, 2014 2 次提交
  16. 25 10月, 2014 1 次提交
  17. 31 7月, 2014 9 次提交
    • M
      6lowpan: iphc: Fix parenthesis alignments which off-by-one · 3fa71fe0
      Marcel Holtmann 提交于
      CHECK: Alignment should match open parenthesis
      +	if (((hdr->flow_lbl[0] & 0x0F) == 0) &&
      +	     (hdr->flow_lbl[1] == 0) && (hdr->flow_lbl[2] == 0)) {
      
      CHECK: Alignment should match open parenthesis
      +		if ((hdr->priority == 0) &&
      +		   ((hdr->flow_lbl[0] & 0xF0) == 0)) {
      
      CHECK: Alignment should match open parenthesis
      +		if ((hdr->priority == 0) &&
      +		   ((hdr->flow_lbl[0] & 0xF0) == 0)) {
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      3fa71fe0
    • M
      6lowpan: iphc: Fix missing braces for if statement · 9ab9bb00
      Marcel Holtmann 提交于
      CHECK: braces {} should be used on all arms of this statement
      +	if ((iphc0 & 0x03) != LOWPAN_IPHC_TTL_I)
      [...]
      +	else {
      [...]
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      9ab9bb00
    • M
      6lowpan: iphc: Fix missing blank line after variable declarations · 26fff593
      Marcel Holtmann 提交于
      WARNING: Missing a blank line after declarations
      +		struct sk_buff *new;
      +		if (uncompress_udp_header(skb, &uh))
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      26fff593
    • M
      6lowpan: iphc: Fix issues with alignment matching open parenthesis · 7fc4cfda
      Marcel Holtmann 提交于
      This patch fixes all the issues with alignment matching of open
      parenthesis found by checkpatch.pl and makes them follow the
      network coding style now.
      
      CHECK: Alignment should match open parenthesis
      +static int uncompress_addr(struct sk_buff *skb,
      +				struct in6_addr *ipaddr, const u8 address_mode,
      
      CHECK: Alignment should match open parenthesis
      +static int uncompress_context_based_src_addr(struct sk_buff *skb,
      +						struct in6_addr *ipaddr,
      
      CHECK: Alignment should match open parenthesis
      +static int skb_deliver(struct sk_buff *skb, struct ipv6hdr *hdr,
      +		struct net_device *dev, skb_delivery_cb deliver_skb)
      
      CHECK: Alignment should match open parenthesis
      +	new = skb_copy_expand(skb, sizeof(struct ipv6hdr), skb_tailroom(skb),
      +								GFP_ATOMIC);
      
      CHECK: Alignment should match open parenthesis
      +	raw_dump_table(__func__, "raw skb data dump before receiving",
      +			new->data, new->len);
      
      CHECK: Alignment should match open parenthesis
      +lowpan_uncompress_multicast_daddr(struct sk_buff *skb,
      +		struct in6_addr *ipaddr,
      
      CHECK: Alignment should match open parenthesis
      +	raw_dump_inline(NULL, "Reconstructed ipv6 multicast addr is",
      +				ipaddr->s6_addr, 16);
      
      CHECK: Alignment should match open parenthesis
      +int lowpan_process_data(struct sk_buff *skb, struct net_device *dev,
      +		const u8 *saddr, const u8 saddr_type, const u8 saddr_len,
      
      CHECK: Alignment should match open parenthesis
      +	raw_dump_table(__func__, "raw skb data dump uncompressed",
      +				skb->data, skb->len);
      
      CHECK: Alignment should match open parenthesis
      +		err = uncompress_addr(skb, &hdr.saddr, tmp, saddr,
      +					saddr_type, saddr_len);
      
      CHECK: Alignment should match open parenthesis
      +		err = uncompress_addr(skb, &hdr.daddr, tmp, daddr,
      +					daddr_type, daddr_len);
      
      CHECK: Alignment should match open parenthesis
      +		pr_debug("dest: stateless compression mode %d dest %pI6c\n",
      +			tmp, &hdr.daddr);
      
      CHECK: Alignment should match open parenthesis
      +		raw_dump_table(__func__, "raw UDP header dump",
      +				      (u8 *)&uh, sizeof(uh));
      
      CHECK: Alignment should match open parenthesis
      +	raw_dump_table(__func__, "raw header dump", (u8 *)&hdr,
      +							sizeof(hdr));
      
      CHECK: Alignment should match open parenthesis
      +int lowpan_header_compress(struct sk_buff *skb, struct net_device *dev,
      +			unsigned short type, const void *_daddr,
      
      CHECK: Alignment should match open parenthesis
      +	raw_dump_table(__func__, "raw skb network header dump",
      +		skb_network_header(skb), sizeof(struct ipv6hdr));
      
      CHECK: Alignment should match open parenthesis
      +	raw_dump_table(__func__,
      +			"sending raw skb network uncompressed packet",
      
      CHECK: Alignment should match open parenthesis
      +	if (((hdr->flow_lbl[0] & 0x0F) == 0) &&
      +	     (hdr->flow_lbl[1] == 0) && (hdr->flow_lbl[2] == 0)) {
      
      WARNING: quoted string split across lines
      +			pr_debug("dest address unicast link-local %pI6c "
      +				"iphc1 0x%02x\n", &hdr->daddr, iphc1);
      
      CHECK: Alignment should match open parenthesis
      +	raw_dump_table(__func__, "raw skb data dump compressed",
      +				skb->data, skb->len);
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      7fc4cfda
    • M
      6lowpan: iphc: Fix block comments to match networking style · 89f53490
      Marcel Holtmann 提交于
      This patch fixes all the block comment issues found by checkpatch.pl and
      makes them match the network style now.
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +/*
      + * Based on patches from Jon Smirl <jonsmirl@gmail.com>
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +/*
      + * Uncompress address function for source and
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +/*
      + * Uncompress address function for source context
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +		/*
      +		 * UDP lenght needs to be infered from the lower layers
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +	/*
      +	 * Traffic Class and FLow Label carried in-line
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +	/*
      +	 * Traffic class carried in-line
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +	/*
      +	 * Flow Label carried in-line
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +		/*
      +		 * replace the compressed UDP head by the uncompressed UDP
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +	/*
      +	 * As we copy some bit-length fields, in the IPHC encoding bytes,
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +	/*
      +	 * Traffic class, flow label
      
      WARNING: networking block comments don't use an empty /* line, use /* Comment...
      +	/*
      +	 * Hop limit
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      89f53490
    • A
      6lowpan: iphc: remove check on null · b2e3a479
      Alexander Aring 提交于
      This memory is placed on stack and can't be null so remove the check on
      null.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      b2e3a479
    • A
      6lowpan: iphc: use ipv6 api to check address scope · 556a5bfc
      Alexander Aring 提交于
      This patch removes the own implementation to check of link-layer,
      broadcast and any address type and use the IPv6 api for that.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      556a5bfc
    • A
      6lowpan: iphc: cleanup use of lowpan_push_hc_data · 85c71240
      Alexander Aring 提交于
      This patch uses the lowpan_push_hc_data functions in several places
      where we can use it. The lowpan_push_hc_data was introduced in some
      previous patches.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      85c71240
    • A
      6lowpan: iphc: cleanup use of lowpan_fetch_skb · 4ebc960f
      Alexander Aring 提交于
      We introduced the lowpan_fetch_skb function in some previous patches for
      6lowpan to have a generic fetch function. This patch drops the old
      function and use the generic lowpan_fetch_skb one.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      4ebc960f