summaryrefslogtreecommitdiff
path: root/src/shared/socket-util.h
diff options
context:
space:
mode:
authorShawn Landden <shawn@churchofgit.com>2015-03-10 04:41:59 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-10 09:00:27 -0400
commit3b1c524154c876aecebc98787975cc2943100210 (patch)
tree5e3c403a17419544bba867e24f2ecb41e01ef4c5 /src/shared/socket-util.h
parent54bcf1557c30d97d5ac0afaba003f69e58f82376 (diff)
add REMOTE_ADDR and REMOTE_PORT for Accept=yes
Diffstat (limited to 'src/shared/socket-util.h')
-rw-r--r--src/shared/socket-util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/socket-util.h b/src/shared/socket-util.h
index 2d2b902369..1f4823009e 100644
--- a/src/shared/socket-util.h
+++ b/src/shared/socket-util.h
@@ -97,7 +97,9 @@ const char* socket_address_get_path(const SocketAddress *a);
bool socket_ipv6_is_supported(void);
-int sockaddr_pretty(const struct sockaddr *_sa, socklen_t salen, bool translate_ipv6, char **ret);
+int sockaddr_port(const struct sockaddr *_sa) _pure_;
+
+int sockaddr_pretty(const struct sockaddr *_sa, socklen_t salen, bool translate_ipv6, bool include_port, char **ret);
int getpeername_pretty(int fd, char **ret);
int getsockname_pretty(int fd, char **ret);