chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: make sure the user cannot accidentaly unmount our cgroup filesystem
[elogind.git]
/
src
/
socket.h
diff --git
a/src/socket.h
b/src/socket.h
index 43d28d7e04d3a207873c41ece3c33977e410deaf..5a2cd06d9d66a761c2df62421c0bfd00d3e64a10 100644
(file)
--- a/
src/socket.h
+++ b/
src/socket.h
@@
-41,7
+41,7
@@
typedef enum SocketState {
SOCKET_STOP_POST,
SOCKET_FINAL_SIGTERM,
SOCKET_FINAL_SIGKILL,
SOCKET_STOP_POST,
SOCKET_FINAL_SIGTERM,
SOCKET_FINAL_SIGKILL,
- SOCKET_MAINT
AI
NANCE,
+ SOCKET_MAINT
E
NANCE,
_SOCKET_STATE_MAX,
_SOCKET_STATE_INVALID = -1
} SocketState;
_SOCKET_STATE_MAX,
_SOCKET_STATE_INVALID = -1
} SocketState;
@@
-62,19
+62,16
@@
typedef enum SocketType {
_SOCKET_FIFO_INVALID = -1
} SocketType;
_SOCKET_FIFO_INVALID = -1
} SocketType;
-typedef struct SocketPort SocketPort;
-
-struct SocketPort {
+typedef struct SocketPort {
SocketType type;
int fd;
SocketAddress address;
char *path;
SocketType type;
int fd;
SocketAddress address;
char *path;
-
Watch fd_watch;
Watch fd_watch;
- LIST_FIELDS(SocketPort, port);
-};
+ LIST_FIELDS(
struct
SocketPort, port);
+}
SocketPort
;
struct Socket {
Meta meta;
struct Socket {
Meta meta;
@@
-82,7
+79,7
@@
struct Socket {
LIST_HEAD(SocketPort, ports);
/* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
LIST_HEAD(SocketPort, ports);
/* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
-
bool
bind_ipv6_only;
+
SocketAddressBindIPv6Only
bind_ipv6_only;
unsigned backlog;
usec_t timeout_usec;
unsigned backlog;
usec_t timeout_usec;