Home
last modified time | relevance | path

Searched refs:param_hdr (Results 1 – 8 of 8) sorted by relevance

/net/sctp/
Dauth.c195 random_len = ntohs(random->param_hdr.length); in sctp_auth_make_key_vector()
196 hmacs_len = ntohs(hmacs->param_hdr.length); in sctp_auth_make_key_vector()
198 chunks_len = ntohs(chunks->param_hdr.length); in sctp_auth_make_key_vector()
541 n_elt = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_get_hmac()
593 n_elt = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_verify_hmac_id()
617 n_params = (ntohs(hmacs->param_hdr.length) - in sctp_auth_asoc_set_default_hmac()
643 if (!param || param->param_hdr.length == 0) in __sctp_auth_cid()
646 len = ntohs(param->param_hdr.length) - sizeof(struct sctp_paramhdr); in __sctp_auth_cid()
772 param_len = ntohs(p->param_hdr.length); in sctp_auth_ep_add_chunkid()
778 p->param_hdr.length = htons(param_len + 1); in sctp_auth_ep_add_chunkid()
[all …]
Dsm_make_chunk.c325 retval->param_hdr.v = in sctp_make_init()
335 sat.param_hdr.type = SCTP_PARAM_SUPPORTED_ADDRESS_TYPES; in sctp_make_init()
336 sat.param_hdr.length = htons(SCTP_SAT_LEN(num_types)); in sctp_make_init()
347 ext_param.param_hdr.type = SCTP_PARAM_SUPPORTED_EXT; in sctp_make_init()
348 ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); in sctp_make_init()
357 aiparam.param_hdr.type = SCTP_PARAM_ADAPTATION_LAYER_IND; in sctp_make_init()
358 aiparam.param_hdr.length = htons(sizeof(aiparam)); in sctp_make_init()
492 retval->param_hdr.v = sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init_ack()
497 ext_param.param_hdr.type = SCTP_PARAM_SUPPORTED_EXT; in sctp_make_init_ack()
498 ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); in sctp_make_init_ack()
[all …]
Dsm_statefuns.c389 chunk->param_hdr.v = skb_pull(chunk->skb, sizeof(struct sctp_inithdr)); in sctp_sf_do_5_1B_init()
573 chunk->param_hdr.v = skb_pull(chunk->skb, sizeof(struct sctp_inithdr)); in sctp_sf_do_5_1C_ack()
1111 struct sctp_paramhdr *param_hdr; in sctp_sf_beat_8_3() local
1130 param_hdr = (struct sctp_paramhdr *)chunk->subh.hb_hdr; in sctp_sf_beat_8_3()
1133 if (ntohs(param_hdr->length) > paylen) in sctp_sf_beat_8_3()
1135 param_hdr, commands); in sctp_sf_beat_8_3()
1140 reply = sctp_make_heartbeat_ack(asoc, chunk, param_hdr, paylen); in sctp_sf_beat_8_3()
1203 if (ntohs(hbinfo->param_hdr.length) != sizeof(*hbinfo)) in sctp_sf_backbeat_8_3()
1490 chunk->param_hdr.v = skb_pull(chunk->skb, sizeof(struct sctp_inithdr)); in sctp_sf_do_unexpected_init()
2452 bht.param_hdr.type = SCTP_PARAM_COOKIE_PRESERVATIVE; in sctp_sf_do_5_2_6_stale()
[all …]
Dstream.c496 (!type || type == req->param_hdr.type)) in sctp_chunk_lookup_strreset_param()
941 nums = (ntohs(outreq->param_hdr.length) - sizeof(*outreq)) / in sctp_process_strreset_resp()
978 nums = (ntohs(inreq->param_hdr.length) - sizeof(*inreq)) / in sctp_process_strreset_resp()
Dipv6.c544 param->v6.param_hdr.type = SCTP_PARAM_IPV6_ADDRESS; in sctp_v6_to_addr_param()
545 param->v6.param_hdr.length = htons(length); in sctp_v6_to_addr_param()
Dprotocol.c273 param->v4.param_hdr.type = SCTP_PARAM_IPV4_ADDRESS; in sctp_v4_to_addr_param()
274 param->v4.param_hdr.length = htons(length); in sctp_v4_to_addr_param()
Dassociola.c261 ntohs(ep->auth_hmacs_list->param_hdr.length)); in sctp_association_init()
264 ntohs(ep->auth_chunk_list->param_hdr.length)); in sctp_association_init()
Dsocket.c6914 data_len = ntohs(hmacs->param_hdr.length) - in sctp_getsockopt_hmac_ident()
7001 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_peer_auth_chunks()
7051 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_local_auth_chunks()