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