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

Can't receive the request packet #13

Open
341816041 opened this issue May 24, 2023 · 2 comments
Open

Can't receive the request packet #13

341816041 opened this issue May 24, 2023 · 2 comments

Comments

@341816041
Copy link

In the dhcp_handler method, I determine the 53 bits of the pkt_dhcp.options.option_list, if the value is 1, it is DISCOVER , if the value is 3, it is REQUEST .
But when I test the information, I found that all the messages received are DISCOVER, is my judgment wrong?

QQ截图20230524191615

@341816041
Copy link
Author

Another question, after my test, I entered h1 ifconfig and h2 ifconfig, there is no inet, netmask, broadcast information requested in the screenshot, because I did not successfully assign the ip?

@EricLee543
Copy link
Member

Q1: I think the DHCPOFFER packet you created may not correct. You can monitor this network by wireshark if you are using the mininet VM. You can compare the packet you created with your classmates. Maybe it can help you.
Q2: If there is no the info in the screenshot, I think it could not be a success. In the final check, we will check the result only by ifconfig.

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

2 participants