From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krishna Prasanth Subject: Re: Copying nf_info Date: Fri, 14 May 2004 14:07:25 +0530 Sender: netfilter-admin@lists.netfilter.org Message-ID: References: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; format="flowed"; charset="windows-1252" To: Carl Morgan , netfilter@lists.netfilter.org temp2->info =3D temp1->info, we will only copy the ADDRESS(NOT THE CONTEN= TS)=20 of struct nf_info in the temp1. Instead you can use memcpy function to do that. regards -prasanth On Thu, 13 May 2004 13:05:38 -0500, Carl Morgan=20 wrote: > Hello all, > I am writing a program that requires I copy nf_info from an entry to=20 > another one. The general idea of the program is this: > > struct some_struct { > struct nf_info* info; > }; > > struct some_struct temp1; > struct some_struct temp2; > > and in effect I want temp2->info=3Dtemp1->info. Can someone please hel= p. > > Tex Morgan > > _________________________________________________________________ > MSN Toolbar provides one-click access to Hotmail from any Web page =E2=80= =93=20 > FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ > --=20 Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/