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
RouterSolicit with no options generates an error #583
Comments
And what should be the outcome of this issue? |
Right, sorry. The options section is a variable length block at the end of the packet, in the good screenshot there are no options and the packet ends after the reserved bytes. In the Router solicitations sometimes have a link-layer address included in the options section, but according to the RFC this is not always the case.
I would be open to fixing this but would need some direction, I have not touched the source yet. edit: Make this what you will, but in practical testing, the malformed packet won't get a router advertisement response from my router. If I include an option, I get a response. It could be a red herring because this code is very rough, but some evidence that this produces an incorrect packet. It is likely this is also an issue with other NDP types like RouterAdvert or NeighbourSolicit/Advert but I haven't specifically tried |
What I think:
|
Rather than being a "stupid thing", the sending of a packet with no options data should be expected, that is how the protocol works as far as I know The issue is that |
A pcap from my network shows that router solicitations are sent with no options.
If I construct a RouterSolicit packet with the pnet lib however, leaving the options field empty leads to an invalid message.
This message is constructed with:
wireshark shows it as an error
The text was updated successfully, but these errors were encountered: