Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

[DCCP]: Don't use necessarily the same CCID for tx and rx

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Arnaldo Carvalho de Melo and committed by
David S. Miller
561713cf 65299d6c

+6 -4
+2 -1
include/linux/dccp.h
··· 330 330 */ 331 331 struct dccp_options { 332 332 __u64 dccpo_sequence_window; 333 - __u8 dccpo_ccid; 333 + __u8 dccpo_rx_ccid; 334 + __u8 dccpo_tx_ccid; 334 335 __u8 dccpo_send_ack_vector; 335 336 __u8 dccpo_send_ndp_count; 336 337 };
+2 -2
net/dccp/ipv4.c
··· 1241 1241 * setsockopt(CCIDs-I-want/accept). -acme 1242 1242 */ 1243 1243 if (likely(!dccp_ctl_socket_init)) { 1244 - dp->dccps_hc_rx_ccid = ccid_init(dp->dccps_options.dccpo_ccid, 1244 + dp->dccps_hc_rx_ccid = ccid_init(dp->dccps_options.dccpo_rx_ccid, 1245 1245 sk); 1246 - dp->dccps_hc_tx_ccid = ccid_init(dp->dccps_options.dccpo_ccid, 1246 + dp->dccps_hc_tx_ccid = ccid_init(dp->dccps_options.dccpo_tx_ccid, 1247 1247 sk); 1248 1248 if (dp->dccps_hc_rx_ccid == NULL || 1249 1249 dp->dccps_hc_tx_ccid == NULL) {
+2 -1
net/dccp/options.c
··· 25 25 /* stores the default values for new connection. may be changed with sysctl */ 26 26 static const struct dccp_options dccpo_default_values = { 27 27 .dccpo_sequence_window = DCCPF_INITIAL_SEQUENCE_WINDOW, 28 - .dccpo_ccid = DCCPF_INITIAL_CCID, 28 + .dccpo_rx_ccid = DCCPF_INITIAL_CCID, 29 + .dccpo_tx_ccid = DCCPF_INITIAL_CCID, 29 30 .dccpo_send_ack_vector = DCCPF_INITIAL_SEND_ACK_VECTOR, 30 31 .dccpo_send_ndp_count = DCCPF_INITIAL_SEND_NDP_COUNT, 31 32 };