未验证 提交 bf58ab65 编写于 作者: A Andreas Merkle 提交者: GitHub

Because QName max. size is 256, the QNameLength range must be able to address...

Because QName max. size is 256, the QNameLength range must be able to address it. Therefore the datatype was changed to uint16_t. (#6354)
上级 c2802257
......@@ -67,7 +67,7 @@ struct DNSHeader
struct DNSQuestion
{
uint8_t QName[256] ; //need 1 Byte for zero termination!
uint8_t QNameLength ;
uint16_t QNameLength ;
uint16_t QType ;
uint16_t QClass ;
} ;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册