Searched refs:cmptr (Results 1 – 4 of 4) sorted by relevance
524 struct cmsghdr *cmptr; in recvfrom_flags() local575 for (cmptr = CMSG_FIRSTHDR(&msg); cmptr != NULL; in recvfrom_flags()576 cmptr = CMSG_NXTHDR(&msg, cmptr)) { in recvfrom_flags()587 if (cmptr->cmsg_level == IPPROTO_IP && in recvfrom_flags()588 cmptr->cmsg_type == IP_PKTINFO) { in recvfrom_flags()592 tmp = (struct in_pktinfo *) CMSG_DATA(cmptr); in recvfrom_flags()602 if (cmptr->cmsg_level == IPPROTO_IP && in recvfrom_flags()603 cmptr->cmsg_type == IP_RECVDSTADDR) { in recvfrom_flags()607 sin->sin_addr = *(struct in_addr*)CMSG_DATA(cmptr); in recvfrom_flags()614 if (cmptr->cmsg_level == IPPROTO_IP && in recvfrom_flags()[all …]
56 struct cmsghdr* cmptr; in send_from() local59 cmptr = CMSG_FIRSTHDR(&msg); in send_from()63 struct in_pktinfo* pkt = (struct in_pktinfo*) CMSG_DATA(cmptr); in send_from()66 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in send_from()67 cmptr->cmsg_level = SOL_IP; in send_from()68 cmptr->cmsg_type = IP_PKTINFO; in send_from()70 struct in_addr* a = (struct in_addr*) CMSG_DATA(cmptr); in send_from()72 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_addr)); in send_from()73 cmptr->cmsg_level = IPPROTO_IP; in send_from()74 cmptr->cmsg_type = IP_SENDSRCADDR; in send_from()[all …]
93 struct cmsghdr* cmptr; in dhcp_packet() local149 for (cmptr = CMSG_FIRSTHDR(&msg); cmptr; cmptr = CMSG_NXTHDR(&msg, cmptr)) in dhcp_packet()150 if (cmptr->cmsg_level == SOL_IP && cmptr->cmsg_type == IP_PKTINFO) { in dhcp_packet()151 iface_index = ((struct in_pktinfo*) CMSG_DATA(cmptr))->ipi_ifindex; in dhcp_packet()152 if (((struct in_pktinfo*) CMSG_DATA(cmptr))->ipi_addr.s_addr != INADDR_BROADCAST) in dhcp_packet()234 cmptr = CMSG_FIRSTHDR(&msg); in dhcp_packet()235 pkt = (struct in_pktinfo*) CMSG_DATA(cmptr); in dhcp_packet()238 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in dhcp_packet()239 cmptr->cmsg_level = SOL_IP; in dhcp_packet()240 cmptr->cmsg_type = IP_PKTINFO; in dhcp_packet()
1151 - (NSArray *)sortedArrayUsingComparator:(NSComparator)cmptr;