All of lore.kernel.org
 help / color / mirror / Atom feed
* ctnetlink unique id size?
@ 2005-02-17 17:41 Marcus Sundberg
  2005-02-20  4:47 ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Marcus Sundberg @ 2005-02-17 17:41 UTC (permalink / raw)
  To: netfilter-devel

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-20 12:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-17 17:41 ctnetlink unique id size? Marcus Sundberg
2005-02-20  4:47 ` Patrick McHardy
2005-02-20 12:28   ` Harald Welte

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.