All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcus Sundberg <marcus@ingate.com>
To: netfilter-devel@lists.netfilter.org
Subject: ctnetlink unique id size?
Date: Thu, 17 Feb 2005 18:41:49 +0100	[thread overview]
Message-ID: <4214D75D.5070005@ingate.com> (raw)

Hi,

isn't an unsigned int a bit (or rather about 32 bits) small for
keeping the id field of the ip_conntrack struct? It's bound to wrap
around, and with things like long-lived ssh sessions it's even
possible for two connections to be assigned the same id after a
wrap-around.

Am I missing something obvious when I think ctnetlink_dump_table()
will break down when the wrap-around occurs?

Using an uint64_t would on the other hand guarantee that each
connection really get a unique id.

//Marcus
-- 
---------------------------------------+--------------------------
   Marcus Sundberg <marcus@ingate.com>  | Firewalls with SIP & NAT
  Software Developer, Ingate Systems AB |  http://www.ingate.com/

             reply	other threads:[~2005-02-17 17:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-17 17:41 Marcus Sundberg [this message]
2005-02-20  4:47 ` ctnetlink unique id size? Patrick McHardy
2005-02-20 12:28   ` Harald Welte

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=4214D75D.5070005@ingate.com \
    --to=marcus@ingate.com \
    --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.