1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:07:46 +00:00

LookupServer: Split mDNS flags into separate field

This commit is contained in:
Gunnar Beutner 2021-05-07 23:58:46 +02:00 committed by Andreas Kling
parent 233a9554a5
commit 6e70888315
6 changed files with 31 additions and 13 deletions

View file

@ -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");