From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [patch 1/3] add type parameter to ip_route_me_harder Date: Wed, 20 Sep 2006 17:45:23 +0200 Message-ID: <45116213.8010300@trash.net> References: <20060919024507.458115000@tabatha.lab.ultramonkey.org> <20060919025203.458282000@tabatha.lab.ultramonkey.org> <45111862.2000900@trash.net> <20060920141732.GA1286@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Ken Brownfield , Roberto Nibali , netfilter-devel@lists.netfilter.org, Farid Sarwari , Julian Anastasov , David Black , Joseph Mack NA3T , David Miller Return-path: To: Horms In-Reply-To: <20060920141732.GA1286@verge.net.au> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Horms wrote: > On Wed, Sep 20, 2006 at 12:30:58PM +0200, Patrick McHardy wrote: > >>I liked the RTN_ types better .. is there a reason for not using >>them? Otherwise I'll just change it before applying. > > > Mainly because it seemed difficult to shoe-horn into the > reworking of ipt_REJECT's reverse_route(). In particular, > what value should be passed for non-local? auto and local > are of course easy. Just explicitly using ip_route_output on the LOCAL_IN/LOCAL_OUT hooks (and for the bridging case) should be fine for ipt_REJECT. A local source address can not occur in FORWARD, so ip_route_input will be chosen through inet_addr_type. So how about: RTN_LOCAL: route as locally originating packet RTN_UNSPEC: use inet_addr_type to find out I think thats also what you did in your first patch.