aboutsummaryrefslogtreecommitdiff
path: root/tests/echo_srv.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-05-26 11:00:09 +0200
committerAndreas Schneider <asn@samba.org>2014-05-26 13:55:01 +0200
commit29f24e5cc059ed37117126838045f85b494fc288 (patch)
tree21e2cdd7f9bbe607839957ecd14382cb7c113a90 /tests/echo_srv.c
parent75271e62121ba207076add1378d716adcf3ee47f (diff)
downloadsocket_wrapper-29f24e5cc059ed37117126838045f85b494fc288.tar.gz
socket_wrapper-29f24e5cc059ed37117126838045f85b494fc288.tar.xz
socket_wrapper-29f24e5cc059ed37117126838045f85b494fc288.zip
swrap: Implement support for IP_RECVDSTADDR on BSD.
Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'tests/echo_srv.c')
-rw-r--r--tests/echo_srv.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/echo_srv.c b/tests/echo_srv.c
index 455ce06..72dd411 100644
--- a/tests/echo_srv.c
+++ b/tests/echo_srv.c
@@ -666,13 +666,9 @@ static ssize_t echo_udp_send_to_from(int sock,
size_t clen = CMSG_SPACE(sizeof(union pktinfo));
char cbuf[clen];
struct cmsghdr *cmsgptr;
-#endif /* HAVE_STRUCT_MSGHDR_MSG_CONTROL */
-
-#if !defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL)
+#else
(void)from; /* unused */
-#if !defined(IP_PKTINFO) && !defined(IPV6_PKTINFO)
(void)fromlen; /* unused */
-#endif /* !IP_PKTINFO && !IPV6_PKTINFO */
#endif /* !HAVE_STRUCT_MSGHDR_MSG_CONTROL */
iov.iov_base = buf;