diff options
-rw-r--r-- | src/vrrpv2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs index e58db14..d226420 100644 --- a/src/vrrpv2.rs +++ b/src/vrrpv2.rs @@ -92,7 +92,7 @@ impl VRRPv2 { bytes.push(self.ip_addrs.len() as u8); bytes.push(self.auth_type as u8); bytes.push(self.advertisement_interval); - bytes.extend_from_slice(&[0, 0]); // Placeholder for checksum + bytes.extend_from_slice(&[0; 2]); // Placeholder for checksum for ip in &self.ip_addrs { bytes.extend_from_slice(&ip.to_bits().to_be_bytes()); } |