Lines Matching refs:ipha

2143 	ipha_t *ipha;  in ah_icmp_error_v4()  local
2151 oipha = ipha = (ipha_t *)mp->b_rptr; in ah_icmp_error_v4()
2152 iph_hdr_length = IPH_HDR_LENGTH(ipha); in ah_icmp_error_v4()
2155 ipha = (ipha_t *)&icmph[1]; in ah_icmp_error_v4()
2156 hdr_length = IPH_HDR_LENGTH(ipha); in ah_icmp_error_v4()
2161 if ((uchar_t *)ipha + hdr_length + 8 > mp->b_wptr) { in ah_icmp_error_v4()
2162 if (!pullupmsg(mp, (uchar_t *)ipha + hdr_length + 8 - in ah_icmp_error_v4()
2175 ipha = (ipha_t *)&icmph[1]; in ah_icmp_error_v4()
2178 ah = (ah_t *)((uint8_t *)ipha + hdr_length); in ah_icmp_error_v4()
2181 hptr = OUTBOUND_BUCKET_V4(&ahstack->ah_sadb.s_v4, ipha->ipha_dst); in ah_icmp_error_v4()
2184 (uint32_t *)&ipha->ipha_src, (uint32_t *)&ipha->ipha_dst, AF_INET); in ah_icmp_error_v4()
2219 if ((uchar_t *)ipha + hdr_length + ah_length > mp->b_wptr) { in ah_icmp_error_v4()
2226 ah_length = (mp->b_wptr - ((uchar_t *)ipha + in ah_icmp_error_v4()
2244 ipha = (ipha_t *)&icmph[1]; in ah_icmp_error_v4()
2276 mp->b_rptr = (uchar_t *)ipha + hdr_length + ah_length; in ah_icmp_error_v4()
2286 ipha = (ipha_t *)(mp1->b_rptr + iph_hdr_length + sizeof (icmph_t)); in ah_icmp_error_v4()
2287 ipha->ipha_protocol = nexthdr; in ah_icmp_error_v4()
2288 length = ntohs(ipha->ipha_length); in ah_icmp_error_v4()
2290 ipha->ipha_length = htons((uint16_t)length); in ah_icmp_error_v4()
2291 ipha->ipha_hdr_checksum = 0; in ah_icmp_error_v4()
2292 ipha->ipha_hdr_checksum = (uint16_t)ip_csum_hdr(ipha); in ah_icmp_error_v4()
2647 ipha_t *ipha = (ipha_t *)mp->b_rptr; in ah_log_bad_auth() local
2648 addr = &ipha->ipha_dst; in ah_log_bad_auth()
3172 ipha_t *ipha; in ah_process_ip_options_v4() local
3231 ipha = (ipha_t *)phdr_mp->b_rptr; in ah_process_ip_options_v4()
3232 ipha->ipha_version_and_hdr_length = oipha->ipha_version_and_hdr_length; in ah_process_ip_options_v4()
3233 ipha->ipha_type_of_service = 0; in ah_process_ip_options_v4()
3242 ipha->ipha_length = ntohs(htons(oipha->ipha_length) + in ah_process_ip_options_v4()
3245 ipha->ipha_length = oipha->ipha_length; in ah_process_ip_options_v4()
3248 ipha->ipha_ident = oipha->ipha_ident; in ah_process_ip_options_v4()
3249 ipha->ipha_fragment_offset_and_flags = 0; in ah_process_ip_options_v4()
3250 ipha->ipha_ttl = 0; in ah_process_ip_options_v4()
3251 ipha->ipha_protocol = IPPROTO_AH; in ah_process_ip_options_v4()
3252 ipha->ipha_hdr_checksum = 0; in ah_process_ip_options_v4()
3253 ipha->ipha_src = oipha->ipha_src; in ah_process_ip_options_v4()
3254 ipha->ipha_dst = dst = oipha->ipha_dst; in ah_process_ip_options_v4()
3276 bcopy(&oipha[1], &ipha[1], option_length); in ah_process_ip_options_v4()
3278 for (optval = ipoptp_first(&opts, ipha); in ah_process_ip_options_v4()
3347 ipha->ipha_dst = dst; in ah_process_ip_options_v4()
3349 ((ah_t *)((uint8_t *)ipha + ip_hdr_length))->ah_nexthdr = in ah_process_ip_options_v4()
3351 if (!ah_finish_up(((ah_t *)((uint8_t *)ipha + ip_hdr_length)), in ah_process_ip_options_v4()
3362 phdr_mp->b_wptr = ((uchar_t *)ipha + ip_hdr_length + in ah_process_ip_options_v4()
3445 ipha_t *ipha = (ipha_t *)data_mp->b_rptr; in ah_outbound() local
3448 age_bytes = ntohs(ipha->ipha_length) + sizeof (ah_t) + in ah_outbound()
3629 ipha_t *ipha; in ah_auth_in_done() local
3671 ipha = (ipha_t *)mp->b_rptr; in ah_auth_in_done()
3672 ah_offset = ipha->ipha_version_and_hdr_length - in ah_auth_in_done()
3700 addr = &ipha->ipha_dst; in ah_auth_in_done()
3736 length = ntohs(ipha->ipha_length); in ah_auth_in_done()
3748 ipha->ipha_protocol = ah->ah_nexthdr; in ah_auth_in_done()
3751 ipha->ipha_length = htons((uint16_t)length); in ah_auth_in_done()
3752 ipha->ipha_hdr_checksum = 0; in ah_auth_in_done()
3753 ipha->ipha_hdr_checksum = (uint16_t)ip_csum_hdr(ipha); in ah_auth_in_done()
3899 ipha_t *ipha; in ah_auth_out_done() local
3902 ipha = (ipha_t *)mp->b_rptr; in ah_auth_out_done()
3903 hdrs_length = ipha->ipha_version_and_hdr_length - in ah_auth_out_done()