projects
/
project
/
mdnsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change dns_send_question function arg from unicast to multicast
[project/mdnsd.git]
/
dns.c
diff --git
a/dns.c
b/dns.c
index
89cd4ce
..
63788f7
100644
(file)
--- a/
dns.c
+++ b/
dns.c
@@
-67,7
+67,7
@@
dns_type_string(uint16_t type)
}
void
}
void
-dns_send_question(struct interface *iface, const char *question, int type, int
un
icast)
+dns_send_question(struct interface *iface, const char *question, int type, int
mult
icast)
{
static struct dns_header h;
static struct dns_question q;
{
static struct dns_header h;
static struct dns_question q;
@@
-87,7
+87,7
@@
dns_send_question(struct interface *iface, const char *question, int type, int u
int len;
h.questions = cpu_to_be16(1);
int len;
h.questions = cpu_to_be16(1);
- q.class = cpu_to_be16((
(unicast) ? (CLASS_UNICAST) : (0))
| 1);
+ q.class = cpu_to_be16((
multicast ? 0 : CLASS_UNICAST)
| 1);
q.type = cpu_to_be16(type);
len = dn_comp(question, (void *) dns_buffer, sizeof(dns_buffer), NULL, NULL);
q.type = cpu_to_be16(type);
len = dn_comp(question, (void *) dns_buffer, sizeof(dns_buffer), NULL, NULL);