All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ed W <lists@wildgooses.com>
To: netfilter-devel@vger.kernel.org
Subject: Re: How to access conntrack connection expiration in a netfilter module?
Date: Tue, 02 Oct 2012 18:02:37 +0100	[thread overview]
Message-ID: <506B1E2D.3090501@wildgooses.com> (raw)
In-Reply-To: <506A084E.5060505@wildgooses.com>

Go on... I'm sure someone wants to have a stab at educating this twit on 
ways a netfilter module could do housekeeping and cleanup it's internal 
state when conntrack connections are destroyed (emphasis being on how to 
discover they have been destroyed in some timely manner?)

Thanks

Ed W

On 01/10/2012 22:17, Ed W wrote:
> Hi, I'm trying to update the opendpi-netfilter module to work with 
> more recent kernels and the ntop ndpi fork of the code (now that 
> opendpi seems to have gone away)
>
> The netfilter module registers a conntrack notifier in order to 
> release resources once a conntrack is destroyed
> https://github.com/ewildgoose/ndpi-netfilter/blob/master/src/main.c
> This is not possible though, if you also want to have conntrack events 
> through netlink... ( NF_CT_NETLINK grabs the conntrack notifier first)
>
> Now I have read the history on why this is the case, but what are the 
> obvious workarounds to this situation?  Can we extend the conntrack 
> connection with custom properties? Anything better than simply 
> scanning my flows occasionally and comparing with the conntrack list 
> to see if they have gone away?
>
> Thanks for any thoughts
>
> Ed W
>
> -- 
> To unsubscribe from this list: send the line "unsubscribe 
> netfilter-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2012-10-02 17:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01 21:17 How to access conntrack connection expiration in a netfilter module? Ed W
2012-10-02 17:02 ` Ed W [this message]
2012-10-02 18:17 ` Pablo Neira Ayuso
2012-10-03  7:35   ` Ed W
2012-10-03  8:25     ` Pablo Neira Ayuso
2013-05-29 19:22       ` Aidan McGurn

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=506B1E2D.3090501@wildgooses.com \
    --to=lists@wildgooses.com \
    --cc=netfilter-devel@vger.kernel.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.