static void build_udp_url(char *buf, int buf_size,

                          const char *hostname, int port,

                          int local_port, int ttl)

{

    snprintf(buf, buf_size, "udp://%s:%d", hostname, port);

    if (local_port >= 0)

        url_add_option(buf, buf_size, "localport=%d", local_port);

    if (ttl >= 0)

        url_add_option(buf, buf_size, "ttl=%d", ttl);

}

static void build_udp_url(char *buf, int buf_size,

                          const char *hostname, int port,

                          int local_port, int ttl)

{

    snprintf(buf, buf_size, "udp:

    if (local_port >= 0)

        url_add_option(buf, buf_size, "localport=%d", local_port);

    if (ttl >= 0)

        url_add_option(buf, buf_size, "ttl=%d", ttl);

}

static void FUNC_0(char *VAR_0, int VAR_1,

                          const char *VAR_2, int VAR_3,

                          int VAR_4, int VAR_5)

{

    snprintf(VAR_0, VAR_1, "udp:

    if (VAR_4 >= 0)

        url_add_option(VAR_0, VAR_1, "localport=%d", VAR_4);

    if (VAR_5 >= 0)

        url_add_option(VAR_0, VAR_1, "VAR_5=%d", VAR_5);

}

static void FUNC_0(char *VAR_0, int VAR_1,
const char *VAR_2, int VAR_3,
int VAR_4, int VAR_5)
{ snprintf(VAR_0, VAR_1, "udp:
if (VAR_4 >= 0)
url_add_option(VAR_0, VAR_1, "localport=%d", VAR_4); if (VAR_5 >= 0)
url_add_option(VAR_0, VAR_1, "VAR_5=%d", VAR_5); }