From f53f4137baedc1be179880d35f390e20445428ba Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 14 Oct 2007 19:41:09 +0100 Subject: fix endianness bug in inet_lro all uses of and almost all assignments to lro_desc->tcp_ack assume that it's net-endian; one converts net-endian to host-endian and sticks it in lro_desc->tcp_ack. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- net/ipv4/inet_lro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/ipv4/inet_lro.c') diff --git a/net/ipv4/inet_lro.c b/net/ipv4/inet_lro.c index 7f22474b52c4..ac3b1d3dba2e 100644 --- a/net/ipv4/inet_lro.c +++ b/net/ipv4/inet_lro.c @@ -159,7 +159,7 @@ static void lro_init_desc(struct net_lro_desc *lro_desc, struct sk_buff *skb, lro_desc->iph = iph; lro_desc->tcph = tcph; lro_desc->tcp_next_seq = ntohl(tcph->seq) + tcp_data_len; - lro_desc->tcp_ack = ntohl(tcph->ack_seq); + lro_desc->tcp_ack = tcph->ack_seq; lro_desc->tcp_window = tcph->window; lro_desc->pkt_aggr_cnt = 1; -- cgit v1.2.3