New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RR type encoding length #33
Comments
If you agree this should be changed, I can submit a patch that changes all of the RR types to return the RDLEN and write the RDLEN in question.encode() and answer.encode() instead of in each RR type encoder. |
Yes, this seems a bit odd. Do we actually need these |
encode() uses them to calculate the buffer length to allocate: |
But this is secondary to the problem that the encoders for each RR type include the extra RDLEN bytes. |
Currently, the RR type encoding length is set to the length of the RR type data plus 2. RR type A has length 6, RR Type AAAA has length 18, etc. I think this includes the RDATA LEN short but it seems like it shouldn't.
The text was updated successfully, but these errors were encountered: