: Sequence number wrap-around when sending reset
PATCH 1/5 : Sequence number wrap-around when sending reset
[DCCP]: Sequence number wrap-around when sending reset
This replaces normal addition with mod-48 addition so that sequence number wraparound is respected.
Signed-off-by Gerrit Renker <[email protected]>
--- net/dccp/ipv4.c | 2 +- net/dccp/ipv6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
net/dccp/ipv4.c +1 -1
@@ -554,7 +554,7 @@ static void dccp_v4_ctl_send_reset(struc/* See "8.3.1. Abnormal Termination" in RFC 4340 */ if (DCCP_SKB_CB (rxskb)->dccpd_ack_seq !=DCCP_PKT_WITHOUT_ACK_SEQ ) -dccp_set_seqno (&seqno,DCCP_SKB_CB (rxskb)->dccpd_ack_seq +1 ); + seqno =ADD48 (DCCP_SKB_CB (rxskb)->dccpd_ack_seq,1 );dccp_hdr_set_seq (dh, seqno);dccp_hdr_set_ack (dccp_hdr_ack_bits (skb),DCCP_SKB_CB (rxskb)->dccpd_seq);
net/dccp/ipv6.c +1 -1
@@ -336,7 +336,7 @@ static void dccp_v6_ctl_send_reset(struc/* See "8.3.1. Abnormal Termination" in RFC 4340 */ if (DCCP_SKB_CB (rxskb)->dccpd_ack_seq !=DCCP_PKT_WITHOUT_ACK_SEQ ) -dccp_set_seqno (&seqno,DCCP_SKB_CB (rxskb)->dccpd_ack_seq +1 ); + seqno =ADD48 (DCCP_SKB_CB (rxskb)->dccpd_ack_seq,1 );dccp_hdr_set_seq (dh, seqno);dccp_hdr_set_ack (dccp_hdr_ack_bits (skb),DCCP_SKB_CB (rxskb)->dccpd_seq);
Quoted 6 lines · Gerrit Renker
[DCCP]: Sequence number wrap-around when sending reset
This replaces normal addition with mod-48 addition so that sequence number wraparound is respected.
Signed-off-by Gerrit Renker <[email protected]>
Signed-off-by Ian McDonald <[email protected]>
Signature · 3 lines
Web1: http://wand.net.nz/~iam4/ Web2: http://www.jandi.co.nz Blog: http://iansblog.jandi.co.nz