From: Harald Welte Subject: Re: ctnetlink questions Date: Tue, 21 Oct 2003 00:57:11 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20031020225711.GG20288@sunbeam.de.gnumonks.org> References: <20031020144842.GK4914@sunbeam.de.gnumonks.org> <3F942F14.8070505@trash.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kjpMrWxdCilgNbo1" Cc: Jozsef Kadlecsik , Henrik Nordstrom , Netfilter Development Mailinglist Return-path: To: Patrick McHardy Content-Disposition: inline In-Reply-To: <3F942F14.8070505@trash.net> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org --kjpMrWxdCilgNbo1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 20, 2003 at 08:53:08PM +0200, Patrick McHardy wrote: > Harald Welte wrote: >=20 > >1) uniquely representing ip_conntrack during state replication between > >master and slave. Here the tuple is sufficient, since all state changes > >will be processed in-order. Since the tuple is always unique in the > >hashtable, there is no mistake of updating/deleting the wrong one. > > > >2) uniquely identifying an ip_conntrcak from userspace. > >When userspace first dumps and then deletes by tuple, the tuple might > >already have been reused. This is what most of the discussion was > >about, where a 64bit counter or the generation counter+address had been > >suggested as possible solutions. > >=20 > > >=20 > Seems now I didn't understand. How can we use the ids generated by a=20 > generation counter in userspace ? In any busy system they will be > invalidated too fast .. no. The idea is that every particular conntrack (that is, allocated chunk of memory) has it's own generation counter. That counter is part of struct ip_conntrack and incremented every time we return this chunk of memory to the slab cache. > Best regards, > Patrick --=20 - Harald Welte http://www.netfilter.org/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie --kjpMrWxdCilgNbo1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/lGhHXaXGVTD0i/8RAvGqAKChDpul09/6n6K13ki/xZ5FmT5vNwCgicuD Nc1cZyhk58RhAQPpInqDv7k= =3fcY -----END PGP SIGNATURE----- --kjpMrWxdCilgNbo1--