mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LookupServer: Split mDNS flags into separate field
This commit is contained in:
parent
233a9554a5
commit
6e70888315
6 changed files with 31 additions and 13 deletions
|
@ -88,9 +88,10 @@ void MulticastDNS::announce()
|
|||
DNSAnswer answer {
|
||||
m_hostname,
|
||||
T_A,
|
||||
C_IN | 0x8000,
|
||||
C_IN,
|
||||
120,
|
||||
String { (const char*)&raw_addr, sizeof(raw_addr) }
|
||||
String { (const char*)&raw_addr, sizeof(raw_addr) },
|
||||
true,
|
||||
};
|
||||
response.add_answer(answer);
|
||||
}
|
||||
|
@ -141,7 +142,7 @@ Vector<DNSAnswer> MulticastDNS::lookup(const DNSName& name, unsigned short recor
|
|||
{
|
||||
DNSPacket request;
|
||||
request.set_is_query();
|
||||
request.add_question({ name, record_type, C_IN });
|
||||
request.add_question({ name, record_type, C_IN, false });
|
||||
|
||||
if (emit_packet(request) < 0) {
|
||||
perror("failed to emit request packet");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue