diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-10-14 14:41:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 15:41:52 -0400 |
commit | f53f4137baedc1be179880d35f390e20445428ba (patch) | |
tree | 540a953ece44438080c756b6fc250ff1606a720e /net | |
parent | 9df7c98a0f7e0b7f4b547761ab64f39a13f20355 (diff) |
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 <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/inet_lro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_lro.c b/net/ipv4/inet_lro.c index 7f22474b52c..ac3b1d3dba2 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, | |||
159 | lro_desc->iph = iph; | 159 | lro_desc->iph = iph; |
160 | lro_desc->tcph = tcph; | 160 | lro_desc->tcph = tcph; |
161 | lro_desc->tcp_next_seq = ntohl(tcph->seq) + tcp_data_len; | 161 | lro_desc->tcp_next_seq = ntohl(tcph->seq) + tcp_data_len; |
162 | lro_desc->tcp_ack = ntohl(tcph->ack_seq); | 162 | lro_desc->tcp_ack = tcph->ack_seq; |
163 | lro_desc->tcp_window = tcph->window; | 163 | lro_desc->tcp_window = tcph->window; |
164 | 164 | ||
165 | lro_desc->pkt_aggr_cnt = 1; | 165 | lro_desc->pkt_aggr_cnt = 1; |