8000 Because QName max. size is 256, the QNameLength range must be able to… · rtu-dataframe/arduino-esp32@bf58ab6 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit bf58ab6

Browse files
authored
Because QName max. size is 256, the QNameLength range must be able to address it. Therefore the datatype was changed to uint16_t. (espressif#6354)
1 parent c280225 commit bf58ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/DNSServer/src/DNSServer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct DNSHeader
6767
struct DNSQuestion
6868
{
6969
uint8_t QName[256] ; //need 1 Byte for zero termination!
70-
uint8_t QNameLength ;
70+
uint16_t QNameLength ;
7171
uint16_t QType ;
7272
uint16_t QClass ;
7373
} ;

0 commit comments

Comments
 (0)
0