summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-06-03 14:56:28 +0200
committerMichael Adam <obnox@samba.org>2014-06-05 23:57:10 +0200
commitb534c45a2a0689d4ff781772ebf75d2fa3d2a110 (patch)
tree2b9638ad474ed20f77687e04c9da0fa5fa7c2873 /lib
parentd5b204cefd8f9981d20adfb9578636008daabc38 (diff)
downloadsamba-b534c45a2a0689d4ff781772ebf75d2fa3d2a110.tar.gz
samba-b534c45a2a0689d4ff781772ebf75d2fa3d2a110.tar.xz
samba-b534c45a2a0689d4ff781772ebf75d2fa3d2a110.zip
swrap: Add swrap_msghdr_socket_info().
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/socket_wrapper/socket_wrapper.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 288ca13c83a..fdb0c5984c5 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -3098,6 +3098,17 @@ static int swrap_msghdr_add_pktinfo(struct socket_info *si,
return 0;
}
+static int swrap_msghdr_add_socket_info(struct socket_info *si,
+ struct msghdr *omsg)
+{
+ int rc = 0;
+
+ if (si->pktinfo > 0) {
+ rc = swrap_msghdr_add_pktinfo(si, omsg);
+ }
+
+ return rc;
+}
#endif /* HAVE_STRUCT_MSGHDR_MSG_CONTROL */
static ssize_t swrap_sendmsg_before(int fd,