Skip to content

Add Neighbor Discovery Protocol ICMPv6 packets #126

@Dominaezzz

Description

@Dominaezzz

I want to extend the Icmpv6Type with NDP packets like so:

pub enum Icmpv6Type {
    // ...

    RouterSolicitation,
    RouterAdvertisement(...),
    NeighborSolicitation,
    NeighborAdvertisement(...),
    Redirect,
}

Is this something you'd be interested in or would you rather Icmpv6Type::Unknown be used for this?
This would be a breaking change too, might be worth considering using #[non_exhaustive].

Assuming yes, do you any preferences for how this is done? A struct for every type perhaps? Or add any extra data to the enum entry itself?

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