#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <sys/utsname.h>
#warning "FIXME: We need some code to set the outgoing interface/local address here if IP_PKTINFO is not available"
#endif
#endif
-
+
return sendmsg_loop(fd, &msg, 0);
}
#ifdef IP_RECVDSTADDR
case IP_RECVDSTADDR:
- if (ret_dest_address)
- memcpy(&ret_dest_address->address, CMSG_DATA (cmsg), 4);
+ if (ret_dst_address)
+ memcpy(&ret_dst_address->address, CMSG_DATA (cmsg), 4);
found_addr = 1;
break;