From 1a3eac1c6c8f739a1da0b40f683b651475808eae Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 13 May 2014 16:02:26 +0200 Subject: swrap: Add swrap_msghdr_socket_info(). Pair-Programmed-With: Stefan Metzmacher Pair-Programmed-With: Michael Adam Signed-off-by: Andreas Schneider Signed-off-by: Stefan Metzmacher Signed-off-by: Michael Adam --- src/socket_wrapper.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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, -- cgit