Lines Matching defs:aph
78 struct sctp_asconf_paramhdr *aph;
87 aph = mtod(m_reply, struct sctp_asconf_paramhdr *);
88 aph->correlation_id = id;
89 aph->ph.param_type = htons(SCTP_SUCCESS_REPORT);
90 aph->ph.param_length = sizeof(struct sctp_asconf_paramhdr);
91 SCTP_BUF_LEN(m_reply) = aph->ph.param_length;
92 aph->ph.param_length = htons(aph->ph.param_length);
102 struct sctp_asconf_paramhdr *aph;
130 aph = mtod(m_reply, struct sctp_asconf_paramhdr *);
131 aph->ph.param_type = htons(SCTP_ERROR_CAUSE_IND);
132 aph->ph.param_length = htons(param_length);
133 aph->correlation_id = id;
134 error = (struct sctp_error_cause *)(aph + 1);
149 sctp_process_asconf_add_ip(struct sockaddr *src, struct sctp_asconf_paramhdr *aph,
172 aparam_length = ntohs(aph->ph.param_length);
176 ph = (struct sctp_paramhdr *)(aph + 1);
233 m_reply = sctp_asconf_error_response(aph->correlation_id,
234 SCTP_CAUSE_INVALID_PARAM, (uint8_t *)aph,
249 m_reply = sctp_asconf_error_response(aph->correlation_id,
250 SCTP_CAUSE_INVALID_PARAM, (uint8_t *)aph,
257 m_reply = sctp_asconf_error_response(aph->correlation_id,
258 SCTP_CAUSE_RESOURCE_SHORTAGE, (uint8_t *)aph,
263 sctp_asconf_success_response(aph->correlation_id);
310 struct sctp_asconf_paramhdr *aph,
332 aparam_length = ntohs(aph->ph.param_length);
336 ph = (struct sctp_paramhdr *)(aph + 1);
388 m_reply = sctp_asconf_error_response(aph->correlation_id,
389 SCTP_CAUSE_UNRESOLVABLE_ADDR, (uint8_t *)aph,
398 m_reply = sctp_asconf_error_response(aph->correlation_id,
399 SCTP_CAUSE_DELETING_SRC_ADDR, (uint8_t *)aph,
413 sctp_asconf_error_response(aph->correlation_id,
414 SCTP_CAUSE_REQUEST_REFUSED, (uint8_t *)aph,
418 sctp_asconf_success_response(aph->correlation_id);
433 m_reply = sctp_asconf_error_response(aph->correlation_id,
434 SCTP_CAUSE_DELETING_LAST_ADDR, (uint8_t *)aph,
438 m_reply = sctp_asconf_success_response(aph->correlation_id);
448 struct sctp_asconf_paramhdr *aph,
469 aparam_length = ntohs(aph->ph.param_length);
473 ph = (struct sctp_paramhdr *)(aph + 1);
521 m_reply = sctp_asconf_error_response(aph->correlation_id,
522 SCTP_CAUSE_UNRESOLVABLE_ADDR, (uint8_t *)aph,
547 m_reply = sctp_asconf_success_response(aph->correlation_id);
590 m_reply = sctp_asconf_error_response(aph->correlation_id,
591 SCTP_CAUSE_UNRESOLVABLE_ADDR, (uint8_t *)aph,
612 struct sctp_asconf_paramhdr *aph;
699 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset, sizeof(struct sctp_asconf_paramhdr), (uint8_t *)&aparam_buf);
700 if (aph == NULL) {
706 while (aph != NULL) {
709 param_type = ntohs(aph->ph.param_type);
710 param_length = ntohs(aph->ph.param_length);
729 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset, param_length, aparam_buf);
730 if (aph == NULL) {
737 m_result = sctp_process_asconf_add_ip(src, aph, stcb,
742 m_result = sctp_process_asconf_delete_ip(src, aph, stcb,
749 m_result = sctp_process_asconf_set_primary(src, aph,
793 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset,
796 if (aph == NULL) {
1230 if (aa->ap.aph.ph.param_type == type && aa->sent == 0) {
1235 (aa->ap.aph.ph.param_type == SCTP_DEL_IP_ADDRESS)) {
1246 (aa->ap.aph.ph.param_type == SCTP_ADD_IP_ADDRESS)) {
1269 aa->ap.aph.ph.param_type = type;
1282 aa->ap.aph.ph.param_length = sizeof(struct sctp_asconf_paramhdr) +
1297 aa->ap.aph.ph.param_length = sizeof(struct sctp_asconf_paramhdr) +
1454 if (aa->ap.aph.ph.param_type == SCTP_DEL_IP_ADDRESS) {
1460 if (aa->ap.aph.ph.param_type == SCTP_ADD_IP_ADDRESS) {
1485 aa->ap.aph.ph.param_type = SCTP_DEL_IP_ADDRESS;
1500 aa->ap.aph.ph.param_length = sizeof(struct sctp_asconf_paramhdr) + sizeof(struct sctp_ipv6addr_param);
1514 aa->ap.aph.ph.param_length = sizeof(struct sctp_asconf_paramhdr) + sizeof(struct sctp_ipv4addr_param);
1545 if (aa->ap.aph.correlation_id == correlation_id &&
1561 struct sctp_asconf_paramhdr *aph)
1568 eh = (struct sctp_error_cause *)(aph + 1);
1572 htons(aph->ph.param_length)) {
1587 param_type = ntohs(aph->ph.param_type);
1618 param_type = aparam->ap.aph.ph.param_type;
1666 struct sctp_asconf_paramhdr *aph;
1730 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset,
1732 if (aph == NULL) {
1737 param_type = ntohs(aph->ph.param_type);
1738 param_length = ntohs(aph->ph.param_length);
1754 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset, param_length, aparam_buf);
1755 if (aph == NULL) {
1760 id = aph->correlation_id;
1774 sctp_asconf_process_error(stcb, aph);
1816 if (aa->ap.aph.correlation_id < last_error_id)
2330 struct sctp_asconf_paramhdr *aph;
2354 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(chk->data, offset, sizeof(struct sctp_asconf_paramhdr), aparam_buf);
2355 if (aph == NULL) {
2359 while (aph != NULL) {
2362 param_type = ntohs(aph->ph.param_type);
2363 param_length = ntohs(aph->ph.param_length);
2377 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(chk->data, offset, param_length, aparam_buf);
2378 if (aph == NULL) {
2383 ph = (struct sctp_paramhdr *)(aph + 1);
2404 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(chk->data, offset, sizeof(struct sctp_asconf_paramhdr), aparam_buf);
2559 struct sctp_asconf_paramhdr *aph;
2627 p_length = SCTP_SIZE32(aa->ap.aph.ph.param_length);
2635 aa->ap.aph.correlation_id = correlation_id++;
2646 aa->ap.aph.ph.param_type == SCTP_DEL_IP_ADDRESS) {
2671 aph = (struct sctp_asconf_paramhdr *)ptr;
2674 aph->ph.param_type = htons(aph->ph.param_type);
2675 aph->ph.param_length = htons(aph->ph.param_length);
3320 vtag = (struct sctp_asconf_tag_param *)&aa_vtag->ap.aph;
3321 vtag->aph.ph.param_type = SCTP_NAT_VTAGS;
3322 vtag->aph.ph.param_length = sizeof(struct sctp_asconf_tag_param);
3331 aa_add->ap.aph.ph.param_type = SCTP_ADD_IP_ADDRESS;
3332 aa_add->ap.aph.ph.param_length = sizeof(struct sctp_asconf_addrv4_param);
3336 aa_del->ap.aph.ph.param_type = SCTP_DEL_IP_ADDRESS;
3337 aa_del->ap.aph.ph.param_length = sizeof(struct sctp_asconf_addrv4_param);
3345 aa_add->ap.aph.ph.param_type = SCTP_ADD_IP_ADDRESS;
3346 aa_add->ap.aph.ph.param_length = sizeof(struct sctp_asconf_addr_param);
3350 aa_del->ap.aph.ph.param_type = SCTP_DEL_IP_ADDRESS;
3351 aa_del->ap.aph.ph.param_length = sizeof(struct sctp_asconf_addr_param);