Lines Matching refs:ip6h

217 	const ip6_t	*ip6h;  in tsol_get_option_v6()  local
221 ip6h = (const ip6_t *)mp->b_rptr; in tsol_get_option_v6()
222 if (ip6h->ip6_nxt != IPPROTO_HOPOPTS) in tsol_get_option_v6()
224 ip6hbh = (const uchar_t *)&ip6h[1]; in tsol_get_option_v6()
1163 tsol_remove_secopt_v6(ip6_t *ip6h, int buflen) in tsol_remove_secopt_v6() argument
1177 if (ip6h->ip6_nxt != IPPROTO_HOPOPTS) in tsol_remove_secopt_v6()
1180 ip6hbh = (uchar_t *)&ip6h[1]; in tsol_remove_secopt_v6()
1210 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - hbhlen); in tsol_remove_secopt_v6()
1211 ip6h->ip6_nxt = next_hdr; in tsol_remove_secopt_v6()
1240 (uchar_t *)ip6h + buflen - after_secopt); in tsol_remove_secopt_v6()
1242 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) - delta); in tsol_remove_secopt_v6()
1264 tsol_prepend_option_v6(uchar_t *optbuf, ip6_t *ip6h, int buflen) in tsol_prepend_option_v6() argument
1280 ip6hbh = (uchar_t *)&ip6h[1]; in tsol_prepend_option_v6()
1281 if (ip6h->ip6_nxt == IPPROTO_HOPOPTS) { in tsol_prepend_option_v6()
1315 ip6hbh[0] = ip6h->ip6_nxt; in tsol_prepend_option_v6()
1321 ip6h->ip6_nxt = IPPROTO_HOPOPTS; in tsol_prepend_option_v6()
1336 ip6h->ip6_plen = htons(ntohs(ip6h->ip6_plen) + delta); in tsol_prepend_option_v6()
1372 ip6_t *ip6h; in tsol_check_label_v6() local
1396 ip6h = (ip6_t *)mp->b_rptr; in tsol_check_label_v6()
1397 retv = tsol_check_dest(tsl, &ip6h->ip6_dst, IPV6_VERSION, in tsol_check_label_v6()
1408 &ip6h->ip6_dst, opt_storage, ipst)) != 0) { in tsol_check_label_v6()
1415 &ip6h->ip6_dst, opt_storage, ipst)) != 0) in tsol_check_label_v6()
1421 if (ip6h->ip6_nxt == IPPROTO_HOPOPTS) { in tsol_check_label_v6()
1422 ip6hbh = (uchar_t *)&ip6h[1]; in tsol_check_label_v6()
1456 delta_remove = tsol_remove_secopt_v6(ip6h, MBLKL(mp)); in tsol_check_label_v6()
1472 hdr_len = ip_hdr_length_v6(mp, ip6h); in tsol_check_label_v6()
1502 ip6h = (ip6_t *)mp->b_rptr; in tsol_check_label_v6()
1505 delta_add = tsol_prepend_option_v6(opt_storage, ip6h, MBLKL(mp)); in tsol_check_label_v6()