mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9df7c98a0f
commit
f53f4137ba
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue