From: Pablo Neira <pablo@eurodev.net>
To: Amin Azez <azez@ufomechanic.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: solved Re: missing conntrack protocol on updates
Date: Sat, 18 Jun 2005 21:41:02 +0200 [thread overview]
Message-ID: <42B478CE.9000905@eurodev.net> (raw)
In-Reply-To: <42B1A4B6.8090209@ufomechanic.net>
Amin Azez wrote:
> I had mistakenly thought that ctnetlink_fill_info was the only place
> that constructed conntrack netlink packets but now I see that I had
> missed out ctnetlink_conntrack_event which tries to optimize away the
> protocol information if it has not changed but always outputs the tuple.
>
> This seems a mistake because the tuple identifies the conntrack by IP
> and port and protocol, and as there is no medium term conntrack ID
> available the protocol will also be needed to trace the conntrack
> updates as.
The protocol information you're referring to is contained by
ip_conntrack_tuple, so it's always dumped since ctnetlink_dump_tuples is
always called.
Don't get it wrong, ctnetlink_dump_protoinfo dumps the private protocol
information, ie. in case of a TCP connection, if the it's established,
closed, etc... and such info isn't using to hash a conntrack. I think
you're getting confused because of this:
struct cta_proto {
unsigned char num_proto; /* Protocol number IPPROTO_X */
union ip_conntrack_proto proto;
};
See that we always dump the protocol id number together with the private
protocol information. Otherwise the user space program won't be able to
handle the information about an update properly.
--
Pablo
prev parent reply other threads:[~2005-06-18 19:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-03 10:41 missing conntrack protocol on updates Amin Azez
2005-06-04 23:07 ` Pablo Neira
2005-06-13 15:09 ` Amin Azez
2005-06-14 2:30 ` Pablo Neira
2005-06-14 9:37 ` Amin Azez
2005-06-16 16:11 ` solved " Amin Azez
2005-06-18 19:41 ` Pablo Neira [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=42B478CE.9000905@eurodev.net \
--to=pablo@eurodev.net \
--cc=azez@ufomechanic.net \
--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.