From 35a3eb9bdc95d1e6ba25bc65c78959ea104e45a1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 May 2020 19:27:51 +0200 Subject: socket-util: add generic socket_pass_pktinfo() helper The helper turns on the protocol specific "packet info" structure cmsg for three relevant protocols we know. --- src/basic/socket-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/basic/socket-util.h') diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h index 6f366c0429..9e02e39887 100644 --- a/src/basic/socket-util.h +++ b/src/basic/socket-util.h @@ -220,3 +220,5 @@ int socket_bind_to_ifname(int fd, const char *ifname); int socket_bind_to_ifindex(int fd, int ifindex); ssize_t recvmsg_safe(int sockfd, struct msghdr *msg, int flags); + +int socket_pass_pktinfo(int fd, bool b); -- cgit v1.2.1