1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-29 08:32:26 +01:00
This commit is contained in:
J. Nick Koston
2025-09-27 12:49:08 -05:00
parent 29943bfef1
commit 72c1830b9b

View File

@@ -13,13 +13,11 @@ static const char *const TAG = "captive_portal.dns";
// DNS constants
static constexpr uint16_t DNS_PORT = 53;
static constexpr uint16_t DNS_MAX_LEN = 256;
static constexpr uint16_t DNS_QR_FLAG = 1 << 15;
static constexpr uint16_t DNS_OPCODE_MASK = 0x7800;
static constexpr uint16_t DNS_QTYPE_A = 0x0001;
static constexpr uint16_t DNS_QCLASS_IN = 0x0001;
static constexpr uint16_t DNS_ANSWER_TTL = 300;
static constexpr size_t DNS_TASK_STACK_SIZE = 3072;
// DNS Header structure
struct DNSHeader {