Skip to content

Commit

Permalink
[DCCP]: Fix ackno setting in SYNC/SYNCACK packets
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Aug 29, 2005
1 parent 03ace39 commit 2411772
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions net/dccp/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,8 @@ int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb)
int err, set_ack = 1;
u64 ackno = dp->dccps_gsr;

/*
* FIXME: study DCCP_PKT_SYNC[ACK] to see what is the right
* thing to do here...
*/
dccp_inc_seqno(&dp->dccps_gss);

dcb->dccpd_seq = dp->dccps_gss;
dccp_insert_options(sk, skb);

switch (dcb->dccpd_type) {
case DCCP_PKT_DATA:
set_ack = 0;
Expand All @@ -62,6 +55,9 @@ int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb)
ackno = dcb->dccpd_seq;
break;
}

dcb->dccpd_seq = dp->dccps_gss;
dccp_insert_options(sk, skb);

skb->h.raw = skb_push(skb, dccp_header_size);
dh = dccp_hdr(skb);
Expand Down

0 comments on commit 2411772

Please sign in to comment.