From: netfilter@interlinx.bc.ca
To: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Cc: Harald Welte <laforge@netfilter.org>
Subject: Re: How to create a "persistent" expectation with newnat?
Date: Wed, 26 Feb 2003 17:24:31 -0500 [thread overview]
Message-ID: <20030226222431.GB4557@pc.ilinx> (raw)
In-Reply-To: <20030226211545.GI15997@sunbeam.de.gnumonks.org>
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]
On Wed, Feb 26, 2003 at 10:15:45PM +0100, Harald Welte wrote:
>
> This was not what I was thinking about. You would try to put the same
> struct onto the list again.
Right. I was assuming that was the point of the "use" reference
counter. To be able to re-use objects.
> Bad things will happen. You will need to
> allocate a new struct ip_conntrack_expect, initialize it with tuple/mask
> and then call expect_related on this newly-allocated struct.
OK. Should be simple enough with a few memcpys. I don't suppose
there is a "copy_ip_conntrack_expect()" courtesy function is there?
> I did mean 'the same expectation' on a logical level, not 'the same
> piece of memory representing the expectation'.
OK. I will go correct that in my helper then.
> I've tried to describe this in documentation/newnat-summary.txt.
I looked at that, and maybe with the context I have now it will be
clearer, but it was not that clear on my first reading (obviously, or
I would have gotten this all right the first time :-).
Thanx much for the steering in the right direction Harald.
You know, writing helpers for various protocols would not be a bad
gig... for a while I guess... everything gets boring after a while I
suppose. :-)
b.
--
Brian J. Murrell
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-02-26 22:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-24 5:18 How to create a "persistent" expectation with newnat? netfilter
2003-02-25 4:43 ` netfilter
2003-02-26 17:41 ` Harald Welte
2003-02-26 20:40 ` netfilter
2003-02-26 21:15 ` Harald Welte
2003-02-26 22:24 ` netfilter [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-26 21:11 Ian Latter
2003-02-26 22:18 ` netfilter
2003-02-26 22:53 Ian Latter
2003-02-26 23:54 ` netfilter
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=20030226222431.GB4557@pc.ilinx \
--to=netfilter@interlinx.bc.ca \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.