Re: Copying nf_info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx> 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/



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux