[NET] IPV6: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
e905a9edab
commit
1ab1457c42
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
/* Changes:
|
||||
* yoshfuji : ensure not to overrun while parsing
|
||||
* yoshfuji : ensure not to overrun while parsing
|
||||
* tlv options.
|
||||
* Mitsuru KANDA @USAGI and: Remove ipv6_parse_exthdrs().
|
||||
* YOSHIFUJI Hideaki @USAGI Register inbound extension header
|
||||
@@ -167,8 +167,8 @@ static int ip6_parse_tlv(struct tlvtype_proc *procs, struct sk_buff **skbp)
|
||||
goto bad;
|
||||
for (curr=procs; curr->type >= 0; curr++) {
|
||||
if (curr->type == skb->nh.raw[off]) {
|
||||
/* type specific length/alignment
|
||||
checks will be performed in the
|
||||
/* type specific length/alignment
|
||||
checks will be performed in the
|
||||
func(). */
|
||||
if (curr->func(skbp, off) == 0)
|
||||
return 0;
|
||||
@@ -572,7 +572,7 @@ void __init ipv6_rthdr_init(void)
|
||||
For now we need to test the engine, so that I created
|
||||
temporary (or permanent) backdoor.
|
||||
If listening socket set IPV6_RTHDR to 2, then we invert header.
|
||||
--ANK (980729)
|
||||
--ANK (980729)
|
||||
*/
|
||||
|
||||
struct ipv6_txoptions *
|
||||
@@ -635,7 +635,7 @@ static int ipv6_hop_ra(struct sk_buff **skbp, int optoff)
|
||||
return 1;
|
||||
}
|
||||
LIMIT_NETDEBUG(KERN_DEBUG "ipv6_hop_ra: wrong RA length %d\n",
|
||||
skb->nh.raw[optoff+1]);
|
||||
skb->nh.raw[optoff+1]);
|
||||
kfree_skb(skb);
|
||||
return 0;
|
||||
}
|
||||
@@ -649,7 +649,7 @@ static int ipv6_hop_jumbo(struct sk_buff **skbp, int optoff)
|
||||
|
||||
if (skb->nh.raw[optoff+1] != 4 || (optoff&3) != 2) {
|
||||
LIMIT_NETDEBUG(KERN_DEBUG "ipv6_hop_jumbo: wrong jumbo opt length/alignment %d\n",
|
||||
skb->nh.raw[optoff+1]);
|
||||
skb->nh.raw[optoff+1]);
|
||||
IP6_INC_STATS_BH(ip6_dst_idev(skb->dst),
|
||||
IPSTATS_MIB_INHDRERRORS);
|
||||
goto drop;
|
||||
@@ -740,7 +740,7 @@ static void ipv6_push_rthdr(struct sk_buff *skb, u8 *proto,
|
||||
int hops;
|
||||
|
||||
ihdr = (struct rt0_hdr *) opt;
|
||||
|
||||
|
||||
phdr = (struct rt0_hdr *) skb_push(skb, (ihdr->rt_hdr.hdrlen + 1) << 3);
|
||||
memcpy(phdr, ihdr, sizeof(struct rt0_hdr));
|
||||
|
||||
|
Reference in New Issue
Block a user