Lines Matching refs:ipha
686 const ipha_t *ipha; in tsol_get_pkt_label() local
704 ipha = (const ipha_t *)mp->b_rptr; in tsol_get_pkt_label()
705 src = &ipha->ipha_src; in tsol_get_pkt_label()
764 proto = ipha->ipha_protocol; in tsol_get_pkt_label()
769 (mp->b_rptr + IPH_HDR_LENGTH(ipha)); in tsol_get_pkt_label()
1043 ipha_t *ipha = (ipha_t *)mp->b_rptr; in tsol_can_accept_raw() local
1045 src_rhtp = find_tpc(&ipha->ipha_src, IPV4_VERSION, in tsol_can_accept_raw()
1049 dst_rhtp = find_tpc(&ipha->ipha_dst, IPV4_VERSION, in tsol_can_accept_raw()
1129 const ipha_t *ipha; in tsol_can_reply_error() local
1136 sizeof (*ipha) : sizeof (*ip6h))); in tsol_can_reply_error()
1158 ipha = (const ipha_t *)mp->b_rptr; in tsol_can_reply_error()
1159 rhtp = find_tpc(&ipha->ipha_dst, IPV4_VERSION, B_FALSE); in tsol_can_reply_error()
1455 ipha_t *ipha; in tsol_ip_forward() local
1483 ipha = (ipha_t *)mp->b_rptr; in tsol_ip_forward()
1484 psrc = &ipha->ipha_src; in tsol_ip_forward()
1485 pdst = &ipha->ipha_dst; in tsol_ip_forward()
1486 proto = ipha->ipha_protocol; in tsol_ip_forward()
1637 adjust = (af == AF_INET) ? tsol_remove_secopt(ipha, MBLKL(mp)) : in tsol_ip_forward()
1654 ipha = (ipha_t *)mp->b_rptr; in tsol_ip_forward()
1655 iplen = ntohs(ipha->ipha_length) + adjust; in tsol_ip_forward()
1656 ipha->ipha_length = htons(iplen); in tsol_ip_forward()
1657 ipha->ipha_hdr_checksum = 0; in tsol_ip_forward()
1658 ipha->ipha_hdr_checksum = ip_csum_hdr(ipha); in tsol_ip_forward()
1708 ipha = (ipha_t *)mp->b_rptr; in tsol_ip_forward()
1709 ipha->ipha_hdr_checksum = 0; in tsol_ip_forward()
1710 ipha->ipha_hdr_checksum = ip_csum_hdr(ipha); in tsol_ip_forward()
1753 ipha_t *ipha; in tsol_pmtu_adjust() local
1756 ipha = (ipha_t *)mp->b_rptr; in tsol_pmtu_adjust()
1757 src = &ipha->ipha_src; in tsol_pmtu_adjust()