Home | History | Annotate | Download | only in netinet

Lines Matching defs:aph

123 	struct sctp_asconf_paramhdr *aph;
134 aph = mtod(m_reply, struct sctp_asconf_paramhdr *);
135 aph->correlation_id = id;
136 aph->ph.param_type = htons(SCTP_SUCCESS_REPORT);
137 aph->ph.param_length = sizeof(struct sctp_asconf_paramhdr);
138 m_reply->m_len = aph->ph.param_length;
139 aph->ph.param_length = htons(aph->ph.param_length);
149 struct sctp_asconf_paramhdr *aph;
162 aph = mtod(m_reply, struct sctp_asconf_paramhdr *);
163 error = (struct sctp_error_cause *)(aph + 1);
165 aph->correlation_id = id;
166 aph->ph.param_type = htons(SCTP_ERROR_CAUSE_IND);
169 aph->ph.param_length = error->length +
172 if (aph->ph.param_length > MLEN) {
188 m_reply->m_len = aph->ph.param_length;
190 aph->ph.param_length = htons(aph->ph.param_length);
196 sctp_process_asconf_add_ip(struct sctp_asconf_paramhdr *aph,
210 aparam_length = ntohs(aph->ph.param_length);
211 v4addr = (struct sctp_ipv4addr_param *)(aph + 1);
213 v6addr = (struct sctp_ipv6addr_param *)(aph + 1);
260 m_reply = sctp_asconf_error_response(aph->correlation_id,
261 SCTP_ERROR_INVALID_PARAM, (uint8_t *)aph, aparam_length);
272 m_reply = sctp_asconf_error_response(aph->correlation_id,
273 SCTP_ERROR_UNRESOLVABLE_ADDR, (uint8_t *)aph,
285 m_reply = sctp_asconf_error_response(aph->correlation_id,
286 SCTP_ERROR_RESOURCE_SHORTAGE, (uint8_t *)aph,
293 sctp_asconf_success_response(aph->correlation_id);
301 sctp_process_asconf_delete_ip(struct mbuf *m, struct sctp_asconf_paramhdr *aph,
317 aparam_length = ntohs(aph->ph.param_length);
318 v4addr = (struct sctp_ipv4addr_param *)(aph + 1);
320 v6addr = (struct sctp_ipv6addr_param *)(aph + 1);
405 m_reply = sctp_asconf_error_response(aph->correlation_id,
406 SCTP_ERROR_UNRESOLVABLE_ADDR, (uint8_t *)aph,
423 m_reply = sctp_asconf_error_response(aph->correlation_id,
424 SCTP_ERROR_DELETE_SOURCE_ADDR, (uint8_t *)aph,
443 m_reply = sctp_asconf_error_response(aph->correlation_id,
444 SCTP_ERROR_DELETE_LAST_ADDR, (uint8_t *)aph,
452 m_reply = sctp_asconf_success_response(aph->correlation_id);
458 sctp_process_asconf_set_primary(struct sctp_asconf_paramhdr *aph,
472 aparam_length = ntohs(aph->ph.param_length);
473 v4addr = (struct sctp_ipv4addr_param *)(aph + 1);
475 v6addr = (struct sctp_ipv6addr_param *)(aph + 1);
530 m_reply = sctp_asconf_error_response(aph->correlation_id,
531 SCTP_ERROR_UNRESOLVABLE_ADDR, (uint8_t *)aph,
547 m_reply = sctp_asconf_success_response(aph->correlation_id);
557 m_reply = sctp_asconf_error_response(aph->correlation_id,
558 SCTP_ERROR_UNRESOLVABLE_ADDR, (uint8_t *)aph,
577 struct sctp_asconf_paramhdr *aph, *ack_aph;
672 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset, sizeof(struct sctp_asconf_paramhdr), (uint8_t *)&aparam_buf);
674 if (aph == NULL) {
685 while (aph != NULL) {
688 param_type = ntohs(aph->ph.param_type);
689 param_length = ntohs(aph->ph.param_length);
716 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset, param_length, aparam_buf);
717 if (aph == NULL) {
725 m_result = sctp_process_asconf_add_ip(aph, stcb, error);
729 m_result = sctp_process_asconf_delete_ip(m, aph, stcb,
737 m_result = sctp_process_asconf_set_primary(aph, stcb,
784 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset,
787 if (aph == NULL) {
922 if (aa->ap.aph.ph.param_type == type) {
934 aa->ap.aph.ph.param_type == SCTP_DEL_IP_ADDRESS) ||
937 aa->ap.aph.ph.param_type == SCTP_ADD_IP_ADDRESS))) {
967 aa->ap.aph.ph.param_type = type;
980 aa->ap.aph.ph.param_length =
994 aa->ap.aph.ph.param_length =
1070 if (aa->ap.aph.ph.param_type == type) {
1083 aa->ap.aph.ph.param_type == SCTP_DEL_IP_ADDRESS) {
1097 aa->ap.aph.ph.param_type == SCTP_ADD_IP_ADDRESS) {
1128 aa->ap.aph.ph.param_type = type;
1138 aa->ap.aph.ph.param_length = sizeof(struct sctp_asconf_paramhdr) + sizeof(struct sctp_ipv6addr_param);
1146 aa->ap.aph.ph.param_length = sizeof(struct sctp_asconf_paramhdr) + sizeof(struct sctp_ipv4addr_param);
1193 if (aa->ap.aph.correlation_id == correlation_id &&
1209 struct sctp_asconf_paramhdr *aph)
1216 eh = (struct sctp_error_cause *)(aph + 1);
1220 htons(aph->ph.param_length)) {
1242 param_type = ntohs(aph->ph.param_type);
1276 param_type = aparam->ap.aph.ph.param_type;
1334 struct sctp_asconf_paramhdr *aph;
1400 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset,
1402 if (aph == NULL) {
1407 param_type = ntohs(aph->ph.param_type);
1408 param_length = ntohs(aph->ph.param_length);
1428 aph = (struct sctp_asconf_paramhdr *)sctp_m_getptr(m, offset, param_length, aparam_buf);
1429 if (aph == NULL) {
1434 id = aph->correlation_id;
1448 sctp_asconf_process_error(stcb, aph);
1493 if (aa->ap.aph.correlation_id < last_error_id)
2233 struct sctp_asconf_paramhdr *aph;
2299 p_length = SCTP_SIZE32(aa->ap.aph.ph.param_length);
2306 aa->ap.aph.correlation_id = correlation_id++;
2316 aa->ap.aph.ph.param_type == SCTP_DEL_IP_ADDRESS) {
2342 aph = (struct sctp_asconf_paramhdr *) ptr;
2345 aph->ph.param_type = htons(aph->ph.param_type);
2346 aph->ph.param_length = htons(aph->ph.param_length);