From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Morten Isaksen <misak@misak.dk>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] libnetfilter_conntrack bug in snprintf_xml.c
Date: Sun, 20 May 2007 21:31:59 +0200 [thread overview]
Message-ID: <4650A22F.2060502@netfilter.org> (raw)
In-Reply-To: <20070518194016.872D7A50020@pfepb.post.tele.dk>
Morten Isaksen wrote:
> The port numbers are wrong in the XML output.
>
> Index: src/conntrack/snprintf_xml.c
> ===================================================================
> --- src/conntrack/snprintf_xml.c (revision 6832)
> +++ src/conntrack/snprintf_xml.c (working copy)
> @@ -182,13 +182,13 @@
> case IPPROTO_SCTP:
> if (type == __ADDR_SRC) {
> ret = snprintf(buf, len, "<sport>%u</sport>",
> - tuple->l4src.tcp.port);
> + htons(tuple->l4src.tcp.port));
^^^
Thanks for spotting this, I just committed a patch to fix this problem.
BTW, this should be ntohs, snprintf_default has the same stupid mistake.
Anyway this doesn't affect anything since ntohs and htons do the same :)
--
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
prev parent reply other threads:[~2007-05-20 19:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-18 19:40 [PATCH] libnetfilter_conntrack bug in snprintf_xml.c Morten Isaksen
2007-05-20 19:31 ` Pablo Neira Ayuso [this message]
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=4650A22F.2060502@netfilter.org \
--to=pablo@netfilter.org \
--cc=misak@misak.dk \
--cc=netfilter-devel@lists.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.