summaryrefslogtreecommitdiff
path: root/src/basic/socket-util.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-10-26 13:21:41 +0100
committerTom Gundersen <teg@jklm.no>2015-10-26 13:21:41 +0100
commitad1a44b23bbc909aa3f5876dadd482a9f6c18d5c (patch)
tree97fc092ae75eddafb746b58d2254c6af953f1e9e /src/basic/socket-util.h
parent0dec689b098cf62b948d43dc78bde859665056ec (diff)
parent4d0d3d41d21f34f28ee67b8b1952af88ada7abaf (diff)
Merge pull request #1676 from poettering/util-lib-2
split up util.[ch] into more pieces, and other stuff
Diffstat (limited to 'src/basic/socket-util.h')
-rw-r--r--src/basic/socket-util.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h
index 6b0ce7836f..8b5410b391 100644
--- a/src/basic/socket-util.h
+++ b/src/basic/socket-util.h
@@ -116,6 +116,14 @@ int netlink_family_from_string(const char *s) _pure_;
bool sockaddr_equal(const union sockaddr_union *a, const union sockaddr_union *b);
-#define ETHER_ADDR_TO_STRING_MAX (3*6)
+int fd_inc_sndbuf(int fd, size_t n);
+int fd_inc_rcvbuf(int fd, size_t n);
-char* ether_addr_to_string(const struct ether_addr *addr, char buffer[ETHER_ADDR_TO_STRING_MAX]);
+int ip_tos_to_string_alloc(int i, char **s);
+int ip_tos_from_string(const char *s);
+
+int getpeercred(int fd, struct ucred *ucred);
+int getpeersec(int fd, char **ret);
+
+int send_one_fd(int transport_fd, int fd, int flags);
+int receive_one_fd(int transport_fd, int flags);