All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH 0/2] libnetfitler_queue improvements
Date: Mon, 02 Jul 2007 14:46:40 +0200	[thread overview]
Message-ID: <4688F3B0.2080703@trash.net> (raw)
In-Reply-To: <200707020038.l620caLv010450@toshiba.co.jp>

Yasuyuki KOZAKAI wrote:
> Hi Patrick,
> 
> These are for 2.6.23 tree. The first patch might be better to
> go 2.6.22. Either one is fine with me.


The queue handler unregistration stuff is really strange, so I'd rather
have it get some testing. I've applied both patches to 2.6.23, thanks.

> BTW, I think we'd better to do nothing for NFQNL_CFG_CMD_PF_[UN]BIND
> commands and to register queue handlers at init() automatically after
> removing ip[6]_queue.
> 
> Because they are diffcult to use. Even if we apply the first patch, a user
> process can unregister a queue handler registered by other process. And
> there is no way to count the number of process to use the handler (refcount
> per handler doesn't help because process can issue [un]binding command over
> again and again).


Its a horrible hack. Best thing would had been to make ip_queue and
nfnetlink_queue mutually exclusive from the beginning and provide
an actually working compat library.

I guess what we could do now is to refcount the bindings and store
the bind state in the queue instance and allow each process to
unbind only the family it bound to. When processes close their
netlink socket their own bindings should also be released.

       reply	other threads:[~2007-07-02 12:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200707020038.l620caLv010450@toshiba.co.jp>
2007-07-02 12:46 ` Patrick McHardy [this message]
2007-07-03  1:46   ` [PATCH 0/2] libnetfitler_queue improvements Yasuyuki KOZAKAI
     [not found]   ` <200707030146.l631kfvX011265@toshiba.co.jp>
2007-07-03  1:56     ` Yasuyuki KOZAKAI
     [not found]   ` <200707030146.l631kfVt014530@toshiba.co.jp>
2007-07-03 11:25     ` Patrick McHardy
2007-07-02  0:38 Yasuyuki KOZAKAI
2007-07-02  2:52 ` Yasuyuki KOZAKAI

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=4688F3B0.2080703@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=yasuyuki.kozakai@toshiba.co.jp \
    /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.