Message ID | 20100421.004922.193694715.davem@davemloft.net |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
On Wednesday 21 April 2010 10:49:22 David Miller wrote: > I put this into net-2.6 and modified the commit message since, as we > found, this incorrect transport header reset was added there to fix > IPSEC. > > I'm convinced that Cosmin didn't test the patch he actually sent out > > :-) I apologize. I've tested the patch on 2.6.7 (tcp_v6_send_ack then) and then redid the patch half-asleep against net-next. Cosmin. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index c92ebe8..075f540 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -1015,7 +1015,7 @@ static void tcp_v6_send_response(struct sk_buff *skb, u32 seq, u32 ack, u32 win, skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + tot_len); t1 = (struct tcphdr *) skb_push(buff, tot_len); - skb_reset_transport_header(skb); + skb_reset_transport_header(buff); /* Swap the send and the receive. */ memset(t1, 0, sizeof(*t1));