From: Raivis Bucis Subject: Transparent web proxiing stops working in linux-2.4.22 Date: Tue, 2 Sep 2003 09:38:56 +0000 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <200309020938.56412.raivis@mt.lv> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: laforge@netfilter.org, cieciwa@alpha.zarz.agh.edu.pl Return-path: To: netfilter-devel@lists.netfilter.org 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 Transparent web proxiing stops working in linux-2.4.22 because of the following patch: @@ -1446,8 +1446,8 @@ getorigdst(struct sock *sk, int optval, void *user, int *len) { struct ip_conntrack_tuple_hash *h; - struct ip_conntrack_tuple tuple = { { sk->rcv_saddr, { sk->sport } }, - { sk->daddr, { sk->dport }, + struct ip_conntrack_tuple tuple = { { sk->rcv_saddr, { .tcp = { sk->sport } } }, + { sk->daddr, { .tcp = { sk->dport } }, IPPROTO_TCP } }; It comes from http://lists.netfilter.org/pipermail/netfilter-devel/2003-May/011460.html It doesn't zero all of the tuple contents before assigning, and this way 3rd and 4th bytes of tuple.src.all contain garbage, and ip_conntrack_find_get is not able to find correct conntrack because of that. So instead of fixing getorigdst for big endian architectures, it brakes even the little endian ones. Raivis Bucis