Lines Matching refs:num_ext

224 	int num_ext = 0;  in sctp_make_init()  local
260 extensions[num_ext] = SCTP_CID_ASCONF; in sctp_make_init()
261 extensions[num_ext+1] = SCTP_CID_ASCONF_ACK; in sctp_make_init()
262 num_ext += 2; in sctp_make_init()
266 extensions[num_ext] = SCTP_CID_RECONF; in sctp_make_init()
267 num_ext += 1; in sctp_make_init()
274 extensions[num_ext] = SCTP_CID_I_DATA; in sctp_make_init()
275 num_ext += 1; in sctp_make_init()
299 extensions[num_ext] = SCTP_CID_AUTH; in sctp_make_init()
300 num_ext += 1; in sctp_make_init()
304 if (num_ext) in sctp_make_init()
305 chunksize += SCTP_PAD4(sizeof(ext_param) + num_ext); in sctp_make_init()
346 if (num_ext) { in sctp_make_init()
348 ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); in sctp_make_init()
350 sctp_addto_param(retval, num_ext, extensions); in sctp_make_init()
395 int num_ext = 0; in sctp_make_init_ack() local
430 extensions[num_ext] = SCTP_CID_ASCONF; in sctp_make_init_ack()
431 extensions[num_ext+1] = SCTP_CID_ASCONF_ACK; in sctp_make_init_ack()
432 num_ext += 2; in sctp_make_init_ack()
436 extensions[num_ext] = SCTP_CID_RECONF; in sctp_make_init_ack()
437 num_ext += 1; in sctp_make_init_ack()
444 extensions[num_ext] = SCTP_CID_I_DATA; in sctp_make_init_ack()
445 num_ext += 1; in sctp_make_init_ack()
464 extensions[num_ext] = SCTP_CID_AUTH; in sctp_make_init_ack()
465 num_ext += 1; in sctp_make_init_ack()
468 if (num_ext) in sctp_make_init_ack()
469 chunksize += SCTP_PAD4(sizeof(ext_param) + num_ext); in sctp_make_init_ack()
496 if (num_ext) { in sctp_make_init_ack()
498 ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); in sctp_make_init_ack()
500 sctp_addto_param(retval, num_ext, extensions); in sctp_make_init_ack()
2015 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_verify_ext_param() local
2020 for (i = 0; i < num_ext; i++) { in sctp_verify_ext_param()
2049 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_process_ext_param() local
2052 for (i = 0; i < num_ext; i++) { in sctp_process_ext_param()