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.
This commit is contained in:
Lennart Poettering
2020-05-27 22:39:34 +02:00
parent bb2294e454
commit 35a3eb9bdc
2 changed files with 24 additions and 0 deletions
+2
View File
@@ -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);