Skip to content

Commit

Permalink
[DCCP]: Handle SYNC packets in dccp_rcv_state_process
Browse files Browse the repository at this point in the history
Eliciting a SYNCACK in response, we were handling SYNC packets
only in the DCCP_OPEN state, in dccp_rcv_established.

Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
Arnaldo Carvalho de Melo committed Sep 13, 2005
1 parent 811265b commit 2b80230
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions net/dccp/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,12 @@ int dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
return 0;
}

if (unlikely(dh->dccph_type == DCCP_PKT_SYNC)) {
dccp_send_sync(sk, DCCP_SKB_CB(skb)->dccpd_seq,
DCCP_PKT_SYNCACK);
goto discard;
}

switch (sk->sk_state) {
case DCCP_CLOSED:
return 1;
Expand Down

0 comments on commit 2b80230

Please sign in to comment.