Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256037
b: refs/heads/master
c: b4d5f4b
h: refs/heads/master
i:
  256035: 5d84949
v: v3
  • Loading branch information
Gerrit Renker committed Jul 4, 2011
1 parent 7b5cac2 commit aa8e2bc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 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: 1fd9d2081a9d8d77e5afccd5aafd28310cab3bfc
refs/heads/master: b4d5f4b2884625d13c7ef5b9fd085ec93bbf545c
9 changes: 0 additions & 9 deletions trunk/net/dccp/ccids/ccid2.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,15 +583,6 @@ static void ccid2_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb)
dccp_ackvec_parsed_cleanup(&hc->tx_av_chunks);
}

/*
* Convert RFC 3390 larger initial window into an equivalent number of packets.
* This is based on the numbers specified in RFC 5681, 3.1.
*/
static inline u32 rfc3390_bytes_to_packets(const u32 smss)
{
return smss <= 1095 ? 4 : (smss > 2190 ? 2 : 3);
}

static int ccid2_hc_tx_init(struct ccid *ccid, struct sock *sk)
{
struct ccid2_hc_tx_sock *hc = ccid_priv(ccid);
Expand Down
9 changes: 9 additions & 0 deletions trunk/net/dccp/ccids/ccid2.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ static inline bool ccid2_cwnd_network_limited(struct ccid2_hc_tx_sock *hc)
return hc->tx_pipe >= hc->tx_cwnd;
}

/*
* Convert RFC 3390 larger initial window into an equivalent number of packets.
* This is based on the numbers specified in RFC 5681, 3.1.
*/
static inline u32 rfc3390_bytes_to_packets(const u32 smss)
{
return smss <= 1095 ? 4 : (smss > 2190 ? 2 : 3);
}

struct ccid2_hc_rx_sock {
int rx_data;
};
Expand Down

0 comments on commit aa8e2bc

Please sign in to comment.