All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Álvaro Neira Ayuso" <alvaroneay@gmail.com>
To: Eric Leblond <eric@regit.org>, pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [nft PATCH] datatype: fix name of icmp* code
Date: Wed, 03 Dec 2014 12:25:15 +0100	[thread overview]
Message-ID: <547EF31B.9020709@gmail.com> (raw)
In-Reply-To: <1417561371-22624-1-git-send-email-eric@regit.org>

Hi Eric

El 03/12/14 a las 00:02, Eric Leblond escribió:
> The name of datatypes can be used in set definition so they should
> follow the same logic (and maybe not contain space to avoid problem
> with parsing).
>
> This patch adds an underscore to the name of the icmp* code
> datatype.
>
> Signed-off-by: Eric Leblond <eric@regit.org>

Looks good to me. Thanks, I have used a uncorrect name format :)

> ---
>   src/datatype.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/datatype.c b/src/datatype.c
> index 5f976aa..1948bfa 100644
> --- a/src/datatype.c
> +++ b/src/datatype.c
> @@ -717,7 +717,7 @@ static struct error_record *icmp_code_type_parse(const struct expr *sym,
>
>   const struct datatype icmp_code_type = {
>   	.type		= TYPE_ICMP_CODE,
> -	.name		= "icmp code",
> +	.name		= "icmp_code",
>   	.desc		= "icmp code",
>   	.size		= BITS_PER_BYTE,
>   	.byteorder	= BYTEORDER_BIG_ENDIAN,
> @@ -749,7 +749,7 @@ static struct error_record *icmpv6_code_type_parse(const struct expr *sym,
>
>   const struct datatype icmpv6_code_type = {
>   	.type		= TYPE_ICMPV6_CODE,
> -	.name		= "icmpv6 code",
> +	.name		= "icmpv6_code",
>   	.desc		= "icmpv6 code",
>   	.size		= BITS_PER_BYTE,
>   	.byteorder	= BYTEORDER_BIG_ENDIAN,
> @@ -781,7 +781,7 @@ static struct error_record *icmpx_code_type_parse(const struct expr *sym,
>
>   const struct datatype icmpx_code_type = {
>   	.type		= TYPE_ICMPX_CODE,
> -	.name		= "icmpx code",
> +	.name		= "icmpx_code",
>   	.desc		= "icmpx code",
>   	.size		= BITS_PER_BYTE,
>   	.byteorder	= BYTEORDER_BIG_ENDIAN,
>

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-12-03 11:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-02 23:02 [nft PATCH] datatype: fix name of icmp* code Eric Leblond
2014-12-03 11:25 ` Álvaro Neira Ayuso [this message]
2014-12-03 11:54   ` Pablo Neira Ayuso

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=547EF31B.9020709@gmail.com \
    --to=alvaroneay@gmail.com \
    --cc=eric@regit.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.