Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762243AbXFCMha (ORCPT ); Sun, 3 Jun 2007 08:37:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757979AbXFCMhY (ORCPT ); Sun, 3 Jun 2007 08:37:24 -0400 Received: from mailer.gwdg.de ([134.76.10.26]:34959 "EHLO mailer.gwdg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756897AbXFCMhX (ORCPT ); Sun, 3 Jun 2007 08:37:23 -0400 Date: Sun, 3 Jun 2007 14:35:46 +0200 (MEST) From: Jan Engelhardt To: Yasuyuki KOZAKAI cc: netfilter-devel@lists.netfilter.org, netfilter@lists.netfilter.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] xt_connlimit (kernel) - connection limiting In-Reply-To: <200706031146.l53BkuaZ011945@toshiba.co.jp> Message-ID: References: <200706031146.l53BkuaZ011945@toshiba.co.jp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Report: Content analysis: 0.0 points, 6.0 required _SUMMARY_ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 27 Hello, >From: Jan Engelhardt >Date: Sun, 3 Jun 2007 13:12:55 +0200 (MEST) > >> +static int __init xt_connlimit_init(void) >> +{ >> + need_conntrack_ipv4(); >> + return xt_register_match(&xt_connlimit_reg); >> +} > >You can use nf_ct_l3proto_try_module_get() instead of introducing >need_conntrack_ipv4(). Please refer xt_state.c and xt_conntrack.c as >example. Thank you for this hint. I will add it and post updates versions of the patch(es) when I am done with all. Thanks, Jan -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/