*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <assert.h>
#include <arpa/inet.h>
#include <netdb.h>
} else {
ipver = (uri->dtype == LTTNG_DST_IPV4) ? 4 : 6;
addr = (ipver == 4) ? uri->dst.ipv4 : uri->dst.ipv6;
- (void) snprintf(proto, sizeof(proto), "net%d", ipver);
+ (void) snprintf(proto, sizeof(proto), "tcp%d", ipver);
(void) snprintf(port, sizeof(port), ":%d", uri->port);
}