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-Url: http://drtracing.org/?a=commitdiff_plain;h=36e3a7138222506379722693769c112850b0e40c;p=deliverable%2Fbabeltrace.git 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 771801ce9..a1fbb9e82 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",