pub(super) fn is_valid_next_header_upper_layer(next_header: u8) -> bool {
        match IpProto::from(next_header) {
            IpProto::Igmp
            | IpProto::Tcp
            | IpProto::Tcp
            | IpProto::Udp
            | IpProto::Icmpv6
            | IpProto::NoNextHeader => true,
            _ => false,
        }
    }
/// Make sure a Next Header is a valid upper layer protocol.
///
/// Make sure a Next Header is a valid upper layer protocol in an IPv6 packet. Note,
/// we intentionally are not allowing ICMP(v4) since we are working on IPv6 packets.
Make sure a Next Header is a valid upper layer protocol.
Make sure a Next Header is a valid upper layer protocol in an IPv6 packet. Note,
we intentionally are not allowing ICMP(v4) since we are working on IPv6 packets.
Make sure a Next Header is a valid upper layer protocol . Make sure a Next Header is a valid upper layer protocol in an IPv6 packet . Note we intentionally are not allowing ICMP ( v4 ) since we are working on IPv6 packets .
pub(super) fn is_valid_next_header_upper_layer(next_header: u8) -> bool {
        match IpProto::from(next_header) {
            IpProto::Igmp
            | IpProto::Tcp
            | IpProto::Tcp
            | IpProto::Udp
            | IpProto::Icmpv6
            | IpProto::NoNextHeader => true,
            _ => false,
        }
    }
pub ( super ) fn is_valid_next_header_upper_layer ( next_header : u8 ) -> bool { match IpProto :: from ( next_header ) { IpProto :: Igmp | IpProto :: Tcp | IpProto :: Tcp | IpProto :: Udp | IpProto :: Icmpv6 | IpProto :: NoNextHeader => true , _ => false , } }
Make sure a Next Header is a valid upper layer protocol.
Make sure a Next Header is a valid upper layer protocol .
next_header
u8
next_header
u8