From: Jérémie Galarneau Date: Thu, 5 May 2016 15:43:45 +0000 (-0400) Subject: Fix: report error when lttng-live is provided with an IPv6 address X-Git-Tag: v1.4.0-rc1~16 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=fdfb73926a9015e13bf26b8882f7b5332105ce92 Fix: report error when lttng-live is provided with an IPv6 address Signed-off-by: Jérémie Galarneau --- 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",