Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Krishna Prasanth <krishnap@teneoris.com>
To: Carl Morgan <killgoretrout59@hotmail.com>, netfilter@lists.netfilter.org
Subject: Re: Copying nf_info
Date: Fri, 14 May 2004 14:07:25 +0530	[thread overview]
Message-ID: <opr7zd8nhzu1jv19@192.168.1.10> (raw)
In-Reply-To: <BAY2-F983CAaY6OqdBP0000671a@hotmail.com>

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/


      reply	other threads:[~2004-05-14  8:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-13 18:05 Copying nf_info Carl Morgan
2004-05-14  8:37 ` Krishna Prasanth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=opr7zd8nhzu1jv19@192.168.1.10 \
    --to=krishnap@teneoris.com \
    --cc=killgoretrout59@hotmail.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox