From fdfb73926a9015e13bf26b8882f7b5332105ce92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 5 May 2016 11:43:45 -0400 Subject: [PATCH] Fix: report error when lttng-live is provided with an IPv6 address MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- formats/lttng-live/lttng-live-plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/formats/lttng-live/lttng-live-plugin.c b/formats/lttng-live/lttng-live-plugin.c index 771801ce..a1fbb9e8 100644 --- a/formats/lttng-live/lttng-live-plugin.c +++ b/formats/lttng-live/lttng-live-plugin.c @@ -119,6 +119,10 @@ int parse_url(const char *path, struct lttng_live_ctx *ctx) if (proto_offset > path_len) { goto end; } + if (proto == 6) { + fprintf(stderr, "[error] IPv6 is currently unsupported by lttng-live\n"); + goto end; + } /* TODO : parse for IPv6 as well */ /* Parse the hostname or IP */ ret = sscanf(&path[proto_offset], "%[a-zA-Z.0-9%-]%s", -- 2.34.1