diff options
author | Ivan Skytte Jorgensen <isj-sctp@i1.dk> | 2006-12-20 19:07:04 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-22 14:12:04 -0500 |
commit | 0f3fffd8ab1db7658c97c167e8ab001cc814e1f4 (patch) | |
tree | e8531868627f2b9ac71800fd408969e025c2051a /net/sctp/sm_make_chunk.c | |
parent | a3f7f142f73ed4cb23826bee84afc31d10377e39 (diff) |
[SCTP]: Fix typo adaption -> adaptation as per the latest API draft.
Signed-off-by: Ivan Skytte Jorgensen <isj-sctp@i1.dk>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 30927d3a597f..f0bbe36799cf 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -184,7 +184,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc, | |||
184 | struct sctp_sock *sp; | 184 | struct sctp_sock *sp; |
185 | sctp_supported_addrs_param_t sat; | 185 | sctp_supported_addrs_param_t sat; |
186 | __be16 types[2]; | 186 | __be16 types[2]; |
187 | sctp_adaption_ind_param_t aiparam; | 187 | sctp_adaptation_ind_param_t aiparam; |
188 | 188 | ||
189 | /* RFC 2960 3.3.2 Initiation (INIT) (1) | 189 | /* RFC 2960 3.3.2 Initiation (INIT) (1) |
190 | * | 190 | * |
@@ -249,9 +249,9 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc, | |||
249 | sctp_addto_chunk(retval, sizeof(ecap_param), &ecap_param); | 249 | sctp_addto_chunk(retval, sizeof(ecap_param), &ecap_param); |
250 | if (sctp_prsctp_enable) | 250 | if (sctp_prsctp_enable) |
251 | sctp_addto_chunk(retval, sizeof(prsctp_param), &prsctp_param); | 251 | sctp_addto_chunk(retval, sizeof(prsctp_param), &prsctp_param); |
252 | aiparam.param_hdr.type = SCTP_PARAM_ADAPTION_LAYER_IND; | 252 | aiparam.param_hdr.type = SCTP_PARAM_ADAPTATION_LAYER_IND; |
253 | aiparam.param_hdr.length = htons(sizeof(aiparam)); | 253 | aiparam.param_hdr.length = htons(sizeof(aiparam)); |
254 | aiparam.adaption_ind = htonl(sp->adaption_ind); | 254 | aiparam.adaptation_ind = htonl(sp->adaptation_ind); |
255 | sctp_addto_chunk(retval, sizeof(aiparam), &aiparam); | 255 | sctp_addto_chunk(retval, sizeof(aiparam), &aiparam); |
256 | nodata: | 256 | nodata: |
257 | kfree(addrs.v); | 257 | kfree(addrs.v); |
@@ -269,7 +269,7 @@ struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc, | |||
269 | sctp_cookie_param_t *cookie; | 269 | sctp_cookie_param_t *cookie; |
270 | int cookie_len; | 270 | int cookie_len; |
271 | size_t chunksize; | 271 | size_t chunksize; |
272 | sctp_adaption_ind_param_t aiparam; | 272 | sctp_adaptation_ind_param_t aiparam; |
273 | 273 | ||
274 | retval = NULL; | 274 | retval = NULL; |
275 | 275 | ||
@@ -323,9 +323,9 @@ struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc, | |||
323 | if (asoc->peer.prsctp_capable) | 323 | if (asoc->peer.prsctp_capable) |
324 | sctp_addto_chunk(retval, sizeof(prsctp_param), &prsctp_param); | 324 | sctp_addto_chunk(retval, sizeof(prsctp_param), &prsctp_param); |
325 | 325 | ||
326 | aiparam.param_hdr.type = SCTP_PARAM_ADAPTION_LAYER_IND; | 326 | aiparam.param_hdr.type = SCTP_PARAM_ADAPTATION_LAYER_IND; |
327 | aiparam.param_hdr.length = htons(sizeof(aiparam)); | 327 | aiparam.param_hdr.length = htons(sizeof(aiparam)); |
328 | aiparam.adaption_ind = htonl(sctp_sk(asoc->base.sk)->adaption_ind); | 328 | aiparam.adaptation_ind = htonl(sctp_sk(asoc->base.sk)->adaptation_ind); |
329 | sctp_addto_chunk(retval, sizeof(aiparam), &aiparam); | 329 | sctp_addto_chunk(retval, sizeof(aiparam), &aiparam); |
330 | 330 | ||
331 | /* We need to remove the const qualifier at this point. */ | 331 | /* We need to remove the const qualifier at this point. */ |
@@ -1300,8 +1300,8 @@ static sctp_cookie_param_t *sctp_pack_cookie(const struct sctp_endpoint *ep, | |||
1300 | /* Remember PR-SCTP capability. */ | 1300 | /* Remember PR-SCTP capability. */ |
1301 | cookie->c.prsctp_capable = asoc->peer.prsctp_capable; | 1301 | cookie->c.prsctp_capable = asoc->peer.prsctp_capable; |
1302 | 1302 | ||
1303 | /* Save adaption indication in the cookie. */ | 1303 | /* Save adaptation indication in the cookie. */ |
1304 | cookie->c.adaption_ind = asoc->peer.adaption_ind; | 1304 | cookie->c.adaptation_ind = asoc->peer.adaptation_ind; |
1305 | 1305 | ||
1306 | /* Set an expiration time for the cookie. */ | 1306 | /* Set an expiration time for the cookie. */ |
1307 | do_gettimeofday(&cookie->c.expiration); | 1307 | do_gettimeofday(&cookie->c.expiration); |
@@ -1512,7 +1512,7 @@ no_hmac: | |||
1512 | retval->addip_serial = retval->c.initial_tsn; | 1512 | retval->addip_serial = retval->c.initial_tsn; |
1513 | retval->adv_peer_ack_point = retval->ctsn_ack_point; | 1513 | retval->adv_peer_ack_point = retval->ctsn_ack_point; |
1514 | retval->peer.prsctp_capable = retval->c.prsctp_capable; | 1514 | retval->peer.prsctp_capable = retval->c.prsctp_capable; |
1515 | retval->peer.adaption_ind = retval->c.adaption_ind; | 1515 | retval->peer.adaptation_ind = retval->c.adaptation_ind; |
1516 | 1516 | ||
1517 | /* The INIT stuff will be done by the side effects. */ | 1517 | /* The INIT stuff will be done by the side effects. */ |
1518 | return retval; | 1518 | return retval; |
@@ -1743,7 +1743,7 @@ static int sctp_verify_param(const struct sctp_association *asoc, | |||
1743 | case SCTP_PARAM_HEARTBEAT_INFO: | 1743 | case SCTP_PARAM_HEARTBEAT_INFO: |
1744 | case SCTP_PARAM_UNRECOGNIZED_PARAMETERS: | 1744 | case SCTP_PARAM_UNRECOGNIZED_PARAMETERS: |
1745 | case SCTP_PARAM_ECN_CAPABLE: | 1745 | case SCTP_PARAM_ECN_CAPABLE: |
1746 | case SCTP_PARAM_ADAPTION_LAYER_IND: | 1746 | case SCTP_PARAM_ADAPTATION_LAYER_IND: |
1747 | break; | 1747 | break; |
1748 | 1748 | ||
1749 | case SCTP_PARAM_HOST_NAME_ADDRESS: | 1749 | case SCTP_PARAM_HOST_NAME_ADDRESS: |
@@ -2098,8 +2098,8 @@ static int sctp_process_param(struct sctp_association *asoc, | |||
2098 | asoc->peer.ecn_capable = 1; | 2098 | asoc->peer.ecn_capable = 1; |
2099 | break; | 2099 | break; |
2100 | 2100 | ||
2101 | case SCTP_PARAM_ADAPTION_LAYER_IND: | 2101 | case SCTP_PARAM_ADAPTATION_LAYER_IND: |
2102 | asoc->peer.adaption_ind = param.aind->adaption_ind; | 2102 | asoc->peer.adaptation_ind = param.aind->adaptation_ind; |
2103 | break; | 2103 | break; |
2104 | 2104 | ||
2105 | case SCTP_PARAM_FWD_TSN_SUPPORT: | 2105 | case SCTP_PARAM_FWD_TSN_SUPPORT: |