Lines Matching refs:udpha
745 udpha_t *udpha;
761 udpha = (udpha_t *)(data_mp->b_rptr + IPH_HDR_LENGTH(ipha));
763 if (udpha->uha_checksum != 0) {
765 sum += ~ntohs(udpha->uha_checksum) & 0xFFFF;
768 udpha->uha_checksum = ~htons(sum);
769 if (udpha->uha_checksum == 0)
770 udpha->uha_checksum = 0xFFFF;
2338 udpha_t *udpha;
2358 udpha = (udpha_t *)(ipha + 1);
2359 udpha->uha_src_port = (assoc->ipsa_local_nat_port != 0) ?
2361 udpha->uha_dst_port = (assoc->ipsa_remote_nat_port != 0) ?
2363 udpha->uha_length = htons(sizeof (udpha_t) + 1);
2364 udpha->uha_checksum = 0;
2365 mp->b_wptr = (uint8_t *)(udpha + 1);
2620 udpha_t *udpha;
2806 udpha = (udpha_t *)espmp->b_rptr;
2807 udpha->uha_src_port = (assoc->ipsa_local_nat_port != 0) ?
2809 udpha->uha_dst_port = (assoc->ipsa_remote_nat_port != 0) ?
2815 udpha->uha_checksum = 0;
2816 esph_ptr = (esph_t *)(udpha + 1);
2885 udpha->uha_length = htons(ntohs(ipha->ipha_length) -