We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Per Ethan """ Couple thoughts:
It feels wordy to have to do this twice How do we turn an IpProtocol into a u8 when writing out a packet/overwriting the protocol field?
Have you seen the solution in libpnet? https://github.com/libpnet/libpnet/blob/master/pnet_packet/src/ip.rs It looks like the protocol is a struct with a single u8 field, then there are two mappings, one a list of constants, and one a display function. """
Regard in the line impl From<u8> for IpProtocol {
impl From<u8> for IpProtocol {
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Per Ethan
"""
Couple thoughts:
Have you seen the solution in libpnet? https://github.com/libpnet/libpnet/blob/master/pnet_packet/src/ip.rs It looks like the protocol is a struct with a single u8 field, then there are two mappings, one a list of constants, and one a display function.
"""
Regard in the line
impl From<u8> for IpProtocol {
The text was updated successfully, but these errors were encountered: