Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256035
b: refs/heads/master
c: 8695e80
h: refs/heads/master
i:
  256033: f370c25
  256031: 0d6d99d
v: v3
  • Loading branch information
Gerrit Renker committed Jul 4, 2011
1 parent 222cd23 commit 5d84949
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: c0c2015056d7bd69f3554208271407e7e2ee69e5
refs/heads/master: 8695e80193fed35f27c06f462bd5b76132fd5697
14 changes: 7 additions & 7 deletions trunk/net/dccp/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ static inline void dccp_event_ack_sent(struct sock *sk)
inet_csk_clear_xmit_timer(sk, ICSK_TIME_DACK);
}

static void dccp_skb_entail(struct sock *sk, struct sk_buff *skb)
/* enqueue @skb on sk_send_head for retransmission, return clone to send now */
static struct sk_buff *dccp_skb_entail(struct sock *sk, struct sk_buff *skb)
{
skb_set_owner_w(skb, sk);
WARN_ON(sk->sk_send_head);
sk->sk_send_head = skb;
return skb_clone(sk->sk_send_head, gfp_any());
}

/*
Expand Down Expand Up @@ -552,8 +554,7 @@ int dccp_connect(struct sock *sk)

DCCP_SKB_CB(skb)->dccpd_type = DCCP_PKT_REQUEST;

dccp_skb_entail(sk, skb);
dccp_transmit_skb(sk, skb_clone(skb, GFP_KERNEL));
dccp_transmit_skb(sk, dccp_skb_entail(sk, skb));
DCCP_INC_STATS(DCCP_MIB_ACTIVEOPENS);

/* Timer for repeating the REQUEST until an answer. */
Expand Down Expand Up @@ -678,8 +679,7 @@ void dccp_send_close(struct sock *sk, const int active)
DCCP_SKB_CB(skb)->dccpd_type = DCCP_PKT_CLOSE;

if (active) {
dccp_skb_entail(sk, skb);
dccp_transmit_skb(sk, skb_clone(skb, prio));
skb = dccp_skb_entail(sk, skb);
/*
* Retransmission timer for active-close: RFC 4340, 8.3 requires
* to retransmit the Close/CloseReq until the CLOSING/CLOSEREQ
Expand All @@ -692,6 +692,6 @@ void dccp_send_close(struct sock *sk, const int active)
*/
inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS,
DCCP_TIMEOUT_INIT, DCCP_RTO_MAX);
} else
dccp_transmit_skb(sk, skb);
}
dccp_transmit_skb(sk, skb);
}

0 comments on commit 5d84949

Please sign in to comment.