summaryrefslogtreecommitdiff
path: root/src/basic/socket-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-27 19:27:51 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-27 22:39:34 +0200
commit35a3eb9bdc95d1e6ba25bc65c78959ea104e45a1 (patch)
tree4a968efc849cb3aee1c8ad61b19f11ffa44eae41 /src/basic/socket-util.h
parentbb2294e4545ef2685d52ef27e7bc8a5a265d530b (diff)
downloadsystemd-35a3eb9bdc95d1e6ba25bc65c78959ea104e45a1.tar.gz
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.
Diffstat (limited to 'src/basic/socket-util.h')
-rw-r--r--src/basic/socket-util.h2
1 files changed, 2 insertions, 0 deletions
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);