Lines Matching refs:cmptr
94 struct cmsghdr *cmptr; in tftp_request() local
99 for (cmptr = CMSG_FIRSTHDR(&msg); cmptr; cmptr = CMSG_NXTHDR(&msg, cmptr)) in tftp_request()
100 if (cmptr->cmsg_level == SOL_IP && cmptr->cmsg_type == IP_PKTINFO) in tftp_request()
102 addr.sin_addr = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_spec_dst; in tftp_request()
103 if_index = ((struct in_pktinfo *)CMSG_DATA(cmptr))->ipi_ifindex; in tftp_request()
107 for (cmptr = CMSG_FIRSTHDR(&msg); cmptr; cmptr = CMSG_NXTHDR(&msg, cmptr)) in tftp_request()
108 if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVDSTADDR) in tftp_request()
109 addr.sin_addr = *((struct in_addr *)CMSG_DATA(cmptr)); in tftp_request()
110 else if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVIF) in tftp_request()
111 if_index = *((unsigned int *)CMSG_DATA(cmptr)); in tftp_request()
115 for (cmptr = CMSG_FIRSTHDR(&msg); cmptr; cmptr = CMSG_NXTHDR(&msg, cmptr)) in tftp_request()
116 if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVDSTADDR) in tftp_request()
117 addr.sin_addr = *((struct in_addr *)CMSG_DATA(cmptr)); in tftp_request()
118 else if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVIF) in tftp_request()
119 if_index = ((struct sockaddr_dl *)CMSG_DATA(cmptr))->sdl_index; in tftp_request()