Don't use _services._dns-sd._tcp.local
authorRafał Miłecki <rafal@milecki.pl>
Fri, 10 Feb 2017 22:37:11 +0000 (23:37 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Sat, 11 Feb 2017 09:11:06 +0000 (10:11 +0100)
commitc3c168c1cc39539f5ec452ab2f556e78bfa92917
tree8a9bacbaec2c106377682c6fc9fe08c6e9cbd477
parent9879d5fcafed84a912baa8e2e2d3e73df1a9236d
Don't use _services._dns-sd._tcp.local

It seems mdns(d) was trying to support queries for two records with
following names:
1) _services._dns-sd._udp.local
2) _services._dns-sd._tcp.local

According to the RFC 6763 Section 9 only the first one should be used
and response PTR records should include services of both protocols: UDP
and TCP.

This fixes discovering TCP services as in practice no other software was
sending queries with _services._dns-sd._tcp.local.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: John Crispin <john@phrozen.org>
dns.c
service.c
service.h