Lines Matching refs:ipha
114 ipha_t *ipha = (ipha_t *)iph; in flowacct_port_info() local
118 u2 = ntohs(ipha->ipha_fragment_offset_and_flags); in flowacct_port_info()
123 iplen = (ipha->ipha_version_and_hdr_length & 0xF) << 2; in flowacct_port_info()
231 ipha_t *ipha; in flowacct_extract_header() local
233 #define rptr ((uchar_t *)ipha) in flowacct_extract_header()
243 ipha = (ipha_t *)mp->b_rptr; in flowacct_extract_header()
244 header->isv4 = IPH_HDR_VERSION(ipha) == IPV4_VERSION; in flowacct_extract_header()
246 ipha = (ipha_t *)mp->b_rptr; in flowacct_extract_header()
247 V4_PART_OF_V6(header->saddr) = (int32_t)ipha->ipha_src; in flowacct_extract_header()
248 V4_PART_OF_V6(header->daddr) = (int32_t)ipha->ipha_dst; in flowacct_extract_header()
249 header->dsfield = ipha->ipha_type_of_service; in flowacct_extract_header()
250 header->proto = ipha->ipha_protocol; in flowacct_extract_header()
251 header->pktlen = ntohs(ipha->ipha_length); in flowacct_extract_header()
255 flowacct_port_info(header, ipha, AF_INET, mp); in flowacct_extract_header()