-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Address DHCP python3 bug #1398
Address DHCP python3 bug #1398
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code does resolve the mentioned issues and works fine, however i'm suggesting an alternative which does not rely on six/if statements. It should work fine in both python2 and python3.
The second code above throws an error:
|
Hi @ujwalkomarla. Can you make sure that all the changes were applied when you ran the test?
|
First Issue
Fixes #703 for dhcp in Python3.
Test packet data:
Before:
After:
Second Issue:
Sample code to reproduce the issue
Before:
b"c\x82Sc5\x01b'\\x01'7\x06b'\\x01\\x03\\x0f\\x06+<'<\x03b'XYZ'\xff\x00b''"
After:
b'c\x82Sc5\x01\x017\x06\x01\x03\x0f\x06+<<\x03XYZ\xff\x00'