]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/netfilter/nf_tproxy_core.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
[mv-sheeva.git] / net / netfilter / nf_tproxy_core.c
index db655638d76dbefb5c0017b3811c4ca43b0f9990..4d87befb04c04c793a54360de809e5eb64ee44c2 100644 (file)
@@ -35,7 +35,11 @@ nf_tproxy_destructor(struct sk_buff *skb)
 int
 nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk)
 {
-       if (inet_sk(sk)->transparent) {
+       bool transparent = (sk->sk_state == TCP_TIME_WAIT) ?
+                               inet_twsk(sk)->tw_transparent :
+                               inet_sk(sk)->transparent;
+
+       if (transparent) {
                skb_orphan(skb);
                skb->sk = sk;
                skb->destructor = nf_tproxy_destructor;