110
109
for ( cmptr = CMSG_FIRSTHDR(&msg) ; cmptr != NULL ;
111
110
cmptr = CMSG_NXTHDR(&msg, cmptr) ) {
114
113
if ( cmptr->cmsg_level == IPPROTO_IP &&
115
114
cmptr->cmsg_type == IP_RECVDSTADDR ) {
116
115
memcpy(&myaddr->sin_addr, CMSG_DATA(cmptr),