Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12115
b: refs/heads/master
c: edc9e81
h: refs/heads/master
i:
  12113: bd999cf
  12111: 9ca2f02
v: v3
  • Loading branch information
Herbert Xu authored and Arnaldo Carvalho de Melo committed Nov 1, 2005
1 parent 8946a2f commit effd809
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48918a4dbd6c599d6af30bd64cb355fadca708eb
refs/heads/master: edc9e81917157d1e73bf081d4fbcad7c34d32783
17 changes: 11 additions & 6 deletions trunk/net/dccp/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,21 @@ static int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb)
switch (dcb->dccpd_type) {
case DCCP_PKT_DATA:
set_ack = 0;
/* fall through */
case DCCP_PKT_DATAACK:
break;

case DCCP_PKT_SYNC:
case DCCP_PKT_SYNCACK:
ackno = dcb->dccpd_seq;
/* fall through */
default:
/*
* Only data packets should come through with skb->sk
* set.
*/
WARN_ON(skb->sk);
skb_set_owner_w(skb, sk);
break;
}

Expand All @@ -71,12 +82,6 @@ static int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb)
skb->h.raw = skb_push(skb, dccp_header_size);
dh = dccp_hdr(skb);

/*
* Only data packets should come through with skb->sk set.
*/
if (!skb->sk)
skb_set_owner_w(skb, sk);

/* Build DCCP header and checksum it. */
memset(dh, 0, dccp_header_size);
dh->dccph_type = dcb->dccpd_type;
Expand Down

0 comments on commit effd809

Please sign in to comment.