From: Harald Welte Subject: [PATCH 2.4 7/10]: don't reroute no mark change in mangle table without CONFIG_IP_ROUTE_FWMARK Date: Mon, 21 Jun 2004 21:42:30 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20040621194230.GL24374@sunbeam.de.gnumonks.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gS/sOEqITpbrYRmu" Cc: Netfilter Development Mailinglist Return-path: To: David Miller Content-Disposition: inline Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org --gS/sOEqITpbrYRmu Content-Type: multipart/mixed; boundary="VjpKO6h983+pAmpQ" Content-Disposition: inline --VjpKO6h983+pAmpQ Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline This patch for 2.4 changes iptable_mangle so it won't reroute on nfmark change when routing by nfmark is not enabled. Author: Patrick McHardy -- - Harald Welte http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie --VjpKO6h983+pAmpQ Content-Type: text/plain; charset=us-ascii; name="07.diff" Content-Disposition: inline; filename="07.diff" Content-Transfer-Encoding: quoted-printable # This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2004/06/20 22:39:04+02:00 kaber@trash.net=20 # [NETFILTER]: Don't reroute on nfmark change in mangle table when routin= g by nfmark is not enabled #=20 # net/ipv4/netfilter/iptable_mangle.c # 2004/06/20 22:39:02+02:00 kaber@trash.net +2 -0 # [NETFILTER]: Don't reroute on nfmark change in mangle table when routin= g by nfmark is not enabled #=20 diff -Nru a/net/ipv4/netfilter/iptable_mangle.c b/net/ipv4/netfilter/iptabl= e_mangle.c --- a/net/ipv4/netfilter/iptable_mangle.c 2004-06-20 23:02:54 +02:00 +++ b/net/ipv4/netfilter/iptable_mangle.c 2004-06-20 23:02:54 +02:00 @@ -160,7 +160,9 @@ if (ret !=3D NF_DROP && ret !=3D NF_STOLEN && ret !=3D NF_QUEUE && ((*pskb)->nh.iph->saddr !=3D saddr || (*pskb)->nh.iph->daddr !=3D daddr +#ifdef CONFIG_IP_ROUTE_FWMARK || (*pskb)->nfmark !=3D nfmark +#endif || (*pskb)->nh.iph->tos !=3D tos)) return ip_route_me_harder(pskb) =3D=3D 0 ? ret : NF_DROP; =20 --VjpKO6h983+pAmpQ-- --gS/sOEqITpbrYRmu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA1zomXaXGVTD0i/8RApdYAKCxoBZFmgIZcjkBL4SEgyoIckZEKACfTAOP 9UcV+j7cQTXyYzQi2Wy/lw4= =lHW/ -----END PGP SIGNATURE----- --gS/sOEqITpbrYRmu--