From: Susant Sahani Date: Fri, 22 Jan 2016 04:11:44 +0000 (+0530) Subject: elogind-activate: Add support for datagram sockets X-Git-Tag: v229.1~1^2~48 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d88840cf0cb6c08fcc60780db9da76977b819760;hp=9593c01ebcbbf84e2416bbb2dc0913f105e19ff7;p=elogind.git 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 --- 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);