summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2017-10-18 19:05:46 +0200
committerDidier Raboud <odyx@debian.org>2017-10-18 19:05:46 +0200
commitd844b5140ebea56cc7331567bd5fa59fdbf5d770 (patch)
treecfd01a9748e8e28443888c1f2b33a6b709e68b8c /protocol
parent1a59926c389dc78e6c1f72034e15c35552deda3b (diff)
New upstream version 3.17.10
Diffstat (limited to 'protocol')
-rw-r--r--protocol/discovery/mdns.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/protocol/discovery/mdns.c b/protocol/discovery/mdns.c
index e3dc957a4..abca295af 100644
--- a/protocol/discovery/mdns.c
+++ b/protocol/discovery/mdns.c
@@ -205,6 +205,7 @@ static unsigned char* mdns_readMDL(unsigned char *p, unsigned char *normalized_m
{
int i = 0;
int j = 0;
+ int z = 0;
int size = 0;
unsigned char* mdl = normalized_mdl;
@@ -215,7 +216,16 @@ static unsigned char* mdns_readMDL(unsigned char *p, unsigned char *normalized_m
if (strncmp(p, "mdl=", 4) == 0)
{
- for (j = 4; j < size; j++)
+ z = 4;
+ }
+ else if (strncmp(p, "ty=", 3) == 0)
+ {
+ z = 3+3;
+ }
+
+ if(z > 0)
+ {
+ for (j = z; j < size; j++)
{
if (*(p + j) == ' ')
*mdl++ = '_'; //Replace white space with underscore
@@ -427,6 +437,7 @@ int mdns_probe_nw_scanners(char* uris_buf, int buf_size, int *count)
/* Send dns query */
mdns_send_query(udp_socket, "_scanner._tcp.local", QTYPE_PTR);
+ mdns_send_query(udp_socket, "_uscan._tcp.local", QTYPE_PTR);
/* Read Responses */
rr_list = mdns_read_responses(udp_socket, MODE_READ_ALL);