diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-08-05 17:03:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-05 17:03:09 +0200 |
commit | ceab9e2deee29dfda213a30c533c7dcd59c6bcad (patch) | |
tree | 0b46b9a8c0f69456c39c1246afe11b1d9d33dee0 /src/core/socket.h | |
parent | 96533edceb5bb626a674acda2843de72838811cf (diff) | |
parent | 80a58668d989c2316bcf1079b3e98ae526e633fa (diff) |
Merge pull request #3900 from keszybz/fix-3607
Fix 3607
Diffstat (limited to 'src/core/socket.h')
-rw-r--r-- | src/core/socket.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/socket.h b/src/core/socket.h index 2fe38ef2aa..89f4664510 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -80,7 +80,7 @@ struct Socket { LIST_HEAD(SocketPort, ports); - Hashmap *peers_by_address; + Set *peers_by_address; unsigned n_accepted; unsigned n_connections; @@ -168,15 +168,9 @@ struct Socket { RateLimit trigger_limit; }; -struct SocketPeer { - unsigned n_ref; - - Socket *socket; - union sockaddr_union peer; -}; - SocketPeer *socket_peer_ref(SocketPeer *p); SocketPeer *socket_peer_unref(SocketPeer *p); +int socket_acquire_peer(Socket *s, int fd, SocketPeer **p); DEFINE_TRIVIAL_CLEANUP_FUNC(SocketPeer*, socket_peer_unref); |