Skip to contentSkip to conversation

ROUTE target fixes for 2.6.10+

PATCH In review Phil Oester 2 participants 2 messages Feb 10, 2005 – Feb 14, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ROUTE target fixes for 2.6.10+

Since initialized has been removed, the below is needed for 2.6.10+ kernels.

This fixes bugzilla #284

Phil

ROUTE/linux-2.6/net/ipv4/netfilter/ipt_ROUTE.c +1 -2
diff -ru pom-orig/ROUTE/linux-2.6/net/ipv4/netfilter/ipt_ROUTE.c pom-new/ROUTE/linux-2.6/net/ipv4/netfilter/ipt_ROUTE.c
@@ -449,8 +449,7 @@
 	/*  - and look it like as a confirmed connection */
 	set_bit(IPS_CONFIRMED_BIT, &route_tee_track.status);
 	/* Initialize fake conntrack so that NAT will skip it */
-	route_tee_track.nat.info.initialized |= 
-		(1 << IP_NAT_MANIP_SRC) | (1 << IP_NAT_MANIP_DST);
+	route_tee_track.status |= IPS_NAT_DONE_MASK;
 
 	return ipt_register_target(&ipt_route_reg);
 }
#1 lore raw
Quoted 4 lines · Phil Oester

Since initialized has been removed, the below is needed for 2.6.10+ kernels.

This fixes bugzilla #284

thanks, committed to the http://svn.netfilter.org/cgi-bin/viewcvs.cgi/branches/patch-o-matic-ng/linux-2.6.11 tree (Rev 3691)

Signature · 5 lines
- Harald Welte <[email protected]>             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