Re: [conntrack-utils PATCH r7285 03/11] moved process function pointer to struct local_server

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

 



On 2008/01/23 11:45, Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote:
> Max Kellermann wrote:
> >  include/local.h |   10 +++++++---
> >  src/local.c     |   11 +++++++----
> >  src/run.c       |    5 +++--
> >  3 files changed, 17 insertions(+), 9 deletions(-)
> 
> This makes local.c less flexible since it sticks the local socket to a
> given handler. With the current approach, you may call different
> handlers in do_local_server_step with the same socket. I know, we aren't
> using it in that way for now but perhaps in the near future. I have kept
> this patch back.

This is just the code which accepts connections from the unix socket.
I assumed that the daemon will not change its behaviour during its
lifetime, please explain your plan.  In the process function, you can
still choose what to do with the new client connection.  You could
also add a local_server_set_callback() or similar.

Max
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux