patch-2.4.19 linux-2.4.19/include/linux/netfilter_ipv4/ip_nat.h

Next file: linux-2.4.19/include/linux/nfs_flushd.h
Previous file: linux-2.4.19/include/linux/netfilter_ipv4/ip_conntrack_protocol.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/linux/netfilter_ipv4/ip_nat.h linux-2.4.19/include/linux/netfilter_ipv4/ip_nat.h
@@ -11,8 +11,13 @@
 	IP_NAT_MANIP_DST
 };
 
+#ifndef CONFIG_IP_NF_NAT_LOCAL
 /* SRC manip occurs only on POST_ROUTING */
 #define HOOK2MANIP(hooknum) ((hooknum) != NF_IP_POST_ROUTING)
+#else
+/* SRC manip occurs POST_ROUTING or LOCAL_IN */
+#define HOOK2MANIP(hooknum) ((hooknum) != NF_IP_POST_ROUTING && (hooknum) != NF_IP_LOCAL_IN)
+#endif
 
 /* 2.3.19 (I hope) will define this in linux/netfilter_ipv4.h. */
 #ifndef SO_ORIGINAL_DST

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)