From: Cong Wang <amwang@redhat.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, tmb@mageia.org,
libc-alpha@sourceware.org, yoshfuji@linux-ipv6.org,
carlos@redhat.com
Subject: Re: [Patch net-next] net: sync some IP headers with glibc
Date: Thu, 15 Aug 2013 16:42:43 +0800 [thread overview]
Message-ID: <1376556163.2626.11.camel@cr0> (raw)
In-Reply-To: <20130814.134246.1152657041177088716.davem@davemloft.net>
On Wed, 2013-08-14 at 13:42 -0700, David Miller wrote:
> > -#define IPPROTO_HOPOPTS 0 /* IPv6 hop-by-hop
> options */
> > -#define IPPROTO_ROUTING 43 /* IPv6 routing
> header */
> > -#define IPPROTO_FRAGMENT 44 /* IPv6 fragmentation
> header */
> > -#define IPPROTO_ICMPV6 58 /*
> ICMPv6 */
> > -#define IPPROTO_NONE 59 /* IPv6 no next
> header */
> > -#define IPPROTO_DSTOPTS 60 /* IPv6 destination
> options */
> > -#define IPPROTO_MH 135 /* IPv6 mobility
> header */
> > +#if __UAPI_DEF_IPPROTO_V6
> > +enum {
> > + IPPROTO_HOPOPTS = 0, /* IPv6 hop-by-hop options
> */
>
> Again, do not reformat things, it's an unrelated change and makes
> this patch harder to review.
Hmm, for this one, the original format is hard to keep since this patch
changes macros to enum's. What this patch does here looks correct to me,
for reference, below is the original code:
#define IPPROTO_HOPOPTS 0 /* IPv6 hop-by-hop options
*/
#define IPPROTO_ROUTING 43 /* IPv6 routing header
*/
#define IPPROTO_FRAGMENT 44 /* IPv6 fragmentation header
*/
#define IPPROTO_ICMPV6 58 /* ICMPv6
*/
#define IPPROTO_NONE 59 /* IPv6 no next header
*/
#define IPPROTO_DSTOPTS 60 /* IPv6 destination options
*/
#define IPPROTO_MH 135 /* IPv6 mobility header
*/
and here is the code after patch:
#if __UAPI_DEF_IPPROTO_V6
enum {
IPPROTO_HOPOPTS = 0, /* IPv6 hop-by-hop options */
#define IPPROTO_HOPOPTS IPPROTO_HOPOPTS
IPPROTO_ROUTING = 43, /* IPv6 routing header */
#define IPPROTO_ROUTING IPPROTO_ROUTING
IPPROTO_FRAGMENT = 44, /* IPv6 fragmentation header */
#define IPPROTO_FRAGMENT IPPROTO_FRAGMENT
IPPROTO_ICMPV6 = 58, /* ICMPv6 */
#define IPPROTO_ICMPV6 IPPROTO_ICMPV6
IPPROTO_NONE = 59, /* IPv6 no next header */
#define IPPROTO_NONE IPPROTO_NONE
IPPROTO_DSTOPTS = 60, /* IPv6 destination options */
#define IPPROTO_DSTOPTS IPPROTO_DSTOPTS
IPPROTO_MH = 135, /* IPv6 mobility header */
#define IPPROTO_MH IPPROTO_MH
};
#endif /* __UAPI_DEF_IPPROTO_V6 */
Or I don't get your point?
Thanks.
next prev parent reply other threads:[~2013-08-15 8:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 8:37 [Patch net-next] net: sync some IP headers with glibc Cong Wang
2013-08-13 8:37 ` [GLIBC Patch] inet: avoid redefinition of some structs in kernel Cong Wang
2013-08-14 20:42 ` [Patch net-next] net: sync some IP headers with glibc David Miller
2013-08-15 2:48 ` Cong Wang
2013-08-15 8:42 ` Cong Wang [this message]
2013-08-15 8:44 ` David Miller
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=1376556163.2626.11.camel@cr0 \
--to=amwang@redhat.com \
--cc=carlos@redhat.com \
--cc=davem@davemloft.net \
--cc=libc-alpha@sourceware.org \
--cc=netdev@vger.kernel.org \
--cc=tmb@mageia.org \
--cc=yoshfuji@linux-ipv6.org \
/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).