Lines Matching refs:ip6h
2034 ip6_t *ip6h, *oip6h; in ah_icmp_error_v6() local
2062 ip6h = (ip6_t *)(icmp6 + 1); in ah_icmp_error_v6()
2063 if (!ip_hdr_length_nexthdr_v6(mp, ip6h, &hdr_length, &nexthdrp)) { in ah_icmp_error_v6()
2070 ah = (ah_t *)((uint8_t *)ip6h + hdr_length); in ah_icmp_error_v6()
2072 isaf = OUTBOUND_BUCKET_V6(&ahstack->ah_sadb.s_v6, ip6h->ip6_dst); in ah_icmp_error_v6()
2075 (uint32_t *)&ip6h->ip6_src, (uint32_t *)&ip6h->ip6_dst, AF_INET6); in ah_icmp_error_v6()
2118 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - ah_length); in ah_icmp_error_v6()
2392 ah_fix_phdr_v6(ip6_t *ip6h, ip6_t *oip6h, boolean_t outbound, in ah_fix_phdr_v6() argument
2426 pi_opt = (uchar_t *)&ip6h[1]; in ah_fix_phdr_v6()
2434 prev_nexthdr = (uint8_t *)&ip6h->ip6_nxt; in ah_fix_phdr_v6()
2487 ip6h->ip6_dst = *(ap + left - 1); in ah_fix_phdr_v6()
2532 return ((uint_t)(pi_opt - (uint8_t *)ip6h)); in ah_fix_phdr_v6()
2539 return ((uint_t)(pi_opt - (uint8_t *)ip6h)); in ah_fix_phdr_v6()
2651 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in ah_log_bad_auth() local
2652 addr = &ip6h->ip6_dst; in ah_log_bad_auth()
3054 ip6_t *ip6h; in ah_process_ip_options_v6() local
3106 ip6h = (ip6_t *)phdr_mp->b_rptr; in ah_process_ip_options_v6()
3107 bzero(ip6h, sizeof (ip6_t)); in ah_process_ip_options_v6()
3108 ip6h->ip6_vcf = IPV6_DEFAULT_VERS_AND_FLOW; in ah_process_ip_options_v6()
3117 ip6h->ip6_plen = htons(ntohs(oip6h->ip6_plen) + in ah_process_ip_options_v6()
3120 ip6h->ip6_plen = oip6h->ip6_plen; in ah_process_ip_options_v6()
3123 ip6h->ip6_src = oip6h->ip6_src; in ah_process_ip_options_v6()
3124 ip6h->ip6_dst = oip6h->ip6_dst; in ah_process_ip_options_v6()
3129 ip6h->ip6_nxt = IPPROTO_AH; in ah_process_ip_options_v6()
3130 ((ah_t *)(ip6h + 1))->ah_nexthdr = oip6h->ip6_nxt; in ah_process_ip_options_v6()
3133 ip6h->ip6_nxt = oip6h->ip6_nxt; in ah_process_ip_options_v6()
3137 ah_offset = ah_fix_phdr_v6(ip6h, oip6h, outbound, B_FALSE); in ah_process_ip_options_v6()
3143 if (!ah_finish_up(((ah_t *)((uint8_t *)ip6h + ah_offset)), in ah_process_ip_options_v6()
3154 phdr_mp->b_wptr = ((uint8_t *)ip6h + ah_offset + sizeof (ah_t) + in ah_process_ip_options_v6()
3451 ip6_t *ip6h = (ip6_t *)data_mp->b_rptr; in ah_outbound() local
3454 age_bytes = sizeof (ip6_t) + ntohs(ip6h->ip6_plen) + in ah_outbound()
3638 ip6_t *ip6h; in ah_auth_in_done() local
3678 ip6h = (ip6_t *)mp->b_rptr; in ah_auth_in_done()
3703 addr = &ip6h->ip6_dst; in ah_auth_in_done()
3766 length = ntohs(ip6h->ip6_plen); in ah_auth_in_done()
3772 "expire.\n", assoc->ipsa_spi, &ip6h->ip6_dst, in ah_auth_in_done()
3785 nexthdr = &ip6h->ip6_nxt; in ah_auth_in_done()
3786 whereptr = (uchar_t *)ip6h; in ah_auth_in_done()
3813 ip6h->ip6_plen = htons((uint16_t)length); in ah_auth_in_done()
3933 ip6_t *ip6h; in ah_auth_out_done() local
3937 ip6h = (ip6_t *)mp->b_rptr; in ah_auth_out_done()
3951 bcopy(ip6h, nip6h, IPV6_HDR_LEN); in ah_auth_out_done()
3952 ah_offset = ah_fix_phdr_v6(nip6h, ip6h, B_TRUE, B_TRUE); in ah_auth_out_done()