Parcourir la source

fix(ipv6-routing): correct index for reserved

Thibaut Vandervelden il y a 1 an
Parent
commit
a3974396a3
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/wire/ipv6routing.rs

+ 2 - 2
src/wire/ipv6routing.rs

@@ -269,8 +269,8 @@ impl<T: AsRef<[u8]> + AsMut<[u8]>> Header<T> {
             Type::Rpl => {
                 // Retain the higher order 4 bits of the padding field
                 data[field::PAD] &= 0xF0;
-                data[6] = 0;
-                data[7] = 0;
+                data[4] = 0;
+                data[5] = 0;
             }
 
             _ => panic!("Unrecognized routing type when clearing reserved fields."),