From: Ana Rey <anarey@gmail.com>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: Netfilter Development Mailing list <netfilter-devel@vger.kernel.org>
Subject: Re: [libnftnl PATCH 1/3] ruleset: Add an end of line in the exit of ruleset.
Date: Wed, 9 Apr 2014 16:56:27 +0200 [thread overview]
Message-ID: <CAD7o0sikoYmw0G=Jkr7vaJS73bjB0kYqiRLZ+SSTLD6Kw26fnA@mail.gmail.com> (raw)
In-Reply-To: <CAOkSjBjOTWW2cS012J73-UcqYbUyAJ31aXA==K4BsTYkTXffmA@mail.gmail.com>
2014-04-09 12:11 GMT+02:00 Arturo Borrero Gonzalez
<arturo.borrero.glez@gmail.com>:
> On 9 April 2014 10:53, Ana Rey <anarey@gmail.com> wrote:
>> Add an end of line in the exit of ruleset.
>>
>> Signed-off-by: Ana Rey <anarey@gmail.com>
>
> Hi Ana,
>
> Why do you need this here?
>
> The policy was to don't add any format stuff (tabs, newlines..) to
> XML|JSON formats and let the caller add the trailing \n if needed..
Thank you for this advise. I'll remember it the next time.
I solved this problem in the tests/nft-parsing-test.c
(I'll send a new version of "[libnftnl PATCH 2/3] tests: New tools to
uptade xml and json testfiles." patch and I deleted it of tihs
patchset)
Thank you!
>
> However, I see several inconsistencies already in the code:
> src/rule.c: ret = snprintf(buf+offset, len, "\n");
> src/rule.c: ret = snprintf(buf+offset, len, "]\n");
> src/rule.c: ret = snprintf(buf+offset, len, " }\n");
> src/set.c: ret = snprintf(buf+offset, len, "\n");
>
> --
> Arturo Borrero González
--
Ana Rey (@anaRB)
http://about.me/anarey
--
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
next prev parent reply other threads:[~2014-04-09 14:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-09 8:53 [libnftnl PATCH 0/3] New features in nft-parsing-test Ana Rey
2014-04-09 8:53 ` [libnftnl PATCH 1/3] ruleset: Add an end of line in the exit of ruleset Ana Rey
2014-04-09 10:11 ` Arturo Borrero Gonzalez
2014-04-09 14:56 ` Ana Rey [this message]
2014-04-09 14:59 ` Ana Rey
2014-04-09 8:54 ` [libnftnl PATCH 2/3] tests: New tools to uptade xml and json testfiles Ana Rey
2014-04-09 8:54 ` [libnftnl PATCH 3/3] tests: Add support to check a json or xml testfile Ana Rey
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='CAD7o0sikoYmw0G=Jkr7vaJS73bjB0kYqiRLZ+SSTLD6Kw26fnA@mail.gmail.com' \
--to=anarey@gmail.com \
--cc=arturo.borrero.glez@gmail.com \
--cc=netfilter-devel@vger.kernel.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).