Skip to content
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

Bit Position of Recursion Desired #1

Open
fhaque opened this issue Oct 2, 2024 · 0 comments
Open

Bit Position of Recursion Desired #1

fhaque opened this issue Oct 2, 2024 · 0 comments

Comments

@fhaque
Copy link

fhaque commented Oct 2, 2024

RECURSION_DESIRED = 1 << 8

Shouldn't this be 1 << 7 and not 8? RFC 1035 says this is Bit 7 or the 8th bit that should be set (ie. 1000 0000 is RD). In Python if I write int("10000000", 2), the output is 128 which equals 1 << 7. Does that sound right?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant