Skip to content

Why PacketBuilder::ipv4() takes [u8;4] as its ip arguments? #104

Description

@lyoh33

Thanks for your great working for this crate, but [u8; 4] is not convinient as input type.
Do you have any plan that implement a trait like
pub trait IntoIpv4Addr{ fn into_ipv4(&self) -> Result<Ipv4Addr> }
and change the method to
pub fn ipv4<A: IntoIpv4Addr>(source: A, ...) -> PacketBuilderStep<IpHeaders>
or any other alternative way to make life easier?
I hope I've made myself clear

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions