diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-08-28 03:51:32 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 19:13:37 -0400 |
commit | a84ffe430342db6ee585a5038f3242a6b4112d69 (patch) | |
tree | db6eeaf68290a0247449e824e3c46a7929f4be02 /net/dccp/ccids | |
parent | 0ac4f893f20ed524198da5ebf591fc0b9e2ced2f (diff) |
[DCCP]: Introduce DCCP_SOCKOPT_PACKET_SIZE
So that applications can set dccp_sock->dccps_pkt_size, that in turn
is used in the CCID3 half connection init routines to set
ccid3hc[tr]x_s and use it in its rate calculations.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ccids')
-rw-r--r-- | net/dccp/ccids/ccid3.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index 4ff6ede0f07d..e22b0eefdbf9 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c | |||
@@ -672,9 +672,9 @@ static int ccid3_hc_tx_init(struct sock *sk) | |||
672 | 672 | ||
673 | memset(hctx, 0, sizeof(*hctx)); | 673 | memset(hctx, 0, sizeof(*hctx)); |
674 | 674 | ||
675 | if (dp->dccps_avg_packet_size >= TFRC_MIN_PACKET_SIZE && | 675 | if (dp->dccps_packet_size >= TFRC_MIN_PACKET_SIZE && |
676 | dp->dccps_avg_packet_size <= TFRC_MAX_PACKET_SIZE) | 676 | dp->dccps_packet_size <= TFRC_MAX_PACKET_SIZE) |
677 | hctx->ccid3hctx_s = (u16)dp->dccps_avg_packet_size; | 677 | hctx->ccid3hctx_s = dp->dccps_packet_size; |
678 | else | 678 | else |
679 | hctx->ccid3hctx_s = TFRC_STD_PACKET_SIZE; | 679 | hctx->ccid3hctx_s = TFRC_STD_PACKET_SIZE; |
680 | 680 | ||
@@ -1058,9 +1058,9 @@ static int ccid3_hc_rx_init(struct sock *sk) | |||
1058 | 1058 | ||
1059 | memset(hcrx, 0, sizeof(*hcrx)); | 1059 | memset(hcrx, 0, sizeof(*hcrx)); |
1060 | 1060 | ||
1061 | if (dp->dccps_avg_packet_size >= TFRC_MIN_PACKET_SIZE && | 1061 | if (dp->dccps_packet_size >= TFRC_MIN_PACKET_SIZE && |
1062 | dp->dccps_avg_packet_size <= TFRC_MAX_PACKET_SIZE) | 1062 | dp->dccps_packet_size <= TFRC_MAX_PACKET_SIZE) |
1063 | hcrx->ccid3hcrx_s = (u16)dp->dccps_avg_packet_size; | 1063 | hcrx->ccid3hcrx_s = dp->dccps_packet_size; |
1064 | else | 1064 | else |
1065 | hcrx->ccid3hcrx_s = TFRC_STD_PACKET_SIZE; | 1065 | hcrx->ccid3hcrx_s = TFRC_STD_PACKET_SIZE; |
1066 | 1066 | ||