Lines Matching refs:ip6h
1879 ip6_t *ip6h, *oip6h; in ah_icmp_error_v6() local
1907 ip6h = (ip6_t *)(icmp6 + 1); in ah_icmp_error_v6()
1908 if (!ip_hdr_length_nexthdr_v6(mp, ip6h, &hdr_length, &nexthdrp)) { in ah_icmp_error_v6()
1915 ah = (ah_t *)((uint8_t *)ip6h + hdr_length); in ah_icmp_error_v6()
1917 isaf = OUTBOUND_BUCKET_V6(&ahstack->ah_sadb.s_v6, ip6h->ip6_dst); in ah_icmp_error_v6()
1920 (uint32_t *)&ip6h->ip6_src, (uint32_t *)&ip6h->ip6_dst, AF_INET6); in ah_icmp_error_v6()
1963 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - ah_length); in ah_icmp_error_v6()
2237 ah_fix_phdr_v6(ip6_t *ip6h, ip6_t *oip6h, boolean_t outbound, in ah_fix_phdr_v6() argument
2271 pi_opt = (uchar_t *)&ip6h[1]; in ah_fix_phdr_v6()
2279 prev_nexthdr = (uint8_t *)&ip6h->ip6_nxt; in ah_fix_phdr_v6()
2332 ip6h->ip6_dst = *(ap + left - 1); in ah_fix_phdr_v6()
2377 return ((uint_t)(pi_opt - (uint8_t *)ip6h)); in ah_fix_phdr_v6()
2384 return ((uint_t)(pi_opt - (uint8_t *)ip6h)); in ah_fix_phdr_v6()
2496 ip6_t *ip6h = (ip6_t *)mp->b_rptr; in ah_log_bad_auth() local
2497 addr = &ip6h->ip6_dst; in ah_log_bad_auth()
2899 ip6_t *ip6h; in ah_process_ip_options_v6() local
2951 ip6h = (ip6_t *)phdr_mp->b_rptr; in ah_process_ip_options_v6()
2952 bzero(ip6h, sizeof (ip6_t)); in ah_process_ip_options_v6()
2953 ip6h->ip6_vcf = IPV6_DEFAULT_VERS_AND_FLOW; in ah_process_ip_options_v6()
2962 ip6h->ip6_plen = htons(ntohs(oip6h->ip6_plen) + in ah_process_ip_options_v6()
2965 ip6h->ip6_plen = oip6h->ip6_plen; in ah_process_ip_options_v6()
2968 ip6h->ip6_src = oip6h->ip6_src; in ah_process_ip_options_v6()
2969 ip6h->ip6_dst = oip6h->ip6_dst; in ah_process_ip_options_v6()
2974 ip6h->ip6_nxt = IPPROTO_AH; in ah_process_ip_options_v6()
2975 ((ah_t *)(ip6h + 1))->ah_nexthdr = oip6h->ip6_nxt; in ah_process_ip_options_v6()
2978 ip6h->ip6_nxt = oip6h->ip6_nxt; in ah_process_ip_options_v6()
2982 ah_offset = ah_fix_phdr_v6(ip6h, oip6h, outbound, B_FALSE); in ah_process_ip_options_v6()
2988 if (!ah_finish_up(((ah_t *)((uint8_t *)ip6h + ah_offset)), in ah_process_ip_options_v6()
2999 phdr_mp->b_wptr = ((uint8_t *)ip6h + ah_offset + sizeof (ah_t) + in ah_process_ip_options_v6()
3296 ip6_t *ip6h = (ip6_t *)data_mp->b_rptr; in ah_outbound() local
3299 age_bytes = sizeof (ip6_t) + ntohs(ip6h->ip6_plen) + in ah_outbound()
3483 ip6_t *ip6h; in ah_auth_in_done() local
3523 ip6h = (ip6_t *)mp->b_rptr; in ah_auth_in_done()
3548 addr = &ip6h->ip6_dst; in ah_auth_in_done()
3611 length = ntohs(ip6h->ip6_plen); in ah_auth_in_done()
3617 "expire.\n", assoc->ipsa_spi, &ip6h->ip6_dst, in ah_auth_in_done()
3630 nexthdr = &ip6h->ip6_nxt; in ah_auth_in_done()
3631 whereptr = (uchar_t *)ip6h; in ah_auth_in_done()
3658 ip6h->ip6_plen = htons((uint16_t)length); in ah_auth_in_done()
3778 ip6_t *ip6h; in ah_auth_out_done() local
3782 ip6h = (ip6_t *)mp->b_rptr; in ah_auth_out_done()
3796 bcopy(ip6h, nip6h, IPV6_HDR_LEN); in ah_auth_out_done()
3797 ah_offset = ah_fix_phdr_v6(nip6h, ip6h, B_TRUE, B_TRUE); in ah_auth_out_done()