diff options
| author | Andreas Schneider <asn@cryptomilk.org> | 2014-05-13 16:02:26 +0200 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2014-05-22 12:05:37 +0200 |
| commit | 1a3eac1c6c8f739a1da0b40f683b651475808eae (patch) | |
| tree | 0562d12e29d468f7c46d61fc0650ecaf02a0accd | |
| parent | 37dfa9ba9484488995b4338b6e955b54ea1912aa (diff) | |
| download | socket_wrapper-1a3eac1c6c8f739a1da0b40f683b651475808eae.tar.gz socket_wrapper-1a3eac1c6c8f739a1da0b40f683b651475808eae.tar.xz socket_wrapper-1a3eac1c6c8f739a1da0b40f683b651475808eae.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>
| -rw-r--r-- | src/socket_wrapper.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 288ca13..fdb0c59 100644 --- a/src/socket_wrapper.c +++ b/src/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, |
