From: David Miller <davem@davemloft.net>
To: djduanjiong@gmail.com
Cc: steffen.klassert@secunet.com, netdev@vger.kernel.org
Subject: Re: [PATCH v2] ipv6: Change skb->data before using icmpv6_notify() to propagate redirect
Date: Thu, 13 Dec 2012 12:59:11 -0500 (EST) [thread overview]
Message-ID: <20121213.125911.566802923957164958.davem@davemloft.net> (raw)
In-Reply-To: <50C9BA41.1010507@gmail.com>
From: Duan Jiong <djduanjiong@gmail.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](...
next prev parent reply other threads:[~2012-12-13 17:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-13 11:21 [PATCH v2] ipv6: Change skb->data before using icmpv6_notify() to propagate redirect Duan Jiong
2012-12-13 17:59 ` David Miller [this message]
2012-12-13 19:37 ` Joe Perches
2012-12-13 19:50 ` David Miller
2012-12-14 4:07 ` [PATCH] ndisc: Use more standard logging styles Joe Perches
2012-12-14 4:11 ` Joe Perches
2012-12-14 4:23 ` [PATCH V2] " Joe Perches
2012-12-14 13:58 ` Eric Dumazet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121213.125911.566802923957164958.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=djduanjiong@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).