X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Furi.c;h=cb04d1963b024f4297c85f57b717f47b40110041;hp=3a58aedca53f95af2d8e9734eb53fd4fd5f5f4ba;hb=b35d8a5714e1e4b989237d1d117fba3364c24299;hpb=ef599319218f03ff160778e577cd8389a165f47c diff --git a/src/common/uri.c b/src/common/uri.c index 3a58aedca..cb04d1963 100644 --- a/src/common/uri.c +++ b/src/common/uri.c @@ -145,17 +145,17 @@ ssize_t uri_parse(const char *str_uri, struct lttng_uri **uris) /* Size of the uris array. Default is 1 */ ssize_t size = 1; char net[6], dst[LTTNG_MAX_DNNAME + 1]; - unsigned int ctrl_port = DEFAULT_NETWORK_CONTROL_PORT; - unsigned int data_port = DEFAULT_NETWORK_DATA_PORT; + unsigned int ctrl_port = 0; + unsigned int data_port = 0; struct lttng_uri *uri; const struct uri_proto *proto; /* * The first part is the protocol portion of a maximum of 5 bytes for now. - * (tcp, tcp6, udp, udp6, file, net). The second part is the hostname or IP - * address. The 255 bytes size is the limit found in the RFC 1035 for the - * total length of a domain name (https://www.ietf.org/rfc/rfc1035.txt). - * Finally, with the net:// protocol, two ports can be specified. + * The second part is the hostname or IP address. The 255 bytes size is the + * limit found in the RFC 1035 for the total length of a domain name + * (https://www.ietf.org/rfc/rfc1035.txt). Finally, for the net:// + * protocol, two ports CAN be specified. */ ret = sscanf(str_uri, "%5[^:]://", net);