[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20121213.125911.566802923957164958.davem@davemloft.net>
Date: Thu, 13 Dec 2012 12:59:11 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: djduanjiong@...il.com
Cc: steffen.klassert@...unet.com, netdev@...r.kernel.org
Subject: Re: [PATCH v2] ipv6: Change skb->data before using icmpv6_notify()
to propagate redirect
From: Duan Jiong <djduanjiong@...il.com>
Date: Thu, 13 Dec 2012 19:21:37 +0800
> + if (!ndisc_parse_options(msg->opt, ndoptlen, &ndopts)) {
> + ND_PRINTK(2, warn,
> + "Redirect: invalid ND options\n");
Do not add more uses of such baroque kernel logging mechanisms.
> + if (!ndopts.nd_opts_rh) {
> + return;
> + }
Single statement basic blocks should never be surrounded by
curly braces, they just waste lines.
> + hdr = (u8 *)ndopts.nd_opts_rh;
(u8 *)[SPACE]ndopts...
> + if(!pskb_pull(skb, hdr - skb_transport_header(skb))) {
if[SPACE](...
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists