[lttng-dev] [PATCH lttng-tools 2/2] Fix: Wrong domain used when initializing IPv6 sockets
Christian Babeux
christian.babeux at efficios.com
Fri Aug 10 13:22:52 EDT 2012
Signed-off-by: Christian Babeux <christian.babeux at efficios.com>
---
src/common/sessiond-comm/inet6.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/sessiond-comm/inet6.c b/src/common/sessiond-comm/inet6.c
index 0d96c31..98aba04 100644
--- a/src/common/sessiond-comm/inet6.c
+++ b/src/common/sessiond-comm/inet6.c
@@ -52,7 +52,7 @@ int lttcomm_create_inet6_sock(struct lttcomm_sock *sock, int type, int proto)
int val = 1, ret;
/* Create server socket */
- if ((sock->fd = socket(PF_INET, type, proto)) < 0) {
+ if ((sock->fd = socket(PF_INET6, type, proto)) < 0) {
PERROR("socket inet6");
goto error;
}
--
1.7.11.4
More information about the lttng-dev
mailing list