mirror of https://gitee.com/openkylin/linux.git
dccp: fix error in updating the GAR
This fixes a bug in updating the Greatest Acknowledgment number Received (GAR): the current implementation does not track the greatest received value - lower values in the range AWL..AWH (RFC 4340, 7.5.1) erase higher ones. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a301e1703e
commit
0ac7887022
|
@ -239,7 +239,8 @@ static int dccp_check_seqno(struct sock *sk, struct sk_buff *skb)
|
||||||
dccp_update_gsr(sk, seqno);
|
dccp_update_gsr(sk, seqno);
|
||||||
|
|
||||||
if (dh->dccph_type != DCCP_PKT_SYNC &&
|
if (dh->dccph_type != DCCP_PKT_SYNC &&
|
||||||
(ackno != DCCP_PKT_WITHOUT_ACK_SEQ))
|
ackno != DCCP_PKT_WITHOUT_ACK_SEQ &&
|
||||||
|
after48(ackno, dp->dccps_gar))
|
||||||
dp->dccps_gar = ackno;
|
dp->dccps_gar = ackno;
|
||||||
} else {
|
} else {
|
||||||
unsigned long now = jiffies;
|
unsigned long now = jiffies;
|
||||||
|
|
Loading…
Reference in New Issue