Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2005 13:40:35 +0300
From:      Ari Suutari <ari@suutari.iki.fi>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Policy routing idea (Was: ipfw: Would it be possible to continue processing rest of rules after match ?)
Message-ID:  <42B94023.3090202@suutari.iki.fi>
In-Reply-To: <20050621170649.B82876@xorpc.icir.org>
References:  <42B7B352.8040806@suutari.iki.fi> <20050621170649.B82876@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Luigi Rizzo wrote:
> i suggest to implement a new action 'setnexthop' which stores the
> next hop as an MTAG with the packet (so it is preserved if the
> packet gets passed to dummynet).

	I took a quick look at how ipfw forward has been implemented.
	It seems to use PACKET_TAG_IPFORWARD to store routing info.
	If I would implement "ipfw setnexthop" with a new MTAG it
	would duplicate very much code already present for PACKET_TAG_IPFORWARD.

	If I could reuse the same MTAG this would be easier to add, all
	that would be needed is a new opcode for ipfw (or am I missing
	something important ?)

	Ari S.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42B94023.3090202>