Home | History | Annotate | Download | only in mDNSPosix

Lines Matching refs:cmptr

524     struct cmsghdr  *cmptr;
575 for (cmptr = CMSG_FIRSTHDR(&msg); cmptr != NULL;
576 cmptr = CMSG_NXTHDR(&msg, cmptr)) {
587 if (cmptr->cmsg_level == IPPROTO_IP &&
588 cmptr->cmsg_type == IP_PKTINFO) {
592 tmp = (struct in_pktinfo *) CMSG_DATA(cmptr);
602 if (cmptr->cmsg_level == IPPROTO_IP &&
603 cmptr->cmsg_type == IP_RECVDSTADDR) {
607 sin->sin_addr = *(struct in_addr*)CMSG_DATA(cmptr);
614 if (cmptr->cmsg_level == IPPROTO_IP &&
615 cmptr->cmsg_type == IP_RECVIF) {
616 struct sockaddr_dl *sdl = (struct sockaddr_dl *) CMSG_DATA(cmptr);
634 if (cmptr->cmsg_level == IPPROTO_IP &&
635 cmptr->cmsg_type == IP_RECVTTL) {
636 *ttl = *(u_char*)CMSG_DATA(cmptr);
639 else if (cmptr->cmsg_level == IPPROTO_IP &&
640 cmptr->cmsg_type == IP_TTL) { // some implementations seem to send IP_TTL instead of IP_RECVTTL
641 *ttl = *(int*)CMSG_DATA(cmptr);
647 if (cmptr->cmsg_level == IPPROTO_IPV6 &&
648 cmptr->cmsg_type == IPV6_2292_PKTINFO) {
650 struct in6_pktinfo *ip6_info = (struct in6_pktinfo*)CMSG_DATA(cmptr);
666 if (cmptr->cmsg_level == IPPROTO_IPV6 &&
667 cmptr->cmsg_type == IPV6_2292_HOPLIMIT) {
668 *ttl = *(int*)CMSG_DATA(cmptr);