diff --git a/rust/ip-packet/src/nat64.rs b/rust/ip-packet/src/nat64.rs index 8b603c4d1..864ab1077 100644 --- a/rust/ip-packet/src/nat64.rs +++ b/rust/ip-packet/src/nat64.rs @@ -32,7 +32,7 @@ pub fn translate_in_place(buf: &mut [u8], src: Ipv4Addr, dst: Ipv4Addr) -> Resul // addition, if the translator is at an administrative boundary, the // filtering and update considerations of [RFC2475] may be // applicable. - dscp: Ipv4Dscp::try_new(ipv6_header.traffic_class)?, + dscp: Ipv4Dscp::try_new(ipv6_header.traffic_class).unwrap_or(Ipv4Dscp::ZERO), // Total Length: Payload length value from the IPv6 header, plus the // size of the IPv4 header.