* Copying nf_info
@ 2004-05-13 18:05 Carl Morgan
2004-05-14 8:37 ` Krishna Prasanth
0 siblings, 1 reply; 2+ messages in thread
From: Carl Morgan @ 2004-05-13 18:05 UTC (permalink / raw)
To: netfilter
Hello all,
I am writing a program that requires I copy nf_info from an entry to
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=temp1->info. Can someone please help.
Tex Morgan
_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Copying nf_info
2004-05-13 18:05 Copying nf_info Carl Morgan
@ 2004-05-14 8:37 ` Krishna Prasanth
0 siblings, 0 replies; 2+ messages in thread
From: Krishna Prasanth @ 2004-05-14 8:37 UTC (permalink / raw)
To: Carl Morgan, netfilter
temp2->info = temp1->info, we will only copy the ADDRESS(NOT THE CONTENTS)
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
<killgoretrout59@hotmail.com> wrote:
> Hello all,
> I am writing a program that requires I copy nf_info from an entry to
> 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=temp1->info. Can someone please help.
>
> Tex Morgan
>
> _________________________________________________________________
> MSN Toolbar provides one-click access to Hotmail from any Web page –
> FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-14 8:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-13 18:05 Copying nf_info Carl Morgan
2004-05-14 8:37 ` Krishna Prasanth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox