Lines Matching refs:pktp
517 struct sockaddr *sa, socklen_t *salenptr, struct my_in_pktinfo *pktp, u_char *ttl) in recvfrom_flags() argument
550 if (pktp) { in recvfrom_flags()
558 memset(pktp, 0, sizeof(struct my_in_pktinfo)); in recvfrom_flags()
559 pktp->ipi_ifindex = -1; in recvfrom_flags()
572 (msg.msg_flags & MSG_CTRUNC) || pktp == NULL) in recvfrom_flags()
590 struct sockaddr_in *sin = (struct sockaddr_in*)&pktp->ipi_addr; in recvfrom_flags()
596 pktp->ipi_ifindex = tmp->ipi_ifindex; in recvfrom_flags()
604 struct sockaddr_in *sin = (struct sockaddr_in*)&pktp->ipi_addr; in recvfrom_flags()
619 strncpy(pktp->ipi_ifname, sdl->sdl_data, nameLen); in recvfrom_flags()
621 pktp->ipi_ifindex = sdl->sdl_index; in recvfrom_flags()
624 pktp->ipi_ifindex = *(uint_t*)sdl; in recvfrom_flags()
627 assert(pktp->ipi_ifname[IFI_NAME - 1] == 0); in recvfrom_flags()
649 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)&pktp->ipi_addr; in recvfrom_flags()
660 pktp->ipi_ifindex = ip6_info->ipi6_ifindex; in recvfrom_flags()