From d88840cf0cb6c08fcc60780db9da76977b819760 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Fri, 22 Jan 2016 09:41:44 +0530 Subject: [PATCH] elogind-activate: Add support for datagram sockets core: Add flexible way to provide socket type the socket type should be a diffrent argumet in make_socket_fd . In this way we can set the socket type like SOCK_STREAM SOCK_DGRAM in the address. journal-remote: modify make_socket_fd --- src/basic/socket-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h index 6cd67ffa0..6dc06af2c 100644 --- a/src/basic/socket-util.h +++ b/src/basic/socket-util.h @@ -87,7 +87,7 @@ int socket_address_listen( mode_t directory_mode, mode_t socket_mode, const char *label); -int make_socket_fd(int log_level, const char* address, int flags); +int make_socket_fd(int log_level, const char* address, int type, int flags); bool socket_address_is(const SocketAddress *a, const char *s, int type); bool socket_address_is_netlink(const SocketAddress *a, const char *s); -- 2.30.2