Dario Nieuwenhuis %!s(int64=2) %!d(string=hai) anos
pai
achega
572b22b4f2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/wire/sixlowpan.rs

+ 1 - 1
src/wire/sixlowpan.rs

@@ -700,7 +700,7 @@ pub mod iphc {
             match self.tf_field() {
             match self.tf_field() {
                 0b00 | 0b10 => {
                 0b00 | 0b10 => {
                     let start = self.ip_fields_start() as usize;
                     let start = self.ip_fields_start() as usize;
-                    Some(self.buffer.as_ref()[start..][0] & 0b1111_11)
+                    Some(self.buffer.as_ref()[start..][0] & 0b111111)
                 }
                 }
                 0b01 | 0b11 => None,
                 0b01 | 0b11 => None,
                 _ => unreachable!(),
                 _ => unreachable!(),