diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-03-21 01:50:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 01:50:58 -0500 |
commit | a4bf3902427a128455b8de299ff0918072b2e974 (patch) | |
tree | 5269cd4d84702a0a728b390e08242be01252d20d /net/dccp/minisocks.c | |
parent | e6f507196c2b50243beb09b1bfa4639f999d4d1e (diff) |
[DCCP] minisock: Rename struct dccp_options to struct dccp_minisock
This will later be included in struct dccp_request_sock so that we can
have per connection feature negotiation state while in the 3way
handshake, when we clone the DCCP_ROLE_LISTEN socket (in
dccp_create_openreq_child) we'll just copy this state from
dreq_minisock to dccps_minisock.
Also the feature negotiation and option parsing code will mostly touch
dccps_minisock, which will simplify some stuff.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/minisocks.c')
-rw-r--r-- | net/dccp/minisocks.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c index 5324fcacb34d..c0349e5b0551 100644 --- a/net/dccp/minisocks.c +++ b/net/dccp/minisocks.c | |||
@@ -107,6 +107,7 @@ struct sock *dccp_create_openreq_child(struct sock *sk, | |||
107 | const struct dccp_request_sock *dreq = dccp_rsk(req); | 107 | const struct dccp_request_sock *dreq = dccp_rsk(req); |
108 | struct inet_connection_sock *newicsk = inet_csk(sk); | 108 | struct inet_connection_sock *newicsk = inet_csk(sk); |
109 | struct dccp_sock *newdp = dccp_sk(newsk); | 109 | struct dccp_sock *newdp = dccp_sk(newsk); |
110 | struct dccp_minisock *newdmsk = dccp_msk(newsk); | ||
110 | 111 | ||
111 | newdp->dccps_role = DCCP_ROLE_SERVER; | 112 | newdp->dccps_role = DCCP_ROLE_SERVER; |
112 | newdp->dccps_hc_rx_ackvec = NULL; | 113 | newdp->dccps_hc_rx_ackvec = NULL; |
@@ -118,7 +119,7 @@ struct sock *dccp_create_openreq_child(struct sock *sk, | |||
118 | if (dccp_feat_clone(sk, newsk)) | 119 | if (dccp_feat_clone(sk, newsk)) |
119 | goto out_free; | 120 | goto out_free; |
120 | 121 | ||
121 | if (newdp->dccps_options.dccpo_send_ack_vector) { | 122 | if (newdmsk->dccpms_send_ack_vector) { |
122 | newdp->dccps_hc_rx_ackvec = | 123 | newdp->dccps_hc_rx_ackvec = |
123 | dccp_ackvec_alloc(GFP_ATOMIC); | 124 | dccp_ackvec_alloc(GFP_ATOMIC); |
124 | if (unlikely(newdp->dccps_hc_rx_ackvec == NULL)) | 125 | if (unlikely(newdp->dccps_hc_rx_ackvec == NULL)) |
@@ -126,10 +127,10 @@ struct sock *dccp_create_openreq_child(struct sock *sk, | |||
126 | } | 127 | } |
127 | 128 | ||
128 | newdp->dccps_hc_rx_ccid = | 129 | newdp->dccps_hc_rx_ccid = |
129 | ccid_hc_rx_new(newdp->dccps_options.dccpo_rx_ccid, | 130 | ccid_hc_rx_new(newdmsk->dccpms_rx_ccid, |
130 | newsk, GFP_ATOMIC); | 131 | newsk, GFP_ATOMIC); |
131 | newdp->dccps_hc_tx_ccid = | 132 | newdp->dccps_hc_tx_ccid = |
132 | ccid_hc_tx_new(newdp->dccps_options.dccpo_tx_ccid, | 133 | ccid_hc_tx_new(newdmsk->dccpms_tx_ccid, |
133 | newsk, GFP_ATOMIC); | 134 | newsk, GFP_ATOMIC); |
134 | if (unlikely(newdp->dccps_hc_rx_ccid == NULL || | 135 | if (unlikely(newdp->dccps_hc_rx_ccid == NULL || |
135 | newdp->dccps_hc_tx_ccid == NULL)) { | 136 | newdp->dccps_hc_tx_ccid == NULL)) { |
@@ -153,7 +154,7 @@ out_free: | |||
153 | */ | 154 | */ |
154 | 155 | ||
155 | /* See dccp_v4_conn_request */ | 156 | /* See dccp_v4_conn_request */ |
156 | newdp->dccps_options.dccpo_sequence_window = req->rcv_wnd; | 157 | newdmsk->dccpms_sequence_window = req->rcv_wnd; |
157 | 158 | ||
158 | newdp->dccps_gar = newdp->dccps_isr = dreq->dreq_isr; | 159 | newdp->dccps_gar = newdp->dccps_isr = dreq->dreq_isr; |
159 | dccp_update_gsr(newsk, dreq->dreq_isr); | 160 | dccp_update_gsr(newsk, dreq->dreq_isr); |